@ckeditor/ckeditor5-import-word 35.2.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.
Files changed (93) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +18 -0
  3. package/README.md +38 -0
  4. package/build/import-word.js +5 -0
  5. package/build/translations/ar.js +1 -0
  6. package/build/translations/bg.js +1 -0
  7. package/build/translations/bn.js +1 -0
  8. package/build/translations/ca.js +1 -0
  9. package/build/translations/cs.js +1 -0
  10. package/build/translations/da.js +1 -0
  11. package/build/translations/de.js +1 -0
  12. package/build/translations/el.js +1 -0
  13. package/build/translations/es.js +1 -0
  14. package/build/translations/et.js +1 -0
  15. package/build/translations/fi.js +1 -0
  16. package/build/translations/fr.js +1 -0
  17. package/build/translations/he.js +1 -0
  18. package/build/translations/hi.js +1 -0
  19. package/build/translations/hr.js +1 -0
  20. package/build/translations/hu.js +1 -0
  21. package/build/translations/id.js +1 -0
  22. package/build/translations/it.js +1 -0
  23. package/build/translations/ja.js +1 -0
  24. package/build/translations/ko.js +1 -0
  25. package/build/translations/lt.js +1 -0
  26. package/build/translations/lv.js +1 -0
  27. package/build/translations/ms.js +1 -0
  28. package/build/translations/nl.js +1 -0
  29. package/build/translations/no.js +1 -0
  30. package/build/translations/pl.js +1 -0
  31. package/build/translations/pt-br.js +1 -0
  32. package/build/translations/pt.js +1 -0
  33. package/build/translations/ro.js +1 -0
  34. package/build/translations/ru.js +1 -0
  35. package/build/translations/sk.js +1 -0
  36. package/build/translations/sr.js +1 -0
  37. package/build/translations/sv.js +1 -0
  38. package/build/translations/th.js +1 -0
  39. package/build/translations/tr.js +1 -0
  40. package/build/translations/uk.js +1 -0
  41. package/build/translations/vi.js +1 -0
  42. package/build/translations/zh-cn.js +1 -0
  43. package/build/translations/zh.js +1 -0
  44. package/ckeditor5-metadata.json +21 -0
  45. package/lang/contexts.json +4 -0
  46. package/lang/translations/ar.po +25 -0
  47. package/lang/translations/bg.po +25 -0
  48. package/lang/translations/bn.po +25 -0
  49. package/lang/translations/ca.po +25 -0
  50. package/lang/translations/cs.po +25 -0
  51. package/lang/translations/da.po +25 -0
  52. package/lang/translations/de.po +25 -0
  53. package/lang/translations/el.po +25 -0
  54. package/lang/translations/en.po +25 -0
  55. package/lang/translations/es.po +25 -0
  56. package/lang/translations/et.po +25 -0
  57. package/lang/translations/fi.po +25 -0
  58. package/lang/translations/fr.po +25 -0
  59. package/lang/translations/he.po +25 -0
  60. package/lang/translations/hi.po +25 -0
  61. package/lang/translations/hr.po +25 -0
  62. package/lang/translations/hu.po +25 -0
  63. package/lang/translations/id.po +25 -0
  64. package/lang/translations/it.po +25 -0
  65. package/lang/translations/ja.po +25 -0
  66. package/lang/translations/ko.po +25 -0
  67. package/lang/translations/lt.po +25 -0
  68. package/lang/translations/lv.po +25 -0
  69. package/lang/translations/ms.po +25 -0
  70. package/lang/translations/nl.po +25 -0
  71. package/lang/translations/no.po +25 -0
  72. package/lang/translations/pl.po +25 -0
  73. package/lang/translations/pt-br.po +25 -0
  74. package/lang/translations/pt.po +25 -0
  75. package/lang/translations/ro.po +25 -0
  76. package/lang/translations/ru.po +25 -0
  77. package/lang/translations/sk.po +25 -0
  78. package/lang/translations/sr.po +25 -0
  79. package/lang/translations/sv.po +25 -0
  80. package/lang/translations/th.po +25 -0
  81. package/lang/translations/tr.po +25 -0
  82. package/lang/translations/uk.po +25 -0
  83. package/lang/translations/vi.po +25 -0
  84. package/lang/translations/zh-cn.po +25 -0
  85. package/lang/translations/zh.po +25 -0
  86. package/package.json +81 -0
  87. package/src/importword.js +23 -0
  88. package/src/importwordcommand.js +23 -0
  89. package/src/importwordediting.js +23 -0
  90. package/src/importwordui.js +23 -0
  91. package/src/index.js +23 -0
  92. package/theme/icons/importword.svg +1 -0
  93. package/theme/importword.css +49 -0
@@ -0,0 +1,25 @@
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Vietnamese (https://www.transifex.com/ckeditor/teams/11143/vi/)\n"
16
+ "Language: vi\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ msgctxt "A toolbar button tooltip for the import from Word feature."
20
+ msgid "Import from Word"
21
+ msgstr "Nhập từ Word"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred while importing the Word file."
24
+ msgid "An error occurred while importing the Word file."
25
+ msgstr "Đã xảy ra lỗi khi nhập tệp Word."
@@ -0,0 +1,25 @@
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Chinese (China) (https://www.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
16
+ "Language: zh_CN\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ msgctxt "A toolbar button tooltip for the import from Word feature."
20
+ msgid "Import from Word"
21
+ msgstr "从 Word 导入"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred while importing the Word file."
24
+ msgid "An error occurred while importing the Word file."
25
+ msgstr "导入 Word 文件时出错了。"
@@ -0,0 +1,25 @@
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Chinese (Taiwan) (https://www.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
16
+ "Language: zh_TW\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ msgctxt "A toolbar button tooltip for the import from Word feature."
20
+ msgid "Import from Word"
21
+ msgstr "從 Word 匯入"
22
+
23
+ msgctxt "An error message shown to the user when an error occurred while importing the Word file."
24
+ msgid "An error occurred while importing the Word file."
25
+ msgstr "匯入 Word 檔時發生錯誤。"
package/package.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "@ckeditor/ckeditor5-import-word",
3
+ "version": "35.2.0",
4
+ "description": "Import from Word feature for CKEditor 5.",
5
+ "keywords": [
6
+ "ckeditor",
7
+ "ckeditor5",
8
+ "ckeditor 5",
9
+ "ckeditor5-feature",
10
+ "ckeditor5-plugin",
11
+ "WYSIWYG",
12
+ "WYSIWYM",
13
+ "text",
14
+ "rich-text",
15
+ "richtext",
16
+ "ckeditor",
17
+ "editor",
18
+ "editing",
19
+ "html",
20
+ "contentEditable",
21
+ "Word",
22
+ "print Word",
23
+ "open Word",
24
+ "convert from Word",
25
+ "import Word",
26
+ "import from Word",
27
+ "Word converter",
28
+ "Word to HTML"
29
+ ],
30
+ "main": "src/index.js",
31
+ "dependencies": {
32
+ "ckeditor5": "^35.2.0"
33
+ },
34
+ "devDependencies": {
35
+ "@ckeditor/ckeditor5-autoformat": "^35.2.0",
36
+ "@ckeditor/ckeditor5-basic-styles": "^35.2.0",
37
+ "@ckeditor/ckeditor5-block-quote": "^35.2.0",
38
+ "@ckeditor/ckeditor5-clipboard": "^35.2.0",
39
+ "@ckeditor/ckeditor5-cloud-services": "^35.2.0",
40
+ "@ckeditor/ckeditor5-code-block": "^35.2.0",
41
+ "@ckeditor/ckeditor5-core": "^35.2.0",
42
+ "@ckeditor/ckeditor5-dev-utils": "^30.0.0",
43
+ "@ckeditor/ckeditor5-easy-image": "^35.2.0",
44
+ "@ckeditor/ckeditor5-editor-classic": "^35.2.0",
45
+ "@ckeditor/ckeditor5-essentials": "^35.2.0",
46
+ "@ckeditor/ckeditor5-engine": "^35.2.0",
47
+ "@ckeditor/ckeditor5-heading": "^35.2.0",
48
+ "@ckeditor/ckeditor5-image": "^35.2.0",
49
+ "@ckeditor/ckeditor5-indent": "^35.2.0",
50
+ "@ckeditor/ckeditor5-link": "^35.2.0",
51
+ "@ckeditor/ckeditor5-list": "^35.2.0",
52
+ "@ckeditor/ckeditor5-paragraph": "^35.2.0",
53
+ "@ckeditor/ckeditor5-media-embed": "^35.2.0",
54
+ "@ckeditor/ckeditor5-table": "^35.2.0",
55
+ "@ckeditor/ckeditor5-theme-lark": "^35.2.0",
56
+ "@ckeditor/ckeditor5-ui": "^35.2.0",
57
+ "@ckeditor/ckeditor5-undo": "^35.2.0",
58
+ "@ckeditor/ckeditor5-upload": "^35.2.0",
59
+ "webpack": "^5.58.1",
60
+ "webpack-cli": "^4.9.0"
61
+ },
62
+ "engines": {
63
+ "node": ">=14.0.0",
64
+ "npm": ">=5.7.1"
65
+ },
66
+ "license": "SEE LICENSE IN LICENSE.md",
67
+ "author": "CKSource (https://cksource.com/)",
68
+ "homepage": "https://ckeditor.com",
69
+ "bugs": "https://github.com/ckeditor/ckeditor5/issues",
70
+ "files": [
71
+ "lang",
72
+ "src",
73
+ "theme",
74
+ "build",
75
+ "ckeditor5-metadata.json",
76
+ "CHANGELOG.md"
77
+ ],
78
+ "scripts": {
79
+ "dll:build": "webpack"
80
+ }
81
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ var _0x535c=['pluginName','requires'];(function(_0x43578d,_0x535c14){var _0x407d71=function(_0x3426a8){while(--_0x3426a8){_0x43578d['push'](_0x43578d['shift']());}};_0x407d71(++_0x535c14);}(_0x535c,0x17f));var _0x407d=function(_0x43578d,_0x535c14){_0x43578d=_0x43578d-0x0;var _0x407d71=_0x535c[_0x43578d];return _0x407d71;};import{Plugin as _0x415a02}from'ckeditor5/src/core';import _0x4f0666 from'./importwordui';import _0x157a54 from'./importwordediting';export default class i extends _0x415a02{static get[_0x407d('0x1')](){return'ImportWord';}static get[_0x407d('0x0')](){return[_0x157a54,_0x4f0666];}}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ import{Command as _0x1ba506}from'ckeditor5/src/core';import{Range as _0x4f9f65}from'ckeditor5/src/engine';import{logWarning as _0x10b32f,logError as _0x3d4d98,first as _0x2b3bdd,uid as _0x376e0a}from'ckeditor5/src/utils';export default class d extends _0x1ba506{constructor(_0x55a398){super(_0x55a398),this['set']('isBusy',!0x1),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['on']('dataInsert',(_0x285780,_0x21b53f)=>{const _0x38ed69=new DataTransfer();_0x38ed69['setData']('text/html',_0x21b53f['html']);const _0x1ac05b=this['_importMarker']['getRange']();this['editor']['model']['enqueueChange'](this['_undoStepBatch'],_0x5ad4b3=>{_0x5ad4b3['setSelection'](_0x1ac05b),_0x55a398['editing']['view']['document']['fire']('clipboardInput',{'dataTransfer':_0x38ed69});});},{'priority':'low'});}['refresh'](){this['isEnabled']=this['i']();}['execute'](_0x4ac5ed,_0x1fee30={}){if(this['isBusy'])return;const _0x5e01fd=this['editor']['config']['get']('importWord'),_0x1de5b0={'url':_0x5e01fd['converterUrl'],'file':_0x4ac5ed,'serviceConfig':{..._0x1fee30,'default_styles':_0x5e01fd['defaultStyles']}};return this['s'](),this['o'](_0x1de5b0)['then'](this['h']['bind'](this))['catch'](this['l']['bind'](this))['finally'](this['p']['bind'](this));}['i'](){if(this['isBusy'])return!0x1;const _0x1358c7=this['editor']['model'],_0x5dab33=_0x1358c7['schema'],_0x18db02=_0x1358c7['document']['selection'],_0x52afed=_0x2b3bdd(_0x18db02['getSelectedBlocks']());return!!_0x52afed&&_0x5dab33['checkChild'](_0x52afed['parent'],'paragraph');}['s'](){const _0x5698f1=this['editor'],_0x15cb73=_0x5698f1['model'],_0x393cf2=_0x15cb73['document']['selection'];this['_abortController']=new AbortController(),this['_undoStepBatch']=_0x5698f1['model']['createBatch'](),_0x15cb73['enqueueChange'](this['_undoStepBatch'],_0x101f48=>{_0x393cf2['isCollapsed']||_0x15cb73['deleteContent'](_0x393cf2,{'leaveUnmerged':!0x0});const _0x44d5db=_0x393cf2['getFirstPosition'](),_0x48bf7c=_0x2b3bdd(_0x393cf2['getSelectedBlocks']());let _0x111ea5;_0x111ea5=_0x48bf7c['is']('element','paragraph')&&_0x48bf7c['isEmpty']?_0x44d5db:_0x44d5db['isAtStart']?_0x15cb73['createPositionBefore'](_0x48bf7c):_0x44d5db['isAtEnd']?_0x15cb73['createPositionAfter'](_0x48bf7c):_0x101f48['split'](_0x44d5db)['position'],this['_importMarker']=_0x101f48['addMarker']('importWord:'+_0x376e0a(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new _0x4f9f65(_0x111ea5)}),this['_importMarker']['on']('change:range',()=>{'$graveyard'===this['_importMarker']['getRange']()['root']['rootName']&&this['_abortController']['abort']();});}),this['isBusy']=!0x0,this['refresh']();}['p'](){const _0x5dfa08=this['editor']['model'];_0x5dfa08['markers']['has'](this['_importMarker'])&&_0x5dfa08['enqueueChange'](this['_undoStepBatch'],_0x5eab1e=>{_0x5eab1e['removeMarker'](this['_importMarker']);}),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['isBusy']=!0x1,this['refresh']();}['o']({url:_0x2c0ab8,file:_0x27758f,serviceConfig:_0x40f958}){const _0x3c7a27=this['editor']['plugins']['get']('ImportWordEditing')['getToken'](),_0x2b8df4=new FormData();_0x2b8df4['set']('config',JSON['stringify'](_0x40f958)),_0x2b8df4['set']('file',_0x27758f);const _0x3e1d26={'method':'POST','headers':{'Authorization':_0x3c7a27['value']},'body':_0x2b8df4,'signal':this['_abortController']['signal']};return fetch(_0x2c0ab8,_0x3e1d26);}['h'](_0x5a690a){return _0x5a690a['ok']?_0x5a690a['json']()['then'](_0x3c582e=>{if(!this['editor']['model']['markers']['has'](this['_importMarker']))return;'$graveyard'!==this['_importMarker']['getRange']()['root']['rootName']&&this['fire']('dataInsert',_0x3c582e);}):Promise['reject']();}['l'](){if(this['_abortController']['signal']['aborted'])return void _0x10b32f('import-word-plugin-import-cancelled');const _0x221b4e=this['editor'],_0x538448=(0x0,_0x221b4e['t'])('An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');_0x221b4e['plugins']['get']('Notification')['showWarning'](_0x538448),_0x3d4d98('import-word-plugin-conversion-failed');}}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, 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 _0x14db=['pluginName','importWord','token','init','cloudServices.tokenUrl','commands','import-word-plugin-missing-token-url','editor','get','getToken','ImportWordEditing','https://docx-converter.cke-cs.com/v2/convert/docx-html','createToken','importWord.tokenUrl','config','plugins'];(function(_0x2b94a0,_0x14db92){const _0x4ef649=function(_0x77ff15){while(--_0x77ff15){_0x2b94a0['push'](_0x2b94a0['shift']());}};_0x4ef649(++_0x14db92);}(_0x14db,0x11b));const _0x4ef6=function(_0x2b94a0,_0x14db92){_0x2b94a0=_0x2b94a0-0x0;let _0x4ef649=_0x14db[_0x2b94a0];return _0x4ef649;};import{Plugin as _0x549ce7}from'ckeditor5/src/core';import{Notification as _0x351d51}from'ckeditor5/src/ui';import{ClipboardPipeline as _0x485cc9}from'ckeditor5/src/clipboard';import{CKEditorError as _0x1f4098}from'ckeditor5/src/utils';import _0x3e00d0 from'./importwordcommand';export default class e extends _0x549ce7{static get[_0x4ef6('0x5')](){return _0x4ef6('0xf');}static get['requires'](){return[_0x351d51,_0x485cc9,'CloudServices'];}constructor(_0x4935c4){super(_0x4935c4),this['m']=null;}async[_0x4ef6('0x8')](){const _0x27b03f=this[_0x4ef6('0xc')];_0x27b03f[_0x4ef6('0x3')]['define'](_0x4ef6('0x6'),{'converterUrl':_0x4ef6('0x0'),'tokenUrl':_0x27b03f[_0x4ef6('0x3')][_0x4ef6('0xd')](_0x4ef6('0x9')),'defaultStyles':!0x1});if(!_0x27b03f[_0x4ef6('0x3')]['get'](_0x4ef6('0x2')))throw new _0x1f4098(_0x4ef6('0xb'),null);const _0x48b70b=_0x27b03f[_0x4ef6('0x3')][_0x4ef6('0xd')](_0x4ef6('0x2')),_0x3d43cc=_0x27b03f[_0x4ef6('0x3')][_0x4ef6('0xd')](_0x4ef6('0x9'));this['m']=_0x48b70b===_0x3d43cc?_0x27b03f[_0x4ef6('0x4')]['get']('CloudServices')[_0x4ef6('0x7')]:await _0x27b03f[_0x4ef6('0x4')]['get']('CloudServicesCore')[_0x4ef6('0x1')](_0x48b70b)[_0x4ef6('0x8')](),_0x27b03f[_0x4ef6('0xa')]['add'](_0x4ef6('0x6'),new _0x3e00d0(_0x27b03f));}[_0x4ef6('0xe')](){return this['m'];}}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ import{Plugin as _0x293c68}from'ckeditor5/src/core';import{View as _0x58923f}from'ckeditor5/src/ui';import{FileDialogButtonView as _0x5dceab}from'ckeditor5/src/upload';import _0x1554d1 from'../theme/icons/importword.svg';import'../theme/importword.css';export default class o extends _0x293c68{static get['pluginName'](){return'ImportWordUI';}['init'](){const _0x28b685=this['editor'],t=_0x28b685['t'];_0x28b685['ui']['componentFactory']['add']('importWord',_0x101812=>{const _0x3800bb=_0x28b685['commands']['get']('importWord'),_0x368290=new _0x5dceab(_0x101812);_0x368290['set']({'acceptedType':'application/vnd.openxmlformats-officedocument.wordprocessingml.document'}),_0x368290['buttonView']['set']({'label':t('Import\x20from\x20Word'),'icon':_0x1554d1,'tooltip':!0x0}),_0x368290['buttonView']['bind']('isOn','isEnabled')['to'](_0x3800bb,'isBusy','isEnabled'),_0x368290['buttonView']['extendTemplate']({'attributes':{'class':[_0x368290['buttonView']['bindTemplate']['if']('isOn','ck-importword_status-pending')]}});const _0x2ba10b=new _0x58923f();return _0x2ba10b['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-importword__spinner-container']},'children':[{'tag':'span','attributes':{'class':['ck','ck-importword__spinner']}}]}),_0x368290['buttonView']['children']['add'](_0x2ba10b),_0x368290['on']('done',(_0x52bdf8,_0x572984)=>{_0x28b685['execute']('importWord',_0x572984[0x0],{}),_0x28b685['editing']['view']['focus']();}),_0x368290;});}}
package/src/index.js ADDED
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, 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{default as ImportWord}from'./importword';export{default as ImportWordEditing}from'./importwordediting';export{default as ImportWordUI}from'./importwordui';
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path clip-rule="evenodd" d="m14 0 5 4.5v8.892l-1.5-1.8V6.5h-5v-5h-8v3H3V0h11Zm0 2v3h3.3L14 2Z"/><path d="M10.74 18a2.76 2.76 0 0 1-.469-.5H3V19h9.25v-.374A2.737 2.737 0 0 1 10.74 18Z"/><path clip-rule="evenodd" d="M8.5 6a1.5 1.5 0 0 1 1.493 1.356L10 7.5v7a1.5 1.5 0 0 1-1.356 1.493L8.5 16h-7a1.5 1.5 0 0 1-1.493-1.356L0 14.5v-7a1.5 1.5 0 0 1 1.356-1.493L1.5 6h7ZM7.483 8.795l-.042.088-.986 2.534-.947-2.528-.043-.092a.601.601 0 0 0-1.042.008l-.042.093-.883 2.465-.937-2.475-.042-.089a.6.6 0 0 0-1.107.42l.027.093 1.514 4 .044.092a.6.6 0 0 0 1.041-.01l.041-.092.88-2.458.925 2.467.046.096a.602.602 0 0 0 1.032 0l.043-.09 1.554-4 .028-.093a.6.6 0 0 0-1.104-.43v.001ZM11.674 15.407a.75.75 0 1 0 1.152.96L14 14.96V20h1.5v-5.04l1.174 1.408a.75.75 0 1 0 1.152-.96l-2.346-2.816a.95.95 0 0 0-1.46 0l-2.346 2.815Z"/></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"/></clipPath></defs></svg>
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Copyright (c) 2003-2022, 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
+ :root {
7
+ --ck-toolbar-spinner-size: 18px;
8
+ }
9
+
10
+ .ck-importword_status-pending {
11
+ position: relative;
12
+ }
13
+
14
+ .ck.ck-importword__spinner-container {
15
+ display: none;
16
+ }
17
+
18
+ .ck.ck-importword__spinner {
19
+ position: absolute;
20
+ top: 50%;
21
+ left: 0;
22
+ right: 0;
23
+ margin: 0 auto;
24
+ width: var(--ck-toolbar-spinner-size);
25
+ height: var(--ck-toolbar-spinner-size);
26
+ border-radius: 50%;
27
+ border: 2px solid var(--ck-color-text);
28
+ border-top-color: transparent;
29
+ transform: translateY(-50%);
30
+ z-index: 1;
31
+ }
32
+
33
+ .ck-importword_status-pending .ck.ck-importword__spinner-container {
34
+ display: block;
35
+ position: absolute;
36
+ width: var(--ck-toolbar-spinner-size);
37
+ height: var(--ck-toolbar-spinner-size);
38
+ animation: 1.5s infinite rotate linear;
39
+ }
40
+
41
+ .ck-importword_status-pending .ck.ck-button__icon {
42
+ color: transparent;
43
+ }
44
+
45
+ @keyframes rotate {
46
+ to {
47
+ transform: rotate(360deg)
48
+ }
49
+ }