@ckeditor/ckeditor5-footnotes 47.6.1 → 48.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ckeditor5-metadata.json +63 -63
- package/{src → dist}/commands/insertfootnotecommand.d.ts +1 -1
- package/{src → dist}/footnotes.d.ts +1 -1
- package/{src → dist}/footnotesclipboard.d.ts +2 -2
- package/{src → dist}/footnotesediting.d.ts +2 -2
- package/{src → dist}/footnotesproperties/commands/footnotesstartcommand.d.ts +1 -1
- package/{src → dist}/footnotesproperties/commands/footnotesstylecommand.d.ts +1 -1
- package/{src → dist}/footnotesproperties/footnotespropertiesconfig.d.ts +31 -3
- package/{src → dist}/footnotesproperties/footnotespropertiesediting.d.ts +9 -1
- package/dist/footnotesproperties/footnotespropertiesformatters.d.ts +27 -0
- package/{src → dist}/footnotesproperties/footnotespropertiesui.d.ts +3 -3
- package/{src → dist}/footnotesproperties.d.ts +1 -1
- package/{src → dist}/footnotestracker.d.ts +2 -2
- package/{src → dist}/footnotesui.d.ts +1 -1
- package/dist/index-content.css +63 -45
- package/dist/index-editor.css +56 -56
- package/dist/index.css +116 -143
- package/dist/index.js +1 -1
- package/{src → dist}/modelelementtracker.d.ts +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +20 -42
- package/build/footnotes.js +0 -5
- package/build/translations/af.js +0 -1
- package/build/translations/ar.js +0 -1
- package/build/translations/ast.js +0 -1
- package/build/translations/az.js +0 -1
- package/build/translations/be.js +0 -1
- package/build/translations/bg.js +0 -1
- package/build/translations/bn.js +0 -1
- package/build/translations/bs.js +0 -1
- package/build/translations/ca.js +0 -1
- package/build/translations/cs.js +0 -1
- package/build/translations/da.js +0 -1
- package/build/translations/de-ch.js +0 -1
- package/build/translations/de.js +0 -1
- package/build/translations/el.js +0 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/en-gb.js +0 -1
- package/build/translations/eo.js +0 -1
- package/build/translations/es-co.js +0 -1
- package/build/translations/es.js +0 -1
- package/build/translations/et.js +0 -1
- package/build/translations/eu.js +0 -1
- package/build/translations/fa.js +0 -1
- package/build/translations/fi.js +0 -1
- package/build/translations/fr.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/gu.js +0 -1
- package/build/translations/he.js +0 -1
- package/build/translations/hi.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/hu.js +0 -1
- package/build/translations/hy.js +0 -1
- package/build/translations/id.js +0 -1
- package/build/translations/it.js +0 -1
- package/build/translations/ja.js +0 -1
- package/build/translations/jv.js +0 -1
- package/build/translations/kk.js +0 -1
- package/build/translations/km.js +0 -1
- package/build/translations/kn.js +0 -1
- package/build/translations/ko.js +0 -1
- package/build/translations/ku.js +0 -1
- package/build/translations/lt.js +0 -1
- package/build/translations/lv.js +0 -1
- package/build/translations/ms.js +0 -1
- package/build/translations/nb.js +0 -1
- package/build/translations/ne.js +0 -1
- package/build/translations/nl.js +0 -1
- package/build/translations/no.js +0 -1
- package/build/translations/oc.js +0 -1
- package/build/translations/pl.js +0 -1
- package/build/translations/pt-br.js +0 -1
- package/build/translations/pt.js +0 -1
- package/build/translations/ro.js +0 -1
- package/build/translations/ru.js +0 -1
- package/build/translations/si.js +0 -1
- package/build/translations/sk.js +0 -1
- package/build/translations/sl.js +0 -1
- package/build/translations/sq.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/sr.js +0 -1
- package/build/translations/sv.js +0 -1
- package/build/translations/th.js +0 -1
- package/build/translations/ti.js +0 -1
- package/build/translations/tk.js +0 -1
- package/build/translations/tr.js +0 -1
- package/build/translations/tt.js +0 -1
- package/build/translations/ug.js +0 -1
- package/build/translations/uk.js +0 -1
- package/build/translations/ur.js +0 -1
- package/build/translations/uz.js +0 -1
- package/build/translations/vi.js +0 -1
- package/build/translations/zh-cn.js +0 -1
- package/build/translations/zh.js +0 -1
- package/lang/contexts.json +0 -27
- package/lang/translations/af.po +0 -112
- package/lang/translations/ar.po +0 -112
- package/lang/translations/ast.po +0 -112
- package/lang/translations/az.po +0 -112
- package/lang/translations/be.po +0 -112
- package/lang/translations/bg.po +0 -112
- package/lang/translations/bn.po +0 -112
- package/lang/translations/bs.po +0 -112
- package/lang/translations/ca.po +0 -112
- package/lang/translations/cs.po +0 -112
- package/lang/translations/da.po +0 -112
- package/lang/translations/de-ch.po +0 -112
- package/lang/translations/de.po +0 -112
- package/lang/translations/el.po +0 -112
- package/lang/translations/en-au.po +0 -112
- package/lang/translations/en-gb.po +0 -112
- package/lang/translations/en.po +0 -112
- package/lang/translations/eo.po +0 -112
- package/lang/translations/es-co.po +0 -112
- package/lang/translations/es.po +0 -112
- package/lang/translations/et.po +0 -112
- package/lang/translations/eu.po +0 -112
- package/lang/translations/fa.po +0 -112
- package/lang/translations/fi.po +0 -112
- package/lang/translations/fr.po +0 -112
- package/lang/translations/gl.po +0 -112
- package/lang/translations/gu.po +0 -112
- package/lang/translations/he.po +0 -112
- package/lang/translations/hi.po +0 -112
- package/lang/translations/hr.po +0 -112
- package/lang/translations/hu.po +0 -112
- package/lang/translations/hy.po +0 -112
- package/lang/translations/id.po +0 -112
- package/lang/translations/it.po +0 -112
- package/lang/translations/ja.po +0 -112
- package/lang/translations/jv.po +0 -112
- package/lang/translations/kk.po +0 -112
- package/lang/translations/km.po +0 -112
- package/lang/translations/kn.po +0 -112
- package/lang/translations/ko.po +0 -112
- package/lang/translations/ku.po +0 -112
- package/lang/translations/lt.po +0 -112
- package/lang/translations/lv.po +0 -112
- package/lang/translations/ms.po +0 -112
- package/lang/translations/nb.po +0 -112
- package/lang/translations/ne.po +0 -112
- package/lang/translations/nl.po +0 -112
- package/lang/translations/no.po +0 -112
- package/lang/translations/oc.po +0 -112
- package/lang/translations/pl.po +0 -112
- package/lang/translations/pt-br.po +0 -112
- package/lang/translations/pt.po +0 -112
- package/lang/translations/ro.po +0 -112
- package/lang/translations/ru.po +0 -112
- package/lang/translations/si.po +0 -112
- package/lang/translations/sk.po +0 -112
- package/lang/translations/sl.po +0 -112
- package/lang/translations/sq.po +0 -112
- package/lang/translations/sr-latn.po +0 -112
- package/lang/translations/sr.po +0 -112
- package/lang/translations/sv.po +0 -112
- package/lang/translations/th.po +0 -112
- package/lang/translations/ti.po +0 -112
- package/lang/translations/tk.po +0 -112
- package/lang/translations/tr.po +0 -112
- package/lang/translations/tt.po +0 -112
- package/lang/translations/ug.po +0 -112
- package/lang/translations/uk.po +0 -112
- package/lang/translations/ur.po +0 -112
- package/lang/translations/uz.po +0 -112
- package/lang/translations/vi.po +0 -112
- package/lang/translations/zh-cn.po +0 -112
- package/lang/translations/zh.po +0 -112
- package/src/augmentation.js +0 -23
- package/src/commands/insertfootnotecommand.js +0 -23
- package/src/footnotes.js +0 -23
- package/src/footnotesclipboard.js +0 -23
- package/src/footnotesconfig.js +0 -23
- package/src/footnotesediting.js +0 -23
- package/src/footnotesproperties/commands/footnotesstartcommand.js +0 -23
- package/src/footnotesproperties/commands/footnotesstylecommand.js +0 -23
- package/src/footnotesproperties/footnotespropertiesconfig.js +0 -23
- package/src/footnotesproperties/footnotespropertiesediting.js +0 -23
- package/src/footnotesproperties/footnotespropertiesui.js +0 -23
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +0 -23
- package/src/footnotesproperties.js +0 -23
- package/src/footnotestracker.js +0 -23
- package/src/footnotesui.js +0 -23
- package/src/index.js +0 -23
- package/src/modelelementtracker.js +0 -23
- package/theme/footnotes.css +0 -143
- package/theme/footnotesproperties.css +0 -54
- /package/{src → dist}/augmentation.d.ts +0 -0
- /package/{src → dist}/footnotesconfig.d.ts +0 -0
- /package/{src → dist}/footnotesproperties/ui/footnotesdefinitionspropertiesview.d.ts +0 -0
- /package/{src → dist}/index.d.ts +0 -0
package/ckeditor5-metadata.json
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
2
|
+
"plugins": [
|
|
3
|
+
{
|
|
4
|
+
"name": "Footnotes",
|
|
5
|
+
"className": "Footnotes",
|
|
6
|
+
"description": "Introduces footnotes functionality for adding references and notes.",
|
|
7
|
+
"docs": "features/footnotes.html",
|
|
8
|
+
"path": "src/footnotes.ts",
|
|
9
|
+
"uiComponents": [
|
|
10
|
+
{
|
|
11
|
+
"name": "insertFootnote",
|
|
12
|
+
"type": "Button",
|
|
13
|
+
"iconName": "IconFootnote"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"htmlOutput": [
|
|
17
|
+
{
|
|
18
|
+
"elements": "sup",
|
|
19
|
+
"classes": "footnote"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"elements": "a",
|
|
23
|
+
"classes": "footnote-backlink",
|
|
24
|
+
"attributes": "href"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"elements": "ol",
|
|
28
|
+
"classes": "footnotes"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"elements": "li",
|
|
32
|
+
"classes": "footnote-definition",
|
|
33
|
+
"attributes": "id"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"elements": "div",
|
|
37
|
+
"classes": "footnote-content"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "Footnotes Properties",
|
|
43
|
+
"className": "FootnotesProperties",
|
|
44
|
+
"description": "Provides the ability to customize footnote properties such as numbering style.",
|
|
45
|
+
"docs": "features/footnotes.html#footnote-properties",
|
|
46
|
+
"path": "src/footnotesproperties.ts",
|
|
47
|
+
"uiComponents": [
|
|
48
|
+
{
|
|
49
|
+
"type": "Button",
|
|
50
|
+
"name": "footnotesStyle",
|
|
51
|
+
"label": "Footnote Style",
|
|
52
|
+
"iconName": "IconFootnote"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"htmlOutput": [
|
|
56
|
+
{
|
|
57
|
+
"elements": "ol",
|
|
58
|
+
"classes": "footnotes",
|
|
59
|
+
"styles": "list-style-type",
|
|
60
|
+
"attributes": "type"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
65
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import { Command } from 'ckeditor5
|
|
5
|
+
import { Command } from '@ckeditor/ckeditor5-core';
|
|
6
6
|
/**
|
|
7
7
|
* The insert footnote command.
|
|
8
8
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module footnotes/footnotes
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { FootnotesEditing } from './footnotesediting.js';
|
|
11
11
|
import { FootnotesClipboard } from './footnotesclipboard.js';
|
|
12
12
|
import { FootnotesUI } from './footnotesui.js';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module footnotes/footnotesclipboard
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
-
import { ClipboardPipeline } from 'ckeditor5
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import { ClipboardPipeline } from '@ckeditor/ckeditor5-clipboard';
|
|
10
10
|
import { FootnotesEditing } from './footnotesediting.js';
|
|
11
11
|
/**
|
|
12
12
|
* The footnotes clipboard integration plugin.
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module footnotes/footnotesediting
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
10
|
-
import { type ViewNode } from 'ckeditor5
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
|
+
import { type ViewNode } from '@ckeditor/ckeditor5-engine';
|
|
11
11
|
import { FootnotesTracker } from './footnotestracker.js';
|
|
12
12
|
/**
|
|
13
13
|
* The footnotes editing plugin.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module footnotes/footnotesproperties/commands/footnotesstylecommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command } from 'ckeditor5
|
|
9
|
+
import { Command } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { type FootnotesDefinitionsStyle } from '../footnotespropertiesconfig.js';
|
|
11
11
|
/**
|
|
12
12
|
* Change footnotes definitions style command.
|
|
@@ -17,7 +17,7 @@ export interface FootnotesPropertiesConfig {
|
|
|
17
17
|
*
|
|
18
18
|
* Note: This configuration is used only when the footnotes definitions is being created after adding the first footnote.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
defaultListStyle?: FootnotesDefinitionsStyle;
|
|
21
21
|
/**
|
|
22
22
|
* The default start index of the footnotes definitions. The default is `1`.
|
|
23
23
|
*
|
|
@@ -40,14 +40,42 @@ export interface FootnotesPropertiesConfig {
|
|
|
40
40
|
* toolbar: [ 'footnotesStyle' ]
|
|
41
41
|
* };
|
|
42
42
|
* ```
|
|
43
|
+
* @default `[ 'footnotesStyle' ]`
|
|
43
44
|
*/
|
|
44
45
|
toolbar?: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
* The list of styles for footnotes definitions that will be shown in the footnotes properties dropdown
|
|
48
|
+
* created by the {@link module:footnotes/footnotesproperties/footnotespropertiesui~FootnotesPropertiesUI} feature.
|
|
49
|
+
* The order of styles in the dropdown corresponds to the order of styles in this configuration.
|
|
50
|
+
*
|
|
51
|
+
* @default `[ 'decimal', 'decimal-leading-zero', 'lower-latin', 'upper-latin', 'lower-roman', 'upper-roman' ]`
|
|
52
|
+
*/
|
|
53
|
+
listStyles?: Array<FootnotesDefinitionsStyle>;
|
|
45
54
|
}
|
|
46
55
|
/**
|
|
47
|
-
* The
|
|
56
|
+
* The list of the default styles for footnotes definitions. These styles are shown
|
|
57
|
+
* by default in the footnotes properties dropdown and are supported in the editor by default.
|
|
48
58
|
*/
|
|
49
|
-
export declare const
|
|
59
|
+
export declare const FOOTNOTES_BASE_CANONICAL_DEFINITIONS_STYLES: readonly ["decimal", "decimal-leading-zero", "lower-latin", "upper-latin", "lower-roman", "upper-roman"];
|
|
60
|
+
/**
|
|
61
|
+
* The list of additional styles for footnotes definitions. These styles are supported in the editor but not shown
|
|
62
|
+
* in the footnotes properties dropdown by default. To show them in the dropdown, they must be added to the
|
|
63
|
+
* {@link module:footnotes/footnotesproperties/footnotespropertiesconfig~FootnotesPropertiesConfig#listStyles} configuration.
|
|
64
|
+
*/
|
|
65
|
+
export declare const FOOTNOTES_ADDITIONAL_CANONICAL_DEFINITIONS_STYLES: readonly ["arabic-indic"];
|
|
66
|
+
/**
|
|
67
|
+
* The mapping of the footnotes definitions styles aliases to their canonical names.
|
|
68
|
+
*/
|
|
69
|
+
export declare const FOOTNOTES_DEFINITION_STYLES_ALIASES: Record<string, FootnotesDefinitionsStyle>;
|
|
70
|
+
/**
|
|
71
|
+
* The all available styles for footnotes definitions.
|
|
72
|
+
*/
|
|
73
|
+
export declare const FOOTNOTES_DEFINITIONS_STYLES: readonly ["decimal", "decimal-leading-zero", "lower-latin", "upper-latin", "lower-roman", "upper-roman", "arabic-indic", "lower-alpha", "upper-alpha"];
|
|
50
74
|
/**
|
|
51
75
|
* The style of the footnotes list. It should correspond to the `list-style-type` CSS property.
|
|
52
76
|
*/
|
|
53
77
|
export type FootnotesDefinitionsStyle = (typeof FOOTNOTES_DEFINITIONS_STYLES)[number];
|
|
78
|
+
/**
|
|
79
|
+
* The style of the footnotes list without aliases. It should correspond to the `list-style-type` CSS property.
|
|
80
|
+
*/
|
|
81
|
+
export type FootnotesDefinitionsCanonicalStyle = Exclude<FootnotesDefinitionsStyle, `${string}-alpha`>;
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* @module footnotes/footnotesproperties/footnotespropertiesediting
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
|
+
import { type FootnotesDefinitionsCanonicalStyle } from './footnotespropertiesconfig.js';
|
|
10
11
|
import { FootnotesTracker } from '../footnotestracker.js';
|
|
11
12
|
import { FootnotesEditing } from '../footnotesediting.js';
|
|
12
13
|
/**
|
|
@@ -34,3 +35,10 @@ export declare class FootnotesPropertiesEditing extends Plugin {
|
|
|
34
35
|
*/
|
|
35
36
|
init(): void;
|
|
36
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Normalizes footnotes list style by converting aliases to their canonical form.
|
|
40
|
+
*
|
|
41
|
+
* @param listStyle The list style value to normalize.
|
|
42
|
+
* @returns The canonical form of the list style.
|
|
43
|
+
*/
|
|
44
|
+
export declare function toCanonicalFootnotesListStyle(listStyle: unknown): FootnotesDefinitionsCanonicalStyle | null;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module footnotes/footnotesproperties/footnotespropertiesformatters
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Formats a unsigned decimal number with leading zeros based on the specified number of digits.
|
|
11
|
+
*
|
|
12
|
+
* @param n The number to format.
|
|
13
|
+
* @param digits The minimum number of digits.
|
|
14
|
+
* @returns The formatted string with leading zeros.
|
|
15
|
+
*/
|
|
16
|
+
export declare function formatDecimalLeadingZeroFootnote(n: number, digits: number): string;
|
|
17
|
+
/**
|
|
18
|
+
* Converts a unsigned number to alphabetic representation like Excel columns (A, B, C, ..., Z, AA, AB, ...).
|
|
19
|
+
* This follows Excel-style numbering: 1=A, 2=B, ..., 26=Z, 27=AA, 28=AB, etc.
|
|
20
|
+
*
|
|
21
|
+
* @param n The number to convert (must be >= 1).
|
|
22
|
+
* @param upper Whether to use uppercase letters.
|
|
23
|
+
* @returns The alphabetic representation of the number.
|
|
24
|
+
*/
|
|
25
|
+
export declare function formatLatinFootnote(n: number, upper: boolean): string;
|
|
26
|
+
export declare function formatRomanFootnote(n: number, upper: boolean): string;
|
|
27
|
+
export declare function formatArabicIndicFootnote(n: number): string;
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* @module footnotes/footnotesproperties/footnotespropertiesui
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { ContextualBalloon } from 'ckeditor5
|
|
10
|
-
import { WidgetToolbarRepository } from 'ckeditor5
|
|
11
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
+
import { ContextualBalloon } from '@ckeditor/ckeditor5-ui';
|
|
10
|
+
import { WidgetToolbarRepository } from '@ckeditor/ckeditor5-widget';
|
|
11
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
12
12
|
import '../../theme/footnotesproperties.css';
|
|
13
13
|
/**
|
|
14
14
|
* A plugin that provides footnotes properties UI.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module footnotes/footnotesproperties
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { FootnotesPropertiesEditing } from './footnotesproperties/footnotespropertiesediting.js';
|
|
11
11
|
import { FootnotesPropertiesUI } from './footnotesproperties/footnotespropertiesui.js';
|
|
12
12
|
/**
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module footnotes/footnotestracker
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin, type Editor } from 'ckeditor5
|
|
10
|
-
import type { ModelElement } from 'ckeditor5
|
|
9
|
+
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
10
|
+
import type { ModelElement } from '@ckeditor/ckeditor5-engine';
|
|
11
11
|
/**
|
|
12
12
|
* The footnotes tracker. It keeps track of all footnotes in the editor.
|
|
13
13
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import { Plugin } from 'ckeditor5
|
|
5
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
6
6
|
import '../theme/footnotes.css';
|
|
7
7
|
/**
|
|
8
8
|
* The footnotes UI plugin.
|
package/dist/index-content.css
CHANGED
|
@@ -3,62 +3,80 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
:root{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
--ck-content-footnotes-list-background-color:none;
|
|
7
|
+
--ck-content-footnotes-list-separator-color:#000;
|
|
8
|
+
--ck-content-footnote-font-size:var(--ck-content-font-size-small);
|
|
9
9
|
}
|
|
10
|
+
|
|
10
11
|
.ck-content .footnote{
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
margin-inline-end:.2em;
|
|
13
|
+
}
|
|
14
|
+
|
|
13
15
|
.ck-content .footnotes{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
font-size:var(--ck-content-footnote-font-size);
|
|
17
|
+
background-color:var(--ck-content-footnotes-list-background-color);
|
|
18
|
+
margin:.9em 0 1.5em;
|
|
19
|
+
position:relative;
|
|
20
|
+
}
|
|
21
|
+
|
|
19
22
|
.ck-content .footnotes-divider{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
border:none;
|
|
24
|
+
border-top:1px solid var(--ck-content-footnotes-list-separator-color);
|
|
25
|
+
background:none;
|
|
26
|
+
width:min(30%, 350px);
|
|
27
|
+
height:1px;
|
|
28
|
+
margin:0 0 1em;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[dir="rtl"] :is(.ck-content .footnotes-divider){
|
|
32
|
+
margin-left:auto;
|
|
33
|
+
margin-right:0;
|
|
34
|
+
}
|
|
35
|
+
|
|
27
36
|
.ck-content .footnotes-list{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
37
|
+
margin:0;
|
|
38
|
+
padding-inline-start:3em;
|
|
39
|
+
}
|
|
40
|
+
|
|
31
41
|
.ck-content .footnote-backlink{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
user-select:none;
|
|
43
|
+
vertical-align:top;
|
|
44
|
+
width:auto;
|
|
45
|
+
margin-inline-end:1ch;
|
|
46
|
+
display:inline-block;
|
|
47
|
+
}
|
|
48
|
+
|
|
38
49
|
.ck-content .footnote-content{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
50
|
+
vertical-align:top;
|
|
51
|
+
width:calc(100% - 2em);
|
|
52
|
+
padding:0 4px;
|
|
53
|
+
display:inline-block;
|
|
54
|
+
}
|
|
55
|
+
|
|
44
56
|
.ck-content .footnote-content > p:first-of-type{
|
|
45
|
-
|
|
46
|
-
|
|
57
|
+
margin-top:0;
|
|
58
|
+
}
|
|
59
|
+
|
|
47
60
|
.ck-content .footnote-content > p:last-of-type{
|
|
48
|
-
|
|
49
|
-
|
|
61
|
+
margin-bottom:0;
|
|
62
|
+
}
|
|
63
|
+
|
|
50
64
|
.ck-content .footnote-content ol{
|
|
51
|
-
|
|
52
|
-
|
|
65
|
+
list-style-type:decimal;
|
|
66
|
+
}
|
|
67
|
+
|
|
53
68
|
.ck-content .footnote-content ol ol{
|
|
54
|
-
|
|
55
|
-
|
|
69
|
+
list-style-type:lower-latin;
|
|
70
|
+
}
|
|
71
|
+
|
|
56
72
|
.ck-content .footnote-content ol ol ol{
|
|
57
|
-
|
|
58
|
-
|
|
73
|
+
list-style-type:lower-roman;
|
|
74
|
+
}
|
|
75
|
+
|
|
59
76
|
.ck-content .footnote-content ol ol ol ol{
|
|
60
|
-
|
|
61
|
-
|
|
77
|
+
list-style-type:upper-latin;
|
|
78
|
+
}
|
|
79
|
+
|
|
62
80
|
.ck-content .footnote-content ol ol ol ol ol{
|
|
63
|
-
|
|
64
|
-
|
|
81
|
+
list-style-type:upper-roman;
|
|
82
|
+
}
|
package/dist/index-editor.css
CHANGED
|
@@ -3,79 +3,79 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
:root{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
--ck-content-footnotes-list-background-color:none;
|
|
7
|
+
--ck-content-footnotes-list-separator-color:#000;
|
|
8
|
+
--ck-content-footnote-font-size:var(--ck-content-font-size-small);
|
|
9
|
+
--ck-footnotes-widget-label-background-color:#757575;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
margin-left:auto;
|
|
13
|
-
margin-right:0;
|
|
14
|
-
}
|
|
11
|
+
|
|
15
12
|
.ck.ck-editor__editable .footnotes.ck-widget{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
margin:.9em 0 .85em;
|
|
14
|
+
display:flow-root;
|
|
15
|
+
position:relative;
|
|
16
|
+
}
|
|
17
|
+
|
|
20
18
|
.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]::after{
|
|
24
|
-
content:attr(data-footnotes-list-label);
|
|
19
|
+
outline:1px solid var(--ck-color-base-border);
|
|
20
|
+
}
|
|
25
21
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{
|
|
23
|
+
content:attr(data-footnotes-list-label);
|
|
24
|
+
padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);
|
|
25
|
+
background-color:var(--ck-footnotes-widget-label-background-color);
|
|
26
|
+
font-size:10px;
|
|
27
|
+
font-family:var(--ck-font-face);
|
|
28
|
+
color:#fff;
|
|
29
|
+
white-space:nowrap;
|
|
30
|
+
line-height:16px;
|
|
31
|
+
position:absolute;
|
|
32
|
+
top:-1px;
|
|
33
|
+
right:10px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[dir="rtl"] :is(.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after){
|
|
37
|
+
left:10px;
|
|
38
|
+
right:auto;
|
|
39
|
+
}
|
|
31
40
|
|
|
32
|
-
font-size:10px;
|
|
33
|
-
font-family:var(--ck-font-face);
|
|
34
|
-
line-height:16px;
|
|
35
|
-
color:hsl(0, 0%, 100%);
|
|
36
|
-
white-space:nowrap;
|
|
37
|
-
}
|
|
38
|
-
[dir="rtl"] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]::after{
|
|
39
|
-
left:10px;
|
|
40
|
-
right:auto;
|
|
41
|
-
}
|
|
42
41
|
.ck.ck-editor__editable .footnotes-divider{
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
margin-top:0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
45
|
.ck.ck-editor__editable .footnotes-list{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
margin-top:0;
|
|
47
|
+
margin-bottom:.65em;
|
|
48
|
+
}
|
|
49
49
|
|
|
50
50
|
:root{
|
|
51
|
-
|
|
51
|
+
--ck-footnotes-styles-list-style-button-size:44px;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.ck.ck-footnotes-definitions-properties > .ck-footnotes-definitions-styles-list{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
row-gap:var(--ck-spacing-medium);
|
|
56
|
+
column-gap:var(--ck-spacing-medium);
|
|
57
|
+
padding:var(--ck-spacing-large);
|
|
58
|
+
grid-template-columns:repeat(4, auto);
|
|
59
|
+
display:grid;
|
|
60
|
+
}
|
|
61
61
|
|
|
62
62
|
.ck.ck-footnotes-definitions-properties > .ck-footnotes-definitions-styles-list .ck-button{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
width:var(--ck-footnotes-styles-list-style-button-size);
|
|
64
|
+
height:var(--ck-footnotes-styles-list-style-button-size);
|
|
65
|
+
box-sizing:content-box;
|
|
66
|
+
margin:0;
|
|
67
|
+
padding:0;
|
|
68
|
+
}
|
|
69
69
|
|
|
70
70
|
.ck.ck-footnotes-definitions-properties > .ck-footnotes-definitions-styles-list .ck-button .ck-icon{
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
width:var(--ck-footnotes-styles-list-style-button-size);
|
|
72
|
+
height:var(--ck-footnotes-styles-list-style-button-size);
|
|
73
|
+
}
|
|
74
74
|
|
|
75
75
|
.ck.ck-footnotes-definitions-properties > .ck-collapsible{
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
border-top:1px solid var(--ck-color-base-border);
|
|
77
|
+
}
|
|
78
78
|
|
|
79
79
|
.ck.ck-footnotes-definitions-properties > .ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
min-width:100%;
|
|
81
|
+
}
|