@ckeditor/ckeditor5-import-word 0.0.0-nightly-next-20260112.0 → 0.0.0-nightly-20260113.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/build/import-word.js +5 -0
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/be.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/gu.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/hy.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/kk.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/oc.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +29 -19
- package/{dist → src}/augmentation.d.ts +0 -4
- package/src/augmentation.js +23 -0
- package/{dist → src}/importword.d.ts +1 -5
- package/src/importword.js +23 -0
- package/src/importwordcommand.d.ts +99 -0
- package/src/importwordcommand.js +23 -0
- package/{dist → src}/importwordediting.d.ts +3 -7
- package/src/importwordediting.js +23 -0
- package/{dist → src}/importwordui.d.ts +1 -5
- package/src/importwordui.js +23 -0
- package/{dist → src}/index.d.ts +1 -5
- package/src/index.js +23 -0
- package/{dist → src}/utils/common-translations.d.ts +1 -5
- package/src/utils/common-translations.js +23 -0
- package/dist/importwordcommand.d.ts +0 -57
package/dist/translations/uz.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'uz':{'dictionary':{'Import\x20from\x20Word':'','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'','Importing\x20Word\x20document':''},'getPluralForm':
|
|
23
|
+
export default{'uz':{'dictionary':{'Import\x20from\x20Word':'','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'','Importing\x20Word\x20document':''},'getPluralForm':_0x527c56=>_0x527c56>0x1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x54c243=>{const {uz:{dictionary:_0x6de815,getPluralForm:_0x496cd1}}={'uz':{'dictionary':{'Import\x20from\x20Word':'','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'','Importing\x20Word\x20document':''},'getPluralForm':_0x458b52=>_0x458b52>0x1}};_0x54c243['uz']||={'dictionary':{},'getPluralForm':null},_0x54c243['uz']['dictionary']=Object['assign'](_0x54c243['uz']['dictionary'],_0x6de815),_0x54c243['uz']['getPluralForm']=_0x496cd1;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/vi.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'vi':{'dictionary':{'Import\x20from\x20Word':'Nhập\x20từ\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20nhập\x20tệp\x20Word.','Importing\x20Word\x20document':'Đang\x20nhập\x20tài\x20liệu\x20Word'},'getPluralForm':
|
|
23
|
+
export default{'vi':{'dictionary':{'Import\x20from\x20Word':'Nhập\x20từ\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20nhập\x20tệp\x20Word.','Importing\x20Word\x20document':'Đang\x20nhập\x20tài\x20liệu\x20Word'},'getPluralForm':_0x356caf=>0x0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3a6535=>{const {vi:{dictionary:_0x5c32ce,getPluralForm:_0x5b3830}}={'vi':{'dictionary':{'Import\x20from\x20Word':'Nhập\x20từ\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20nhập\x20tệp\x20Word.','Importing\x20Word\x20document':'Đang\x20nhập\x20tài\x20liệu\x20Word'},'getPluralForm':_0x39df1f=>0x0}};_0x3a6535['vi']||={'dictionary':{},'getPluralForm':null},_0x3a6535['vi']['dictionary']=Object['assign'](_0x3a6535['vi']['dictionary'],_0x5c32ce),_0x3a6535['vi']['getPluralForm']=_0x5b3830;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'zh-cn':{'dictionary':{'Import\x20from\x20Word':'从\x20Word\x20导入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'导入\x20Word\x20文件时出错了。','Importing\x20Word\x20document':'正在导入\x20Word\x20文档'},'getPluralForm':
|
|
23
|
+
export default{'zh-cn':{'dictionary':{'Import\x20from\x20Word':'从\x20Word\x20导入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'导入\x20Word\x20文件时出错了。','Importing\x20Word\x20document':'正在导入\x20Word\x20文档'},'getPluralForm':_0x50ecc9=>0x0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x331768=>{const {'zh-cn':{dictionary:_0x1fb668,getPluralForm:_0x1f6144}}={'zh-cn':{'dictionary':{'Import\x20from\x20Word':'从\x20Word\x20导入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'导入\x20Word\x20文件时出错了。','Importing\x20Word\x20document':'正在导入\x20Word\x20文档'},'getPluralForm':_0xc66f48=>0x0}};_0x331768['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x331768['zh-cn']['dictionary']=Object['assign'](_0x331768['zh-cn']['dictionary'],_0x1fb668),_0x331768['zh-cn']['getPluralForm']=_0x1f6144;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/zh.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'zh':{'dictionary':{'Import\x20from\x20Word':'從\x20Word\x20匯入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'匯入\x20Word\x20檔時發生錯誤。','Importing\x20Word\x20document':'匯入\x20Word\x20文件'},'getPluralForm':
|
|
23
|
+
export default{'zh':{'dictionary':{'Import\x20from\x20Word':'從\x20Word\x20匯入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'匯入\x20Word\x20檔時發生錯誤。','Importing\x20Word\x20document':'匯入\x20Word\x20文件'},'getPluralForm':_0x5e0589=>0x0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1cbec2=>{const {zh:{dictionary:_0x39fb0b,getPluralForm:_0x2e1fa8}}={'zh':{'dictionary':{'Import\x20from\x20Word':'從\x20Word\x20匯入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'匯入\x20Word\x20檔時發生錯誤。','Importing\x20Word\x20document':'匯入\x20Word\x20文件'},'getPluralForm':_0x1dacf8=>0x0}};_0x1cbec2['zh']||={'dictionary':{},'getPluralForm':null},_0x1cbec2['zh']['dictionary']=Object['assign'](_0x1cbec2['zh']['dictionary'],_0x39fb0b),_0x1cbec2['zh']['getPluralForm']=_0x2e1fa8;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/package.json
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-import-word",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20260113.0",
|
|
4
4
|
"description": "Import from Word feature for CKEditor 5.",
|
|
5
|
-
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
|
-
"author": "CKSource (https://cksource.com/)",
|
|
7
|
-
"homepage": "https://ckeditor.com/ckeditor-5",
|
|
8
|
-
"bugs": "https://support.ckeditor.com/hc/en-us/requests/new",
|
|
9
5
|
"keywords": [
|
|
10
6
|
"ckeditor",
|
|
11
7
|
"ckeditor5",
|
|
@@ -32,35 +28,49 @@
|
|
|
32
28
|
"Word to HTML"
|
|
33
29
|
],
|
|
34
30
|
"type": "module",
|
|
35
|
-
"main": "
|
|
31
|
+
"main": "src/index.js",
|
|
36
32
|
"dependencies": {
|
|
37
|
-
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-
|
|
38
|
-
"@ckeditor/ckeditor5-cloud-services": "0.0.0-nightly-
|
|
39
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
40
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
|
41
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
42
|
-
"@ckeditor/ckeditor5-merge-fields": "0.0.0-nightly-
|
|
43
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
44
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20260113.0",
|
|
34
|
+
"@ckeditor/ckeditor5-cloud-services": "0.0.0-nightly-20260113.0",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20260113.0",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20260113.0",
|
|
37
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20260113.0",
|
|
38
|
+
"@ckeditor/ckeditor5-merge-fields": "0.0.0-nightly-20260113.0",
|
|
39
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20260113.0",
|
|
40
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20260113.0",
|
|
41
|
+
"ckeditor5": "0.0.0-nightly-20260113.0"
|
|
45
42
|
},
|
|
43
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
44
|
+
"author": "CKSource (https://cksource.com/)",
|
|
45
|
+
"homepage": "https://ckeditor.com/ckeditor-5",
|
|
46
|
+
"bugs": "https://support.ckeditor.com/hc/en-us/requests/new",
|
|
46
47
|
"files": [
|
|
47
48
|
"dist",
|
|
48
49
|
"lang",
|
|
50
|
+
"src/**/*.js",
|
|
51
|
+
"src/**/*.d.ts",
|
|
52
|
+
"build",
|
|
49
53
|
"ckeditor5-metadata.json",
|
|
50
54
|
"CHANGELOG.md"
|
|
51
55
|
],
|
|
52
|
-
"types": "
|
|
56
|
+
"types": "src/index.d.ts",
|
|
53
57
|
"exports": {
|
|
54
58
|
".": {
|
|
55
|
-
"types": "./
|
|
56
|
-
"import": "./
|
|
57
|
-
"default": "./
|
|
59
|
+
"types": "./src/index.d.ts",
|
|
60
|
+
"import": "./src/index.js",
|
|
61
|
+
"default": "./src/index.js"
|
|
58
62
|
},
|
|
59
63
|
"./dist/*": {
|
|
60
|
-
"types": "./
|
|
64
|
+
"types": "./src/index.d.ts",
|
|
61
65
|
"import": "./dist/*",
|
|
62
66
|
"default": "./dist/*"
|
|
63
67
|
},
|
|
68
|
+
"./src/*": {
|
|
69
|
+
"types": "./src/*.d.ts",
|
|
70
|
+
"import": "./src/*",
|
|
71
|
+
"default": "./src/*"
|
|
72
|
+
},
|
|
73
|
+
"./build/*": "./build/*",
|
|
64
74
|
"./lang/*": "./lang/*",
|
|
65
75
|
"./ckeditor5-metadata.json": "./ckeditor5-metadata.json",
|
|
66
76
|
"./package.json": "./package.json"
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export{};
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -10,7 +6,7 @@
|
|
|
10
6
|
* @module import-word/importword
|
|
11
7
|
* @publicApi
|
|
12
8
|
*/
|
|
13
|
-
import { Plugin } from '
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
14
10
|
import type { TokenUrl } from '@ckeditor/ckeditor5-cloud-services';
|
|
15
11
|
import { ImportWordUI } from './importwordui.js';
|
|
16
12
|
import { ImportWordEditing } from './importwordediting.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x2ee9(){var _0x5a5735=['6751701lokupv','114340lXXcOa','3726192jGvHXI','104ZeELnm','ImportWord','221487DQkyTJ','1952724jYKhMK','184RnqBqt','40SZDqbL','2YogcIS','pluginName','isOfficialPlugin','1954593IewMih','721819OGRkFZ','requires','12IGdimB','isPremiumPlugin'];_0x2ee9=function(){return _0x5a5735;};return _0x2ee9();}var _0xdc88df=_0x3089;(function(_0xcfe07c,_0x5513d3){var _0x1fd245=_0x3089,_0xc4f6e8=_0xcfe07c();while(!![]){try{var _0x5bd269=parseInt(_0x1fd245(0xc9))/0x1+parseInt(_0x1fd245(0xc5))/0x2*(parseInt(_0x1fd245(0xc2))/0x3)+parseInt(_0x1fd245(0xd0))/0x4*(-parseInt(_0x1fd245(0xce))/0x5)+-parseInt(_0x1fd245(0xcf))/0x6+-parseInt(_0x1fd245(0xc1))/0x7*(parseInt(_0x1fd245(0xc3))/0x8)+parseInt(_0x1fd245(0xc8))/0x9*(parseInt(_0x1fd245(0xc4))/0xa)+parseInt(_0x1fd245(0xcd))/0xb*(parseInt(_0x1fd245(0xcb))/0xc);if(_0x5bd269===_0x5513d3)break;else _0xc4f6e8['push'](_0xc4f6e8['shift']());}catch(_0x33e2ad){_0xc4f6e8['push'](_0xc4f6e8['shift']());}}}(_0x2ee9,0xdea0b));import{Plugin as _0x1cad8e}from'ckeditor5/src/core.js';function _0x3089(_0x59ce81,_0x240ffc){var _0x2ee92d=_0x2ee9();return _0x3089=function(_0x308987,_0x2b3869){_0x308987=_0x308987-0xc1;var _0x8067d2=_0x2ee92d[_0x308987];return _0x8067d2;},_0x3089(_0x59ce81,_0x240ffc);}import{ImportWordUI as _0x4e8430}from'./importwordui.js';import{ImportWordEditing as _0x567235}from'./importwordediting.js';export class ImportWord extends _0x1cad8e{static get[_0xdc88df(0xc6)](){var _0xd6d249=_0xdc88df;return _0xd6d249(0xd1);}static get[_0xdc88df(0xc7)](){return!0x0;}static get[_0xdc88df(0xcc)](){return!0x0;}static get[_0xdc88df(0xca)](){return[_0x567235,_0x4e8430];}}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module import-word/importwordcommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { type Batch } from 'ckeditor5/src/engine.js';
|
|
11
|
+
/**
|
|
12
|
+
* The import from Word command.
|
|
13
|
+
*
|
|
14
|
+
* It sends the Word file to the converter endpoint and inserts its content into the editor.
|
|
15
|
+
*/
|
|
16
|
+
export declare class ImportWordCommand extends Command {
|
|
17
|
+
/**
|
|
18
|
+
* A command state that indicates if the command is currently executing.
|
|
19
|
+
*
|
|
20
|
+
* @observable
|
|
21
|
+
*/
|
|
22
|
+
isBusy: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
constructor(editor: Editor);
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
refresh(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Executes the command. Sends the provided file instance to the converter service endpoint and inserts the result into the model.
|
|
33
|
+
*
|
|
34
|
+
* @fires execute
|
|
35
|
+
* @param file The Word file instance to be uploaded for conversion.
|
|
36
|
+
* @param [serviceConfig] Additional options to pass to the converter service.
|
|
37
|
+
*/
|
|
38
|
+
execute(file: File, serviceConfig?: Record<string, unknown>): Promise<unknown>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Fired when the converter service returned the HTML content that will be inserted into the editor.
|
|
42
|
+
*
|
|
43
|
+
* @eventName ~ImportWordCommand#dataInsert
|
|
44
|
+
*/
|
|
45
|
+
export type ImportWordDataInsertEvent = {
|
|
46
|
+
name: 'dataInsert';
|
|
47
|
+
args: [data: ImportWordDataInsertEventData];
|
|
48
|
+
};
|
|
49
|
+
export interface ImportWordDataInsertEventData {
|
|
50
|
+
/**
|
|
51
|
+
* The batch used to undo all changes made by the command. Each time the command is executed, a new batch is created.
|
|
52
|
+
* Use it when some additional changes should be added to the document as part of the same undo step.
|
|
53
|
+
*/
|
|
54
|
+
readonly undoStepBatch: Batch;
|
|
55
|
+
/**
|
|
56
|
+
* The HTML content to insertion.
|
|
57
|
+
*/
|
|
58
|
+
html: string;
|
|
59
|
+
/**
|
|
60
|
+
* The headers definitions extracted from the Word document.
|
|
61
|
+
* Contains HTML content for different types of headers (default, first page, odd/even pages).
|
|
62
|
+
*/
|
|
63
|
+
headers?: ImportWordDataHeaderFooterDefinitions;
|
|
64
|
+
/**
|
|
65
|
+
* The footers definitions extracted from the Word document.
|
|
66
|
+
* Contains HTML content for different types of footers (default, first page, odd/even pages).
|
|
67
|
+
*/
|
|
68
|
+
footers?: ImportWordDataHeaderFooterDefinitions;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Represents a collection of header or footer definitions corresponding to different page types.
|
|
72
|
+
*/
|
|
73
|
+
export interface ImportWordDataHeaderFooterDefinitions {
|
|
74
|
+
/**
|
|
75
|
+
* Content for the default header/footer. Used for all pages unless specific overrides (first/odd/even) apply.
|
|
76
|
+
*/
|
|
77
|
+
default?: ImportWordDataHeaderFooterContent;
|
|
78
|
+
/**
|
|
79
|
+
* Content for the first page header/footer.
|
|
80
|
+
*/
|
|
81
|
+
first?: ImportWordDataHeaderFooterContent;
|
|
82
|
+
/**
|
|
83
|
+
* Content for the odd pages header/footer.
|
|
84
|
+
*/
|
|
85
|
+
odd?: ImportWordDataHeaderFooterContent;
|
|
86
|
+
/**
|
|
87
|
+
* Content for the even pages header/footer.
|
|
88
|
+
*/
|
|
89
|
+
even?: ImportWordDataHeaderFooterContent;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Represents the content of a single header or footer variant.
|
|
93
|
+
*/
|
|
94
|
+
export interface ImportWordDataHeaderFooterContent {
|
|
95
|
+
/**
|
|
96
|
+
* The HTML content of the header or footer.
|
|
97
|
+
*/
|
|
98
|
+
html: string;
|
|
99
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x43afe5=_0x1294;(function(_0x380026,_0x571518){const _0x4d1005=_0x1294,_0x178914=_0x380026();while(!![]){try{const _0x4df8bb=parseInt(_0x4d1005(0x14b))/0x1*(-parseInt(_0x4d1005(0x181))/0x2)+parseInt(_0x4d1005(0x160))/0x3+-parseInt(_0x4d1005(0x15c))/0x4+-parseInt(_0x4d1005(0x158))/0x5*(parseInt(_0x4d1005(0x128))/0x6)+parseInt(_0x4d1005(0x129))/0x7*(parseInt(_0x4d1005(0x131))/0x8)+parseInt(_0x4d1005(0x135))/0x9*(parseInt(_0x4d1005(0x17c))/0xa)+parseInt(_0x4d1005(0x159))/0xb;if(_0x4df8bb===_0x571518)break;else _0x178914['push'](_0x178914['shift']());}catch(_0x12bc63){_0x178914['push'](_0x178914['shift']());}}}(_0x307d,0x8796b));function _0x1294(_0x138d02,_0x3e419e){const _0x307d82=_0x307d();return _0x1294=function(_0x12945b,_0x5baa0f){_0x12945b=_0x12945b-0x11a;let _0x463f15=_0x307d82[_0x12945b];return _0x463f15;},_0x1294(_0x138d02,_0x3e419e);}function _0x307d(){const _0x1691f5=['2540572ktqUZM','getRange','locale','_checkEnabled','951198apovJA','_sendImportRequest','isCollapsed','element','getSelectedBlocks','import-word-plugin-conversion-failed','change:range','removeMarker','dataInsert','clipboardInput','refresh','root','html','_handleImportResponse','converterUrl','isAtStart','fire','text/html','editor','get','rootName','timeZone','mergeFields','POST','_abortController','parent','file','isEnabled','1140KvmSRb','json','catch','Authorization','editing','292oXbaWK','DateTimeFormat','_undoStepBatch','_cleanUpAfterImport','deleteContent','split','markers','bind','getFirstPosition','reject','importWord','resolvedOptions','value','signal','aborted','1133574ZvmcWF','1530781mLqeLR','import-word-plugin-import-cancelled','_prepareForImport','ImportWordEditing','MergeFields','setData','enqueueChange','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.','24jJWUyX','plugins','position','document','62442gkDcfd','formatting','paragraph','selection','resolve','has','showWarning','headers','low','_handleImportFailure','isAtEnd','setSelection','$graveyard','abort','Notification','config','then','importWord:','createPositionAfter','stringify','_importMarker','model','7563hLDCvI','createBatch','isBusy','stopListening','schema','addMarker','checkChild','isEmpty','getToken','merge_fields','finally','execute','createPositionBefore','10DaHRLg','9993753gWkHoH','view','set'];_0x307d=function(){return _0x1691f5;};return _0x307d();}import{Command as _0x238537}from'ckeditor5/src/core.js';import{ModelRange as _0x3048b1}from'ckeditor5/src/engine.js';import{logWarning as _0x2d0cce,logError as _0x3da026,first as _0x172d66,uid as _0x22db96}from'ckeditor5/src/utils.js';import{getTranslation as _0x217d63}from'./utils/common-translations.js';export class ImportWordCommand extends _0x238537{[_0x43afe5(0x149)];[_0x43afe5(0x11b)];[_0x43afe5(0x178)];constructor(_0x2742e0){const _0xb982ac=_0x43afe5;super(_0x2742e0),this[_0xb982ac(0x15b)](_0xb982ac(0x14d),!0x1),this[_0xb982ac(0x149)]=null,this[_0xb982ac(0x11b)]=null,this[_0xb982ac(0x178)]=null,this['on'](_0xb982ac(0x168),(_0x37c934,_0x255fb5)=>{const _0x45552f=_0xb982ac,_0x41fb5d=new DataTransfer();_0x41fb5d[_0x45552f(0x12e)](_0x45552f(0x171),_0x255fb5[_0x45552f(0x16c)]);const _0x119f57=this[_0x45552f(0x149)][_0x45552f(0x15d)]();this[_0x45552f(0x172)][_0x45552f(0x14a)][_0x45552f(0x12f)](this[_0x45552f(0x11b)],_0x11b033=>{const _0x889d39=_0x45552f;this[_0x889d39(0x149)][_0x889d39(0x14e)](),_0x11b033[_0x889d39(0x140)](_0x119f57),_0x2742e0[_0x889d39(0x180)][_0x889d39(0x15a)][_0x889d39(0x134)][_0x889d39(0x170)](_0x889d39(0x169),{'dataTransfer':_0x41fb5d});});},{'priority':_0xb982ac(0x13d)});}[_0x43afe5(0x16a)](){const _0x3202b3=_0x43afe5;this[_0x3202b3(0x17b)]=this[_0x3202b3(0x15f)]();}[_0x43afe5(0x156)](_0x3f5c71,_0x3e8100={}){const _0x342111=_0x43afe5;if(this[_0x342111(0x14d)])return Promise[_0x342111(0x139)]();const _0x60e714=this[_0x342111(0x172)][_0x342111(0x144)][_0x342111(0x173)](_0x342111(0x123));if(this[_0x342111(0x172)][_0x342111(0x132)][_0x342111(0x13a)](_0x342111(0x12d))){const {prefix:_0x3d91a3,suffix:_0x4a9bbf}=this[_0x342111(0x172)][_0x342111(0x144)][_0x342111(0x173)](_0x342111(0x176));_0x3e8100[_0x342111(0x154)]={'prefix':_0x3d91a3,'suffix':_0x4a9bbf};}const _0x2672d7={'url':_0x60e714[_0x342111(0x16e)],'file':_0x3f5c71,'serviceConfig':{..._0x3e8100,'formatting':_0x60e714[_0x342111(0x136)],'timezone':new Intl[(_0x342111(0x11a))]()[_0x342111(0x124)]()[_0x342111(0x175)]}};return this[_0x342111(0x12b)](),this[_0x342111(0x161)](_0x2672d7)[_0x342111(0x145)](this[_0x342111(0x16d)][_0x342111(0x120)](this))[_0x342111(0x17e)](this[_0x342111(0x13e)][_0x342111(0x120)](this))[_0x342111(0x155)](this[_0x342111(0x11c)][_0x342111(0x120)](this));}[_0x43afe5(0x15f)](){const _0xbd95e1=_0x43afe5;if(this[_0xbd95e1(0x14d)])return!0x1;const _0x4d0f7b=this[_0xbd95e1(0x172)][_0xbd95e1(0x14a)],_0x5e1852=_0x4d0f7b[_0xbd95e1(0x14f)],_0x1567e9=_0x4d0f7b[_0xbd95e1(0x134)][_0xbd95e1(0x138)],_0x35a1cd=_0x172d66(_0x1567e9[_0xbd95e1(0x164)]());return!!_0x35a1cd&&_0x5e1852[_0xbd95e1(0x151)](_0x35a1cd[_0xbd95e1(0x179)],_0xbd95e1(0x137));}[_0x43afe5(0x12b)](){const _0x226581=_0x43afe5,_0x1206e1=this[_0x226581(0x172)],_0x3efcdd=_0x1206e1[_0x226581(0x14a)],_0x44a386=_0x3efcdd[_0x226581(0x134)][_0x226581(0x138)];this[_0x226581(0x178)]=new AbortController(),this[_0x226581(0x11b)]=_0x1206e1[_0x226581(0x14a)][_0x226581(0x14c)]({'isUndoable':!0x0}),_0x3efcdd[_0x226581(0x12f)](this[_0x226581(0x11b)],_0x53dcfb=>{const _0x1f22fc=_0x226581;_0x44a386[_0x1f22fc(0x162)]||_0x3efcdd[_0x1f22fc(0x11d)](_0x44a386,{'leaveUnmerged':!0x0});const _0x5edc70=_0x44a386[_0x1f22fc(0x121)](),_0x382843=_0x172d66(_0x44a386[_0x1f22fc(0x164)]());let _0x25790b;_0x25790b=_0x382843['is'](_0x1f22fc(0x163),_0x1f22fc(0x137))&&_0x382843[_0x1f22fc(0x152)]?_0x5edc70:_0x5edc70[_0x1f22fc(0x16f)]?_0x3efcdd[_0x1f22fc(0x157)](_0x382843):_0x5edc70[_0x1f22fc(0x13f)]?_0x3efcdd[_0x1f22fc(0x147)](_0x382843):_0x53dcfb[_0x1f22fc(0x11e)](_0x5edc70)[_0x1f22fc(0x133)],this[_0x1f22fc(0x149)]=_0x53dcfb[_0x1f22fc(0x150)](_0x1f22fc(0x146)+_0x22db96(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new _0x3048b1(_0x25790b)}),this[_0x1f22fc(0x149)]['on'](_0x1f22fc(0x166),()=>{const _0x467423=_0x1f22fc;_0x467423(0x141)===this[_0x467423(0x149)][_0x467423(0x15d)]()[_0x467423(0x16b)][_0x467423(0x174)]&&this[_0x467423(0x178)][_0x467423(0x142)]();});}),this[_0x226581(0x14d)]=!0x0,this[_0x226581(0x16a)]();}[_0x43afe5(0x11c)](){const _0x195129=_0x43afe5,_0x3abfef=this[_0x195129(0x172)][_0x195129(0x14a)];_0x3abfef[_0x195129(0x11f)][_0x195129(0x13a)](this[_0x195129(0x149)])&&_0x3abfef[_0x195129(0x12f)](this[_0x195129(0x11b)],_0x26b86a=>{const _0x7f2c23=_0x195129;_0x26b86a[_0x7f2c23(0x167)](this[_0x7f2c23(0x149)]);}),this[_0x195129(0x149)]=null,this[_0x195129(0x11b)]=null,this[_0x195129(0x178)]=null,this[_0x195129(0x14d)]=!0x1,this[_0x195129(0x16a)]();}[_0x43afe5(0x161)]({url:_0x16ecee,file:_0x249c88,serviceConfig:_0x4e6e09}){const _0x169ca0=_0x43afe5,_0x2a81a4=this[_0x169ca0(0x172)][_0x169ca0(0x132)][_0x169ca0(0x173)](_0x169ca0(0x12c))[_0x169ca0(0x153)](),_0x27785d=new FormData();_0x27785d[_0x169ca0(0x15b)](_0x169ca0(0x144),JSON[_0x169ca0(0x148)](_0x4e6e09)),_0x27785d[_0x169ca0(0x15b)](_0x169ca0(0x17a),_0x249c88);const _0x5618e0={'method':_0x169ca0(0x177),'headers':{},'body':_0x27785d,'signal':this[_0x169ca0(0x178)][_0x169ca0(0x126)]};return _0x2a81a4&&(_0x5618e0[_0x169ca0(0x13c)][_0x169ca0(0x17f)]=_0x2a81a4[_0x169ca0(0x125)]),fetch(_0x16ecee,_0x5618e0);}[_0x43afe5(0x16d)](_0x4cddee){const _0x551770=_0x43afe5;return _0x4cddee['ok']?_0x4cddee[_0x551770(0x17d)]()[_0x551770(0x145)](_0x55e571=>{const _0x5e44ea=_0x551770;if(!this[_0x5e44ea(0x172)][_0x5e44ea(0x14a)][_0x5e44ea(0x11f)][_0x5e44ea(0x13a)](this[_0x5e44ea(0x149)]))return;_0x5e44ea(0x141)!==this[_0x5e44ea(0x149)][_0x5e44ea(0x15d)]()[_0x5e44ea(0x16b)][_0x5e44ea(0x174)]&&this[_0x5e44ea(0x170)](_0x5e44ea(0x168),{..._0x55e571,'undoStepBatch':this[_0x5e44ea(0x11b)]});}):Promise[_0x551770(0x122)]();}[_0x43afe5(0x13e)](){const _0x241349=_0x43afe5;if(this[_0x241349(0x178)][_0x241349(0x126)][_0x241349(0x127)])return void _0x2d0cce(_0x241349(0x12a));const _0x1fa96f=this[_0x241349(0x172)],_0x478548=_0x217d63(_0x1fa96f[_0x241349(0x15e)],_0x241349(0x130));_0x1fa96f[_0x241349(0x132)][_0x241349(0x173)](_0x241349(0x143))[_0x241349(0x13b)](_0x478548),_0x3da026(_0x241349(0x165));}}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -10,9 +6,9 @@
|
|
|
10
6
|
* @module import-word/importwordediting
|
|
11
7
|
* @publicApi
|
|
12
8
|
*/
|
|
13
|
-
import { Plugin, type Editor } from '
|
|
14
|
-
import { Notification } from '
|
|
15
|
-
import { ClipboardPipeline } from '
|
|
9
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Notification } from 'ckeditor5/src/ui.js';
|
|
11
|
+
import { ClipboardPipeline } from 'ckeditor5/src/clipboard.js';
|
|
16
12
|
import type { InitializedToken } from '@ckeditor/ckeditor5-cloud-services';
|
|
17
13
|
/**
|
|
18
14
|
* The editing part of the import from Word feature.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x34fc48=_0x496c;function _0x3ed2(){const _0x2c5f6e=['221053tqFomn','none','479390HsKzOB','importWord','1477012kxCrWf','18454689sfDbHf','get','define','config','add','243EGqJQt','8hHNXzW','getToken','init','305mRKlbx','inline','plugins','isOfficialPlugin','69114TZwSgT','8894305cULIJD','registerTokenUrl','pluginName','ImportWordEditing','CloudServices','token','editor','requires','cloudServices','tokenUrl','isPremiumPlugin','_token','224304iBkwLO','https://docx-converter.cke-cs.com/v2/convert/docx-html','4JXRjyo','commands'];_0x3ed2=function(){return _0x2c5f6e;};return _0x3ed2();}(function(_0x4d98b5,_0x5ec844){const _0x48fbd5=_0x496c,_0xb982c=_0x4d98b5();while(!![]){try{const _0x4fe268=parseInt(_0x48fbd5(0x1ab))/0x1+-parseInt(_0x48fbd5(0x1a9))/0x2*(parseInt(_0x48fbd5(0x1ca))/0x3)+-parseInt(_0x48fbd5(0x1af))/0x4+parseInt(_0x48fbd5(0x1b9))/0x5*(-parseInt(_0x48fbd5(0x1bd))/0x6)+-parseInt(_0x48fbd5(0x1be))/0x7*(parseInt(_0x48fbd5(0x1b6))/0x8)+parseInt(_0x48fbd5(0x1b5))/0x9*(parseInt(_0x48fbd5(0x1ad))/0xa)+parseInt(_0x48fbd5(0x1b0))/0xb;if(_0x4fe268===_0x5ec844)break;else _0xb982c['push'](_0xb982c['shift']());}catch(_0x2e71c6){_0xb982c['push'](_0xb982c['shift']());}}}(_0x3ed2,0xab272));import{Plugin as _0x237c9a}from'ckeditor5/src/core.js';import{Notification as _0x2c364b}from'ckeditor5/src/ui.js';import{ClipboardPipeline as _0x36c13c}from'ckeditor5/src/clipboard.js';function _0x496c(_0x85b1bf,_0x39d8d6){const _0x3ed221=_0x3ed2();return _0x496c=function(_0x496c6a,_0xc5554){_0x496c6a=_0x496c6a-0x1a9;let _0x464b32=_0x3ed221[_0x496c6a];return _0x464b32;},_0x496c(_0x85b1bf,_0x39d8d6);}import{ImportWordCommand as _0x5b878e}from'./importwordcommand.js';export class ImportWordEditing extends _0x237c9a{[_0x34fc48(0x1c9)];static get[_0x34fc48(0x1c0)](){const _0x5168d1=_0x34fc48;return _0x5168d1(0x1c1);}static get[_0x34fc48(0x1bc)](){return!0x0;}static get[_0x34fc48(0x1c8)](){return!0x0;}static get[_0x34fc48(0x1c5)](){const _0x5ada82=_0x34fc48;return[_0x2c364b,_0x36c13c,_0x5ada82(0x1c2)];}constructor(_0x1cd0c5){const _0x4b43ba=_0x34fc48;super(_0x1cd0c5),this[_0x4b43ba(0x1c9)]=null;}async[_0x34fc48(0x1b8)](){const _0x5c377e=_0x34fc48,_0x4e0d45=this[_0x5c377e(0x1c4)];_0x4e0d45[_0x5c377e(0x1b3)][_0x5c377e(0x1b2)](_0x5c377e(0x1ae),{'converterUrl':_0x5c377e(0x1cb),'tokenUrl':(_0x4e0d45[_0x5c377e(0x1b3)][_0x5c377e(0x1b1)](_0x5c377e(0x1c6))||{})[_0x5c377e(0x1c7)],'formatting':{'resets':_0x5c377e(0x1ac),'defaults':_0x5c377e(0x1ac),'styles':_0x5c377e(0x1ba)}}),_0x4e0d45[_0x5c377e(0x1aa)][_0x5c377e(0x1b4)](_0x5c377e(0x1ae),new _0x5b878e(_0x4e0d45));const {tokenUrl:_0x352f30}=_0x4e0d45[_0x5c377e(0x1b3)][_0x5c377e(0x1b1)](_0x5c377e(0x1ae));if(_0x352f30){const {tokenUrl:_0x2f1a4a}=_0x4e0d45[_0x5c377e(0x1b3)][_0x5c377e(0x1b1)](_0x5c377e(0x1c6))||{};this[_0x5c377e(0x1c9)]=_0x352f30===_0x2f1a4a?_0x4e0d45[_0x5c377e(0x1bb)][_0x5c377e(0x1b1)](_0x5c377e(0x1c2))[_0x5c377e(0x1c3)]:await _0x4e0d45[_0x5c377e(0x1bb)][_0x5c377e(0x1b1)](_0x5c377e(0x1c2))[_0x5c377e(0x1bf)](_0x352f30);}}[_0x34fc48(0x1b7)](){const _0x3cd4bd=_0x34fc48;return this[_0x3cd4bd(0x1c9)];}}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -10,7 +6,7 @@
|
|
|
10
6
|
* @module import-word/importwordui
|
|
11
7
|
* @publicApi
|
|
12
8
|
*/
|
|
13
|
-
import { Plugin } from '
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
14
10
|
/**
|
|
15
11
|
* The ImportWordUI plugin. It introduces the `'importWord'` toolbar button.
|
|
16
12
|
*/
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x3cec92=_0x5316;(function(_0x2d2e2b,_0x9ee111){const _0x3bd011=_0x5316,_0x1f373a=_0x2d2e2b();while(!![]){try{const _0x4cfa76=-parseInt(_0x3bd011(0xf7))/0x1*(-parseInt(_0x3bd011(0xee))/0x2)+-parseInt(_0x3bd011(0xe4))/0x3*(parseInt(_0x3bd011(0xd2))/0x4)+parseInt(_0x3bd011(0xe5))/0x5*(-parseInt(_0x3bd011(0xd8))/0x6)+-parseInt(_0x3bd011(0xdb))/0x7*(parseInt(_0x3bd011(0xd9))/0x8)+parseInt(_0x3bd011(0xcc))/0x9+parseInt(_0x3bd011(0xf2))/0xa*(-parseInt(_0x3bd011(0xf5))/0xb)+parseInt(_0x3bd011(0xd7))/0xc;if(_0x4cfa76===_0x9ee111)break;else _0x1f373a['push'](_0x1f373a['shift']());}catch(_0x4f72f9){_0x1f373a['push'](_0x1f373a['shift']());}}}(_0x3712,0xcf374));import{Plugin as _0xc8daf2}from'ckeditor5/src/core.js';import{IconImportWord as _0x30f5dc}from'ckeditor5/src/icons.js';function _0x3712(){const _0x184544=['12638412gcvQOW','5256aRaNyf','8VEolOD','commands','1286327UIrDPU','set','tooltip','iconView','init','application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template','isPremiumPlugin','children','pluginName','23724UdJajY','635xomRDG','editor','_createButton','componentFactory','isVisible','get','Import\x20from\x20Word','add','Importing\x20Word\x20document','1646DWrldT','done','execute','menuBar:importWord','10PhnRvg','editing','isOn','6576779MHxlAL','focus','715rrLKRk','11504736TBwSMO','locale','isEnabled','isOfficialPlugin','bind','importWord','596nQBKep','isBusy','ImportWordUI','view','label'];_0x3712=function(){return _0x184544;};return _0x3712();}import{MenuBarMenuListItemFileDialogButtonView as _0x1a0f57,SpinnerView as _0xb22423,FileDialogButtonView as _0x2b7dd9}from'ckeditor5/src/ui.js';function _0x5316(_0x12e6c5,_0x588795){const _0x371227=_0x3712();return _0x5316=function(_0x5316c6,_0x218ac1){_0x5316c6=_0x5316c6-0xcc;let _0x2a6c50=_0x371227[_0x5316c6];return _0x2a6c50;},_0x5316(_0x12e6c5,_0x588795);}import{getTranslation as _0x1b4cf6}from'./utils/common-translations.js';export class ImportWordUI extends _0xc8daf2{static get[_0x3cec92(0xe3)](){const _0x57fb10=_0x3cec92;return _0x57fb10(0xd4);}static get[_0x3cec92(0xcf)](){return!0x0;}static get[_0x3cec92(0xe1)](){return!0x0;}[_0x3cec92(0xdf)](){const _0x470f25=_0x3cec92,_0x12dd08=this[_0x470f25(0xe6)];_0x12dd08['ui'][_0x470f25(0xe8)][_0x470f25(0xec)](_0x470f25(0xd1),()=>{const _0x23f179=_0x470f25,_0x54bb02=this[_0x23f179(0xe7)](_0x2b7dd9),_0x5138b0=_0x12dd08[_0x23f179(0xda)][_0x23f179(0xea)](_0x23f179(0xd1));return _0x54bb02[_0x23f179(0xd0)](_0x23f179(0xf4))['to'](_0x5138b0,_0x23f179(0xd3)),_0x54bb02[_0x23f179(0xdd)]=!0x0,_0x54bb02;}),_0x12dd08['ui'][_0x470f25(0xe8)][_0x470f25(0xec)](_0x470f25(0xf1),()=>this[_0x470f25(0xe7)](_0x1a0f57));}[_0x3cec92(0xe7)](_0x414b12){const _0x5935cf=_0x3cec92,_0x2ba573=this[_0x5935cf(0xe6)],_0x3529ef=_0x2ba573[_0x5935cf(0xda)][_0x5935cf(0xea)](_0x5935cf(0xd1)),_0x27d36a=new _0x414b12(_0x2ba573[_0x5935cf(0xcd)]),_0x565f03=new _0xb22423();return _0x27d36a[_0x5935cf(0xdc)]({'acceptedType':_0x5935cf(0xe0)}),_0x27d36a[_0x5935cf(0xdc)]({'icon':_0x30f5dc}),_0x27d36a[_0x5935cf(0xd0)](_0x5935cf(0xce))['to'](_0x3529ef),_0x27d36a[_0x5935cf(0xd0)](_0x5935cf(0xd6))['to'](_0x3529ef,_0x5935cf(0xd3),_0x68f7c5=>_0x1b4cf6(_0x2ba573[_0x5935cf(0xcd)],_0x68f7c5?_0x5935cf(0xed):_0x5935cf(0xeb))),_0x565f03[_0x5935cf(0xd0)](_0x5935cf(0xe9))['to'](_0x3529ef,_0x5935cf(0xd3)),_0x27d36a[_0x5935cf(0xde)][_0x5935cf(0xd0)](_0x5935cf(0xe9))['to'](_0x3529ef,_0x5935cf(0xd3),_0x1f702c=>!_0x1f702c),_0x27d36a[_0x5935cf(0xe2)][_0x5935cf(0xec)](_0x565f03),_0x27d36a['on'](_0x5935cf(0xef),(_0x22b564,_0x43fe0c)=>{const _0x32ee5d=_0x5935cf;_0x2ba573[_0x32ee5d(0xf0)](_0x32ee5d(0xd1),_0x43fe0c[0x0],{}),_0x2ba573[_0x32ee5d(0xf3)][_0x32ee5d(0xd5)][_0x32ee5d(0xf6)]();}),_0x27d36a;}}
|
package/{dist → src}/index.d.ts
RENAMED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -12,5 +8,5 @@
|
|
|
12
8
|
export { ImportWord, type ImportWordConfig, type ImportWordFormattingOptions } from './importword.js';
|
|
13
9
|
export { ImportWordEditing } from './importwordediting.js';
|
|
14
10
|
export { ImportWordUI } from './importwordui.js';
|
|
15
|
-
export { ImportWordCommand, type ImportWordDataInsertEvent, type ImportWordDataInsertEventData } from './importwordcommand.js';
|
|
11
|
+
export { ImportWordCommand, type ImportWordDataInsertEvent, type ImportWordDataInsertEventData, type ImportWordDataHeaderFooterDefinitions, type ImportWordDataHeaderFooterContent } from './importwordcommand.js';
|
|
16
12
|
import './augmentation.js';
|
package/src/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(function(_0x1ef44b,_0x19d181){var _0x323eaa=_0x253d,_0x3b242c=_0x1ef44b();while(!![]){try{var _0x370690=parseInt(_0x323eaa(0x1cf))/0x1*(parseInt(_0x323eaa(0x1d2))/0x2)+-parseInt(_0x323eaa(0x1d0))/0x3+-parseInt(_0x323eaa(0x1d7))/0x4+-parseInt(_0x323eaa(0x1d3))/0x5+-parseInt(_0x323eaa(0x1d4))/0x6+parseInt(_0x323eaa(0x1d5))/0x7+-parseInt(_0x323eaa(0x1d1))/0x8*(-parseInt(_0x323eaa(0x1d6))/0x9);if(_0x370690===_0x19d181)break;else _0x3b242c['push'](_0x3b242c['shift']());}catch(_0x40d080){_0x3b242c['push'](_0x3b242c['shift']());}}}(_0x3fa1,0x421fd));export{ImportWord}from'./importword.js';function _0x3fa1(){var _0x415fea=['16AwjrhS','6lcXKlS','302335UNRytB','489966ZsSaTY','1132110briqWd','3864393WqqMoo','1528552ycWSeR','62683iwgMrn','1240266BYmdte'];_0x3fa1=function(){return _0x415fea;};return _0x3fa1();}export{ImportWordEditing}from'./importwordediting.js';function _0x253d(_0x54ecfb,_0x21eee0){var _0x3fa102=_0x3fa1();return _0x253d=function(_0x253d8e,_0x3d9070){_0x253d8e=_0x253d8e-0x1cf;var _0x49dd53=_0x3fa102[_0x253d8e];return _0x49dd53;},_0x253d(_0x54ecfb,_0x21eee0);}export{ImportWordUI}from'./importwordui.js';export{ImportWordCommand}from'./importwordcommand.js';import'./augmentation.js';
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -9,5 +5,5 @@
|
|
|
9
5
|
/**
|
|
10
6
|
* @module import-word/utils/common-translations
|
|
11
7
|
*/
|
|
12
|
-
import type { Locale } from '
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
13
9
|
export declare function getTranslation(locale: Locale, id: string): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export function getTranslation(_0x17e814,_0x216b3a){const t=_0x17e814['t'];switch(_0x216b3a){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 _0x216b3a;}}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2026, 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 '@ckeditor/ckeditor5-core';
|
|
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 declare 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 ImportWordDataInsertEvent = {
|
|
49
|
-
name: 'dataInsert';
|
|
50
|
-
args: [data: ImportWordDataInsertEventData];
|
|
51
|
-
};
|
|
52
|
-
export interface ImportWordDataInsertEventData {
|
|
53
|
-
/**
|
|
54
|
-
* The HTML content to insertion.
|
|
55
|
-
*/
|
|
56
|
-
html: string;
|
|
57
|
-
}
|