@ckeditor/ckeditor5-import-word 44.1.0 → 44.2.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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.0",
|
|
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.0",
|
|
34
|
+
"@ckeditor/ckeditor5-cloud-services": "44.2.0-alpha.0",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "44.2.0-alpha.0",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "44.2.0-alpha.0",
|
|
37
|
+
"@ckeditor/ckeditor5-merge-fields": "44.2.0-alpha.0",
|
|
38
|
+
"@ckeditor/ckeditor5-ui": "44.2.0-alpha.0",
|
|
39
|
+
"@ckeditor/ckeditor5-utils": "44.2.0-alpha.0",
|
|
40
|
+
"ckeditor5": "44.2.0-alpha.0"
|
|
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 _0x30275e=_0xf078;(function(_0x3f601f,_0x1ac9cd){var _0x2ac9ac=_0xf078,_0x1df0c7=_0x3f601f();while(!![]){try{var _0x2f2876=parseInt(_0x2ac9ac(0xfa))/0x1*(parseInt(_0x2ac9ac(0xf7))/0x2)+parseInt(_0x2ac9ac(0x102))/0x3+-parseInt(_0x2ac9ac(0x103))/0x4*(parseInt(_0x2ac9ac(0xff))/0x5)+parseInt(_0x2ac9ac(0x106))/0x6*(parseInt(_0x2ac9ac(0x104))/0x7)+parseInt(_0x2ac9ac(0xfe))/0x8+-parseInt(_0x2ac9ac(0xfb))/0x9*(-parseInt(_0x2ac9ac(0xf9))/0xa)+parseInt(_0x2ac9ac(0xfd))/0xb*(-parseInt(_0x2ac9ac(0x101))/0xc);if(_0x2f2876===_0x1ac9cd)break;else _0x1df0c7['push'](_0x1df0c7['shift']());}catch(_0x313175){_0x1df0c7['push'](_0x1df0c7['shift']());}}}(_0xf8c8,0xe9a51));function _0xf078(_0x374a55,_0x897577){var _0xf8c8e2=_0xf8c8();return _0xf078=function(_0xf078c1,_0x3b7e59){_0xf078c1=_0xf078c1-0xf7;var _0x25808b=_0xf8c8e2[_0xf078c1];return _0x25808b;},_0xf078(_0x374a55,_0x897577);}import{Plugin as _0x42ca71}from'ckeditor5/src/core.js';import _0x9c5a00 from'./importwordui.js';import _0x36bc7d from'./importwordediting.js';export default class o extends _0x42ca71{static get[_0x30275e(0xfc)](){var _0x3de862=_0x30275e;return _0x3de862(0x107);}static get[_0x30275e(0x105)](){return!0x0;}static get[_0x30275e(0xf8)](){return!0x0;}static get[_0x30275e(0x100)](){return[_0x36bc7d,_0x9c5a00];}}function _0xf8c8(){var _0x143055=['956672JKyUuO','2541bySLym','isOfficialPlugin','9708TKmHZR','ImportWord','2DAotlK','isPremiumPlugin','10GMbaPT','786965cfAHHO','8216289nWymss','pluginName','11XUrbRX','1979424hYroYP','10gQRZrT','requires','25005408qhCkNe','2953443szbdiF'];_0xf8c8=function(){return _0x143055;};return _0xf8c8();}
|
|
@@ -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
|
+
function _0x65ef(_0x2a8bde,_0x1c4040){const _0x689638=_0x6896();return _0x65ef=function(_0x65ef92,_0x2a27aa){_0x65ef92=_0x65ef92-0x84;let _0x4fa939=_0x689638[_0x65ef92];return _0x4fa939;},_0x65ef(_0x2a8bde,_0x1c4040);}const _0xd910db=_0x65ef;(function(_0x40d284,_0x246747){const _0x4afa8e=_0x65ef,_0x3c61b7=_0x40d284();while(!![]){try{const _0x28222b=parseInt(_0x4afa8e(0xe2))/0x1+parseInt(_0x4afa8e(0x99))/0x2*(parseInt(_0x4afa8e(0xcd))/0x3)+-parseInt(_0x4afa8e(0x9a))/0x4+parseInt(_0x4afa8e(0xd7))/0x5+parseInt(_0x4afa8e(0xab))/0x6*(parseInt(_0x4afa8e(0x9f))/0x7)+-parseInt(_0x4afa8e(0xe1))/0x8+-parseInt(_0x4afa8e(0x8f))/0x9;if(_0x28222b===_0x246747)break;else _0x3c61b7['push'](_0x3c61b7['shift']());}catch(_0x224ef8){_0x3c61b7['push'](_0x3c61b7['shift']());}}}(_0x6896,0x65908));import{Command as _0x37de85}from'ckeditor5/src/core.js';import{Range as _0x216ccc}from'ckeditor5/src/engine.js';import{logWarning as _0x329345,logError as _0x173ff3,first as _0x44e150,uid as _0x396340}from'ckeditor5/src/utils.js';import{getTranslation as _0x364848}from'./utils/common-translations.js';function _0x6896(){const _0x47e41d=['then','timeZone','Authorization','isCollapsed','DateTimeFormat','_abortController','text/html','removeMarker','checkChild','createBatch','getFirstPosition','isAtStart','execute','mergeFields','element','39NtcDtd','_handleImportResponse','plugins','merge_fields','importWord:','root','markers','importWord','catch','setSelection','3006505WWZkAl','headers','isEmpty','abort','ImportWordEditing','html','import-word-plugin-import-cancelled','model','getToken','parent','13096MNUwcd','169951GIuUXD','clipboardInput','POST','getSelectedBlocks','Notification','_undoStepBatch','split','signal','rootName','schema','editing','deleteContent','import-word-plugin-conversion-failed','config','editor','converterUrl','$graveyard','view','dataInsert','9859284YCRIoh','change:range','formatting','position','showWarning','_prepareForImport','document','_importMarker','aborted','isEnabled','126184xzdGYG','2454848GfEgdg','low','_checkEnabled','isBusy','createPositionBefore','7JXmZmB','value','finally','_cleanUpAfterImport','enqueueChange','fire','addMarker','paragraph','MergeFields','get','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.','bind','3212310AIvaHz','createPositionAfter','isAtEnd','_handleImportFailure','reject','file','setData','resolve','_sendImportRequest','has','resolvedOptions','refresh','stopListening','locale','json','getRange','stringify','set','selection'];_0x6896=function(){return _0x47e41d;};return _0x6896();}export default class d extends _0x37de85{constructor(_0x244522){const _0x3ef2c6=_0x65ef;super(_0x244522),this[_0x3ef2c6(0xbc)](_0x3ef2c6(0x9d),!0x1),this[_0x3ef2c6(0x96)]=null,this[_0x3ef2c6(0xe7)]=null,this[_0x3ef2c6(0xc3)]=null,this['on'](_0x3ef2c6(0x8e),(_0x2fcad3,_0x6ed513)=>{const _0x315948=_0x3ef2c6,_0x4a2468=new DataTransfer();_0x4a2468[_0x315948(0xb1)](_0x315948(0xc4),_0x6ed513[_0x315948(0xdc)]);const _0x538968=this[_0x315948(0x96)][_0x315948(0xba)]();this[_0x315948(0x8a)][_0x315948(0xde)][_0x315948(0xa3)](this[_0x315948(0xe7)],_0x6c7566=>{const _0x3c71db=_0x315948;this[_0x3c71db(0x96)][_0x3c71db(0xb7)](),_0x6c7566[_0x3c71db(0xd6)](_0x538968),_0x244522[_0x3c71db(0x86)][_0x3c71db(0x8d)][_0x3c71db(0x95)][_0x3c71db(0xa4)](_0x3c71db(0xe3),{'dataTransfer':_0x4a2468});});},{'priority':_0x3ef2c6(0x9b)});}[_0xd910db(0xb6)](){const _0xacea0e=_0xd910db;this[_0xacea0e(0x98)]=this[_0xacea0e(0x9c)]();}[_0xd910db(0xca)](_0x4feb57,_0x3848b3={}){const _0x37b4d6=_0xd910db;if(this[_0x37b4d6(0x9d)])return Promise[_0x37b4d6(0xb2)]();const _0x1f564a=this[_0x37b4d6(0x8a)][_0x37b4d6(0x89)][_0x37b4d6(0xa8)](_0x37b4d6(0xd4));if(this[_0x37b4d6(0x8a)][_0x37b4d6(0xcf)][_0x37b4d6(0xb4)](_0x37b4d6(0xa7))){const {prefix:_0xfd13f1,suffix:_0x330787}=this[_0x37b4d6(0x8a)][_0x37b4d6(0x89)][_0x37b4d6(0xa8)](_0x37b4d6(0xcb));_0x3848b3[_0x37b4d6(0xd0)]={'prefix':_0xfd13f1,'suffix':_0x330787};}const _0x1d72a4={'url':_0x1f564a[_0x37b4d6(0x8b)],'file':_0x4feb57,'serviceConfig':{..._0x3848b3,'formatting':_0x1f564a[_0x37b4d6(0x91)],'timezone':new Intl[(_0x37b4d6(0xc2))]()[_0x37b4d6(0xb5)]()[_0x37b4d6(0xbf)]}};return this[_0x37b4d6(0x94)](),this[_0x37b4d6(0xb3)](_0x1d72a4)[_0x37b4d6(0xbe)](this[_0x37b4d6(0xce)][_0x37b4d6(0xaa)](this))[_0x37b4d6(0xd5)](this[_0x37b4d6(0xae)][_0x37b4d6(0xaa)](this))[_0x37b4d6(0xa1)](this[_0x37b4d6(0xa2)][_0x37b4d6(0xaa)](this));}[_0xd910db(0x9c)](){const _0x57c6de=_0xd910db;if(this[_0x57c6de(0x9d)])return!0x1;const _0x596baa=this[_0x57c6de(0x8a)][_0x57c6de(0xde)],_0x3ce2d7=_0x596baa[_0x57c6de(0x85)],_0x4e7249=_0x596baa[_0x57c6de(0x95)][_0x57c6de(0xbd)],_0x3b7114=_0x44e150(_0x4e7249[_0x57c6de(0xe5)]());return!!_0x3b7114&&_0x3ce2d7[_0x57c6de(0xc6)](_0x3b7114[_0x57c6de(0xe0)],_0x57c6de(0xa6));}[_0xd910db(0x94)](){const _0x19b7ce=_0xd910db,_0x19ca39=this[_0x19b7ce(0x8a)],_0x2a1960=_0x19ca39[_0x19b7ce(0xde)],_0x19c46e=_0x2a1960[_0x19b7ce(0x95)][_0x19b7ce(0xbd)];this[_0x19b7ce(0xc3)]=new AbortController(),this[_0x19b7ce(0xe7)]=_0x19ca39[_0x19b7ce(0xde)][_0x19b7ce(0xc7)]({'isUndoable':!0x0}),_0x2a1960[_0x19b7ce(0xa3)](this[_0x19b7ce(0xe7)],_0x4eb40e=>{const _0xc42a0a=_0x19b7ce;_0x19c46e[_0xc42a0a(0xc1)]||_0x2a1960[_0xc42a0a(0x87)](_0x19c46e,{'leaveUnmerged':!0x0});const _0x5480f1=_0x19c46e[_0xc42a0a(0xc8)](),_0x3ef095=_0x44e150(_0x19c46e[_0xc42a0a(0xe5)]());let _0x5d36d1;_0x5d36d1=_0x3ef095['is'](_0xc42a0a(0xcc),_0xc42a0a(0xa6))&&_0x3ef095[_0xc42a0a(0xd9)]?_0x5480f1:_0x5480f1[_0xc42a0a(0xc9)]?_0x2a1960[_0xc42a0a(0x9e)](_0x3ef095):_0x5480f1[_0xc42a0a(0xad)]?_0x2a1960[_0xc42a0a(0xac)](_0x3ef095):_0x4eb40e[_0xc42a0a(0xe8)](_0x5480f1)[_0xc42a0a(0x92)],this[_0xc42a0a(0x96)]=_0x4eb40e[_0xc42a0a(0xa5)](_0xc42a0a(0xd1)+_0x396340(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new _0x216ccc(_0x5d36d1)}),this[_0xc42a0a(0x96)]['on'](_0xc42a0a(0x90),()=>{const _0xe0a0=_0xc42a0a;_0xe0a0(0x8c)===this[_0xe0a0(0x96)][_0xe0a0(0xba)]()[_0xe0a0(0xd2)][_0xe0a0(0x84)]&&this[_0xe0a0(0xc3)][_0xe0a0(0xda)]();});}),this[_0x19b7ce(0x9d)]=!0x0,this[_0x19b7ce(0xb6)]();}[_0xd910db(0xa2)](){const _0x120978=_0xd910db,_0x3c6ce0=this[_0x120978(0x8a)][_0x120978(0xde)];_0x3c6ce0[_0x120978(0xd3)][_0x120978(0xb4)](this[_0x120978(0x96)])&&_0x3c6ce0[_0x120978(0xa3)](this[_0x120978(0xe7)],_0x466179=>{const _0x1d137c=_0x120978;_0x466179[_0x1d137c(0xc5)](this[_0x1d137c(0x96)]);}),this[_0x120978(0x96)]=null,this[_0x120978(0xe7)]=null,this[_0x120978(0xc3)]=null,this[_0x120978(0x9d)]=!0x1,this[_0x120978(0xb6)]();}[_0xd910db(0xb3)]({url:_0x3019eb,file:_0x240100,serviceConfig:_0x1ef9b4}){const _0x25eea4=_0xd910db,_0x59cee1=this[_0x25eea4(0x8a)][_0x25eea4(0xcf)][_0x25eea4(0xa8)](_0x25eea4(0xdb))[_0x25eea4(0xdf)](),_0x5e2cf6=new FormData();_0x5e2cf6[_0x25eea4(0xbc)](_0x25eea4(0x89),JSON[_0x25eea4(0xbb)](_0x1ef9b4)),_0x5e2cf6[_0x25eea4(0xbc)](_0x25eea4(0xb0),_0x240100);const _0x11fa21={'method':_0x25eea4(0xe4),'headers':{},'body':_0x5e2cf6,'signal':this[_0x25eea4(0xc3)][_0x25eea4(0xe9)]};return _0x59cee1&&(_0x11fa21[_0x25eea4(0xd8)][_0x25eea4(0xc0)]=_0x59cee1[_0x25eea4(0xa0)]),fetch(_0x3019eb,_0x11fa21);}[_0xd910db(0xce)](_0x369767){const _0x10f223=_0xd910db;return _0x369767['ok']?_0x369767[_0x10f223(0xb9)]()[_0x10f223(0xbe)](_0x3a8e54=>{const _0x5533c4=_0x10f223;if(!this[_0x5533c4(0x8a)][_0x5533c4(0xde)][_0x5533c4(0xd3)][_0x5533c4(0xb4)](this[_0x5533c4(0x96)]))return;_0x5533c4(0x8c)!==this[_0x5533c4(0x96)][_0x5533c4(0xba)]()[_0x5533c4(0xd2)][_0x5533c4(0x84)]&&this[_0x5533c4(0xa4)](_0x5533c4(0x8e),_0x3a8e54);}):Promise[_0x10f223(0xaf)]();}[_0xd910db(0xae)](){const _0x4621c4=_0xd910db;if(this[_0x4621c4(0xc3)][_0x4621c4(0xe9)][_0x4621c4(0x97)])return void _0x329345(_0x4621c4(0xdd));const _0x1e56f6=this[_0x4621c4(0x8a)],_0x41d248=_0x364848(_0x1e56f6[_0x4621c4(0xb8)],_0x4621c4(0xa9));_0x1e56f6[_0x4621c4(0xcf)][_0x4621c4(0xa8)](_0x4621c4(0xe6))[_0x4621c4(0x93)](_0x41d248),_0x173ff3(_0x4621c4(0x88));}}
|
|
@@ -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 _0x4113f5=_0x7b16;function _0x16cd(){const _0x20a6b7=['pluginName','34rXZMtA','init','getToken','config','token','registerTokenUrl','isOfficialPlugin','1085457vrCsLN','commands','requires','isPremiumPlugin','tokenUrl','plugins','cloudServices','editor','2144310pVmyaM','4008KnwRfK','CloudServices','1566522qngVHD','13076DaHIaa','importWord','define','none','ImportWordEditing','721870RfezSU','get','https://docx-converter.cke-cs.com/v2/convert/docx-html','_token','4675652PtXnOR','inline','16446IuVRXo','add'];_0x16cd=function(){return _0x20a6b7;};return _0x16cd();}(function(_0x131c47,_0x2f653d){const _0x5b1097=_0x7b16,_0x29c1a6=_0x131c47();while(!![]){try{const _0x3000e4=parseInt(_0x5b1097(0xd2))/0x1+-parseInt(_0x5b1097(0xcb))/0x2*(parseInt(_0x5b1097(0xc8))/0x3)+-parseInt(_0x5b1097(0xc6))/0x4+-parseInt(_0x5b1097(0xc2))/0x5+parseInt(_0x5b1097(0xda))/0x6+parseInt(_0x5b1097(0xbd))/0x7*(parseInt(_0x5b1097(0xdb))/0x8)+-parseInt(_0x5b1097(0xbc))/0x9;if(_0x3000e4===_0x2f653d)break;else _0x29c1a6['push'](_0x29c1a6['shift']());}catch(_0x350fa4){_0x29c1a6['push'](_0x29c1a6['shift']());}}}(_0x16cd,0xc2ddb));function _0x7b16(_0x5f057e,_0x3959d7){const _0x16cd59=_0x16cd();return _0x7b16=function(_0x7b168b,_0x33a953){_0x7b168b=_0x7b168b-0xbb;let _0x185c13=_0x16cd59[_0x7b168b];return _0x185c13;},_0x7b16(_0x5f057e,_0x3959d7);}import{Plugin as _0xc21160}from'ckeditor5/src/core.js';import{Notification as _0x11c396}from'ckeditor5/src/ui.js';import{ClipboardPipeline as _0x221f2a}from'ckeditor5/src/clipboard.js';import _0x2d50c6 from'./importwordcommand.js';export default class e extends _0xc21160{static get[_0x4113f5(0xca)](){const _0x1894a4=_0x4113f5;return _0x1894a4(0xc1);}static get[_0x4113f5(0xd1)](){return!0x0;}static get[_0x4113f5(0xd5)](){return!0x0;}static get[_0x4113f5(0xd4)](){const _0x14369e=_0x4113f5;return[_0x11c396,_0x221f2a,_0x14369e(0xbb)];}constructor(_0x493a9e){const _0x3973b0=_0x4113f5;super(_0x493a9e),this[_0x3973b0(0xc5)]=null;}async[_0x4113f5(0xcc)](){const _0x374348=_0x4113f5,_0x1c268c=this[_0x374348(0xd9)];_0x1c268c[_0x374348(0xce)][_0x374348(0xbf)](_0x374348(0xbe),{'converterUrl':_0x374348(0xc4),'tokenUrl':(_0x1c268c[_0x374348(0xce)][_0x374348(0xc3)](_0x374348(0xd8))||{})[_0x374348(0xd6)],'formatting':{'resets':_0x374348(0xc0),'defaults':_0x374348(0xc0),'styles':_0x374348(0xc7)}}),_0x1c268c[_0x374348(0xd3)][_0x374348(0xc9)](_0x374348(0xbe),new _0x2d50c6(_0x1c268c));const {tokenUrl:_0x401f90}=_0x1c268c[_0x374348(0xce)][_0x374348(0xc3)](_0x374348(0xbe));if(_0x401f90){const {tokenUrl:_0x37eb90}=_0x1c268c[_0x374348(0xce)][_0x374348(0xc3)](_0x374348(0xd8))||{};this[_0x374348(0xc5)]=_0x401f90===_0x37eb90?_0x1c268c[_0x374348(0xd7)][_0x374348(0xc3)](_0x374348(0xbb))[_0x374348(0xcf)]:await _0x1c268c[_0x374348(0xd7)][_0x374348(0xc3)](_0x374348(0xbb))[_0x374348(0xd0)](_0x401f90);}}[_0x4113f5(0xcd)](){const _0x343217=_0x4113f5;return this[_0x343217(0xc5)];}}
|
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
|
-
|
|
23
|
+
function _0xff4f(){const _0x29c27b=['set','5606112bNrkhk','importWord','focus','160KfBAMW','done','8GrFEuH','bind','add','editing','commands','29508txGAsh','isPremiumPlugin','editor','view','isOn','31385GpRlIL','menuBar:importWord','39oqvsJU','ImportWordUI','label','application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template','iconView','init','tooltip','isVisible','children','7810476qEkXBM','Importing\x20Word\x20document','Import\x20from\x20Word','get','pluginName','_createButton','7060jwgofr','18623VTeYKL','isEnabled','18vlAqTQ','isBusy','execute','componentFactory','9291107KKaZRO','isOfficialPlugin','78BaFscF','217244YKEPuo','locale'];_0xff4f=function(){return _0x29c27b;};return _0xff4f();}const _0x216106=_0x5788;(function(_0x3f58e3,_0x290b5a){const _0x47de0d=_0x5788,_0x154c6b=_0x3f58e3();while(!![]){try{const _0x24e28c=-parseInt(_0x47de0d(0x1ec))/0x1*(parseInt(_0x47de0d(0x1e4))/0x2)+-parseInt(_0x47de0d(0x1f1))/0x3*(parseInt(_0x47de0d(0x1ea))/0x4)+-parseInt(_0x47de0d(0x1f6))/0x5*(-parseInt(_0x47de0d(0x1e3))/0x6)+parseInt(_0x47de0d(0x1e1))/0x7+parseInt(_0x47de0d(0x1e7))/0x8*(parseInt(_0x47de0d(0x20a))/0x9)+parseInt(_0x47de0d(0x207))/0xa*(parseInt(_0x47de0d(0x208))/0xb)+parseInt(_0x47de0d(0x201))/0xc*(-parseInt(_0x47de0d(0x1f8))/0xd);if(_0x24e28c===_0x290b5a)break;else _0x154c6b['push'](_0x154c6b['shift']());}catch(_0x373972){_0x154c6b['push'](_0x154c6b['shift']());}}}(_0xff4f,0xc107d));import{Plugin as _0xf3a0e}from'ckeditor5/src/core.js';function _0x5788(_0x2fdf28,_0x33b906){const _0xff4ff8=_0xff4f();return _0x5788=function(_0x578841,_0xaf7da7){_0x578841=_0x578841-0x1e1;let _0x998843=_0xff4ff8[_0x578841];return _0x998843;},_0x5788(_0x2fdf28,_0x33b906);}import{MenuBarMenuListItemFileDialogButtonView as _0x418193,SpinnerView as _0x5d2012,FileDialogButtonView as _0x12457b}from'ckeditor5/src/ui.js';import _0x28e34c from'../theme/icons/importword.svg';import{getTranslation as _0x13b72e}from'./utils/common-translations.js';export default class i extends _0xf3a0e{static get[_0x216106(0x205)](){const _0x551e6a=_0x216106;return _0x551e6a(0x1f9);}static get[_0x216106(0x1e2)](){return!0x0;}static get[_0x216106(0x1f2)](){return!0x0;}[_0x216106(0x1fd)](){const _0x1f2904=_0x216106,_0x44b70d=this[_0x1f2904(0x1f3)];_0x44b70d['ui'][_0x1f2904(0x20d)][_0x1f2904(0x1ee)](_0x1f2904(0x1e8),()=>{const _0x2320ad=_0x1f2904,_0x131a1f=this[_0x2320ad(0x206)](_0x12457b),_0xe4f0ff=_0x44b70d[_0x2320ad(0x1f0)][_0x2320ad(0x204)](_0x2320ad(0x1e8));return _0x131a1f[_0x2320ad(0x1ed)](_0x2320ad(0x1f5))['to'](_0xe4f0ff,_0x2320ad(0x20b)),_0x131a1f[_0x2320ad(0x1fe)]=!0x0,_0x131a1f;}),_0x44b70d['ui'][_0x1f2904(0x20d)][_0x1f2904(0x1ee)](_0x1f2904(0x1f7),()=>this[_0x1f2904(0x206)](_0x418193));}[_0x216106(0x206)](_0x3ecc39){const _0x5ed541=_0x216106,_0x635c6f=this[_0x5ed541(0x1f3)],_0x2ac328=_0x635c6f[_0x5ed541(0x1f0)][_0x5ed541(0x204)](_0x5ed541(0x1e8)),_0x5c8a06=new _0x3ecc39(_0x635c6f[_0x5ed541(0x1e5)]),_0x16a761=new _0x5d2012();return _0x5c8a06[_0x5ed541(0x1e6)]({'acceptedType':_0x5ed541(0x1fb)}),_0x5c8a06[_0x5ed541(0x1e6)]({'icon':_0x28e34c}),_0x5c8a06[_0x5ed541(0x1ed)](_0x5ed541(0x209))['to'](_0x2ac328),_0x5c8a06[_0x5ed541(0x1ed)](_0x5ed541(0x1fa))['to'](_0x2ac328,_0x5ed541(0x20b),_0x53ef88=>_0x13b72e(_0x635c6f[_0x5ed541(0x1e5)],_0x53ef88?_0x5ed541(0x202):_0x5ed541(0x203))),_0x16a761[_0x5ed541(0x1ed)](_0x5ed541(0x1ff))['to'](_0x2ac328,_0x5ed541(0x20b)),_0x5c8a06[_0x5ed541(0x1fc)][_0x5ed541(0x1ed)](_0x5ed541(0x1ff))['to'](_0x2ac328,_0x5ed541(0x20b),_0x574c67=>!_0x574c67),_0x5c8a06[_0x5ed541(0x200)][_0x5ed541(0x1ee)](_0x16a761),_0x5c8a06['on'](_0x5ed541(0x1eb),(_0x86adb9,_0x43c865)=>{const _0x365e0e=_0x5ed541;_0x635c6f[_0x365e0e(0x20c)](_0x365e0e(0x1e8),_0x43c865[0x0],{}),_0x635c6f[_0x365e0e(0x1ef)][_0x365e0e(0x1f4)][_0x365e0e(0x1e9)]();}),_0x5c8a06;}}
|
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
|
-
|
|
23
|
+
(function(_0x309f6a,_0x26f9eb){var _0x1c0d23=_0xa38f,_0x48d618=_0x309f6a();while(!![]){try{var _0x3ce404=parseInt(_0x1c0d23(0x19b))/0x1*(parseInt(_0x1c0d23(0x197))/0x2)+parseInt(_0x1c0d23(0x199))/0x3+parseInt(_0x1c0d23(0x193))/0x4+parseInt(_0x1c0d23(0x198))/0x5+-parseInt(_0x1c0d23(0x194))/0x6+-parseInt(_0x1c0d23(0x19c))/0x7*(-parseInt(_0x1c0d23(0x19a))/0x8)+parseInt(_0x1c0d23(0x195))/0x9*(-parseInt(_0x1c0d23(0x196))/0xa);if(_0x3ce404===_0x26f9eb)break;else _0x48d618['push'](_0x48d618['shift']());}catch(_0xad3c34){_0x48d618['push'](_0x48d618['shift']());}}}(_0xfe8b,0x96f9c));export{default as ImportWord}from'./importword.js';export{default as ImportWordEditing}from'./importwordediting.js';function _0xa38f(_0x513add,_0x29211b){var _0xfe8bb9=_0xfe8b();return _0xa38f=function(_0xa38f79,_0x2dbbc6){_0xa38f79=_0xa38f79-0x193;var _0x3723ad=_0xfe8bb9[_0xa38f79];return _0x3723ad;},_0xa38f(_0x513add,_0x29211b);}export{default as ImportWordUI}from'./importwordui.js';import'./augmentation.js';function _0xfe8b(){var _0x189a47=['3549612AloKAN','8ztNBMh','1187HnvoKj','7819798kStEVu','1300976FJcrEL','2074878QFyEJF','3067731ddfssI','70oFNZoK','32BztRdF','3528340oUUFVA'];_0xfe8b=function(){return _0x189a47;};return _0xfe8b();}
|
|
@@ -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(_0x4baf6a,_0x1a3830){const t=_0x4baf6a['t'];switch(_0x1a3830){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 _0x1a3830;}}
|
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
|
-
}
|
|
@@ -1,58 +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/importwordcommand
|
|
11
|
-
* @publicApi
|
|
12
|
-
*/
|
|
13
|
-
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
14
|
-
/**
|
|
15
|
-
* The import from Word command.
|
|
16
|
-
*
|
|
17
|
-
* It sends the Word file to the converter endpoint and inserts its content into the editor.
|
|
18
|
-
*/
|
|
19
|
-
export default class ImportWordCommand extends Command {
|
|
20
|
-
/**
|
|
21
|
-
* A command state that indicates if the command is currently executing.
|
|
22
|
-
*
|
|
23
|
-
* @observable
|
|
24
|
-
*/
|
|
25
|
-
isBusy: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* @inheritDoc
|
|
28
|
-
*/
|
|
29
|
-
constructor(editor: Editor);
|
|
30
|
-
/**
|
|
31
|
-
* @inheritDoc
|
|
32
|
-
*/
|
|
33
|
-
refresh(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Executes the command. Sends the provided file instance to the converter service endpoint and inserts the result into the model.
|
|
36
|
-
*
|
|
37
|
-
* @fires execute
|
|
38
|
-
* @param file The Word file instance to be uploaded for conversion.
|
|
39
|
-
* @param [serviceConfig] Additional options to pass to the converter service.
|
|
40
|
-
*/
|
|
41
|
-
execute(file: File, serviceConfig?: Record<string, unknown>): Promise<unknown>;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Fired when the converter service returned the HTML content that will be inserted into the editor.
|
|
45
|
-
*
|
|
46
|
-
* @eventName ~ImportWordCommand#dataInsert
|
|
47
|
-
*/
|
|
48
|
-
export type DataInsertEvent = {
|
|
49
|
-
name: 'dataInsert';
|
|
50
|
-
args: [data: DataInsertEventData];
|
|
51
|
-
};
|
|
52
|
-
interface DataInsertEventData {
|
|
53
|
-
/**
|
|
54
|
-
* The HTML content to insertion.
|
|
55
|
-
*/
|
|
56
|
-
html: string;
|
|
57
|
-
}
|
|
58
|
-
export {};
|