@ckeditor/ckeditor5-import-word 44.1.0 → 44.2.0-alpha.1
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/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/import-word.js +3 -3
- package/dist/index-content.css +2 -2
- package/dist/index-editor.css +2 -2
- package/dist/index.css +2 -2
- package/dist/index.js +2 -2
- package/dist/translations/af.d.ts +2 -2
- package/dist/translations/af.js +2 -2
- package/dist/translations/af.umd.js +2 -2
- package/dist/translations/ar.d.ts +2 -2
- package/dist/translations/ar.js +2 -2
- package/dist/translations/ar.umd.js +2 -2
- package/dist/translations/ast.d.ts +2 -2
- package/dist/translations/ast.js +2 -2
- package/dist/translations/ast.umd.js +2 -2
- package/dist/translations/az.d.ts +2 -2
- package/dist/translations/az.js +2 -2
- package/dist/translations/az.umd.js +2 -2
- package/dist/translations/bg.d.ts +2 -2
- package/dist/translations/bg.js +2 -2
- package/dist/translations/bg.umd.js +2 -2
- package/dist/translations/bn.d.ts +2 -2
- package/dist/translations/bn.js +2 -2
- package/dist/translations/bn.umd.js +2 -2
- package/dist/translations/bs.d.ts +2 -2
- package/dist/translations/bs.js +2 -2
- package/dist/translations/bs.umd.js +2 -2
- package/dist/translations/ca.d.ts +2 -2
- package/dist/translations/ca.js +2 -2
- package/dist/translations/ca.umd.js +2 -2
- package/dist/translations/cs.d.ts +2 -2
- package/dist/translations/cs.js +2 -2
- package/dist/translations/cs.umd.js +2 -2
- package/dist/translations/da.d.ts +2 -2
- package/dist/translations/da.js +2 -2
- package/dist/translations/da.umd.js +2 -2
- package/dist/translations/de-ch.d.ts +2 -2
- package/dist/translations/de-ch.js +2 -2
- package/dist/translations/de-ch.umd.js +2 -2
- package/dist/translations/de.d.ts +2 -2
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.umd.js +2 -2
- package/dist/translations/el.d.ts +2 -2
- package/dist/translations/el.js +2 -2
- package/dist/translations/el.umd.js +2 -2
- package/dist/translations/en-au.d.ts +2 -2
- package/dist/translations/en-au.js +2 -2
- package/dist/translations/en-au.umd.js +2 -2
- package/dist/translations/en-gb.d.ts +2 -2
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en-gb.umd.js +2 -2
- package/dist/translations/en.d.ts +2 -2
- package/dist/translations/en.js +2 -2
- package/dist/translations/en.umd.js +2 -2
- package/dist/translations/eo.d.ts +2 -2
- package/dist/translations/eo.js +2 -2
- package/dist/translations/eo.umd.js +2 -2
- package/dist/translations/es-co.d.ts +2 -2
- package/dist/translations/es-co.js +2 -2
- package/dist/translations/es-co.umd.js +2 -2
- package/dist/translations/es.d.ts +2 -2
- package/dist/translations/es.js +2 -2
- package/dist/translations/es.umd.js +2 -2
- package/dist/translations/et.d.ts +2 -2
- package/dist/translations/et.js +2 -2
- package/dist/translations/et.umd.js +2 -2
- package/dist/translations/eu.d.ts +2 -2
- package/dist/translations/eu.js +2 -2
- package/dist/translations/eu.umd.js +2 -2
- package/dist/translations/fa.d.ts +2 -2
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fa.umd.js +2 -2
- package/dist/translations/fi.d.ts +2 -2
- package/dist/translations/fi.js +2 -2
- package/dist/translations/fi.umd.js +2 -2
- package/dist/translations/fr.d.ts +2 -2
- package/dist/translations/fr.js +2 -2
- package/dist/translations/fr.umd.js +2 -2
- package/dist/translations/gl.d.ts +2 -2
- package/dist/translations/gl.js +2 -2
- package/dist/translations/gl.umd.js +2 -2
- package/dist/translations/gu.d.ts +2 -2
- package/dist/translations/gu.js +2 -2
- package/dist/translations/gu.umd.js +2 -2
- package/dist/translations/he.d.ts +2 -2
- package/dist/translations/he.js +2 -2
- package/dist/translations/he.umd.js +2 -2
- package/dist/translations/hi.d.ts +2 -2
- package/dist/translations/hi.js +2 -2
- package/dist/translations/hi.umd.js +2 -2
- package/dist/translations/hr.d.ts +2 -2
- package/dist/translations/hr.js +2 -2
- package/dist/translations/hr.umd.js +2 -2
- package/dist/translations/hu.d.ts +2 -2
- package/dist/translations/hu.js +2 -2
- package/dist/translations/hu.umd.js +2 -2
- package/dist/translations/hy.d.ts +2 -2
- package/dist/translations/hy.js +2 -2
- package/dist/translations/hy.umd.js +2 -2
- package/dist/translations/id.d.ts +2 -2
- package/dist/translations/id.js +2 -2
- package/dist/translations/id.umd.js +2 -2
- package/dist/translations/it.d.ts +2 -2
- package/dist/translations/it.js +2 -2
- package/dist/translations/it.umd.js +2 -2
- package/dist/translations/ja.d.ts +2 -2
- package/dist/translations/ja.js +2 -2
- package/dist/translations/ja.umd.js +2 -2
- package/dist/translations/jv.d.ts +2 -2
- package/dist/translations/jv.js +2 -2
- package/dist/translations/jv.umd.js +2 -2
- package/dist/translations/kk.d.ts +2 -2
- package/dist/translations/kk.js +2 -2
- package/dist/translations/kk.umd.js +2 -2
- package/dist/translations/km.d.ts +2 -2
- package/dist/translations/km.js +2 -2
- package/dist/translations/km.umd.js +2 -2
- package/dist/translations/kn.d.ts +2 -2
- package/dist/translations/kn.js +2 -2
- package/dist/translations/kn.umd.js +2 -2
- package/dist/translations/ko.d.ts +2 -2
- package/dist/translations/ko.js +2 -2
- package/dist/translations/ko.umd.js +2 -2
- package/dist/translations/ku.d.ts +2 -2
- package/dist/translations/ku.js +2 -2
- package/dist/translations/ku.umd.js +2 -2
- package/dist/translations/lt.d.ts +2 -2
- package/dist/translations/lt.js +2 -2
- package/dist/translations/lt.umd.js +2 -2
- package/dist/translations/lv.d.ts +2 -2
- package/dist/translations/lv.js +2 -2
- package/dist/translations/lv.umd.js +2 -2
- package/dist/translations/ms.d.ts +2 -2
- package/dist/translations/ms.js +2 -2
- package/dist/translations/ms.umd.js +2 -2
- package/dist/translations/nb.d.ts +2 -2
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nb.umd.js +2 -2
- package/dist/translations/ne.d.ts +2 -2
- package/dist/translations/ne.js +2 -2
- package/dist/translations/ne.umd.js +2 -2
- package/dist/translations/nl.d.ts +2 -2
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nl.umd.js +2 -2
- package/dist/translations/no.d.ts +2 -2
- package/dist/translations/no.js +2 -2
- package/dist/translations/no.umd.js +2 -2
- package/dist/translations/oc.d.ts +2 -2
- package/dist/translations/oc.js +2 -2
- package/dist/translations/oc.umd.js +2 -2
- package/dist/translations/pl.d.ts +2 -2
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pl.umd.js +2 -2
- package/dist/translations/pt-br.d.ts +2 -2
- package/dist/translations/pt-br.js +2 -2
- package/dist/translations/pt-br.umd.js +2 -2
- package/dist/translations/pt.d.ts +2 -2
- package/dist/translations/pt.js +2 -2
- package/dist/translations/pt.umd.js +2 -2
- package/dist/translations/ro.d.ts +2 -2
- package/dist/translations/ro.js +2 -2
- package/dist/translations/ro.umd.js +2 -2
- package/dist/translations/ru.d.ts +2 -2
- package/dist/translations/ru.js +2 -2
- package/dist/translations/ru.umd.js +2 -2
- package/dist/translations/si.d.ts +2 -2
- package/dist/translations/si.js +2 -2
- package/dist/translations/si.umd.js +2 -2
- package/dist/translations/sk.d.ts +2 -2
- package/dist/translations/sk.js +2 -2
- package/dist/translations/sk.umd.js +2 -2
- package/dist/translations/sl.d.ts +2 -2
- package/dist/translations/sl.js +2 -2
- package/dist/translations/sl.umd.js +2 -2
- package/dist/translations/sq.d.ts +2 -2
- package/dist/translations/sq.js +2 -2
- package/dist/translations/sq.umd.js +2 -2
- package/dist/translations/sr-latn.d.ts +2 -2
- package/dist/translations/sr-latn.js +2 -2
- package/dist/translations/sr-latn.umd.js +2 -2
- package/dist/translations/sr.d.ts +2 -2
- package/dist/translations/sr.js +2 -2
- package/dist/translations/sr.umd.js +2 -2
- package/dist/translations/sv.d.ts +2 -2
- package/dist/translations/sv.js +2 -2
- package/dist/translations/sv.umd.js +2 -2
- package/dist/translations/th.d.ts +2 -2
- package/dist/translations/th.js +2 -2
- package/dist/translations/th.umd.js +2 -2
- package/dist/translations/ti.d.ts +2 -2
- package/dist/translations/ti.js +2 -2
- package/dist/translations/ti.umd.js +2 -2
- package/dist/translations/tk.d.ts +2 -2
- package/dist/translations/tk.js +2 -2
- package/dist/translations/tk.umd.js +2 -2
- package/dist/translations/tr.d.ts +2 -2
- package/dist/translations/tr.js +2 -2
- package/dist/translations/tr.umd.js +2 -2
- package/dist/translations/tt.d.ts +2 -2
- package/dist/translations/tt.js +2 -2
- package/dist/translations/tt.umd.js +2 -2
- package/dist/translations/ug.d.ts +2 -2
- package/dist/translations/ug.js +2 -2
- package/dist/translations/ug.umd.js +2 -2
- package/dist/translations/uk.d.ts +2 -2
- package/dist/translations/uk.js +2 -2
- package/dist/translations/uk.umd.js +2 -2
- package/dist/translations/ur.d.ts +2 -2
- package/dist/translations/ur.js +2 -2
- package/dist/translations/ur.umd.js +2 -2
- package/dist/translations/uz.d.ts +2 -2
- package/dist/translations/uz.js +2 -2
- package/dist/translations/uz.umd.js +2 -2
- package/dist/translations/vi.d.ts +2 -2
- package/dist/translations/vi.js +2 -2
- package/dist/translations/vi.umd.js +2 -2
- package/dist/translations/zh-cn.d.ts +2 -2
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-cn.umd.js +2 -2
- package/dist/translations/zh.d.ts +2 -2
- package/dist/translations/zh.js +2 -2
- package/dist/translations/zh.umd.js +2 -2
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/gu.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/hy.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/kk.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/oc.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sl.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/ti.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +31 -7
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/importword.d.ts +1 -1
- package/src/importword.js +2 -2
- package/src/importwordcommand.d.ts +1 -1
- package/src/importwordcommand.js +2 -2
- package/src/importwordediting.d.ts +1 -1
- package/src/importwordediting.js +2 -2
- package/src/importwordui.d.ts +1 -1
- package/src/importwordui.js +2 -2
- package/src/index.d.ts +1 -1
- package/src/index.js +2 -2
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +2 -2
- package/dist/augmentation.d.ts +0 -27
- package/dist/importword.d.ts +0 -136
- package/dist/importwordcommand.d.ts +0 -58
- package/dist/importwordediting.d.ts +0 -51
- package/dist/importwordui.d.ts +0 -34
- package/dist/index.d.ts +0 -16
- package/dist/utils/common-translations.d.ts +0 -13
package/lang/translations/tr.po
CHANGED
package/lang/translations/tt.po
CHANGED
package/lang/translations/ug.po
CHANGED
package/lang/translations/uk.po
CHANGED
package/lang/translations/ur.po
CHANGED
package/lang/translations/uz.po
CHANGED
package/lang/translations/vi.po
CHANGED
package/lang/translations/zh.po
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-import-word",
|
|
3
|
-
"version": "44.
|
|
3
|
+
"version": "44.2.0-alpha.1",
|
|
4
4
|
"description": "Import from Word feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -30,12 +30,14 @@
|
|
|
30
30
|
"type": "module",
|
|
31
31
|
"main": "src/index.js",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ckeditor/ckeditor5-clipboard": "44.
|
|
34
|
-
"@ckeditor/ckeditor5-
|
|
35
|
-
"@ckeditor/ckeditor5-
|
|
36
|
-
"@ckeditor/ckeditor5-
|
|
37
|
-
"@ckeditor/ckeditor5-
|
|
38
|
-
"ckeditor5": "44.
|
|
33
|
+
"@ckeditor/ckeditor5-clipboard": "44.2.0-alpha.1",
|
|
34
|
+
"@ckeditor/ckeditor5-cloud-services": "44.2.0-alpha.1",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "44.2.0-alpha.1",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "44.2.0-alpha.1",
|
|
37
|
+
"@ckeditor/ckeditor5-merge-fields": "44.2.0-alpha.1",
|
|
38
|
+
"@ckeditor/ckeditor5-ui": "44.2.0-alpha.1",
|
|
39
|
+
"@ckeditor/ckeditor5-utils": "44.2.0-alpha.1",
|
|
40
|
+
"ckeditor5": "44.2.0-alpha.1"
|
|
39
41
|
},
|
|
40
42
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
41
43
|
"author": "CKSource (https://cksource.com/)",
|
|
@@ -52,5 +54,27 @@
|
|
|
52
54
|
"CHANGELOG.md"
|
|
53
55
|
],
|
|
54
56
|
"types": "src/index.d.ts",
|
|
57
|
+
"exports": {
|
|
58
|
+
".": {
|
|
59
|
+
"types": "./src/index.d.ts",
|
|
60
|
+
"import": "./src/index.js",
|
|
61
|
+
"default": "./src/index.js"
|
|
62
|
+
},
|
|
63
|
+
"./dist/*": {
|
|
64
|
+
"types": "./src/index.d.ts",
|
|
65
|
+
"import": "./dist/*",
|
|
66
|
+
"default": "./dist/*"
|
|
67
|
+
},
|
|
68
|
+
"./src/*": {
|
|
69
|
+
"types": "./src/*.d.ts",
|
|
70
|
+
"import": "./src/*",
|
|
71
|
+
"default": "./src/*"
|
|
72
|
+
},
|
|
73
|
+
"./build/*": "./build/*",
|
|
74
|
+
"./lang/*": "./lang/*",
|
|
75
|
+
"./theme/*": "./theme/*",
|
|
76
|
+
"./ckeditor5-metadata.json": "./ckeditor5-metadata.json",
|
|
77
|
+
"./package.json": "./package.json"
|
|
78
|
+
},
|
|
55
79
|
"obfuscated": true
|
|
56
80
|
}
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import type { ImportWordConfig, ImportWord, ImportWordEditing, ImportWordUI, ImportWordCommand } from './index.js';
|
package/src/augmentation.js
CHANGED
package/src/importword.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
package/src/importword.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x5d52b3=_0x3bc0;(function(_0x3e36e5,_0x39ca28){var _0x21a26b=_0x3bc0,_0x18e67f=_0x3e36e5();while(!![]){try{var _0x4ac5e7=-parseInt(_0x21a26b(0x18a))/0x1*(-parseInt(_0x21a26b(0x183))/0x2)+-parseInt(_0x21a26b(0x18b))/0x3+parseInt(_0x21a26b(0x180))/0x4*(parseInt(_0x21a26b(0x181))/0x5)+parseInt(_0x21a26b(0x189))/0x6*(parseInt(_0x21a26b(0x187))/0x7)+-parseInt(_0x21a26b(0x182))/0x8*(-parseInt(_0x21a26b(0x18c))/0x9)+-parseInt(_0x21a26b(0x17e))/0xa+-parseInt(_0x21a26b(0x185))/0xb;if(_0x4ac5e7===_0x39ca28)break;else _0x18e67f['push'](_0x18e67f['shift']());}catch(_0x2dd1c2){_0x18e67f['push'](_0x18e67f['shift']());}}}(_0x2383,0x19218));import{Plugin as _0x53a550}from'ckeditor5/src/core.js';function _0x3bc0(_0x3184b7,_0x1dfdef){var _0x23836a=_0x2383();return _0x3bc0=function(_0x3bc0ee,_0x19ad04){_0x3bc0ee=_0x3bc0ee-0x17d;var _0x5346ac=_0x23836a[_0x3bc0ee];return _0x5346ac;},_0x3bc0(_0x3184b7,_0x1dfdef);}import _0x1b4387 from'./importwordui.js';function _0x2383(){var _0x51b076=['808tKASmb','332caYrjA','requires','207372kYJbpF','isOfficialPlugin','1139999LTOKaS','pluginName','6uWApHv','192kpTCRh','548880vEfroQ','4581KwwkIA','ImportWord','639450tXxYMI','isPremiumPlugin','508qHGvNZ','4825FwHrBB'];_0x2383=function(){return _0x51b076;};return _0x2383();}import _0x5302e2 from'./importwordediting.js';export default class o extends _0x53a550{static get[_0x5d52b3(0x188)](){var _0x235266=_0x5d52b3;return _0x235266(0x17d);}static get[_0x5d52b3(0x186)](){return!0x0;}static get[_0x5d52b3(0x17f)](){return!0x0;}static get[_0x5d52b3(0x184)](){return[_0x5302e2,_0x1b4387];}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
package/src/importwordcommand.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x60992c=_0x3d47;function _0x2ef4(){const _0x4f68c1=['147404fPWepe','_abortController','ImportWordEditing','_undoStepBatch','removeMarker','change:range','markers','resolvedOptions','setSelection','refresh','enqueueChange','selection','plugins','showWarning','clipboardInput','locale','import-word-plugin-import-cancelled','25240sneqnj','finally','html','fire','importWord','has','6201744ryKChj','position','getToken','_checkEnabled','_prepareForImport','138xNrSsj','isAtStart','importWord:','_cleanUpAfterImport','isEmpty','view','POST','resolve','DateTimeFormat','value','bind','12010oDeGZj','get','catch','_handleImportResponse','execute','rootName','2645988cvPYie','model','_importMarker','mergeFields','root','converterUrl','config','createBatch','Notification','formatting','checkChild','Authorization','editor','file','getRange','import-word-plugin-conversion-failed','split','1204TGAsTw','createPositionBefore','then','document','aborted','editing','signal','dataInsert','_sendImportRequest','deleteContent','createPositionAfter','isBusy','getFirstPosition','addMarker','_handleImportFailure','$graveyard','json','setData','isEnabled','getSelectedBlocks','MergeFields','18549351xwcENI','reject','paragraph','text/html','element','stopListening','isCollapsed','headers','3057369MbLlvU','set','merge_fields','stringify','abort','timeZone','schema','parent','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.','low','isAtEnd'];_0x2ef4=function(){return _0x4f68c1;};return _0x2ef4();}(function(_0x5d58d9,_0x599298){const _0x223bc0=_0x3d47,_0x1b05a1=_0x5d58d9();while(!![]){try{const _0x3447b5=parseInt(_0x223bc0(0x202))/0x1+-parseInt(_0x223bc0(0x1c9))/0x2+-parseInt(_0x223bc0(0x1f7))/0x3+parseInt(_0x223bc0(0x1b3))/0x4+parseInt(_0x223bc0(0x1c3))/0x5*(parseInt(_0x223bc0(0x1b8))/0x6)+-parseInt(_0x223bc0(0x1da))/0x7*(parseInt(_0x223bc0(0x1ad))/0x8)+parseInt(_0x223bc0(0x1ef))/0x9;if(_0x3447b5===_0x599298)break;else _0x1b05a1['push'](_0x1b05a1['shift']());}catch(_0x3682c8){_0x1b05a1['push'](_0x1b05a1['shift']());}}}(_0x2ef4,0xe2e44));function _0x3d47(_0x32c9b3,_0x3c11dd){const _0x2ef4f8=_0x2ef4();return _0x3d47=function(_0x3d47f5,_0x1be888){_0x3d47f5=_0x3d47f5-0x1a7;let _0x2b3f49=_0x2ef4f8[_0x3d47f5];return _0x2b3f49;},_0x3d47(_0x32c9b3,_0x3c11dd);}import{Command as _0x35c288}from'ckeditor5/src/core.js';import{Range as _0x32e1e1}from'ckeditor5/src/engine.js';import{logWarning as _0x28e2fe,logError as _0x2eae51,first as _0x199efb,uid as _0x3f36b6}from'ckeditor5/src/utils.js';import{getTranslation as _0x3df6d0}from'./utils/common-translations.js';export default class d extends _0x35c288{constructor(_0x391fde){const _0x161b89=_0x3d47;super(_0x391fde),this[_0x161b89(0x1f8)](_0x161b89(0x1e5),!0x1),this[_0x161b89(0x1cb)]=null,this[_0x161b89(0x205)]=null,this[_0x161b89(0x203)]=null,this['on'](_0x161b89(0x1e1),(_0x4dc39a,_0x4d4be6)=>{const _0x5e37cd=_0x161b89,_0x41920e=new DataTransfer();_0x41920e[_0x5e37cd(0x1eb)](_0x5e37cd(0x1f2),_0x4d4be6[_0x5e37cd(0x1af)]);const _0x4ced62=this[_0x5e37cd(0x1cb)][_0x5e37cd(0x1d7)]();this[_0x5e37cd(0x1d5)][_0x5e37cd(0x1ca)][_0x5e37cd(0x20c)](this[_0x5e37cd(0x205)],_0xb79d56=>{const _0x1a49de=_0x5e37cd;this[_0x1a49de(0x1cb)][_0x1a49de(0x1f4)](),_0xb79d56[_0x1a49de(0x20a)](_0x4ced62),_0x391fde[_0x1a49de(0x1df)][_0x1a49de(0x1bd)][_0x1a49de(0x1dd)][_0x1a49de(0x1b0)](_0x1a49de(0x1aa),{'dataTransfer':_0x41920e});});},{'priority':_0x161b89(0x200)});}[_0x60992c(0x20b)](){const _0x370a38=_0x60992c;this[_0x370a38(0x1ec)]=this[_0x370a38(0x1b6)]();}[_0x60992c(0x1c7)](_0x4403d0,_0x649ee1={}){const _0x3600db=_0x60992c;if(this[_0x3600db(0x1e5)])return Promise[_0x3600db(0x1bf)]();const _0x10792c=this[_0x3600db(0x1d5)][_0x3600db(0x1cf)][_0x3600db(0x1c4)](_0x3600db(0x1b1));if(this[_0x3600db(0x1d5)][_0x3600db(0x1a8)][_0x3600db(0x1b2)](_0x3600db(0x1ee))){const {prefix:_0x3dc083,suffix:_0x57fd13}=this[_0x3600db(0x1d5)][_0x3600db(0x1cf)][_0x3600db(0x1c4)](_0x3600db(0x1cc));_0x649ee1[_0x3600db(0x1f9)]={'prefix':_0x3dc083,'suffix':_0x57fd13};}const _0xd228ca={'url':_0x10792c[_0x3600db(0x1ce)],'file':_0x4403d0,'serviceConfig':{..._0x649ee1,'formatting':_0x10792c[_0x3600db(0x1d2)],'timezone':new Intl[(_0x3600db(0x1c0))]()[_0x3600db(0x209)]()[_0x3600db(0x1fc)]}};return this[_0x3600db(0x1b7)](),this[_0x3600db(0x1e2)](_0xd228ca)[_0x3600db(0x1dc)](this[_0x3600db(0x1c6)][_0x3600db(0x1c2)](this))[_0x3600db(0x1c5)](this[_0x3600db(0x1e8)][_0x3600db(0x1c2)](this))[_0x3600db(0x1ae)](this[_0x3600db(0x1bb)][_0x3600db(0x1c2)](this));}[_0x60992c(0x1b6)](){const _0x32f425=_0x60992c;if(this[_0x32f425(0x1e5)])return!0x1;const _0x21281b=this[_0x32f425(0x1d5)][_0x32f425(0x1ca)],_0xa63d47=_0x21281b[_0x32f425(0x1fd)],_0x46efb2=_0x21281b[_0x32f425(0x1dd)][_0x32f425(0x1a7)],_0x426d6d=_0x199efb(_0x46efb2[_0x32f425(0x1ed)]());return!!_0x426d6d&&_0xa63d47[_0x32f425(0x1d3)](_0x426d6d[_0x32f425(0x1fe)],_0x32f425(0x1f1));}[_0x60992c(0x1b7)](){const _0x14b4bd=_0x60992c,_0x149e95=this[_0x14b4bd(0x1d5)],_0x3c0e03=_0x149e95[_0x14b4bd(0x1ca)],_0x5f2e0e=_0x3c0e03[_0x14b4bd(0x1dd)][_0x14b4bd(0x1a7)];this[_0x14b4bd(0x203)]=new AbortController(),this[_0x14b4bd(0x205)]=_0x149e95[_0x14b4bd(0x1ca)][_0x14b4bd(0x1d0)]({'isUndoable':!0x0}),_0x3c0e03[_0x14b4bd(0x20c)](this[_0x14b4bd(0x205)],_0x2f982d=>{const _0x36937d=_0x14b4bd;_0x5f2e0e[_0x36937d(0x1f5)]||_0x3c0e03[_0x36937d(0x1e3)](_0x5f2e0e,{'leaveUnmerged':!0x0});const _0xdf7ee0=_0x5f2e0e[_0x36937d(0x1e6)](),_0x5e17a6=_0x199efb(_0x5f2e0e[_0x36937d(0x1ed)]());let _0x599283;_0x599283=_0x5e17a6['is'](_0x36937d(0x1f3),_0x36937d(0x1f1))&&_0x5e17a6[_0x36937d(0x1bc)]?_0xdf7ee0:_0xdf7ee0[_0x36937d(0x1b9)]?_0x3c0e03[_0x36937d(0x1db)](_0x5e17a6):_0xdf7ee0[_0x36937d(0x201)]?_0x3c0e03[_0x36937d(0x1e4)](_0x5e17a6):_0x2f982d[_0x36937d(0x1d9)](_0xdf7ee0)[_0x36937d(0x1b4)],this[_0x36937d(0x1cb)]=_0x2f982d[_0x36937d(0x1e7)](_0x36937d(0x1ba)+_0x3f36b6(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new _0x32e1e1(_0x599283)}),this[_0x36937d(0x1cb)]['on'](_0x36937d(0x207),()=>{const _0x3f06c5=_0x36937d;_0x3f06c5(0x1e9)===this[_0x3f06c5(0x1cb)][_0x3f06c5(0x1d7)]()[_0x3f06c5(0x1cd)][_0x3f06c5(0x1c8)]&&this[_0x3f06c5(0x203)][_0x3f06c5(0x1fb)]();});}),this[_0x14b4bd(0x1e5)]=!0x0,this[_0x14b4bd(0x20b)]();}[_0x60992c(0x1bb)](){const _0x6f54e0=_0x60992c,_0x1950b9=this[_0x6f54e0(0x1d5)][_0x6f54e0(0x1ca)];_0x1950b9[_0x6f54e0(0x208)][_0x6f54e0(0x1b2)](this[_0x6f54e0(0x1cb)])&&_0x1950b9[_0x6f54e0(0x20c)](this[_0x6f54e0(0x205)],_0x105ae3=>{const _0x35b0d5=_0x6f54e0;_0x105ae3[_0x35b0d5(0x206)](this[_0x35b0d5(0x1cb)]);}),this[_0x6f54e0(0x1cb)]=null,this[_0x6f54e0(0x205)]=null,this[_0x6f54e0(0x203)]=null,this[_0x6f54e0(0x1e5)]=!0x1,this[_0x6f54e0(0x20b)]();}[_0x60992c(0x1e2)]({url:_0xc11900,file:_0xba8ff8,serviceConfig:_0x1b8dea}){const _0x3928d3=_0x60992c,_0x3f21bd=this[_0x3928d3(0x1d5)][_0x3928d3(0x1a8)][_0x3928d3(0x1c4)](_0x3928d3(0x204))[_0x3928d3(0x1b5)](),_0x510c18=new FormData();_0x510c18[_0x3928d3(0x1f8)](_0x3928d3(0x1cf),JSON[_0x3928d3(0x1fa)](_0x1b8dea)),_0x510c18[_0x3928d3(0x1f8)](_0x3928d3(0x1d6),_0xba8ff8);const _0x3a5ce1={'method':_0x3928d3(0x1be),'headers':{},'body':_0x510c18,'signal':this[_0x3928d3(0x203)][_0x3928d3(0x1e0)]};return _0x3f21bd&&(_0x3a5ce1[_0x3928d3(0x1f6)][_0x3928d3(0x1d4)]=_0x3f21bd[_0x3928d3(0x1c1)]),fetch(_0xc11900,_0x3a5ce1);}[_0x60992c(0x1c6)](_0x55a77b){const _0x4d9901=_0x60992c;return _0x55a77b['ok']?_0x55a77b[_0x4d9901(0x1ea)]()[_0x4d9901(0x1dc)](_0x3ae655=>{const _0x258cd1=_0x4d9901;if(!this[_0x258cd1(0x1d5)][_0x258cd1(0x1ca)][_0x258cd1(0x208)][_0x258cd1(0x1b2)](this[_0x258cd1(0x1cb)]))return;_0x258cd1(0x1e9)!==this[_0x258cd1(0x1cb)][_0x258cd1(0x1d7)]()[_0x258cd1(0x1cd)][_0x258cd1(0x1c8)]&&this[_0x258cd1(0x1b0)](_0x258cd1(0x1e1),_0x3ae655);}):Promise[_0x4d9901(0x1f0)]();}[_0x60992c(0x1e8)](){const _0x3d6e80=_0x60992c;if(this[_0x3d6e80(0x203)][_0x3d6e80(0x1e0)][_0x3d6e80(0x1de)])return void _0x28e2fe(_0x3d6e80(0x1ac));const _0x386533=this[_0x3d6e80(0x1d5)],_0x402305=_0x3df6d0(_0x386533[_0x3d6e80(0x1ab)],_0x3d6e80(0x1ff));_0x386533[_0x3d6e80(0x1a8)][_0x3d6e80(0x1c4)](_0x3d6e80(0x1d1))[_0x3d6e80(0x1a9)](_0x402305),_0x2eae51(_0x3d6e80(0x1d8));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
package/src/importwordediting.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41d655=_0xc13e;(function(_0x2ff248,_0x2e0703){const _0x4df0c7=_0xc13e,_0x14cc9a=_0x2ff248();while(!![]){try{const _0xb4dc4c=parseInt(_0x4df0c7(0xf6))/0x1*(-parseInt(_0x4df0c7(0xfa))/0x2)+parseInt(_0x4df0c7(0xe4))/0x3*(-parseInt(_0x4df0c7(0xff))/0x4)+parseInt(_0x4df0c7(0xf9))/0x5*(-parseInt(_0x4df0c7(0xfe))/0x6)+parseInt(_0x4df0c7(0xf0))/0x7*(parseInt(_0x4df0c7(0xfb))/0x8)+-parseInt(_0x4df0c7(0xf5))/0x9+-parseInt(_0x4df0c7(0x102))/0xa*(-parseInt(_0x4df0c7(0xf8))/0xb)+parseInt(_0x4df0c7(0xf4))/0xc;if(_0xb4dc4c===_0x2e0703)break;else _0x14cc9a['push'](_0x14cc9a['shift']());}catch(_0x4752b8){_0x14cc9a['push'](_0x14cc9a['shift']());}}}(_0xd930,0x7e095));import{Plugin as _0x4b2a6a}from'ckeditor5/src/core.js';import{Notification as _0x427d0a}from'ckeditor5/src/ui.js';import{ClipboardPipeline as _0x372899}from'ckeditor5/src/clipboard.js';function _0xc13e(_0xc320e3,_0x7eb26d){const _0xd9309c=_0xd930();return _0xc13e=function(_0xe4c1a5,_0x654474){_0xe4c1a5=_0xe4c1a5-0xe2;let _0x129995=_0xd9309c[_0xe4c1a5];return _0x129995;},_0xc13e(_0xc320e3,_0x7eb26d);}import _0x1c9d93 from'./importwordcommand.js';export default class e extends _0x4b2a6a{static get[_0x41d655(0x101)](){const _0x59190a=_0x41d655;return _0x59190a(0xec);}static get[_0x41d655(0xfc)](){return!0x0;}static get[_0x41d655(0xeb)](){return!0x0;}static get[_0x41d655(0xf7)](){const _0x5843d2=_0x41d655;return[_0x427d0a,_0x372899,_0x5843d2(0x100)];}constructor(_0x4ef2cc){const _0x15af3d=_0x41d655;super(_0x4ef2cc),this[_0x15af3d(0xea)]=null;}async[_0x41d655(0xe9)](){const _0xc31b9=_0x41d655,_0x559244=this[_0xc31b9(0xe2)];_0x559244[_0xc31b9(0xf2)][_0xc31b9(0x103)](_0xc31b9(0xf1),{'converterUrl':_0xc31b9(0xe5),'tokenUrl':(_0x559244[_0xc31b9(0xf2)][_0xc31b9(0xf3)](_0xc31b9(0x105))||{})[_0xc31b9(0xe3)],'formatting':{'resets':_0xc31b9(0xef),'defaults':_0xc31b9(0xef),'styles':_0xc31b9(0xe8)}}),_0x559244[_0xc31b9(0xe7)][_0xc31b9(0x104)](_0xc31b9(0xf1),new _0x1c9d93(_0x559244));const {tokenUrl:_0x520a8e}=_0x559244[_0xc31b9(0xf2)][_0xc31b9(0xf3)](_0xc31b9(0xf1));if(_0x520a8e){const {tokenUrl:_0x21117a}=_0x559244[_0xc31b9(0xf2)][_0xc31b9(0xf3)](_0xc31b9(0x105))||{};this[_0xc31b9(0xea)]=_0x520a8e===_0x21117a?_0x559244[_0xc31b9(0xe6)][_0xc31b9(0xf3)](_0xc31b9(0x100))[_0xc31b9(0xee)]:await _0x559244[_0xc31b9(0xe6)][_0xc31b9(0xf3)](_0xc31b9(0x100))[_0xc31b9(0xfd)](_0x520a8e);}}[_0x41d655(0xed)](){const _0x31ce1c=_0x41d655;return this[_0x31ce1c(0xea)];}}function _0xd930(){const _0x38499a=['ImportWordEditing','getToken','token','none','21028bSWWrU','importWord','config','get','8691768egURxc','74268pQDAGZ','168023xkIIqC','requires','33mraDXH','20bRAzJV','8MajJUV','1864snTxEN','isOfficialPlugin','registerTokenUrl','81372kTNwFL','16rxUqFF','CloudServices','pluginName','1471090CmoWuy','define','add','cloudServices','editor','tokenUrl','461052Ejlwll','https://docx-converter.cke-cs.com/v2/convert/docx-html','plugins','commands','inline','init','_token','isPremiumPlugin'];_0xd930=function(){return _0x38499a;};return _0xd930();}
|
package/src/importwordui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
package/src/importwordui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c1ab0=_0x4df5;function _0x4df5(_0x4de92d,_0x26f362){const _0x456997=_0x4569();return _0x4df5=function(_0x4df512,_0x236f9b){_0x4df512=_0x4df512-0x178;let _0x42ac4d=_0x456997[_0x4df512];return _0x42ac4d;},_0x4df5(_0x4de92d,_0x26f362);}(function(_0x241607,_0x37f649){const _0x1c1ac7=_0x4df5,_0x318004=_0x241607();while(!![]){try{const _0x508a6b=parseInt(_0x1c1ac7(0x18a))/0x1+-parseInt(_0x1c1ac7(0x195))/0x2+-parseInt(_0x1c1ac7(0x189))/0x3+parseInt(_0x1c1ac7(0x18c))/0x4*(-parseInt(_0x1c1ac7(0x191))/0x5)+-parseInt(_0x1c1ac7(0x17c))/0x6+-parseInt(_0x1c1ac7(0x188))/0x7+parseInt(_0x1c1ac7(0x192))/0x8*(parseInt(_0x1c1ac7(0x186))/0x9);if(_0x508a6b===_0x37f649)break;else _0x318004['push'](_0x318004['shift']());}catch(_0x333f13){_0x318004['push'](_0x318004['shift']());}}}(_0x4569,0xc8797));import{Plugin as _0x34ca91}from'ckeditor5/src/core.js';import{MenuBarMenuListItemFileDialogButtonView as _0x227d12,SpinnerView as _0x59f919,FileDialogButtonView as _0x43948d}from'ckeditor5/src/ui.js';import _0x3b7cf8 from'../theme/icons/importword.svg';import{getTranslation as _0xd3f3db}from'./utils/common-translations.js';function _0x4569(){const _0x2cd574=['1198083btxtIk','148603atLNAd','locale','232508hpLHhf','pluginName','editing','get','isPremiumPlugin','125LqDhcj','27592oVcsII','add','ImportWordUI','2308382WWuEoQ','editor','menuBar:importWord','Import\x20from\x20Word','importWord','_createButton','application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template','init','componentFactory','done','isBusy','iconView','isVisible','bind','isEnabled','label','4275834BMIYZM','Importing\x20Word\x20document','focus','execute','tooltip','isOn','view','commands','set','isOfficialPlugin','13554dKtOZW','children','5616016XKNkhA'];_0x4569=function(){return _0x2cd574;};return _0x4569();}export default class i extends _0x34ca91{static get[_0x4c1ab0(0x18d)](){const _0x5d9295=_0x4c1ab0;return _0x5d9295(0x194);}static get[_0x4c1ab0(0x185)](){return!0x0;}static get[_0x4c1ab0(0x190)](){return!0x0;}[_0x4c1ab0(0x19c)](){const _0x1f329f=_0x4c1ab0,_0x221a44=this[_0x1f329f(0x196)];_0x221a44['ui'][_0x1f329f(0x19d)][_0x1f329f(0x193)](_0x1f329f(0x199),()=>{const _0xf3f54d=_0x1f329f,_0x3552be=this[_0xf3f54d(0x19a)](_0x43948d),_0x18d4f2=_0x221a44[_0xf3f54d(0x183)][_0xf3f54d(0x18f)](_0xf3f54d(0x199));return _0x3552be[_0xf3f54d(0x179)](_0xf3f54d(0x181))['to'](_0x18d4f2,_0xf3f54d(0x19f)),_0x3552be[_0xf3f54d(0x180)]=!0x0,_0x3552be;}),_0x221a44['ui'][_0x1f329f(0x19d)][_0x1f329f(0x193)](_0x1f329f(0x197),()=>this[_0x1f329f(0x19a)](_0x227d12));}[_0x4c1ab0(0x19a)](_0xae43b9){const _0x5f26ee=_0x4c1ab0,_0x1846f4=this[_0x5f26ee(0x196)],_0x1bb783=_0x1846f4[_0x5f26ee(0x183)][_0x5f26ee(0x18f)](_0x5f26ee(0x199)),_0x15c2b3=new _0xae43b9(_0x1846f4[_0x5f26ee(0x18b)]),_0x37a19d=new _0x59f919();return _0x15c2b3[_0x5f26ee(0x184)]({'acceptedType':_0x5f26ee(0x19b)}),_0x15c2b3[_0x5f26ee(0x184)]({'icon':_0x3b7cf8}),_0x15c2b3[_0x5f26ee(0x179)](_0x5f26ee(0x17a))['to'](_0x1bb783),_0x15c2b3[_0x5f26ee(0x179)](_0x5f26ee(0x17b))['to'](_0x1bb783,_0x5f26ee(0x19f),_0x92f8c6=>_0xd3f3db(_0x1846f4[_0x5f26ee(0x18b)],_0x92f8c6?_0x5f26ee(0x17d):_0x5f26ee(0x198))),_0x37a19d[_0x5f26ee(0x179)](_0x5f26ee(0x178))['to'](_0x1bb783,_0x5f26ee(0x19f)),_0x15c2b3[_0x5f26ee(0x1a0)][_0x5f26ee(0x179)](_0x5f26ee(0x178))['to'](_0x1bb783,_0x5f26ee(0x19f),_0x4161eb=>!_0x4161eb),_0x15c2b3[_0x5f26ee(0x187)][_0x5f26ee(0x193)](_0x37a19d),_0x15c2b3['on'](_0x5f26ee(0x19e),(_0x2fa39e,_0x1e0df7)=>{const _0x3491e3=_0x5f26ee;_0x1846f4[_0x3491e3(0x17f)](_0x3491e3(0x199),_0x1e0df7[0x0],{}),_0x1846f4[_0x3491e3(0x18e)][_0x3491e3(0x182)][_0x3491e3(0x17e)]();}),_0x15c2b3;}}
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x38ac(_0x5b293e,_0x385482){var _0x15b8f1=_0x15b8();return _0x38ac=function(_0x38acce,_0x351aeb){_0x38acce=_0x38acce-0x1c4;var _0x78bb4b=_0x15b8f1[_0x38acce];return _0x78bb4b;},_0x38ac(_0x5b293e,_0x385482);}function _0x15b8(){var _0x228224=['11646SWGkfX','102751qqASYG','1010xtUocA','2604tHJvim','31626goYZtm','568JcMuCQ','2EcDZVs','1513572dfhAsY','2399535DAoKzs','245210KcQuaM','983613VfmSQp'];_0x15b8=function(){return _0x228224;};return _0x15b8();}(function(_0x5291e7,_0x3ceb43){var _0x1bb854=_0x38ac,_0x3e6de8=_0x5291e7();while(!![]){try{var _0x20a5f8=parseInt(_0x1bb854(0x1c5))/0x1+-parseInt(_0x1bb854(0x1cd))/0x2*(parseInt(_0x1bb854(0x1c6))/0x3)+-parseInt(_0x1bb854(0x1ce))/0x4+parseInt(_0x1bb854(0x1c4))/0x5+parseInt(_0x1bb854(0x1c7))/0x6*(-parseInt(_0x1bb854(0x1ca))/0x7)+parseInt(_0x1bb854(0x1cc))/0x8*(parseInt(_0x1bb854(0x1cb))/0x9)+-parseInt(_0x1bb854(0x1c9))/0xa*(-parseInt(_0x1bb854(0x1c8))/0xb);if(_0x20a5f8===_0x3ceb43)break;else _0x3e6de8['push'](_0x3e6de8['shift']());}catch(_0x3da97d){_0x3e6de8['push'](_0x3e6de8['shift']());}}}(_0x15b8,0x77908));export{default as ImportWord}from'./importword.js';export{default as ImportWordEditing}from'./importwordediting.js';export{default as ImportWordUI}from'./importwordui.js';import'./augmentation.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x466f86,_0x3b6e75){const t=_0x466f86['t'];switch(_0x3b6e75){case'Import\x20from\x20Word':return t('Import\x20from\x20Word');case'An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':return t('An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');case'Importing\x20Word\x20document':return t('Importing\x20Word\x20document');default:return _0x3b6e75;}}
|
package/dist/augmentation.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import type { ImportWordConfig, ImportWord, ImportWordEditing, ImportWordUI, ImportWordCommand } from './index.js';
|
|
10
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
11
|
-
interface EditorConfig {
|
|
12
|
-
/**
|
|
13
|
-
* The configuration of the {@link module:import-word/importword~ImportWord import from Word feature}.
|
|
14
|
-
*
|
|
15
|
-
* Read more in {@link module:import-word/importword~ImportWordConfig}.
|
|
16
|
-
*/
|
|
17
|
-
importWord?: ImportWordConfig;
|
|
18
|
-
}
|
|
19
|
-
interface PluginsMap {
|
|
20
|
-
[ImportWord.pluginName]: ImportWord;
|
|
21
|
-
[ImportWordEditing.pluginName]: ImportWordEditing;
|
|
22
|
-
[ImportWordUI.pluginName]: ImportWordUI;
|
|
23
|
-
}
|
|
24
|
-
interface CommandsMap {
|
|
25
|
-
importWord: ImportWordCommand;
|
|
26
|
-
}
|
|
27
|
-
}
|
package/dist/importword.d.ts
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module import-word/importword
|
|
11
|
-
* @publicApi
|
|
12
|
-
*/
|
|
13
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
14
|
-
import type { TokenUrl } from '@ckeditor/ckeditor5-cloud-services';
|
|
15
|
-
import ImportWordUI from './importwordui.js';
|
|
16
|
-
import ImportWordEditing from './importwordediting.js';
|
|
17
|
-
/**
|
|
18
|
-
* The import from Word feature.
|
|
19
|
-
*
|
|
20
|
-
* It allows importing content from a Word file directly into CKEditor 5.
|
|
21
|
-
*
|
|
22
|
-
* This is a "glue" plugin which enables:
|
|
23
|
-
*
|
|
24
|
-
* * {@link module:import-word/importwordediting~ImportWordEditing},
|
|
25
|
-
* * {@link module:import-word/importwordui~ImportWordUI},
|
|
26
|
-
*
|
|
27
|
-
* For a detailed overview, check the {@glink features/converters/import-word/import-word import from Word} feature documentation.
|
|
28
|
-
*/
|
|
29
|
-
export default class ImportWord extends Plugin {
|
|
30
|
-
/**
|
|
31
|
-
* @inheritDoc
|
|
32
|
-
*/
|
|
33
|
-
static get pluginName(): "ImportWord";
|
|
34
|
-
/**
|
|
35
|
-
* @inheritDoc
|
|
36
|
-
*/
|
|
37
|
-
static get isOfficialPlugin(): true;
|
|
38
|
-
/**
|
|
39
|
-
* @inheritDoc
|
|
40
|
-
*/
|
|
41
|
-
static get isPremiumPlugin(): true;
|
|
42
|
-
/**
|
|
43
|
-
* @inheritDoc
|
|
44
|
-
*/
|
|
45
|
-
static get requires(): readonly [typeof ImportWordEditing, typeof ImportWordUI];
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* The configuration of the {@link module:import-word/importword~ImportWord import from Word feature}.
|
|
49
|
-
*
|
|
50
|
-
* The configuration for the import from Word feature requires providing the
|
|
51
|
-
* {@link module:import-word/importword~ImportWordConfig#tokenUrl `config.importWord.tokenUrl`}:
|
|
52
|
-
*
|
|
53
|
-
* ```ts
|
|
54
|
-
* ClassicEditor
|
|
55
|
-
* .create( editorElement, {
|
|
56
|
-
* importWord: {
|
|
57
|
-
* tokenUrl: 'https://example.com/cs-token-endpoint'
|
|
58
|
-
* }
|
|
59
|
-
* } )
|
|
60
|
-
* .then( ... )
|
|
61
|
-
* .catch( ... );
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
65
|
-
*/
|
|
66
|
-
export interface ImportWordConfig {
|
|
67
|
-
/**
|
|
68
|
-
* A URL to the Docx converter.
|
|
69
|
-
*
|
|
70
|
-
* ```ts
|
|
71
|
-
* const importWordConfig = {
|
|
72
|
-
* converterUrl: 'https://myconverter.com/v1/'
|
|
73
|
-
* }
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* **Note:** The plugin uses the default Word to HTML converter delivered by CKEditor Cloud Services.
|
|
77
|
-
* You can provide a URL to an on-premises converter instead.
|
|
78
|
-
*
|
|
79
|
-
* @default 'https://docx-converter.cke-cs.com/v2/convert/docx-html'
|
|
80
|
-
*/
|
|
81
|
-
converterUrl?: string;
|
|
82
|
-
/**
|
|
83
|
-
* A token URL or a token request function. This field is optional and should be used only when a different `tokenUrl`
|
|
84
|
-
* is required for the Import from Word feature.
|
|
85
|
-
*
|
|
86
|
-
* **Note:** The token can be disabled with the `false` value provided.
|
|
87
|
-
*
|
|
88
|
-
* See: {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl}
|
|
89
|
-
*/
|
|
90
|
-
tokenUrl?: TokenUrl;
|
|
91
|
-
formatting: FormattingOptions;
|
|
92
|
-
}
|
|
93
|
-
export interface FormattingOptions {
|
|
94
|
-
/**
|
|
95
|
-
* Controls whether the additional formatting dedicated to minimizing differences between default Word styles
|
|
96
|
-
* and default HTML formatting should be included in the generated document.
|
|
97
|
-
*
|
|
98
|
-
* If `inline`, the converter service preserves the formatting to be consistent with Word ones.
|
|
99
|
-
* For example, in Word headings are not bold by default, whereas in HTML, they are. Enabling this option
|
|
100
|
-
* appends font-weight: normal to all headings.
|
|
101
|
-
*
|
|
102
|
-
* @default false
|
|
103
|
-
*/
|
|
104
|
-
resets?: 'none' | 'inline';
|
|
105
|
-
/**
|
|
106
|
-
* Controls whether formatting set by default (like the default font size or default font family)
|
|
107
|
-
* should be included in the generated document.
|
|
108
|
-
*
|
|
109
|
-
* If `inline`, the converter service preserves the default formatting of the imported Word document.
|
|
110
|
-
*
|
|
111
|
-
* @default 'none'
|
|
112
|
-
*/
|
|
113
|
-
defaults?: 'none' | 'inline';
|
|
114
|
-
/**
|
|
115
|
-
* Controls whether Word styles should be included in the generated document.
|
|
116
|
-
*
|
|
117
|
-
* If `inline`, the converter service preserves the default styles of the imported Word document.
|
|
118
|
-
*
|
|
119
|
-
* @default 'inline'
|
|
120
|
-
*/
|
|
121
|
-
styles?: 'none' | 'inline';
|
|
122
|
-
/**
|
|
123
|
-
* Defines which formatting styles should be kept for the imported comments text.
|
|
124
|
-
*
|
|
125
|
-
* Possible values are:
|
|
126
|
-
*
|
|
127
|
-
* * `'basic'` - basic styles are kept (bold, italic, underline, strikethrough and links),
|
|
128
|
-
* * `'none'` - comment text is imported without any styling,
|
|
129
|
-
* * `'full'` - all styles are kept (not recommended).
|
|
130
|
-
*
|
|
131
|
-
* **Note:** Please remember that importing comments requires installing the {@link module:comments/comments~Comments} feature.
|
|
132
|
-
*
|
|
133
|
-
* @default 'basic'
|
|
134
|
-
*/
|
|
135
|
-
comments?: 'basic' | 'none' | 'full';
|
|
136
|
-
}
|