@ckeditor/ckeditor5-import-word 0.0.0-internal-20241017.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/LICENSE.md +18 -0
- package/README.md +43 -0
- package/build/import-word.js +5 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.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.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.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/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/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.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/nl.js +1 -0
- package/build/translations/no.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/sk.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/tr.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.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 +21 -0
- package/dist/augmentation.d.ts +27 -0
- package/dist/importword.d.ts +136 -0
- package/dist/importwordcommand.d.ts +58 -0
- package/dist/importwordediting.d.ts +51 -0
- package/dist/importwordui.d.ts +34 -0
- package/dist/index-content.css +4 -0
- package/dist/index-editor.css +4 -0
- package/dist/index.css +4 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/ug.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/dist/utils/common-translations.d.ts +13 -0
- package/lang/contexts.json +5 -0
- package/lang/translations/ar.po +30 -0
- package/lang/translations/bg.po +30 -0
- package/lang/translations/bn.po +30 -0
- package/lang/translations/ca.po +30 -0
- package/lang/translations/cs.po +30 -0
- package/lang/translations/da.po +30 -0
- package/lang/translations/de.po +30 -0
- package/lang/translations/el.po +30 -0
- package/lang/translations/en-au.po +30 -0
- package/lang/translations/en.po +30 -0
- package/lang/translations/es.po +30 -0
- package/lang/translations/et.po +30 -0
- package/lang/translations/fi.po +30 -0
- package/lang/translations/fr.po +30 -0
- package/lang/translations/gl.po +30 -0
- package/lang/translations/he.po +30 -0
- package/lang/translations/hi.po +30 -0
- package/lang/translations/hr.po +30 -0
- package/lang/translations/hu.po +30 -0
- package/lang/translations/id.po +30 -0
- package/lang/translations/it.po +30 -0
- package/lang/translations/ja.po +30 -0
- package/lang/translations/ko.po +30 -0
- package/lang/translations/lt.po +30 -0
- package/lang/translations/lv.po +30 -0
- package/lang/translations/ms.po +30 -0
- package/lang/translations/nl.po +30 -0
- package/lang/translations/no.po +30 -0
- package/lang/translations/pl.po +30 -0
- package/lang/translations/pt-br.po +30 -0
- package/lang/translations/pt.po +30 -0
- package/lang/translations/ro.po +30 -0
- package/lang/translations/ru.po +30 -0
- package/lang/translations/sk.po +30 -0
- package/lang/translations/sr-latn.po +30 -0
- package/lang/translations/sr.po +30 -0
- package/lang/translations/sv.po +30 -0
- package/lang/translations/th.po +30 -0
- package/lang/translations/tr.po +30 -0
- package/lang/translations/ug.po +30 -0
- package/lang/translations/uk.po +30 -0
- package/lang/translations/vi.po +30 -0
- package/lang/translations/zh-cn.po +30 -0
- package/lang/translations/zh.po +30 -0
- package/package.json +56 -0
- package/src/augmentation.d.ts +23 -0
- package/src/augmentation.js +23 -0
- package/src/importword.d.ts +132 -0
- package/src/importword.js +23 -0
- package/src/importwordcommand.d.ts +54 -0
- package/src/importwordcommand.js +23 -0
- package/src/importwordediting.d.ts +47 -0
- package/src/importwordediting.js +23 -0
- package/src/importwordui.d.ts +30 -0
- package/src/importwordui.js +23 -0
- package/src/index.d.ts +12 -0
- package/src/index.js +23 -0
- package/src/utils/common-translations.d.ts +9 -0
- package/src/utils/common-translations.js +23 -0
- package/theme/icons/importword.svg +1 -0
package/CHANGELOG.md
ADDED
package/LICENSE.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Software License Agreement
|
|
2
|
+
==========================
|
|
3
|
+
|
|
4
|
+
**CKEditor 5 import from Word feature** (https://ckeditor.com/ckeditor-5/)<br>
|
|
5
|
+
Copyright (c) 2003–2024, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
6
|
+
|
|
7
|
+
CKEditor 5 import from Word feature is licensed under a commercial license and is protected by copyright law.
|
|
8
|
+
For more details about available licensing options please contact us at sales@cksource.com.
|
|
9
|
+
|
|
10
|
+
Sources of Intellectual Property Included in CKEditor 5 import from Word
|
|
11
|
+
-----------------------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
Where not otherwise indicated, all CKEditor 5 import from Word feature content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
14
|
+
|
|
15
|
+
Trademarks
|
|
16
|
+
----------
|
|
17
|
+
|
|
18
|
+
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
|
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
CKEditor 5 import from Word feature
|
|
2
|
+
===================================
|
|
3
|
+
|
|
4
|
+
[](https://www.npmjs.com/package/@ckeditor/ckeditor5-import-word)
|
|
5
|
+
|
|
6
|
+
This package contains the import from Word feature for CKEditor 5. It allows you to import content from a Word file directly into CKEditor 5.
|
|
7
|
+
|
|
8
|
+
When enabled, this feature sends the selected Word file to the CKEditor Cloud Services Word to HTML converter service. The service then generates the HTML document that is inserted into the editor.
|
|
9
|
+
|
|
10
|
+
This is a premium feature. Please [contact us](https://ckeditor.com/contact/) if you would like to purchase a license. Let us know if you have any feedback or questions!
|
|
11
|
+
|
|
12
|
+
## Demo
|
|
13
|
+
|
|
14
|
+
Check out the [demo in the import from Word feature](https://ckeditor.com/docs/ckeditor5/latest/features/converters/import-word/import-word/import-word.html#demo) guide.
|
|
15
|
+
|
|
16
|
+
## Documentation
|
|
17
|
+
|
|
18
|
+
See the [`@ckeditor/ckeditor5-import-word` package](https://ckeditor.com/docs/ckeditor5/latest/api/import-word.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/) as well as the [import from Word](https://ckeditor.com/docs/ckeditor5/latest/features/converters/import-word/import-word/import-word.html) feature guide.
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install ckeditor5-premium-features
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Getting support
|
|
27
|
+
|
|
28
|
+
CKEditor 5 import from Word feature comes with outstanding support from a dedicated team of customer care specialists, QA engineers and CKEditor 5 developers. The team will gladly assist you in all aspects from setting up your account to integrating CKEditor 5 import from Word feature with your application.
|
|
29
|
+
|
|
30
|
+
As a licensed CKEditor 5 import from Word feature user you can report bugs and request features directly through the CKEditor Ecosystem customer dashboard.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## License
|
|
34
|
+
|
|
35
|
+
**CKEditor 5 import from Word** (https://ckeditor.com/ckeditor-5/)<br>
|
|
36
|
+
Copyright (c) 2003–2024, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
37
|
+
|
|
38
|
+
CKEditor 5 import from Word feature is licensed under a commercial license and is protected by copyright law.
|
|
39
|
+
For more details about available licensing options please contact us at sales@cksource.com.
|
|
40
|
+
|
|
41
|
+
### Trademarks
|
|
42
|
+
|
|
43
|
+
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"An error occurred while importing the Word file.":"An error occurred while importing the Word file.","Import from Word":"Import from Word","Importing Word document":"Importing Word document"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
|
|
2
|
+
/*!
|
|
3
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
|
+
* For licensing, see LICENSE.md.
|
|
5
|
+
*/(()=>{var t={331:(t,e,r)=>{t.exports=r(237)("./src/clipboard.js")},782:(t,e,r)=>{t.exports=r(237)("./src/core.js")},783:(t,e,r)=>{t.exports=r(237)("./src/engine.js")},311:(t,e,r)=>{t.exports=r(237)("./src/ui.js")},584:(t,e,r)=>{t.exports=r(237)("./src/utils.js")},237:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{ImportWord:()=>W,ImportWordEditing:()=>w,ImportWordUI:()=>c});var t=r(782),e=r(311);function i(t,e){const r=t.t;switch(e){case"Import from Word":return r("Import from Word");case"An error occurred while importing the Word file.":return r("An error occurred while importing the Word file.");case"Importing Word document":return r("Importing Word document");default:return e}}function o(){const t=["focus","ImportWordUI","1775250DnLKlj","get","3171708aCRISj","isOn","children","isOfficialPlugin","view","application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template","iconView","bind","add","isBusy","isEnabled","1421100AgZUBL","editor","done","44ErVmWq","tooltip","7QGcqZx","_createButton","pluginName","27xmQaqR","set","importWord","editing","346221geXdmH","init","locale","componentFactory","isVisible","Import from Word","4sWjseL","1353702eDysie","execute","label","1354040fbJYmU","Importing Word document","menuBar:importWord","40380GapbNi","commands","isPremiumPlugin"];return(o=function(){return t})()}const s=a;function a(t,e){const r=o();return(a=function(t,e){return r[t-=431]})(t,e)}!function(t){const e=a,r=t();for(;;)try{if(406203===-parseInt(e(440))/1*(-parseInt(e(446))/2)+parseInt(e(436))/3*(-parseInt(e(453))/4)+-parseInt(e(458))/5+-parseInt(e(447))/6+-parseInt(e(433))/7*(-parseInt(e(450))/8)+-parseInt(e(460))/9+parseInt(e(471))/10*(parseInt(e(431))/11))break;r.push(r.shift())}catch(t){r.push(r.shift())}}(o);class c extends t.Plugin{static get[s(435)](){return s(457)}static get[s(463)](){return!0}static get[s(455)](){return!0}[s(441)](){const t=s,r=this[t(472)];r.ui[t(443)][t(468)](t(438),(()=>{const n=t,i=this[n(434)](e.FileDialogButtonView),o=r[n(454)][n(459)](n(438));return i[n(467)](n(461)).to(o,n(469)),i[n(432)]=!0,i})),r.ui[t(443)][t(468)](t(452),(()=>this[t(434)](e.MenuBarMenuListItemFileDialogButtonView)))}[s(434)](t){const r=s,n=this[r(472)],o=n[r(454)][r(459)](r(438)),a=new t(n[r(442)]),c=new e.SpinnerView;return a[r(437)]({acceptedType:r(465)}),a[r(437)]({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path 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 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"/></svg>\n'}),a[r(467)](r(470)).to(o),a[r(467)](r(449)).to(o,r(469),(t=>i(n[r(442)],r(t?451:445)))),c[r(467)](r(444)).to(o,r(469)),a[r(466)][r(467)](r(444)).to(o,r(469),(t=>!t)),a[r(462)][r(468)](c),a.on(r(473),((t,e)=>{const i=r;n[i(448)](i(438),e[0],{}),n[i(439)][i(464)][i(456)]()})),a}}var u=r(331),p=r(783),l=r(584);const h=d;function d(t,e){const r=m();return(d=function(t,e){return r[t-=372]})(t,e)}!function(t){const e=d,r=t();for(;;)try{if(545785===-parseInt(e(407))/1+parseInt(e(458))/2+parseInt(e(381))/3+-parseInt(e(416))/4*(parseInt(e(474))/5)+-parseInt(e(471))/6*(parseInt(e(378))/7)+-parseInt(e(459))/8+-parseInt(e(426))/9*(-parseInt(e(435))/10))break;r.push(r.shift())}catch(t){r.push(r.shift())}}(m);class f extends t.Command{constructor(t){const e=d;super(t),this[e(469)](e(447),!1),this[e(468)]=null,this[e(403)]=null,this[e(427)]=null,this.on(e(455),((r,n)=>{const i=e,o=new DataTransfer;o[i(466)](i(412),n[i(451)]);const s=this[i(468)][i(424)]();this[i(460)][i(389)][i(438)](this[i(403)],(e=>{const r=i;this[r(468)][r(393)](),e[r(406)](s),t[r(383)][r(437)][r(400)][r(386)](r(439),{dataTransfer:o})}))}),{priority:e(387)})}[h(409)](){const t=h;this[t(396)]=this[t(457)]()}[h(418)](t,e={}){const r=h;if(this[r(447)])return Promise[r(436)]();const n=this[r(460)][r(419)][r(443)](r(398));if(this[r(460)][r(405)][r(452)](r(373))){const{prefix:t,suffix:n}=this[r(460)][r(419)][r(443)](r(448));e[r(441)]={prefix:t,suffix:n}}const i={url:n[r(464)],file:t,serviceConfig:{...e,formatting:n[r(377)],timezone:(new(Intl[r(422)]))[r(376)]()[r(399)]}};return this[r(456)](),this[r(391)](i)[r(432)](this[r(402)][r(428)](this))[r(390)](this[r(415)][r(428)](this))[r(453)](this[r(450)][r(428)](this))}[h(457)](){const t=h;if(this[t(447)])return!1;const e=this[t(460)][t(389)],r=e[t(392)],n=e[t(400)][t(417)],i=(0,l.first)(n[t(413)]());return!!i&&r[t(411)](i[t(429)],t(380))}[h(456)](){const t=h,e=this[t(460)],r=e[t(389)],n=r[t(400)][t(417)];this[t(427)]=new AbortController,this[t(403)]=e[t(389)][t(433)]({isUndoable:!0}),r[t(438)](this[t(403)],(e=>{const i=t;n[i(442)]||r[i(397)](n,{leaveUnmerged:!0});const o=n[i(465)](),s=(0,l.first)(n[i(413)]());let a;a=s.is(i(425),i(380))&&s[i(384)]?o:o[i(454)]?r[i(374)](s):o[i(385)]?r[i(449)](s):e[i(434)](o)[i(462)],this[i(468)]=e[i(472)](i(394)+(0,l.uid)(),{usingOperation:!1,affectsData:!1,range:new p.Range(a)}),this[i(468)].on(i(420),(()=>{const t=i;t(445)===this[t(468)][t(424)]()[t(382)][t(410)]&&this[t(427)][t(372)]()}))})),this[t(447)]=!0,this[t(409)]()}[h(450)](){const t=h,e=this[t(460)][t(389)];e[t(388)][t(452)](this[t(468)])&&e[t(438)](this[t(403)],(e=>{const r=t;e[r(421)](this[r(468)])})),this[t(468)]=null,this[t(403)]=null,this[t(427)]=null,this[t(447)]=!1,this[t(409)]()}[h(391)]({url:t,file:e,serviceConfig:r}){const n=h,i=this[n(460)][n(405)][n(443)](n(395))[n(463)](),o=new FormData;o[n(469)](n(419),JSON[n(446)](r)),o[n(469)](n(440),e);const s={method:n(470),headers:{},body:o,signal:this[n(427)][n(461)]};return i&&(s[n(430)][n(414)]=i[n(444)]),fetch(t,s)}[h(402)](t){const e=h;return t.ok?t[e(473)]()[e(432)]((t=>{const r=e;this[r(460)][r(389)][r(388)][r(452)](this[r(468)])&&r(445)!==this[r(468)][r(424)]()[r(382)][r(410)]&&this[r(386)](r(455),t)})):Promise[e(431)]()}[h(415)](){const t=h;if(this[t(427)][t(461)][t(467)])return void(0,l.logWarning)(t(375));const e=this[t(460)],r=i(e[t(401)],t(379));e[t(405)][t(443)](t(408))[t(404)](r),(0,l.logError)(t(423))}}function m(){const t=["createPositionBefore","import-word-plugin-import-cancelled","resolvedOptions","formatting","21akOsUt","An error occurred while importing the Word file.","paragraph","353214YewOdr","root","editing","isEmpty","isAtEnd","fire","low","markers","model","catch","_sendImportRequest","schema","stopListening","importWord:","ImportWordEditing","isEnabled","deleteContent","importWord","timeZone","document","locale","_handleImportResponse","_undoStepBatch","showWarning","plugins","setSelection","431526zBeLTl","Notification","refresh","rootName","checkChild","text/html","getSelectedBlocks","Authorization","_handleImportFailure","5380mrNMmM","selection","execute","config","change:range","removeMarker","DateTimeFormat","import-word-plugin-conversion-failed","getRange","element","77967YLHQgy","_abortController","bind","parent","headers","reject","then","createBatch","split","2410tDfMGm","resolve","view","enqueueChange","clipboardInput","file","merge_fields","isCollapsed","get","value","$graveyard","stringify","isBusy","mergeFields","createPositionAfter","_cleanUpAfterImport","html","has","finally","isAtStart","dataInsert","_prepareForImport","_checkEnabled","1642570jNLWyF","1212664itXchJ","editor","signal","position","getToken","converterUrl","getFirstPosition","setData","aborted","_importMarker","set","POST","1807914eTmyLs","addMarker","json","3695yqZEPC","abort","MergeFields"];return(m=function(){return t})()}function g(){const t=["https://docx-converter.cke-cs.com/v2/convert/docx-html","tokenUrl","cloudServices","747897ZVAvOx","_token","registerTokenUrl","get","define","init","4iIxMqn","ImportWordEditing","1451548epXsHn","64254yIZerr","plugins","getToken","pluginName","1715784HmtHot","isPremiumPlugin","inline","CloudServices","663612XmUOYB","token","none","config","isOfficialPlugin","editor","54996GpKYQR","522765RPXOWn","add","importWord","commands","requires"];return(g=function(){return t})()}const I=v;function v(t,e){const r=g();return(v=function(t,e){return r[t-=110]})(t,e)}!function(t){const e=v,r=t();for(;;)try{if(128376===parseInt(e(138))/1+parseInt(e(124))/2+-parseInt(e(115))/3*(-parseInt(e(121))/4)+-parseInt(e(139))/5+-parseInt(e(132))/6+-parseInt(e(123))/7+parseInt(e(128))/8)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(g);class w extends t.Plugin{static get[I(127)](){return I(122)}static get[I(136)](){return!0}static get[I(129)](){return!0}static get[I(111)](){const t=I;return[e.Notification,u.ClipboardPipeline,t(131)]}constructor(t){const e=I;super(t),this[e(116)]=null}async[I(120)](){const t=I,e=this[t(137)];e[t(135)][t(119)](t(141),{converterUrl:t(112),tokenUrl:(e[t(135)][t(118)](t(114))||{})[t(113)],formatting:{resets:t(134),defaults:t(134),styles:t(130)}}),e[t(110)][t(140)](t(141),new f(e));const{tokenUrl:r}=e[t(135)][t(118)](t(141));if(r){const{tokenUrl:n}=e[t(135)][t(118)](t(114))||{};this[t(116)]=r===n?e[t(125)][t(118)](t(131))[t(133)]:await e[t(125)][t(118)](t(131))[t(117)](r)}}[I(126)](){return this[I(116)]}}var y=b;!function(t){for(var e=b,r=t();;)try{if(330911===parseInt(e(425))/1*(-parseInt(e(434))/2)+-parseInt(e(423))/3+parseInt(e(421))/4+-parseInt(e(426))/5+parseInt(e(433))/6*(parseInt(e(424))/7)+-parseInt(e(435))/8*(-parseInt(e(429))/9)+parseInt(e(431))/10)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(x);class W extends t.Plugin{static get[y(422)](){return y(427)}static get[y(428)](){return!0}static get[y(430)](){return!0}static get[y(432)](){return[w,c]}}function b(t,e){var r=x();return(b=function(t,e){return r[t-=421]})(t,e)}function x(){var t=["isPremiumPlugin","1043320zeieaO","requires","1253022mneQAt","9938hdqCKa","6568omxynh","1691848eXivXd","pluginName","1116624LPHcTV","7CXhFUb","33PLnidE","2001110oXcQhf","ImportWord","isOfficialPlugin","5823hAnvXY"];return(x=function(){return t})()}function P(){var t=["18259681PCyfIp","9237683JgJzSW","17703qrzAhq","884zughoH","1733090hWetqj","532124uzUeQc","7628464SBAGDY","20VjKcHv","9AbxahJ","6HzSpBU","1295614XsbPaw"];return(P=function(){return t})()}function k(t,e){var r=P();return(k=function(t,e){return r[t-=209]})(t,e)}!function(t){for(var e=k,r=t();;)try{if(719707===-parseInt(e(214))/1+parseInt(e(219))/2+parseInt(e(211))/3*(parseInt(e(212))/4)+-parseInt(e(213))/5*(-parseInt(e(218))/6)+parseInt(e(210))/7+parseInt(e(215))/8*(parseInt(e(217))/9)+-parseInt(e(216))/10*(parseInt(e(209))/11))break;r.push(r.shift())}catch(t){r.push(r.shift())}}(P)})(),(window.CKEditor5=window.CKEditor5||{}).importWord=n})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.ar=o.ar||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"حدث خطأ أثناء استيراد ملف Word.","Import from Word":"استيراد من Word","Importing Word document":"استيراد مستند Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.bg=o.bg||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Възникна грешка при импортирането на Word файла.","Import from Word":"Импортиране от Word","Importing Word document":"Въвеждане на документ в Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const n=o.bn=o.bn||{};n.dictionary=Object.assign(n.dictionary||{},{"An error occurred while importing the Word file.":"ওয়ার্ড ফাইল ইমপোর্ট করার সময় একটি ত্রুটি ঘটেছে।","Import from Word":"ওয়ার্ড থেকে ইমপোর্ট করুন","Importing Word document":"ওয়ার্ড ডকুমেন্ট ইম্পোর্ট করা হচ্ছে"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r){const o=r.ca=r.ca||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while importing the Word file.":"Hi ha hagut un error mentre s'importava l'arxiu de Word.","Import from Word":"Importeu de Word","Importing Word document":"Important document de Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.cs=o.cs||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Při importu souboru aplikace Word došlo k chybě.","Import from Word":"Importovat z Wordu","Importing Word document":"Import dokumentu aplikace Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.da=o.da||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Der opstod en fejl unde rimporteringen af Word-filen.","Import from Word":"Importér fra Word","Importing Word document":"Import af Word-dokument"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r){const e=r.de=r.de||{};e.dictionary=Object.assign(e.dictionary||{},{"An error occurred while importing the Word file.":"Beim Importieren der Word-Datei ist ein Fehler aufgetreten.","Import from Word":"Aus Word importieren","Importing Word document":"Word-Dokument importieren"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.el=o.el||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Παρουσιάστηκε σφάλμα κατά την εισαγωγή του αρχείου Word.","Import from Word":"Εισαγωγή από Word","Importing Word document":"Εισαγωγή εγγράφου Κειμένου"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r){const o=r["en-au"]=r["en-au"]||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while importing the Word file.":"An error occurred while importing the Word file.","Import from Word":"Import from Word","Importing Word document":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.es=o.es||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Se ha producido un error al importar el archivo de Word.","Import from Word":"Importar desde Word","Importing Word document":"Importando documento de Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(i){const o=i.et=i.et||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while importing the Word file.":"Wordi faili importimisel tekkis viga.","Import from Word":"Wordist importimine","Importing Word document":"Word dokumendi importimine"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const i=o.fi=o.fi||{};i.dictionary=Object.assign(i.dictionary||{},{"An error occurred while importing the Word file.":"Word-tiedoston tuomisessa tapahtui virhe.","Import from Word":"Tuo Wordista","Importing Word document":"Tuodaan Word-asiakirja"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r){const o=r.fr=r.fr||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while importing the Word file.":"Une erreur s'est produite lors de l'importation du fichier Word.","Import from Word":"Importer depuis Word","Importing Word document":"Importation d'un document Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.gl=o.gl||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Produciuse un erro ao importar o ficheiro de Word.","Import from Word":"Importar dende Word","Importing Word document":"Importar un documento de Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.he=o.he||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"אירעה שגיאה בעת ייבוא קובץ ה-Word.","Import from Word":"ייבוא מ-Word","Importing Word document":"מייבא מסמך וורד"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const i=o.hi=o.hi||{};i.dictionary=Object.assign(i.dictionary||{},{"An error occurred while importing the Word file.":"वर्ड फाइल इंपोर्ट करते वक्त एरर हो गया","Import from Word":"वर्ड से इंपोर्ट करें","Importing Word document":"Word डॉक्यूमेंट इम्पोर्ट की जा रही है"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.hr=o.hr||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Dogodila se greška prilikom uvoza iz Worda","Import from Word":"Uvoz iz Worda","Importing Word document":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.hu=o.hu||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Hiba történt a Word fájl importálása közben.","Import from Word":"Importálás Word dokumentumból","Importing Word document":"Word dokumentum importálása"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.id=o.id||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Terjadi kesalahan saat mengimpor file Word.","Import from Word":"Impor dari Word","Importing Word document":"mengimpor dokumen Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.it=o.it||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Si è verificato un errore durante l'importazione del file Word.","Import from Word":"Importa da Word","Importing Word document":"Importa documento Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.ja=o.ja||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Wordフィアルのインポート中にエラーが発生しました","Import from Word":"Wordからインポート","Importing Word document":"Word文書をインポート中"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.ko=o.ko||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Word 파일을 가져오는 중 오류가 발생했습니다.","Import from Word":"Word에서 가져오기","Importing Word document":"Word 문서 가져오는 중"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const i=o.lt=o.lt||{};i.dictionary=Object.assign(i.dictionary||{},{"An error occurred while importing the Word file.":'Įvyko klaida importuojant ,,Word" failą.',"Import from Word":"Importuoti iš ,,Word''","Importing Word document":"Įkeliamas „Word“ dokumentas"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.lv=o.lv||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Importējot Word failu, radās kļūda","Import from Word":"Importēt no Word","Importing Word document":'Importē "Word" dokumentu'})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.ms=o.ms||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Ralat berlaku semasa mengimport fail Word.","Import from Word":"Import daripada Word","Importing Word document":"Mengimport dokumen Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.nl=o.nl||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Er is een fout opgetreden bij het importeren van het Word-bestand.","Import from Word":"Importeer vanuit Word","Importing Word document":"Word-document importeren"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.no=o.no||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Det oppstod en feil ved importering av Word-filen.","Import from Word":"Importer fra Word","Importing Word document":"Importerer Word-dokument"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.pl=o.pl||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Podczas importowania pliku z programu Word wystąpił błąd.","Import from Word":"Importuj z programu Word","Importing Word document":"Importowanie dokumentu Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o["pt-br"]=o["pt-br"]||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Ocorreu um erro ao importar o arquivo do Word.","Import from Word":"Importar do Word","Importing Word document":"Importação de documento do Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.pt=o.pt||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Ocorreu um erro ao importar o ficheiro Word.","Import from Word":"Importar do Word","Importing Word document":"A importar documento do Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r){const o=r.ro=r.ro||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while importing the Word file.":"A apărut o eroare în timpul importării fișierului Word.","Import from Word":"Importați din Word","Importing Word document":"Importarea unui document Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.ru=o.ru||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"При импорте файла Word произошла ошибка.","Import from Word":"Импорт из Word","Importing Word document":"Импорт документа Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.sk=o.sk||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Pri importovaní súboru programu Word sa vyskytla chyba.","Import from Word":"Importovať z Wordu","Importing Word document":"Import dokumentu vo formáte Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o["sr-latn"]=o["sr-latn"]||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Došlo je do greške pri uvozu Word datoteke.","Import from Word":"Uvezi iz word-a","Importing Word document":"Uvoz Vord dokumenta"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.sr=o.sr||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Дошло је до грешке при увозу Ворд датотеке","Import from Word":"Увези из Ворд-а","Importing Word document":"Uvoz Word dokumenta"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r){const o=r.sv=r.sv||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while importing the Word file.":"Ett fel inträffade vid import av Word-filen.","Import from Word":"Importera från Word","Importing Word document":"Importerar Worddokument"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.th=o.th||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"เกิดข้อผิดพลาดขณะนำเข้าไฟล์ Word","Import from Word":"นำเข้าจาก Word","Importing Word document":"กำลังนำเข้าเอกสาร Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r){const o=r.tr=r.tr||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while importing the Word file.":"Word dosyası içe aktarılırken bir hata oluştu.","Import from Word":"Word'den içe aktar","Importing Word document":"Word belgesi içe aktarılıyor"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.ug=o.ug||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Word ھۆججەتتىن ئەكىرىۋاتقاندا بىر خاتالىق كۆرۈلدى.","Import from Word":"Word تىن ئەكىر","Importing Word document":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.uk=o.uk||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"Під час імпортування файлу Word сталася помилка.","Import from Word":"Імпортувати з Word","Importing Word document":"Імпорт документа Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(i){const o=i.vi=i.vi||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while importing the Word file.":"Đã xảy ra lỗi khi nhập tệp Word.","Import from Word":"Nhập từ Word","Importing Word document":"Đang nhập tài liệu Word"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o["zh-cn"]=o["zh-cn"]||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"导入 Word 文件时出错了。","Import from Word":"从 Word 导入","Importing Word document":"正在导入 Word 文档"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.zh=o.zh||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while importing the Word file.":"匯入 Word 檔時發生錯誤。","Import from Word":"從 Word 匯入","Importing Word document":"匯入 Word 文件"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"plugins": [
|
|
3
|
+
{
|
|
4
|
+
"name": "Import from Word",
|
|
5
|
+
"className": "ImportWord",
|
|
6
|
+
"description": "Allows importing a content from a Word file directly into CKEditor 5.",
|
|
7
|
+
"docs": "features/converters/import-word/import-word.html",
|
|
8
|
+
"path": "src/importword.js",
|
|
9
|
+
"requires": [
|
|
10
|
+
"CloudServices"
|
|
11
|
+
],
|
|
12
|
+
"uiComponents": [
|
|
13
|
+
{
|
|
14
|
+
"type": "Button",
|
|
15
|
+
"name": "importWord",
|
|
16
|
+
"iconPath": "theme/icons/importword.svg"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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-oss-license
|
|
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
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
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-oss-license
|
|
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
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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-oss-license
|
|
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 {};
|
|
@@ -0,0 +1,51 @@
|
|
|
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-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module import-word/importwordediting
|
|
11
|
+
* @publicApi
|
|
12
|
+
*/
|
|
13
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
14
|
+
import { Notification } from 'ckeditor5/src/ui.js';
|
|
15
|
+
import { ClipboardPipeline } from 'ckeditor5/src/clipboard.js';
|
|
16
|
+
import type { InitializedToken } from '@ckeditor/ckeditor5-cloud-services';
|
|
17
|
+
/**
|
|
18
|
+
* The editing part of the import from Word feature.
|
|
19
|
+
*
|
|
20
|
+
* It registers the {@link module:import-word/importwordcommand~ImportWordCommand `'importWord'` command}.
|
|
21
|
+
*/
|
|
22
|
+
export default class ImportWordEditing extends Plugin {
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static get pluginName(): "ImportWordEditing";
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
static get isOfficialPlugin(): true;
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
static get isPremiumPlugin(): true;
|
|
35
|
+
/**
|
|
36
|
+
* @inheritDoc
|
|
37
|
+
*/
|
|
38
|
+
static get requires(): readonly [typeof Notification, typeof ClipboardPipeline, "CloudServices"];
|
|
39
|
+
/**
|
|
40
|
+
* @inheritDoc
|
|
41
|
+
*/
|
|
42
|
+
constructor(editor: Editor);
|
|
43
|
+
/**
|
|
44
|
+
* @inheritDoc
|
|
45
|
+
*/
|
|
46
|
+
init(): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Returns a token used by the import from Word plugin for communication with the Cloud Services.
|
|
49
|
+
*/
|
|
50
|
+
getToken(): InitializedToken | null;
|
|
51
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module import-word/importwordui
|
|
11
|
+
* @publicApi
|
|
12
|
+
*/
|
|
13
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
14
|
+
/**
|
|
15
|
+
* The ImportWordUI plugin. It introduces the `'importWord'` toolbar button.
|
|
16
|
+
*/
|
|
17
|
+
export default class ImportWordUI extends Plugin {
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "ImportWordUI";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get isOfficialPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get isPremiumPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
init(): void;
|
|
34
|
+
}
|
package/dist/index.css
ADDED