@ckeditor/ckeditor5-footnotes 48.2.0 → 48.3.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/dist/augmentation.d.ts +32 -32
- package/dist/commands/insertfootnotecommand.d.ts +16 -16
- package/dist/footnotes.d.ts +28 -28
- package/dist/footnotesclipboard.d.ts +33 -33
- package/dist/footnotesconfig.d.ts +25 -25
- package/dist/footnotesediting.d.ts +40 -40
- package/dist/footnotesproperties/commands/footnotesstartcommand.d.ts +23 -23
- package/dist/footnotesproperties/commands/footnotesstylecommand.d.ts +24 -24
- package/dist/footnotesproperties/footnotespropertiesconfig.d.ts +65 -65
- package/dist/footnotesproperties/footnotespropertiesediting.d.ts +37 -37
- package/dist/footnotesproperties/footnotespropertiesformatters.d.ts +18 -24
- package/dist/footnotesproperties/footnotespropertiesui.d.ts +36 -36
- package/dist/footnotesproperties/ui/footnotesdefinitionspropertiesview.d.ts +11 -11
- package/dist/footnotesproperties.d.ts +27 -27
- package/dist/footnotestracker.d.ts +89 -89
- package/dist/footnotesui.d.ts +27 -27
- package/dist/index.d.ts +19 -19
- package/dist/index.js +1 -1
- package/dist/modelelementtracker.d.ts +48 -48
- 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 +9 -9
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { Footnotes } from
|
|
6
|
-
import type { FootnotesEditing } from
|
|
7
|
-
import type { FootnotesUI } from
|
|
8
|
-
import type { InsertFootnoteCommand } from
|
|
9
|
-
import type { FootnotesConfig } from
|
|
10
|
-
import type { FootnotesTracker } from
|
|
11
|
-
import type { FootnotesPropertiesEditing } from
|
|
12
|
-
import type { FootnotesStyleCommand } from
|
|
13
|
-
import type { FootnotesStartCommand } from
|
|
14
|
-
import type { FootnotesPropertiesUI } from
|
|
15
|
-
import type { FootnotesProperties } from
|
|
16
|
-
declare module
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
+
import type { Footnotes } from "./footnotes.js";
|
|
6
|
+
import type { FootnotesEditing } from "./footnotesediting.js";
|
|
7
|
+
import type { FootnotesUI } from "./footnotesui.js";
|
|
8
|
+
import type { InsertFootnoteCommand } from "./commands/insertfootnotecommand.js";
|
|
9
|
+
import type { FootnotesConfig } from "./footnotesconfig.js";
|
|
10
|
+
import type { FootnotesTracker } from "./footnotestracker.js";
|
|
11
|
+
import type { FootnotesPropertiesEditing } from "./footnotesproperties/footnotespropertiesediting.js";
|
|
12
|
+
import type { FootnotesStyleCommand } from "./footnotesproperties/commands/footnotesstylecommand.js";
|
|
13
|
+
import type { FootnotesStartCommand } from "./footnotesproperties/commands/footnotesstartcommand.js";
|
|
14
|
+
import type { FootnotesPropertiesUI } from "./footnotesproperties/footnotespropertiesui.js";
|
|
15
|
+
import type { FootnotesProperties } from "./footnotesproperties.js";
|
|
16
|
+
declare module "@ckeditor/ckeditor5-core" {
|
|
17
|
+
interface PluginsMap {
|
|
18
|
+
[Footnotes.pluginName]: Footnotes;
|
|
19
|
+
[FootnotesEditing.pluginName]: FootnotesEditing;
|
|
20
|
+
[FootnotesUI.pluginName]: FootnotesUI;
|
|
21
|
+
[FootnotesTracker.pluginName]: FootnotesTracker;
|
|
22
|
+
[FootnotesPropertiesEditing.pluginName]: FootnotesPropertiesEditing;
|
|
23
|
+
[FootnotesPropertiesUI.pluginName]: FootnotesPropertiesUI;
|
|
24
|
+
[FootnotesProperties.pluginName]: FootnotesProperties;
|
|
25
|
+
}
|
|
26
|
+
interface CommandsMap {
|
|
27
|
+
insertFootnote: InsertFootnoteCommand;
|
|
28
|
+
footnotesStyle: FootnotesStyleCommand;
|
|
29
|
+
footnotesStart: FootnotesStartCommand;
|
|
30
|
+
}
|
|
31
|
+
interface EditorConfig {
|
|
32
|
+
footnotes?: FootnotesConfig;
|
|
33
|
+
}
|
|
34
34
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Command } from
|
|
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
|
+
import { Command } from "@ckeditor/ckeditor5-core";
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
* The insert footnote command.
|
|
8
|
+
*/
|
|
9
9
|
export declare class InsertFootnoteCommand extends Command {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @inheritDoc
|
|
12
|
+
*/
|
|
13
|
+
override refresh(): void;
|
|
14
|
+
/**
|
|
15
|
+
* @inheritdoc
|
|
16
|
+
*/
|
|
17
|
+
override execute(options?: {
|
|
18
|
+
footnoteId: string;
|
|
19
|
+
}): void;
|
|
20
20
|
}
|
package/dist/footnotes.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import { FootnotesEditing } from
|
|
11
|
-
import { FootnotesClipboard } from
|
|
12
|
-
import { FootnotesUI } from
|
|
6
|
+
* @module footnotes/footnotes
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { FootnotesEditing } from "./footnotesediting.js";
|
|
11
|
+
import { FootnotesClipboard } from "./footnotesclipboard.js";
|
|
12
|
+
import { FootnotesUI } from "./footnotesui.js";
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
* The footnotes plugin.
|
|
15
|
+
*/
|
|
16
16
|
export declare class Footnotes extends Plugin {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "Footnotes";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get requires(): PluginDependenciesOf<[FootnotesEditing, FootnotesClipboard, FootnotesUI]>;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static override get isOfficialPlugin(): true;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static override get isPremiumPlugin(): true;
|
|
33
33
|
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import { ClipboardPipeline } from
|
|
10
|
-
import { FootnotesEditing } from
|
|
6
|
+
* @module footnotes/footnotesclipboard
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { ClipboardPipeline } from "@ckeditor/ckeditor5-clipboard";
|
|
10
|
+
import { FootnotesEditing } from "./footnotesediting.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
* The footnotes clipboard integration plugin.
|
|
13
|
+
*
|
|
14
|
+
* Handles copy/paste operations for footnotes to preserve footnote mappings
|
|
15
|
+
* during clipboard operations.
|
|
16
|
+
*/
|
|
17
17
|
export declare class FootnotesClipboard extends Plugin {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "FootnotesClipboard";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): PluginDependenciesOf<[FootnotesEditing, ClipboardPipeline]>;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static override get isOfficialPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static override get isPremiumPlugin(): true;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
init(): void;
|
|
38
38
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import type { FootnotesPropertiesConfig } from
|
|
6
|
+
* @module footnotes/footnotesconfig
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { FootnotesPropertiesConfig } from "./footnotesproperties/footnotespropertiesconfig.js";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
* The configuration of the {@link module:footnotes/footnotes~Footnotes} feature.
|
|
12
|
+
*
|
|
13
|
+
* Read more in {@link module:footnotes/footnotesconfig~FootnotesConfig}.
|
|
14
|
+
*/
|
|
15
15
|
export interface FootnotesConfig {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Allows multiple blocks in single footnote definition item.
|
|
18
|
+
*
|
|
19
|
+
* With this option enabled you can have block widgets, for example images or even tables, within a footnote definition item.
|
|
20
|
+
*
|
|
21
|
+
* **Note:** This is enabled by default.
|
|
22
|
+
*
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
multiBlock?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The configuration of the {@link module:footnotes/footnotesproperties~FootnotesProperties} feature.
|
|
28
|
+
*/
|
|
29
|
+
footnotesProperties?: FootnotesPropertiesConfig;
|
|
30
30
|
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import { type ViewNode } from
|
|
11
|
-
import { FootnotesTracker } from
|
|
6
|
+
* @module footnotes/footnotesediting
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { type ViewNode } from "@ckeditor/ckeditor5-engine";
|
|
11
|
+
import { FootnotesTracker } from "./footnotestracker.js";
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
* The footnotes editing plugin.
|
|
14
|
+
*/
|
|
15
15
|
export declare class FootnotesEditing extends Plugin {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
static get pluginName(): "FootnotesEditing";
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get requires(): PluginDependenciesOf<[FootnotesTracker]>;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static override get isOfficialPlugin(): true;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static override get isPremiumPlugin(): true;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
init(): void;
|
|
36
|
+
/**
|
|
37
|
+
* @inheritDoc
|
|
38
|
+
*/
|
|
39
|
+
afterInit(): void;
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
* Checks if the given element is a footnotes definitions widget.
|
|
43
|
+
*
|
|
44
|
+
* @param element The element to check.
|
|
45
|
+
* @returns Whether the element is a footnotes definitions widget.
|
|
46
|
+
*/
|
|
47
47
|
export declare function isFootnotesDefinitionsWidget(element: ViewNode): boolean;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Command } from
|
|
6
|
+
* @module footnotes/footnotesproperties/commands/footnotesstartcommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command } from "@ckeditor/ckeditor5-core";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* Change footnotes definitions start command.
|
|
12
|
+
*/
|
|
13
13
|
export declare class FootnotesStartCommand extends Command {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Current list start value of the footnotesDefinitions container.
|
|
16
|
+
*/
|
|
17
|
+
value: number | null;
|
|
18
|
+
/**
|
|
19
|
+
* @inheritdoc
|
|
20
|
+
*/
|
|
21
|
+
override refresh(): void;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritdoc
|
|
24
|
+
*/
|
|
25
|
+
override execute({ value }: {
|
|
26
|
+
value: number;
|
|
27
|
+
}): void;
|
|
28
28
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Command } from
|
|
10
|
-
import { type FootnotesDefinitionsStyle } from
|
|
6
|
+
* @module footnotes/footnotesproperties/commands/footnotesstylecommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { type FootnotesDefinitionsStyle } from "../footnotespropertiesconfig.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
* Change footnotes definitions style command.
|
|
13
|
+
*/
|
|
14
14
|
export declare class FootnotesStyleCommand extends Command {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Current list style value of the footnotesDefinitions container.
|
|
17
|
+
*/
|
|
18
|
+
value: FootnotesDefinitionsStyle | null;
|
|
19
|
+
/**
|
|
20
|
+
* @inheritdoc
|
|
21
|
+
*/
|
|
22
|
+
override refresh(): void;
|
|
23
|
+
/**
|
|
24
|
+
* @inheritdoc
|
|
25
|
+
*/
|
|
26
|
+
override execute({ value }: {
|
|
27
|
+
value: FootnotesDefinitionsStyle;
|
|
28
|
+
}): void;
|
|
29
29
|
}
|
|
@@ -1,81 +1,81 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
* @module footnotes/footnotesproperties/footnotespropertiesconfig
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
* The configuration of the {@link module:footnotes/footnotesproperties~FootnotesProperties} feature.
|
|
11
|
+
*
|
|
12
|
+
* Read more in {@link module:footnotes/footnotesproperties~FootnotesProperties}.
|
|
13
|
+
*/
|
|
14
14
|
export interface FootnotesPropertiesConfig {
|
|
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
|
-
|
|
15
|
+
/**
|
|
16
|
+
* The default style of the footnotes definitions. The default is `'decimal'`.
|
|
17
|
+
*
|
|
18
|
+
* Note: This configuration is used only when the footnotes definitions is being created after adding the first footnote.
|
|
19
|
+
*/
|
|
20
|
+
defaultListStyle?: FootnotesDefinitionsStyle;
|
|
21
|
+
/**
|
|
22
|
+
* The default start index of the footnotes definitions. The default is `1`.
|
|
23
|
+
*
|
|
24
|
+
* Note: This configuration is used only when the footnotes definitions is being created after adding the first footnote.
|
|
25
|
+
*/
|
|
26
|
+
defaultStartIndex?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Items to be placed in the footnotes properties toolbar.
|
|
29
|
+
*
|
|
30
|
+
* Assuming that you use the
|
|
31
|
+
* {@link module:footnotes/footnotesproperties/footnotespropertiesui~FootnotesPropertiesUI} feature,
|
|
32
|
+
* the following toolbar items will be available in {@link module:ui/componentfactory~ComponentFactory}:
|
|
33
|
+
*
|
|
34
|
+
* * `'footnotesStyle'` - the dropdown for selecting the footnotes definitions style.
|
|
35
|
+
*
|
|
36
|
+
* The default configuration for footnotes toolbar is:
|
|
37
|
+
*
|
|
38
|
+
* ```ts
|
|
39
|
+
* const footnotesPropertiesConfig = {
|
|
40
|
+
* toolbar: [ 'footnotesStyle' ]
|
|
41
|
+
* };
|
|
42
|
+
* ```
|
|
43
|
+
* @default `[ 'footnotesStyle' ]`
|
|
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>;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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.
|
|
58
|
+
*/
|
|
59
59
|
export declare const FOOTNOTES_BASE_CANONICAL_DEFINITIONS_STYLES: readonly ["decimal", "decimal-leading-zero", "lower-latin", "upper-latin", "lower-roman", "upper-roman"];
|
|
60
60
|
/**
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
65
|
export declare const FOOTNOTES_ADDITIONAL_CANONICAL_DEFINITIONS_STYLES: readonly ["arabic-indic"];
|
|
66
66
|
/**
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
* The mapping of the footnotes definitions styles aliases to their canonical names.
|
|
68
|
+
*/
|
|
69
69
|
export declare const FOOTNOTES_DEFINITION_STYLES_ALIASES: Record<string, FootnotesDefinitionsStyle>;
|
|
70
70
|
/**
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
export declare const FOOTNOTES_DEFINITIONS_STYLES: readonly [
|
|
71
|
+
* The all available styles for footnotes definitions.
|
|
72
|
+
*/
|
|
73
|
+
export declare const FOOTNOTES_DEFINITIONS_STYLES: readonly [...typeof FOOTNOTES_BASE_CANONICAL_DEFINITIONS_STYLES, ...typeof FOOTNOTES_ADDITIONAL_CANONICAL_DEFINITIONS_STYLES, "lower-alpha", "upper-alpha"];
|
|
74
74
|
/**
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
* The style of the footnotes list. It should correspond to the `list-style-type` CSS property.
|
|
76
|
+
*/
|
|
77
77
|
export type FootnotesDefinitionsStyle = (typeof FOOTNOTES_DEFINITIONS_STYLES)[number];
|
|
78
78
|
/**
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
* The style of the footnotes list without aliases. It should correspond to the `list-style-type` CSS property.
|
|
80
|
+
*/
|
|
81
81
|
export type FootnotesDefinitionsCanonicalStyle = Exclude<FootnotesDefinitionsStyle, `${string}-alpha`>;
|