@ckeditor/ckeditor5-footnotes 0.0.0-internal-20251210.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/CHANGELOG.md +4 -0
- package/LICENSE.md +18 -0
- package/README.md +45 -0
- package/build/footnotes.js +5 -0
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/be.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/gu.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/hy.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/kk.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/oc.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +65 -0
- package/dist/index-content.css +64 -0
- package/dist/index-editor.css +81 -0
- package/dist/index.css +181 -0
- package/dist/index.js +23 -0
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +23 -0
- package/dist/translations/af.umd.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/ast.d.ts +8 -0
- package/dist/translations/ast.js +23 -0
- package/dist/translations/ast.umd.js +23 -0
- package/dist/translations/az.d.ts +8 -0
- package/dist/translations/az.js +23 -0
- package/dist/translations/az.umd.js +23 -0
- package/dist/translations/be.d.ts +8 -0
- package/dist/translations/be.js +23 -0
- package/dist/translations/be.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +23 -0
- package/dist/translations/bs.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +23 -0
- package/dist/translations/de-ch.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en-gb.d.ts +8 -0
- package/dist/translations/en-gb.js +23 -0
- package/dist/translations/en-gb.umd.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/eo.d.ts +8 -0
- package/dist/translations/eo.js +23 -0
- package/dist/translations/eo.umd.js +23 -0
- package/dist/translations/es-co.d.ts +8 -0
- package/dist/translations/es-co.js +23 -0
- package/dist/translations/es-co.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/eu.d.ts +8 -0
- package/dist/translations/eu.js +23 -0
- package/dist/translations/eu.umd.js +23 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +23 -0
- package/dist/translations/fa.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/gu.d.ts +8 -0
- package/dist/translations/gu.js +23 -0
- package/dist/translations/gu.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/hy.d.ts +8 -0
- package/dist/translations/hy.js +23 -0
- package/dist/translations/hy.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +23 -0
- package/dist/translations/jv.umd.js +23 -0
- package/dist/translations/kk.d.ts +8 -0
- package/dist/translations/kk.js +23 -0
- package/dist/translations/kk.umd.js +23 -0
- package/dist/translations/km.d.ts +8 -0
- package/dist/translations/km.js +23 -0
- package/dist/translations/km.umd.js +23 -0
- package/dist/translations/kn.d.ts +8 -0
- package/dist/translations/kn.js +23 -0
- package/dist/translations/kn.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/ku.d.ts +8 -0
- package/dist/translations/ku.js +23 -0
- package/dist/translations/ku.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nb.d.ts +8 -0
- package/dist/translations/nb.js +23 -0
- package/dist/translations/nb.umd.js +23 -0
- package/dist/translations/ne.d.ts +8 -0
- package/dist/translations/ne.js +23 -0
- package/dist/translations/ne.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/oc.d.ts +8 -0
- package/dist/translations/oc.js +23 -0
- package/dist/translations/oc.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/si.d.ts +8 -0
- package/dist/translations/si.js +23 -0
- package/dist/translations/si.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sl.d.ts +8 -0
- package/dist/translations/sl.js +23 -0
- package/dist/translations/sl.umd.js +23 -0
- package/dist/translations/sq.d.ts +8 -0
- package/dist/translations/sq.js +23 -0
- package/dist/translations/sq.umd.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/ti.d.ts +8 -0
- package/dist/translations/ti.js +23 -0
- package/dist/translations/ti.umd.js +23 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +23 -0
- package/dist/translations/tk.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/tt.d.ts +8 -0
- package/dist/translations/tt.js +23 -0
- package/dist/translations/tt.umd.js +23 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/ug.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +23 -0
- package/dist/translations/ur.umd.js +23 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +23 -0
- package/dist/translations/uz.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/lang/contexts.json +27 -0
- package/lang/translations/af.po +112 -0
- package/lang/translations/ar.po +112 -0
- package/lang/translations/ast.po +112 -0
- package/lang/translations/az.po +112 -0
- package/lang/translations/be.po +112 -0
- package/lang/translations/bg.po +112 -0
- package/lang/translations/bn.po +112 -0
- package/lang/translations/bs.po +112 -0
- package/lang/translations/ca.po +112 -0
- package/lang/translations/cs.po +112 -0
- package/lang/translations/da.po +112 -0
- package/lang/translations/de-ch.po +112 -0
- package/lang/translations/de.po +112 -0
- package/lang/translations/el.po +112 -0
- package/lang/translations/en-au.po +112 -0
- package/lang/translations/en-gb.po +112 -0
- package/lang/translations/en.po +112 -0
- package/lang/translations/eo.po +112 -0
- package/lang/translations/es-co.po +112 -0
- package/lang/translations/es.po +112 -0
- package/lang/translations/et.po +112 -0
- package/lang/translations/eu.po +112 -0
- package/lang/translations/fa.po +112 -0
- package/lang/translations/fi.po +112 -0
- package/lang/translations/fr.po +112 -0
- package/lang/translations/gl.po +112 -0
- package/lang/translations/gu.po +112 -0
- package/lang/translations/he.po +112 -0
- package/lang/translations/hi.po +112 -0
- package/lang/translations/hr.po +112 -0
- package/lang/translations/hu.po +112 -0
- package/lang/translations/hy.po +112 -0
- package/lang/translations/id.po +112 -0
- package/lang/translations/it.po +112 -0
- package/lang/translations/ja.po +112 -0
- package/lang/translations/jv.po +112 -0
- package/lang/translations/kk.po +112 -0
- package/lang/translations/km.po +112 -0
- package/lang/translations/kn.po +112 -0
- package/lang/translations/ko.po +112 -0
- package/lang/translations/ku.po +112 -0
- package/lang/translations/lt.po +112 -0
- package/lang/translations/lv.po +112 -0
- package/lang/translations/ms.po +112 -0
- package/lang/translations/nb.po +112 -0
- package/lang/translations/ne.po +112 -0
- package/lang/translations/nl.po +112 -0
- package/lang/translations/no.po +112 -0
- package/lang/translations/oc.po +112 -0
- package/lang/translations/pl.po +112 -0
- package/lang/translations/pt-br.po +112 -0
- package/lang/translations/pt.po +112 -0
- package/lang/translations/ro.po +112 -0
- package/lang/translations/ru.po +112 -0
- package/lang/translations/si.po +112 -0
- package/lang/translations/sk.po +112 -0
- package/lang/translations/sl.po +112 -0
- package/lang/translations/sq.po +112 -0
- package/lang/translations/sr-latn.po +112 -0
- package/lang/translations/sr.po +112 -0
- package/lang/translations/sv.po +112 -0
- package/lang/translations/th.po +112 -0
- package/lang/translations/ti.po +112 -0
- package/lang/translations/tk.po +112 -0
- package/lang/translations/tr.po +112 -0
- package/lang/translations/tt.po +112 -0
- package/lang/translations/ug.po +112 -0
- package/lang/translations/uk.po +112 -0
- package/lang/translations/ur.po +112 -0
- package/lang/translations/uz.po +112 -0
- package/lang/translations/vi.po +112 -0
- package/lang/translations/zh-cn.po +112 -0
- package/lang/translations/zh.po +112 -0
- package/package.json +73 -0
- package/src/augmentation.d.ts +34 -0
- package/src/augmentation.js +23 -0
- package/src/commands/insertfootnotecommand.d.ts +20 -0
- package/src/commands/insertfootnotecommand.js +23 -0
- package/src/footnotes.d.ts +33 -0
- package/src/footnotes.js +23 -0
- package/src/footnotesclipboard.d.ts +38 -0
- package/src/footnotesclipboard.js +23 -0
- package/src/footnotesconfig.d.ts +30 -0
- package/src/footnotesconfig.js +23 -0
- package/src/footnotesediting.d.ts +47 -0
- package/src/footnotesediting.js +23 -0
- package/src/footnotesproperties/commands/footnotesstartcommand.d.ts +28 -0
- package/src/footnotesproperties/commands/footnotesstartcommand.js +23 -0
- package/src/footnotesproperties/commands/footnotesstylecommand.d.ts +29 -0
- package/src/footnotesproperties/commands/footnotesstylecommand.js +23 -0
- package/src/footnotesproperties/footnotespropertiesconfig.d.ts +53 -0
- package/src/footnotesproperties/footnotespropertiesconfig.js +23 -0
- package/src/footnotesproperties/footnotespropertiesediting.d.ts +36 -0
- package/src/footnotesproperties/footnotespropertiesediting.js +23 -0
- package/src/footnotesproperties/footnotespropertiesui.d.ts +41 -0
- package/src/footnotesproperties/footnotespropertiesui.js +23 -0
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.d.ts +15 -0
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +23 -0
- package/src/footnotesproperties.d.ts +32 -0
- package/src/footnotesproperties.js +23 -0
- package/src/footnotestracker.d.ts +102 -0
- package/src/footnotestracker.js +23 -0
- package/src/footnotesui.d.ts +31 -0
- package/src/footnotesui.js +23 -0
- package/src/index.d.ts +21 -0
- package/src/index.js +23 -0
- package/src/modelelementtracker.d.ts +60 -0
- package/src/modelelementtracker.js +23 -0
- package/theme/footnotes.css +143 -0
- package/theme/footnotesproperties.css +54 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export{};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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 'ckeditor5/src/core.js';
|
|
6
|
+
/**
|
|
7
|
+
* The insert footnote command.
|
|
8
|
+
*/
|
|
9
|
+
export declare class InsertFootnoteCommand extends Command {
|
|
10
|
+
/**
|
|
11
|
+
* @inheritDoc
|
|
12
|
+
*/
|
|
13
|
+
refresh(): void;
|
|
14
|
+
/**
|
|
15
|
+
* @inheritdoc
|
|
16
|
+
*/
|
|
17
|
+
execute(options?: {
|
|
18
|
+
footnoteId: string;
|
|
19
|
+
}): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x4e4cbd=_0x4f17;function _0x4f17(_0x239ba5,_0x1f0f1e){const _0x179d41=_0x179d();return _0x4f17=function(_0x4f1748,_0x1166e4){_0x4f1748=_0x4f1748-0x10a;let _0x3cba50=_0x179d41[_0x4f1748];return _0x3cba50;},_0x4f17(_0x239ba5,_0x1f0f1e);}(function(_0x4f7e3e,_0x4468f9){const _0x3addb2=_0x4f17,_0x1ac8a2=_0x4f7e3e();while(!![]){try{const _0x430ab4=-parseInt(_0x3addb2(0x117))/0x1*(parseInt(_0x3addb2(0x122))/0x2)+parseInt(_0x3addb2(0x11b))/0x3*(parseInt(_0x3addb2(0x113))/0x4)+-parseInt(_0x3addb2(0x129))/0x5+-parseInt(_0x3addb2(0x116))/0x6+parseInt(_0x3addb2(0x124))/0x7*(parseInt(_0x3addb2(0x125))/0x8)+-parseInt(_0x3addb2(0x112))/0x9+parseInt(_0x3addb2(0x118))/0xa;if(_0x430ab4===_0x4468f9)break;else _0x1ac8a2['push'](_0x1ac8a2['shift']());}catch(_0xeba14f){_0x1ac8a2['push'](_0x1ac8a2['shift']());}}}(_0x179d,0x4e48e));import{logWarning as _0x40840d,uid as _0x33aa61}from'ckeditor5/src/utils.js';import{Command as _0x53e160}from'ckeditor5/src/core.js';function _0x179d(){const _0x3c167c=['checkChild','4219605qIpdSV','20foOJvv','insert-footnote-command-executed-with-invalid-id','footnoteRef','186672SZIhTO','5399UdgEfL','5671540lXdsiu','_getPositionToInsertFootnote','length','140493DSYgeL','insertObject','refresh','isEnabled','string','test','FootnotesEditing','48zyRuRt','isObject','560XBbpRL','34552yekHae','selection','get','createElement','983210WDSpDx','change','editor','_moveSelectionToFootnoteDefinition','execute','document','model','end','getFirstRange','plugins','getItems','footnoteId','isBlock'];_0x179d=function(){return _0x3c167c;};return _0x179d();}export class InsertFootnoteCommand extends _0x53e160{[_0x4e4cbd(0x11d)](){const _0x4d0692=_0x4e4cbd,_0x31b7ab=this[_0x4d0692(0x12b)][_0x4d0692(0x10a)][_0x4d0692(0x12e)][_0x4d0692(0x126)],_0x45f079=this[_0x4d0692(0x119)](_0x31b7ab);this[_0x4d0692(0x11e)]=!!_0x45f079;}[_0x4e4cbd(0x12d)](_0x50533b){const _0x18ad24=_0x4e4cbd,{editor:_0x2b4137}=this,{model:_0x4e18c2}=_0x2b4137,{selection:_0x2c322f}=_0x4e18c2[_0x18ad24(0x12e)],_0x2d9ea9=this[_0x18ad24(0x119)](_0x2c322f);if(!_0x2d9ea9)return;const _0xb558d0=_0x2b4137[_0x18ad24(0x10d)][_0x18ad24(0x127)](_0x18ad24(0x121)),_0x239c85=_0x50533b?.[_0x18ad24(0x10f)]??_0x33aa61();!function(_0x5f203f){const _0x8328ed=_0x18ad24;return _0x8328ed(0x11f)==typeof _0x5f203f&&_0x5f203f[_0x8328ed(0x11a)]>0x0&&!/\s/[_0x8328ed(0x120)](_0x5f203f)&&!/^\d/[_0x8328ed(0x120)](_0x5f203f);}(_0x239c85)?_0x40840d(_0x18ad24(0x114)):(_0x4e18c2[_0x18ad24(0x12a)](_0x17fffc=>{const _0x5f403c=_0x18ad24,_0x1eb086=_0x17fffc[_0x5f403c(0x128)](_0x5f403c(0x115),{'footnoteId':_0x239c85});_0x4e18c2[_0x5f403c(0x11c)](_0x1eb086,_0x2d9ea9,null);}),_0xb558d0[_0x18ad24(0x12c)](_0x239c85));}[_0x4e4cbd(0x119)](_0x120783){const _0x34e821=_0x4e4cbd,{model:_0x7a9037}=this[_0x34e821(0x12b)],{schema:_0x40837c}=_0x7a9037,_0x4e1df8=_0x120783[_0x34e821(0x10c)]();for(const _0x501d5 of _0x4e1df8[_0x34e821(0x10e)]())if(_0x40837c[_0x34e821(0x110)](_0x501d5)||_0x40837c[_0x34e821(0x123)](_0x501d5))return null;const _0x462f70=_0x4e1df8[_0x34e821(0x10b)];return _0x40837c[_0x34e821(0x111)](_0x462f70,_0x34e821(0x115))?_0x462f70:null;}}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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/footnotes
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { FootnotesEditing } from './footnotesediting.js';
|
|
11
|
+
import { FootnotesClipboard } from './footnotesclipboard.js';
|
|
12
|
+
import { FootnotesUI } from './footnotesui.js';
|
|
13
|
+
/**
|
|
14
|
+
* The footnotes plugin.
|
|
15
|
+
*/
|
|
16
|
+
export declare class Footnotes extends Plugin {
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "Footnotes";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get requires(): readonly [typeof FootnotesEditing, typeof FootnotesClipboard, typeof FootnotesUI];
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get isOfficialPlugin(): true;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static get isPremiumPlugin(): true;
|
|
33
|
+
}
|
package/src/footnotes.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
var _0x2ffb57=_0x310e;(function(_0x307c7c,_0x560f25){var _0x34384a=_0x310e,_0xfb6746=_0x307c7c();while(!![]){try{var _0x915d58=-parseInt(_0x34384a(0x1f4))/0x1*(-parseInt(_0x34384a(0x1ea))/0x2)+-parseInt(_0x34384a(0x1ee))/0x3*(parseInt(_0x34384a(0x1ef))/0x4)+-parseInt(_0x34384a(0x1ec))/0x5*(-parseInt(_0x34384a(0x1f2))/0x6)+-parseInt(_0x34384a(0x1f7))/0x7*(parseInt(_0x34384a(0x1eb))/0x8)+parseInt(_0x34384a(0x1f3))/0x9*(-parseInt(_0x34384a(0x1f9))/0xa)+-parseInt(_0x34384a(0x1f6))/0xb*(-parseInt(_0x34384a(0x1f0))/0xc)+parseInt(_0x34384a(0x1f1))/0xd;if(_0x915d58===_0x560f25)break;else _0xfb6746['push'](_0xfb6746['shift']());}catch(_0x1b631e){_0xfb6746['push'](_0xfb6746['shift']());}}}(_0x2ae1,0x4e1be));import{Plugin as _0x1853af}from'ckeditor5/src/core.js';import{FootnotesEditing as _0x414cb0}from'./footnotesediting.js';import{FootnotesClipboard as _0x3c8110}from'./footnotesclipboard.js';function _0x310e(_0x11b82c,_0x11ed49){var _0x2ae10c=_0x2ae1();return _0x310e=function(_0x310ed5,_0x300eee){_0x310ed5=_0x310ed5-0x1e9;var _0x42b1ea=_0x2ae10c[_0x310ed5];return _0x42b1ea;},_0x310e(_0x11b82c,_0x11ed49);}import{FootnotesUI as _0x363147}from'./footnotesui.js';function _0x2ae1(){var _0x441a06=['requires','3ZFELJw','1248540Oziilv','4044MrgXMe','5276037mjrsxb','48162HppFlz','1253169TwpSva','3FQPyNS','Footnotes','7370tGVNTx','21gTJsav','isPremiumPlugin','10yhuEbD','pluginName','isOfficialPlugin','251318PXrLqo','1082328DoKfyg','105kuHLLp'];_0x2ae1=function(){return _0x441a06;};return _0x2ae1();}export class Footnotes extends _0x1853af{static get[_0x2ffb57(0x1fa)](){var _0x47f3d4=_0x2ffb57;return _0x47f3d4(0x1f5);}static get[_0x2ffb57(0x1ed)](){return[_0x414cb0,_0x3c8110,_0x363147];}static get[_0x2ffb57(0x1e9)](){return!0x0;}static get[_0x2ffb57(0x1f8)](){return!0x0;}}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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/footnotesclipboard
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { ClipboardPipeline } from 'ckeditor5/src/clipboard.js';
|
|
10
|
+
import { FootnotesEditing } from './footnotesediting.js';
|
|
11
|
+
/**
|
|
12
|
+
* The footnotes clipboard integration plugin.
|
|
13
|
+
*
|
|
14
|
+
* Handles copy/paste operations for footnotes to preserve footnote mappings
|
|
15
|
+
* during clipboard operations.
|
|
16
|
+
*/
|
|
17
|
+
export declare class FootnotesClipboard extends Plugin {
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "FootnotesClipboard";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): readonly [typeof FootnotesEditing, typeof ClipboardPipeline];
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get isOfficialPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static get isPremiumPlugin(): true;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
init(): void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x54f6ad=_0x328e;function _0x20e3(){const _0x13e587=['editing','method','_handleCopyFootnotesDefinitions','setAttribute','footnoteInlineContent','36FoftZm','config','toView','sourceEditorId','data','footnotes.multiBlock','_insertEmptyFootnotesDefinitionsContainer','entries','toModel','21AFTDqN','append','listenTo','5YGqmIz','getRanges','stringify','87816iJXiFb','from','createElement','clipboardInput','outputTransformation','_handlePasteFootnotesDefinitions','length','end','contentInsertion','document','parse','reduce','dataTransfer','pluginName','htmlProcessor','find','footnoteId','154811NpFafQ','includes','getFirstRange','getFootnotes','isOfficialPlugin','create','getFootnote','flatMap','change','element','getData','979992iOsbcX','createRangeIn','init','add','editor','setData','selection','footnoteDefinition','requires','get','drop','395632eCyLJe','227272qXbdfh','content','_defineClipboardIntegration','application/ckeditor5-footnotes','footnoteRef','3506990ZoKqxP','definition','595962gvaOLo','getFootnotesDefinitionsObjectElement','isPremiumPlugin','push','root','footnotesDefinitions','FootnotesClipboard','remove','getSelectedBlocks','insert','getAttribute','toData'];_0x20e3=function(){return _0x13e587;};return _0x20e3();}(function(_0x1af8ee,_0x356006){const _0x286d60=_0x328e,_0x4b9262=_0x1af8ee();while(!![]){try{const _0x5dcbaa=-parseInt(_0x286d60(0x180))/0x1+parseInt(_0x286d60(0x147))/0x2+parseInt(_0x286d60(0x14f))/0x3+-parseInt(_0x286d60(0x13c))/0x4*(parseInt(_0x286d60(0x16c))/0x5)+parseInt(_0x286d60(0x16f))/0x6*(-parseInt(_0x286d60(0x169))/0x7)+parseInt(_0x286d60(0x148))/0x8*(-parseInt(_0x286d60(0x160))/0x9)+parseInt(_0x286d60(0x14d))/0xa;if(_0x5dcbaa===_0x356006)break;else _0x4b9262['push'](_0x4b9262['shift']());}catch(_0x2a1d48){_0x4b9262['push'](_0x4b9262['shift']());}}}(_0x20e3,0x2e578));import{Plugin as _0x251f8e}from'ckeditor5/src/core.js';import{uid as _0x42aff3}from'ckeditor5/src/utils.js';function _0x328e(_0x201f15,_0x670497){const _0x20e3d8=_0x20e3();return _0x328e=function(_0x328e34,_0x37eb24){_0x328e34=_0x328e34-0x13b;let _0x37523f=_0x20e3d8[_0x328e34];return _0x37523f;},_0x328e(_0x201f15,_0x670497);}import{ClipboardPipeline as _0x292ec4}from'ckeditor5/src/clipboard.js';import{FootnotesEditing as _0x5f2ec4}from'./footnotesediting.js';import{FootnotesTracker as _0x177963}from'./footnotestracker.js';export class FootnotesClipboard extends _0x251f8e{static get[_0x54f6ad(0x17c)](){const _0x1e3f83=_0x54f6ad;return _0x1e3f83(0x155);}static get[_0x54f6ad(0x144)](){return[_0x5f2ec4,_0x292ec4];}static get[_0x54f6ad(0x184)](){return!0x0;}static get[_0x54f6ad(0x151)](){return!0x0;}[_0x54f6ad(0x13e)](){const _0x180163=_0x54f6ad;this[_0x180163(0x14a)]();}[_0x54f6ad(0x14a)](){const _0x2f0bc0=_0x54f6ad;this[_0x2f0bc0(0x15d)](),this[_0x2f0bc0(0x174)]();}[_0x54f6ad(0x15d)](){const _0x298fa3=_0x54f6ad,{editor:_0x256940}=this,{plugins:_0x524135,model:_0x1a0a99}=_0x256940,_0x3bb152=_0x524135[_0x298fa3(0x145)](_0x292ec4),_0x5aed7e=_0x524135[_0x298fa3(0x145)](_0x177963);this[_0x298fa3(0x16b)](_0x3bb152,_0x298fa3(0x173),(_0x1866a4,_0x1e367a)=>{const _0x31a6d3=_0x298fa3,_0x38e9f6=c(_0x1a0a99[_0x31a6d3(0x13d)](_0x1e367a[_0x31a6d3(0x149)]));if(!_0x38e9f6[_0x31a6d3(0x175)])return;const _0x34f974=_0x5aed7e[_0x31a6d3(0x183)](),_0x5f3d81=_0x38e9f6[_0x31a6d3(0x17a)]((_0x3cd70,_0x52a4ec)=>{const _0x1874df=_0x31a6d3,_0x103906=_0x34f974[_0x1874df(0x17e)](_0x213028=>_0x213028['id']===_0x52a4ec);if(_0x103906){const _0x5ab2ab=_0x256940[_0x1874df(0x164)][_0x1874df(0x162)](_0x103906[_0x1874df(0x14e)],{'isClipboardPipeline':!0x0}),_0xc7f4a8=_0x256940[_0x1874df(0x164)][_0x1874df(0x17d)][_0x1874df(0x15a)](_0x5ab2ab);_0x3cd70[_0x103906['id']]=_0xc7f4a8;}return _0x3cd70;},Object[_0x31a6d3(0x185)](null));_0x1e367a[_0x31a6d3(0x17b)][_0x31a6d3(0x141)](_0x31a6d3(0x14b),JSON[_0x31a6d3(0x16e)](_0x5f3d81));});}[_0x54f6ad(0x174)](){const _0x577dca=_0x54f6ad,{editor:_0x17b227}=this,{model:_0x4294b9,plugins:_0x42daa9}=_0x17b227,{view:_0x420ac1}=_0x17b227[_0x577dca(0x15b)],_0x273be6=_0x42daa9[_0x577dca(0x145)](_0x292ec4),_0x2b3e83=_0x42daa9[_0x577dca(0x145)](_0x177963),_0x1be032=_0x17b227[_0x577dca(0x161)][_0x577dca(0x145)](_0x577dca(0x165));let _0x175e59=null;this[_0x577dca(0x16b)](_0x420ac1[_0x577dca(0x178)],_0x577dca(0x172),(_0x33f22b,_0x51dba6)=>{const _0x27fef9=_0x577dca,_0x206759=_0x51dba6[_0x27fef9(0x17b)][_0x27fef9(0x13b)](_0x27fef9(0x14b));_0x175e59=_0x206759?JSON[_0x27fef9(0x179)](_0x206759):null;}),this[_0x577dca(0x16b)](_0x273be6,_0x577dca(0x177),(_0x15f4e3,_0x2f4f2d)=>{const _0x2f3873=_0x577dca,_0x57f564=_0x2f4f2d[_0x2f3873(0x163)]===this[_0x2f3873(0x140)]['id'];_0x57f564&&_0x2f3873(0x146)===_0x2f4f2d[_0x2f3873(0x15c)]||_0x4294b9[_0x2f3873(0x188)](_0x5f0ab5=>{const _0x1be358=_0x2f3873;let _0x530b40=_0x2b3e83[_0x1be358(0x150)]();const _0x5362cb=!!_0x530b40&&Array[_0x1be358(0x170)](_0x4294b9[_0x1be358(0x178)][_0x1be358(0x142)][_0x1be358(0x157)]())[_0x1be358(0x181)](_0x530b40);if((_0x530b40&&!_0x5362cb||!_0x530b40&&!_0x175e59)&&function(_0x5138bc,_0x2b994a){const _0x5cbe3b=_0x1be358,_0x1570a9=[];for(const {item:_0x569989}of _0x5138bc[_0x5cbe3b(0x13d)](_0x2b994a))_0x569989['is'](_0x5cbe3b(0x189),_0x5cbe3b(0x154))&&_0x1570a9[_0x5cbe3b(0x152)](_0x569989);for(const _0x228156 of _0x1570a9)_0x5138bc[_0x5cbe3b(0x156)](_0x228156);}(_0x5f0ab5,_0x2f4f2d[_0x1be358(0x149)]),!_0x175e59)return;const {selection:_0x5e5287}=_0x4294b9[_0x1be358(0x178)],_0xd05f3b=_0x5e5287[_0x1be358(0x182)]()[_0x1be358(0x153)];_0x530b40&&!_0x5362cb||(_0x530b40=function(_0x155451,_0x258d05){const _0x198912=_0x1be358;for(const {item:_0x3247ce}of _0x155451[_0x198912(0x13d)](_0x258d05))if(_0x3247ce['is'](_0x198912(0x189),_0x198912(0x154)))return _0x3247ce;return null;}(_0x5f0ab5,_0x2f4f2d[_0x1be358(0x149)]),_0x530b40||=_0x2b3e83[_0x1be358(0x166)](_0x5f0ab5,_0xd05f3b));const _0x4dc732=Array[_0x1be358(0x170)](_0x5e5287[_0x1be358(0x16d)]())[_0x1be358(0x187)](c),_0x30bb14=function(_0x2ebd14,_0x26e223,_0x29c293){const _0x3972c9=_0x1be358,_0x372d85=Object[_0x3972c9(0x185)](null);for(const {item:_0x4361bc}of _0x2ebd14[_0x3972c9(0x13d)](_0x26e223))if(_0x4361bc['is'](_0x3972c9(0x189),_0x3972c9(0x14c))){const _0x40aec3=_0x4361bc[_0x3972c9(0x159)](_0x3972c9(0x17f));if(!_0x29c293(_0x40aec3))continue;_0x372d85[_0x40aec3]||(_0x372d85[_0x40aec3]=_0x42aff3()),_0x2ebd14[_0x3972c9(0x15e)](_0x3972c9(0x17f),_0x372d85[_0x40aec3],_0x4361bc);}return _0x372d85;}(_0x5f0ab5,_0x2f4f2d[_0x1be358(0x149)],_0x842f91=>{const _0x23db9a=_0x1be358;if(!_0x57f564)return!0x0;return!!_0x2b3e83[_0x23db9a(0x186)](_0x842f91)&&!_0x4dc732[_0x23db9a(0x181)](_0x842f91);});for(const [_0x2ce627,_0x1687e2]of Object[_0x1be358(0x167)](_0x175e59)){const _0x2fa627=_0x30bb14[_0x2ce627]||_0x2ce627,_0x4e8403=_0x5f0ab5[_0x1be358(0x171)](_0x1be358(0x143),{'footnoteId':_0x2fa627}),_0x39ef92=_0x17b227[_0x1be358(0x164)][_0x1be358(0x17d)][_0x1be358(0x162)](_0x1687e2);let _0x26b312;if(_0x1be032)_0x26b312=_0x17b227[_0x1be358(0x164)][_0x1be358(0x168)](_0x39ef92,_0x4e8403);else{_0x26b312=_0x5f0ab5[_0x1be358(0x171)](_0x1be358(0x15f));const _0xa77c4c=_0x17b227[_0x1be358(0x164)][_0x1be358(0x168)](_0x39ef92,_0x26b312);_0x5f0ab5[_0x1be358(0x158)](_0xa77c4c,_0x26b312);}_0x5f0ab5[_0x1be358(0x16a)](_0x26b312,_0x4e8403),_0x5f0ab5[_0x1be358(0x158)](_0x4e8403,_0x530b40,_0x1be358(0x176));}_0x175e59=null;});});}}function c(_0xc93446){const _0x34dfab=_0x54f6ad,_0x541808=new Set();for(const {item:_0xc729ab}of _0xc93446)_0xc729ab['is'](_0x34dfab(0x189),_0x34dfab(0x14c))&&_0x541808[_0x34dfab(0x13f)](_0xc729ab[_0x34dfab(0x159)](_0x34dfab(0x17f)));return Array[_0x34dfab(0x170)](_0x541808);}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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/footnotesconfig
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { FootnotesPropertiesConfig } from './footnotesproperties/footnotespropertiesconfig.js';
|
|
10
|
+
/**
|
|
11
|
+
* The configuration of the {@link module:footnotes/footnotes~Footnotes} feature.
|
|
12
|
+
*
|
|
13
|
+
* Read more in {@link module:footnotes/footnotesconfig~FootnotesConfig}.
|
|
14
|
+
*/
|
|
15
|
+
export interface FootnotesConfig {
|
|
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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export{};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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/footnotesediting
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { type ViewNode } from 'ckeditor5/src/engine.js';
|
|
11
|
+
import { FootnotesTracker } from './footnotestracker.js';
|
|
12
|
+
/**
|
|
13
|
+
* The footnotes editing plugin.
|
|
14
|
+
*/
|
|
15
|
+
export declare class FootnotesEditing extends Plugin {
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
static get pluginName(): "FootnotesEditing";
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get requires(): readonly [typeof FootnotesTracker];
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get isOfficialPlugin(): true;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static get isPremiumPlugin(): true;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
init(): void;
|
|
36
|
+
/**
|
|
37
|
+
* @inheritDoc
|
|
38
|
+
*/
|
|
39
|
+
afterInit(): void;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
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
|
+
export declare function isFootnotesDefinitionsWidget(element: ViewNode): boolean;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
import{Plugin as _0x4f6b2d}from'ckeditor5/src/core.js';import{isWidget as _0x4786bb,toWidget as _0x506259,toWidgetEditable as _0x888e54}from'ckeditor5/src/widget.js';import{uid as _0x3ad473}from'ckeditor5/src/utils.js';import{PointerObserver as _0x394201,ClickObserver as _0x18c85a}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x42cb3b}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1bad1a}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4f6b2d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x42cb3b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x8d2ad1}=this;_0x8d2ad1['config']['define']('footnotes.multiBlock',!0x0),_0x8d2ad1['commands']['add']('insertFootnote',new _0x1bad1a(_0x8d2ad1)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x38422d){const _0x1b5aaf=_0x2b5403([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x58738b=0x47a28506,_0x104f92=0x47a5fe86^_0x58738b,_0x4634be=window[_0x2b5403([0x44,0x61,0x74,0x65])][_0x2b5403([0x6e,0x6f,0x77])](),_0x59cdfa=_0x38422d[_0x2b5403([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19edc9=new window[(_0x2b5403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e1750=>{_0x59cdfa[_0x2b5403([0x6f,0x6e,0x63,0x65])](_0x2b5403([0x72,0x65,0x61,0x64,0x79]),_0x4e1750);}),_0x4bf2aa={[_0x2b5403([0x6b,0x74,0x79])]:_0x2b5403([0x45,0x43]),[_0x2b5403([0x75,0x73,0x65])]:_0x2b5403([0x73,0x69,0x67]),[_0x2b5403([0x63,0x72,0x76])]:_0x2b5403([0x50,0x2d,0x32,0x35,0x36]),[_0x2b5403([0x78])]:_0x2b5403([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2b5403([0x79])]:_0x2b5403([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2b5403([0x61,0x6c,0x67])]:_0x2b5403([0x45,0x53,0x32,0x35,0x36])},_0x56cfff=_0x59cdfa[_0x2b5403([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b5403([0x67,0x65,0x74])](_0x2b5403([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5c6222(){let _0xd4fc2b,_0x36275b=null,_0xf657e6=null;try{if(_0x56cfff==_0x2b5403([0x47,0x50,0x4c]))return _0x2b5403([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd4fc2b=_0x5c27ec(),!_0xd4fc2b)return _0x2b5403([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd4fc2b[_0x2b5403([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf657e6=_0x285064(_0xd4fc2b[_0x2b5403([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd4fc2b[_0x2b5403([0x6a,0x74,0x69])])),await _0x1232e9()?_0x129b3c()?_0x4a71d7()?_0x2b5403([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x201d07()?(_0xd4fc2b[_0x2b5403([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b5403([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36275b=_0x48d2ed(_0x2b5403([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd4fc2b[_0x2b5403([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b5403([0x74,0x72,0x69,0x61,0x6c])&&(_0x36275b=_0x48d2ed(_0x2b5403([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4606f4()):_0x2b5403([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b5403([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b5403([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b5403([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a71d7(){const _0xad300f=[_0x2b5403([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b5403([0x74,0x72,0x69,0x61,0x6c])][_0x2b5403([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd4fc2b[_0x2b5403([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4634be/0x3e8:0xe10*_0x104f92;return _0xd4fc2b[_0x2b5403([0x65,0x78,0x70])]<_0xad300f;}function _0x129b3c(){const _0x19c319=_0xd4fc2b[_0x2b5403([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x19c319&&(!!_0x19c319[_0x2b5403([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b5403([0x2a]))||!!_0x19c319[_0x2b5403([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b5403([0x46,0x4f,0x4f])));}function _0x201d07(){const _0x29c618=_0xd4fc2b[_0x2b5403([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x29c618||0x0==_0x29c618[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x43b5bc}=new URL(window[_0x2b5403([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x29c618[_0x2b5403([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43b5bc))return!0x0;const _0x465c5e=_0x43b5bc[_0x2b5403([0x73,0x70,0x6c,0x69,0x74])](_0x2b5403([0x2e]));return _0x29c618[_0x2b5403([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d8099=>_0x2d8099[_0x2b5403([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b5403([0x2a])))[_0x2b5403([0x6d,0x61,0x70])](_0x48b95e=>_0x48b95e[_0x2b5403([0x73,0x70,0x6c,0x69,0x74])](_0x2b5403([0x2e])))[_0x2b5403([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f1b54=>_0x3f1b54[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x465c5e[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b5403([0x6d,0x61,0x70])](_0xe2beb9=>Array(_0x465c5e[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe2beb9[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b5403([0x66,0x69,0x6c,0x6c])](_0xe2beb9[0x0]===_0x2b5403([0x2a])?_0x2b5403([0x2a]):'')[_0x2b5403([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe2beb9))[_0x2b5403([0x73,0x6f,0x6d,0x65])](_0x29f3fa=>_0x465c5e[_0x2b5403([0x65,0x76,0x65,0x72,0x79])]((_0x5615c5,_0x6a581f)=>_0x29f3fa[_0x6a581f]===_0x5615c5||_0x29f3fa[_0x6a581f]===_0x2b5403([0x2a])));}function _0x4606f4(){return _0x36275b&&_0xf657e6?new window[(_0x2b5403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x298b33,_0x5a4790)=>{_0x36275b[_0x2b5403([0x74,0x68,0x65,0x6e])](_0x298b33,_0x5a4790),_0xf657e6[_0x2b5403([0x74,0x68,0x65,0x6e])](_0x246725=>{_0x246725!=_0x2b5403([0x56,0x61,0x6c,0x69,0x64])&&_0x298b33(_0x246725);},_0x5a4790);}):_0x36275b||_0xf657e6||_0x2b5403([0x56,0x61,0x6c,0x69,0x64]);}}function _0x285064(_0x1f60e9,_0x2639aa){return new window[(_0x2b5403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ac81e=>{if(_0x3f0fab())return _0x5ac81e(_0x2b5403([0x56,0x61,0x6c,0x69,0x64]));_0x472999(),_0x59cdfa[_0x2b5403([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b5403([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1dcb1b=!0x1;const _0x478190=_0x3ad473();function _0x1292c5(_0x221875){return!!_0x221875&&(typeof _0x221875===_0x2b5403([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x221875===_0x2b5403([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x221875[_0x2b5403([0x74,0x68,0x65,0x6e])]===_0x2b5403([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x221875[_0x2b5403([0x63,0x61,0x74,0x63,0x68])]===_0x2b5403([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x524d8f(_0x2573c6){_0x7edd38(_0x2573c6)[_0x2b5403([0x74,0x68,0x65,0x6e])](_0x21c297=>{if(!_0x21c297||_0x21c297[_0x2b5403([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b5403([0x6f,0x6b]))return _0x2b5403([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a79da(_0x596d06(_0x478190+_0x2639aa))!=_0x21c297[_0x2b5403([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b5403([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b5403([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b5403([0x74,0x68,0x65,0x6e])](_0x2dac29=>(_0x254c81(),_0x2dac29),()=>{const _0x1b9ba9=_0x3f9762();return null==_0x1b9ba9?(_0x254c81(),_0x2b5403([0x56,0x61,0x6c,0x69,0x64])):_0x2b5403(_0x4634be-_0x1b9ba9>(0x63ae0106^_0x58738b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b5403([0x74,0x68,0x65,0x6e])](_0x5ac81e)[_0x2b5403([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ac81e(_0x2b5403([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2da246=0x47946b86^_0x58738b;function _0x254c81(){const _0x3d61b9=_0x2b5403([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a79da(_0x596d06(_0x1f60e9)),_0x528cba=_0x2aa86f(_0x2a79da(window[_0x2b5403([0x4d,0x61,0x74,0x68])][_0x2b5403([0x63,0x65,0x69,0x6c])](_0x4634be/_0x2da246)));window[_0x2b5403([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b5403([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d61b9,_0x528cba);}function _0x3f9762(){const _0x1b2de2=_0x2b5403([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a79da(_0x596d06(_0x1f60e9)),_0x58d1eb=window[_0x2b5403([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b5403([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b2de2);return _0x58d1eb?window[_0x2b5403([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2aa86f(_0x58d1eb),0x10)*_0x2da246:null;}function _0x7edd38(_0x2cfdf5){return new window[(_0x2b5403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45da8e,_0x11942c)=>{_0x2cfdf5[_0x2b5403([0x74,0x68,0x65,0x6e])](_0x45da8e,_0x11942c),window[_0x2b5403([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11942c,0x47a351c6^_0x58738b);});}}_0x59cdfa[_0x2b5403([0x6f,0x6e])](_0x2b5403([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x535815,_0x5b12a0)=>{if(_0x5b12a0[0x0]!=_0x1f60e9)return _0x5ac81e(_0x2b5403([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b12a0[0x1]={..._0x5b12a0[0x1],[_0x2b5403([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x478190};},{[_0x2b5403([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b5403([0x68,0x69,0x67,0x68])}),_0x59cdfa[_0x2b5403([0x6f,0x6e])](_0x2b5403([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a26e7=>{_0x1292c5(_0x3a26e7[_0x2b5403([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1dcb1b=!0x0,_0x524d8f(_0x3a26e7[_0x2b5403([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b5403([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b5403([0x6c,0x6f,0x77])}),_0x19edc9[_0x2b5403([0x74,0x68,0x65,0x6e])](()=>{_0x1dcb1b||_0x5ac81e(_0x2b5403([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f0fab(){return _0x59cdfa[_0x2b5403([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b5403([0x76,0x69,0x65,0x77])][_0x2b5403([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b5403([0x61,0x75,0x74,0x6f]);}function _0x472999(){_0x59cdfa[_0x2b5403([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b5403([0x76,0x69,0x65,0x77])][_0x2b5403([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b5403([0x61,0x75,0x74,0x6f]);}}function _0x48d2ed(_0x2677d7){const _0x4a87c7=[new window[(_0x2b5403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x95eaf5=>setTimeout(_0x95eaf5,0x47abbbca^_0x58738b)),_0x19edc9[_0x2b5403([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b5403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bb5a5=>{let _0x48df3b=0x0;_0x59cdfa[_0x2b5403([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b5403([0x6f,0x6e])](_0x2b5403([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5a735a,_0x1ce973)=>{_0x1ce973[0x0][_0x2b5403([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x48df3b++,_0x48df3b==(0x47a284fe^_0x58738b)&&(_0x1bb5a5(),_0x5a735a[_0x2b5403([0x6f,0x66,0x66])]());});}))];return window[_0x2b5403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b5403([0x72,0x61,0x63,0x65])](_0x4a87c7)[_0x2b5403([0x74,0x68,0x65,0x6e])](()=>_0x2677d7);}async function _0x9e119d(){await _0x19edc9,_0x59cdfa[_0x2b5403([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b5403([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x189c68,_0x59cdfa[_0x2b5403([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b5403([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x189c68,_0x59cdfa[_0x2b5403([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b5403([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x461400(_0x516d13){const _0x55dd94=_0x5a3199();_0x59cdfa[_0x55dd94]=_0x2b5403([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x516d13,_0x516d13!=_0x2b5403([0x56,0x61,0x6c,0x69,0x64])&&_0x9e119d();}function _0x5a3199(){const _0x5c5215=window[_0x2b5403([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b5403([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b5403([0x6e,0x6f,0x77])]())[_0x2b5403([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b5403([0x2e]),'');let _0x341391=_0x2b5403([0x75]);for(let _0x368edf=0x0;_0x368edf<_0x5c5215[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x368edf+=0x2){let _0x4e7823=window[_0x2b5403([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c5215[_0x2b5403([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x368edf,_0x368edf+0x2));_0x4e7823>=_0x1b5aaf[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e7823-=_0x1b5aaf[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x341391+=_0x1b5aaf[_0x4e7823];}return _0x341391;}function _0x5c27ec(){const _0x166122=_0x56cfff[_0x2b5403([0x73,0x70,0x6c,0x69,0x74])](_0x2b5403([0x2e]));if(0x3!=_0x166122[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b855f(_0x166122[0x1]);function _0x1b855f(_0x212d47){const _0x4b56e5=_0x9e7ce0(_0x212d47);return _0x4b56e5&&_0x356af3()?_0x4b56e5:null;function _0x356af3(){const _0x3ff215=_0x4b56e5[_0x2b5403([0x6a,0x74,0x69])],_0x21f5e2=window[_0x2b5403([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ff215[_0x2b5403([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ff215[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x470138={..._0x4b56e5,[_0x2b5403([0x6a,0x74,0x69])]:_0x3ff215[_0x2b5403([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ff215[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x470138[_0x2b5403([0x76,0x63])],_0x596d06(_0x470138)==_0x21f5e2;}}}async function _0x1232e9(){let _0x2ae4c1=!0x0;try{const _0x206872=_0x56cfff[_0x2b5403([0x73,0x70,0x6c,0x69,0x74])](_0x2b5403([0x2e])),[_0x49ee5c,_0x53e62c,_0x50766f]=_0x206872;return _0x555be7(_0x49ee5c),await _0x278d4f(_0x49ee5c,_0x53e62c,_0x50766f),_0x2ae4c1;}catch{return!0x1;}function _0x555be7(_0x423f1e){const _0x21be7b=_0x9e7ce0(_0x423f1e);_0x21be7b&&_0x21be7b[_0x2b5403([0x61,0x6c,0x67])]==_0x2b5403([0x45,0x53,0x32,0x35,0x36])||(_0x2ae4c1=!0x1);}async function _0x278d4f(_0x1d0e2d,_0x2bd565,_0x30dd31){const _0x5837f5=window[_0x2b5403([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b5403([0x66,0x72,0x6f,0x6d])](_0x1f98ec(_0x30dd31),_0x5c2968=>_0x5c2968[_0x2b5403([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x437540=new window[(_0x2b5403([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b5403([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d0e2d+_0x2b5403([0x2e])+_0x2bd565),_0x2184f3=window[_0x2b5403([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b5403([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2184f3)return;const _0x531c30=await _0x2184f3[_0x2b5403([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b5403([0x6a,0x77,0x6b]),_0x4bf2aa,{[_0x2b5403([0x6e,0x61,0x6d,0x65])]:_0x2b5403([0x45,0x43,0x44,0x53,0x41]),[_0x2b5403([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b5403([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b5403([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2184f3[_0x2b5403([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b5403([0x6e,0x61,0x6d,0x65])]:_0x2b5403([0x45,0x43,0x44,0x53,0x41]),[_0x2b5403([0x68,0x61,0x73,0x68])]:{[_0x2b5403([0x6e,0x61,0x6d,0x65])]:_0x2b5403([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x531c30,_0x5837f5,_0x437540)||(_0x2ae4c1=!0x1);}}function _0x9e7ce0(_0x344e2f){return _0x344e2f[_0x2b5403([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b5403([0x65,0x79]))?JSON[_0x2b5403([0x70,0x61,0x72,0x73,0x65])](_0x1f98ec(_0x344e2f)):null;}function _0x1f98ec(_0x1fdbd7){return window[_0x2b5403([0x61,0x74,0x6f,0x62])](_0x1fdbd7[_0x2b5403([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b5403([0x2b]))[_0x2b5403([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b5403([0x2f])));}function _0x596d06(_0x4d3268){let _0x5155f0=0x1505;function _0x54fa87(_0x5772c1){for(let _0x3a8b4f=0x0;_0x3a8b4f<_0x5772c1[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a8b4f++){const _0x379a4d=_0x5772c1[_0x2b5403([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a8b4f);_0x5155f0=(_0x5155f0<<0x5)+_0x5155f0+_0x379a4d,_0x5155f0&=_0x5155f0;}}function _0x1fa450(_0x4e68cc){Array[_0x2b5403([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e68cc)?_0x4e68cc[_0x2b5403([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1fa450):_0x4e68cc&&typeof _0x4e68cc==_0x2b5403([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b5403([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e68cc)[_0x2b5403([0x73,0x6f,0x72,0x74])]()[_0x2b5403([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x21056a,_0x48bac5])=>{_0x54fa87(_0x21056a),_0x1fa450(_0x48bac5);}):_0x54fa87(window[_0x2b5403([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e68cc));}return _0x1fa450(_0x4d3268),_0x5155f0>>>0x0;}function _0x2a79da(_0x684c01){return _0x684c01[_0x2b5403([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b5403([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b5403([0x30]));}function _0x2aa86f(_0x39e7f0){return _0x39e7f0[_0x2b5403([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b5403([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b5403([0x6a,0x6f,0x69,0x6e])]('');}function _0x189c68(){}function _0x2b5403(_0x98319b){return _0x98319b['map'](_0x3adda5=>String['fromCharCode'](_0x3adda5))['join']('');}_0x461400(await _0x5c6222());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1a0f36){const {plugins:_0xbdacf5,editing:_0x57c30f,model:_0x3b3e0c}=this['editor'],_0x35d77c=_0xbdacf5['get'](_0x42cb3b)['getFootnote'](_0x1a0f36);return!!_0x35d77c&&(_0x3b3e0c['change'](_0x287425=>{_0x287425['setSelection'](_0x287425['createPositionAt'](_0x35d77c['definition'],'end'));}),_0x57c30f['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1db0d4){const {plugins:_0x4f9178,editing:_0x2f759f,model:_0x2120ee}=this['editor'],_0x3e2855=_0x4f9178['get'](_0x42cb3b)['getFootnote'](_0x1db0d4);return!!_0x3e2855&&(_0x2120ee['change'](_0x5a8a7a=>{_0x5a8a7a['setSelection'](_0x3e2855['reference'],'on');}),_0x2f759f['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2efd16}=this['editor']['model'],_0x211359=this['editor']['config']['get']('footnotes.multiBlock');_0x2efd16['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2efd16['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2efd16['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x211359?_0x2efd16['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2efd16['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2efd16['addChildCheck'](_0x200205=>{for(const _0x200541 of _0x200205)if('footnoteDefinition'===_0x200541['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x585f70}=this,{conversion:_0xe81f45,editing:_0x2c97bd}=_0x585f70,{t:t}=_0x585f70['locale'];_0xe81f45['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4da914,{writer:_0x2c794d,consumable:_0x35b844})=>{const _0xd3f582=_0x4da914['getChild'](0x0);if(!_0xd3f582||!_0xd3f582['is']('element','a'))return null;const _0xcb8c2=_0xd3f582['getAttribute']('href')||'';if(!_0xcb8c2['startsWith']('#'))return null;const _0x53042c=_0xcb8c2['replace'](/^#/,'');if(!_0x53042c)return null;_0x35b844['consume'](_0xd3f582,{'name':!0x0,'attributes':['href']});for(const {item:_0x1e9ff9}of _0x2c97bd['view']['createRangeIn'](_0xd3f582))_0x1e9ff9['is']('$textProxy')?_0x35b844['consume'](_0x1e9ff9['textNode'],{'name':!0x0}):_0x1e9ff9['is']('element')&&_0x35b844['consume'](_0x1e9ff9,{'name':!0x0});return _0x2c794d['createElement']('footnoteRef',{'footnoteId':_0x53042c});}}),_0xe81f45['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x153a6c,{writer:_0x801ad2})=>D(_0x153a6c,_0x801ad2)}),_0xe81f45['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x376453,{writer:_0x1dcf0a})=>{const _0x565ee0=_0x376453['getAttribute']('footnoteCounter');return _0x506259(D(_0x376453,_0x1dcf0a),_0x1dcf0a,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x565ee0)});}});}['_defineDefinitionsConverters'](){const {editor:_0x226a97}=this,{t:t}=_0x226a97['locale'],{conversion:_0x418f08}=_0x226a97;_0x418f08['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x418f08['for']('upcast')['add'](_0x71d31b=>{_0x71d31b['on']('element:ol',(_0x526bd5,_0x48cb4f,_0x1a50c5)=>{const _0x237814=_0x48cb4f['viewItem'];if(!_0x237814['hasClass']('footnotes-list')||!_0x48cb4f['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1a50c5['consumable']['consume'](_0x237814,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x55aa0d,modelCursor:_0x79411}=_0x1a50c5['convertChildren'](_0x48cb4f['viewItem'],_0x48cb4f['modelCursor']);_0x48cb4f['modelRange']=_0x55aa0d,_0x48cb4f['modelCursor']=_0x79411;}),_0x71d31b['on']('element:hr',(_0x8aa2a6,_0x1095b3,_0x20a550)=>{const _0x1dab0f=_0x1095b3['viewItem'];_0x1dab0f['hasClass']('footnotes-divider')&&_0x1095b3['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x20a550['consumable']['consume'](_0x1dab0f,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x418f08['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x19a252,{writer:_0x54b4bb})=>v(_0x54b4bb)}),_0x418f08['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3c97f6,{writer:_0x1269f2})=>{const _0x30507a=v(_0x1269f2,{'data-footnotes-list-label':t('Footnotes')}),_0x33fe15=_0x506259(_0x30507a,_0x1269f2,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1269f2['setCustomProperty']('footnotesDefinitions',!0x0,_0x33fe15),_0x33fe15;}});}['_defineDefinitionConverters'](){const {editor:_0x401904}=this,{conversion:_0x338e55,locale:_0x23f70a}=_0x401904,_0x1c8c49=_0x401904['config']['get']('footnotes.multiBlock');_0x338e55['for']('upcast')['add'](_0x59dc9a=>{_0x59dc9a['on']('element:li',(_0x3352df,_0x2f39bd,_0x507af3)=>{const _0x102996=_0x2f39bd['viewItem'];if(!_0x102996['hasClass']('footnote-definition')||!_0x102996['getAttribute']('id'))return;const _0x1d39ef=_0x102996['parent'];if(!_0x1d39ef['is']('element','ol')||!_0x1d39ef['hasClass']('footnotes-list'))return;if(!_0x507af3['consumable']['test'](_0x102996,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x549630=_0x507af3['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x102996['getAttribute']('id')});if(!_0x507af3['safeInsert'](_0x549630,_0x2f39bd['modelCursor']))return;_0x507af3['consumable']['consume'](_0x102996,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5b941f=Array['from'](_0x102996['getChildren']())['find'](_0x7dfd63=>_0x7dfd63['is']('element')&&_0x7dfd63['hasClass']('footnote-content'));for(const _0x2fc3a5 of _0x102996['getChildren']())_0x2fc3a5['is']('element')&&(_0x507af3['consumable']['consume'](_0x2fc3a5,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x507af3['consumable']['consume'](_0x2fc3a5,{'name':!0x0,'classes':'footnote-content'}));if(_0x5b941f){if(_0x1c8c49)_0x507af3['convertChildren'](_0x5b941f,_0x549630);else{const _0x5a6506=_0x507af3['writer']['createElement']('footnoteInlineContent');_0x507af3['writer']['insert'](_0x5a6506,_0x549630),_0x507af3['convertChildren'](_0x5b941f,_0x5a6506);}}_0x507af3['updateConversionResult'](_0x549630,_0x2f39bd);});}),_0x338e55['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2ca026,{writer:_0xebac5e})=>b(_0x2ca026,_0xebac5e,_0x23f70a,{'dataPipeline':!0x0})}),_0x338e55['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4ab86e,{writer:_0x4b9539})=>b(_0x4ab86e,_0x4b9539,_0x23f70a)});}['_defineBogusParagraphConverters'](){const {editor:_0x51687d}=this,{conversion:_0x11ccd2}=_0x51687d;_0x51687d['config']['get']('footnotes.multiBlock')?(_0x11ccd2['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x11ccd2['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x51687d['model']['document'],'change:data',()=>{!function(_0x5b7c85,_0x2ecf2b){const _0x538738=_0x5b7c85['document']['differ'],_0x1cc475=new Set();for(const _0xdfb13e of _0x538738['getChanges']()){const _0x4cd693='attribute'==_0xdfb13e['type']?_0xdfb13e['range']['start']['parent']:_0xdfb13e['position']['parent'];_0x4cd693['is']('element','footnoteDefinition')&&_0x1cc475['add'](_0x4cd693);}for(const _0x528c76 of _0x1cc475['values']()){const _0x1a9eb8=Array['from'](_0x528c76['getChildren']())['filter'](_0x256995=>g(_0x256995,_0x2ecf2b['mapper']));for(const _0x206de0 of _0x1a9eb8)_0x2ecf2b['reconvertItem'](_0x206de0);}}(_0x51687d['model'],_0x51687d['editing']);})):(_0x11ccd2['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x11ccd2['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4a8238,{writer:_0x6a759e})=>{const _0x134542=_0x6a759e['createContainerElement']('span');return _0x6a759e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x134542),_0x134542;}}));}['_defineKeyboardHandlers'](){const {editor:_0xb73106}=this,{editing:_0x6b1849,t:t}=_0xb73106,_0x310059=_0xb73106['model']['document']['selection'];_0xb73106['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0xb73106['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x6b1849['view']['document'],'enter',(_0x43bd9d,_0x55ccee)=>{const _0x30d276=function(_0x71d8d1){const _0x98e554=_0x71d8d1['getSelectedElement']();if(_0x98e554?.['is']('element','footnoteRef'))return _0x98e554;return null;}(_0x310059);if(_0x30d276){const _0x591c75=_0x30d276['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x591c75),_0x55ccee['preventDefault'](),_0x43bd9d['stop']();}},{'context':_0x4786bb});}['_defineClickHandlers'](){const {editor:_0x5d4fb0}=this,{editing:_0x2f268e}=_0x5d4fb0;_0x5d4fb0['editing']['view']['addObserver'](_0x394201),_0x5d4fb0['editing']['view']['addObserver'](_0x18c85a);let _0x10d85a=!0x1;this['listenTo'](_0x2f268e['view']['document'],'pointerdown',(_0x30b3d4,_0x3cff92)=>{const {target:_0x4560cf}=_0x3cff92,_0x2dfe4d=_0x2f268e['view']['document']['selection'];_0x10d85a=!!(_0x4560cf?.['is']('element','a')&&_0x4560cf['parent']?.['is']('element','sup')&&_0x4560cf['parent']['hasClass']('footnote'))&&_0x2dfe4d['getSelectedElement']()===_0x4560cf['parent'];},{'priority':'high'}),this['listenTo'](_0x2f268e['view']['document'],'click',(_0x133093,_0x2a560f)=>{const {target:_0x507ef6}=_0x2a560f;if(!_0x507ef6?.['is']('element','a'))return;if(_0x507ef6['parent']?.['is']('element','sup')&&_0x507ef6['parent']['hasClass']('footnote')&&!_0x10d85a)return void _0x2a560f['preventDefault']();let _0x59dc12=_0x507ef6['getAttribute']('href');if(!_0x59dc12?.['startsWith']('#'))return;_0x59dc12=_0x59dc12['slice'](0x1);let _0x307514=!0x1;(_0x59dc12['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x59dc12['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x59dc12))&&(_0x307514=!0x0),_0x307514&&(_0x2a560f['preventDefault'](),_0x133093['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x5a86a2}={}){return(_0x17d873,{writer:_0x575785})=>{if(!p(_0x17d873))return null;if(!_0x5a86a2)return _0x575785['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x29d3fd=_0x575785['createContainerElement']('p');return _0x575785['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x29d3fd),_0x29d3fd;};}function p(_0x256c3e){const {parent:_0x2d8437}=_0x256c3e;if(!_0x2d8437?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2d8437['childCount'])return!0x1;for(const _0x56a78c of _0x256c3e['getAttributeKeys']())if(!_0x56a78c['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x56a78c)return!0x1;return!0x0;}function g(_0x5ef392,_0x52ecd1){if(!_0x5ef392['is']('element','paragraph'))return!0x1;const _0x18dfdf=_0x52ecd1['toViewElement'](_0x5ef392);return!!_0x18dfdf&&p(_0x5ef392)!==_0x18dfdf['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x1b8d73){return _0x4786bb(_0x1b8d73)&&_0x1b8d73['is']('containerElement')&&!!_0x1b8d73['getCustomProperty']('footnotesDefinitions');}function v(_0x339fdf,_0x471b59={}){const _0x36488d=_0x339fdf['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x14f222=_0x339fdf['createContainerElement']('ol',{'class':'footnotes-list'},_0x339fdf['createSlot']());return _0x339fdf['createContainerElement']('div',{'class':'footnotes',..._0x471b59},[_0x36488d,_0x14f222]);}function D(_0xfd9e55,_0x3f333b){const _0x17a7fe=_0xfd9e55['getAttribute']('footnoteId'),_0x2d3119=_0xfd9e55['getAttribute']('footnoteCounter'),_0xbe7078=_0x3f333b['createUIElement']('a',{'href':'#'+_0x17a7fe},function(_0x558ce0){const _0x2be7e7=this['toDomElement'](_0x558ce0);return _0x2be7e7['textContent']=_0x2d3119,_0x2be7e7;}),_0x1021c5=_0x3f333b['createContainerElement']('sup',{'id':'ref-'+_0x17a7fe,'class':'footnote'},[_0xbe7078]);return _0x1021c5['getFillerOffset']=()=>null,_0x1021c5;}function b(_0x439377,_0x433f1a,_0x1084ab,{dataPipeline:_0x3baa15}={}){const {t:t}=_0x1084ab,_0x36c6e8=_0x439377['getAttribute']('footnoteId'),_0x8585c7=_0x433f1a['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x36c6e8},function(_0x101d19){const _0x1cd671=this['toDomElement'](_0x101d19);return _0x1cd671['innerText']='^',_0x1cd671;}),_0x3ae8a3=_0x3baa15?_0x433f1a['createContainerElement']('div',{'class':'footnote-content'}):_0x888e54(_0x433f1a['createEditableElement']('div',{'class':'footnote-content'}),_0x433f1a,{'label':t('Footnote\x20content.')});return _0x433f1a['insert'](_0x433f1a['createPositionAt'](_0x3ae8a3,0x0),_0x433f1a['createSlot']()),_0x433f1a['createContainerElement']('li',{'class':'footnote-definition','id':_0x36c6e8},[_0x8585c7,_0x3ae8a3]);}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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/commands/footnotesstartcommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
10
|
+
/**
|
|
11
|
+
* Change footnotes definitions start command.
|
|
12
|
+
*/
|
|
13
|
+
export declare class FootnotesStartCommand extends Command {
|
|
14
|
+
/**
|
|
15
|
+
* Current list start value of the footnotesDefinitions container.
|
|
16
|
+
*/
|
|
17
|
+
value: number | null;
|
|
18
|
+
/**
|
|
19
|
+
* @inheritdoc
|
|
20
|
+
*/
|
|
21
|
+
refresh(): void;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritdoc
|
|
24
|
+
*/
|
|
25
|
+
execute({ value }: {
|
|
26
|
+
value: number;
|
|
27
|
+
}): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x6c83(){const _0x28ca4a=['753464oELtrd','isInteger','getAttribute','model','plugins','36kYOVVK','setAttribute','11XaHsal','35PezPlX','footnotesListStart','get','38010DmEhmo','4808676dCnBUL','value','63iSCRcR','196254RDjFZC','change','72vHsJkg','refresh','execute','_updateFootnotesCounters','2114571RMCgcS','1236260ATdnoC','getFootnotesDefinitionsObjectElement','isEnabled','14754VhLArV'];_0x6c83=function(){return _0x28ca4a;};return _0x6c83();}const _0xb73084=_0xf0ef;(function(_0x2eb372,_0x4e0088){const _0x3dde8d=_0xf0ef,_0x320792=_0x2eb372();while(!![]){try{const _0xf41864=-parseInt(_0x3dde8d(0xc2))/0x1*(-parseInt(_0x3dde8d(0xb9))/0x2)+parseInt(_0x3dde8d(0xcf))/0x3+parseInt(_0x3dde8d(0xcb))/0x4*(-parseInt(_0x3dde8d(0xc5))/0x5)+-parseInt(_0x3dde8d(0xc9))/0x6*(parseInt(_0x3dde8d(0xc8))/0x7)+parseInt(_0x3dde8d(0xba))/0x8*(parseInt(_0x3dde8d(0xbf))/0x9)+-parseInt(_0x3dde8d(0xd0))/0xa*(parseInt(_0x3dde8d(0xc1))/0xb)+-parseInt(_0x3dde8d(0xc6))/0xc;if(_0xf41864===_0x4e0088)break;else _0x320792['push'](_0x320792['shift']());}catch(_0x5aad7e){_0x320792['push'](_0x320792['shift']());}}}(_0x6c83,0x5dcda));import{Command as _0x3ee834}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x339d17}from'../../footnotestracker.js';function _0xf0ef(_0x354c22,_0x53e6d4){const _0x6c83a6=_0x6c83();return _0xf0ef=function(_0xf0efdb,_0xb7df65){_0xf0efdb=_0xf0efdb-0xb7;let _0x2a1eef=_0x6c83a6[_0xf0efdb];return _0x2a1eef;},_0xf0ef(_0x354c22,_0x53e6d4);}export class FootnotesStartCommand extends _0x3ee834{[_0xb73084(0xcc)](){const _0x423266=_0xb73084,{editor:_0x97e537}=this,_0x4bb5db=_0x97e537[_0x423266(0xbe)][_0x423266(0xc4)](_0x339d17)[_0x423266(0xb7)]();this[_0x423266(0xb8)]=!!_0x4bb5db,this[_0x423266(0xc7)]=_0x4bb5db?.[_0x423266(0xbc)](_0x423266(0xc3))??null;}[_0xb73084(0xcd)]({value:_0x1086b2}){const _0x3c5ff4=_0xb73084,{editor:_0x105705}=this,_0x2a56ce=_0x105705[_0x3c5ff4(0xbe)][_0x3c5ff4(0xc4)](_0x339d17),_0x1c56bc=_0x2a56ce[_0x3c5ff4(0xb7)]();_0x1c56bc&&Number[_0x3c5ff4(0xbb)](_0x1086b2)&&_0x105705[_0x3c5ff4(0xbd)][_0x3c5ff4(0xca)](_0x5d9045=>{const _0x4eb94f=_0x3c5ff4;_0x5d9045[_0x4eb94f(0xc0)](_0x4eb94f(0xc3),_0x1086b2,_0x1c56bc),_0x2a56ce[_0x4eb94f(0xce)](_0x5d9045);});}}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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/commands/footnotesstylecommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { type FootnotesDefinitionsStyle } from '../footnotespropertiesconfig.js';
|
|
11
|
+
/**
|
|
12
|
+
* Change footnotes definitions style command.
|
|
13
|
+
*/
|
|
14
|
+
export declare class FootnotesStyleCommand extends Command {
|
|
15
|
+
/**
|
|
16
|
+
* Current list style value of the footnotesDefinitions container.
|
|
17
|
+
*/
|
|
18
|
+
value: FootnotesDefinitionsStyle | null;
|
|
19
|
+
/**
|
|
20
|
+
* @inheritdoc
|
|
21
|
+
*/
|
|
22
|
+
refresh(): void;
|
|
23
|
+
/**
|
|
24
|
+
* @inheritdoc
|
|
25
|
+
*/
|
|
26
|
+
execute({ value }: {
|
|
27
|
+
value: FootnotesDefinitionsStyle;
|
|
28
|
+
}): void;
|
|
29
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x260d91=_0x49e6;function _0x1431(){const _0x57885d=['value','20748XpNpXA','get','198swKagT','change','7zTCcmV','374152DfWFNv','_updateFootnotesCounters','setAttribute','execute','plugins','getAttribute','model','544kOwTSm','getFootnotesDefinitionsObjectElement','isEnabled','4630BHcmAq','564670mRjKBR','5184BfajrX','footnotesListStyle','21154474cfnfCR','1548242Pcjvdj','includes','882105rbRUpB','refresh'];_0x1431=function(){return _0x57885d;};return _0x1431();}function _0x49e6(_0xb2fddf,_0x508625){const _0x1431b2=_0x1431();return _0x49e6=function(_0x49e67c,_0x24bc9c){_0x49e67c=_0x49e67c-0xa2;let _0x307f7a=_0x1431b2[_0x49e67c];return _0x307f7a;},_0x49e6(_0xb2fddf,_0x508625);}(function(_0x5cf8b6,_0x139c04){const _0x55a0d8=_0x49e6,_0xe96333=_0x5cf8b6();while(!![]){try{const _0x538925=parseInt(_0x55a0d8(0xa4))/0x1+parseInt(_0x55a0d8(0xa2))/0x2+-parseInt(_0x55a0d8(0xa7))/0x3*(parseInt(_0x55a0d8(0xb3))/0x4)+parseInt(_0x55a0d8(0xb6))/0x5*(-parseInt(_0x55a0d8(0xb8))/0x6)+-parseInt(_0x55a0d8(0xab))/0x7*(-parseInt(_0x55a0d8(0xac))/0x8)+parseInt(_0x55a0d8(0xa9))/0x9*(-parseInt(_0x55a0d8(0xb7))/0xa)+parseInt(_0x55a0d8(0xba))/0xb;if(_0x538925===_0x139c04)break;else _0xe96333['push'](_0xe96333['shift']());}catch(_0x3ba21d){_0xe96333['push'](_0xe96333['shift']());}}}(_0x1431,0x9d08f));import{Command as _0x44966c}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x47959b}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x273a86}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x44966c{[_0x260d91(0xa5)](){const _0x188020=_0x260d91,{editor:_0x30a76c}=this,_0xa28489=_0x30a76c[_0x188020(0xb0)][_0x188020(0xa8)](_0x273a86)[_0x188020(0xb4)]();this[_0x188020(0xb5)]=!!_0xa28489,this[_0x188020(0xa6)]=_0xa28489?.[_0x188020(0xb1)](_0x188020(0xb9))??null;}[_0x260d91(0xaf)]({value:_0x27ee5b}){const _0x20c149=_0x260d91,{editor:_0x43e9c0}=this,_0x57a352=_0x43e9c0[_0x20c149(0xb0)][_0x20c149(0xa8)](_0x273a86),_0x281438=_0x57a352[_0x20c149(0xb4)]();_0x281438&&_0x47959b[_0x20c149(0xa3)](_0x27ee5b)&&_0x43e9c0[_0x20c149(0xb2)][_0x20c149(0xaa)](_0x2b9616=>{const _0x417f66=_0x20c149;_0x2b9616[_0x417f66(0xae)](_0x417f66(0xb9),_0x27ee5b,_0x281438),_0x57a352[_0x417f66(0xad)](_0x2b9616);});}}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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/footnotespropertiesconfig
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* The configuration of the {@link module:footnotes/footnotesproperties~FootnotesProperties} feature.
|
|
11
|
+
*
|
|
12
|
+
* Read more in {@link module:footnotes/footnotesproperties~FootnotesProperties}.
|
|
13
|
+
*/
|
|
14
|
+
export interface FootnotesPropertiesConfig {
|
|
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
|
+
defaultStyle?: 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
|
+
*/
|
|
44
|
+
toolbar?: Array<string>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The available styles for footnotes definitions.
|
|
48
|
+
*/
|
|
49
|
+
export declare const FOOTNOTES_DEFINITIONS_STYLES: readonly ["decimal", "decimal-leading-zero", "lower-latin", "upper-latin", "lower-alpha", "upper-alpha", "lower-roman", "upper-roman"];
|
|
50
|
+
/**
|
|
51
|
+
* The style of the footnotes list. It should correspond to the `list-style-type` CSS property.
|
|
52
|
+
*/
|
|
53
|
+
export type FootnotesDefinitionsStyle = (typeof FOOTNOTES_DEFINITIONS_STYLES)[number];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x4b43(_0x222dfc,_0x32afc2){const _0x329fc1=_0x329f();return _0x4b43=function(_0x4b4385,_0x11202b){_0x4b4385=_0x4b4385-0x7c;let _0x1f4da9=_0x329fc1[_0x4b4385];return _0x1f4da9;},_0x4b43(_0x222dfc,_0x32afc2);}const _0x5e7cd1=_0x4b43;function _0x329f(){const _0x2282b6=['3117846XPuzpB','116846VpRzrc','17gVSgbb','701688jiwKNW','decimal-leading-zero','lower-latin','upper-alpha','30sYBIcs','upper-latin','upper-roman','2103068XkHLUY','decimal','lower-alpha','7461349kggndL','628IAQtVs','1305rBdVMS','8wOtYPn','lower-roman','1721097hozQqx'];_0x329f=function(){return _0x2282b6;};return _0x329f();}(function(_0x42904f,_0x88cfde){const _0x35a43e=_0x4b43,_0x1bdc3e=_0x42904f();while(!![]){try{const _0xf1a9de=-parseInt(_0x35a43e(0x88))/0x1*(parseInt(_0x35a43e(0x87))/0x2)+parseInt(_0x35a43e(0x89))/0x3+parseInt(_0x35a43e(0x81))/0x4*(parseInt(_0x35a43e(0x82))/0x5)+-parseInt(_0x35a43e(0x86))/0x6+parseInt(_0x35a43e(0x80))/0x7*(parseInt(_0x35a43e(0x83))/0x8)+parseInt(_0x35a43e(0x85))/0x9+-parseInt(_0x35a43e(0x8d))/0xa*(-parseInt(_0x35a43e(0x7d))/0xb);if(_0xf1a9de===_0x88cfde)break;else _0x1bdc3e['push'](_0x1bdc3e['shift']());}catch(_0x1c021e){_0x1bdc3e['push'](_0x1bdc3e['shift']());}}}(_0x329f,0x90b69));export const FOOTNOTES_DEFINITIONS_STYLES=[_0x5e7cd1(0x7e),_0x5e7cd1(0x8a),_0x5e7cd1(0x8b),_0x5e7cd1(0x8e),_0x5e7cd1(0x7f),_0x5e7cd1(0x8c),_0x5e7cd1(0x84),_0x5e7cd1(0x7c)];
|