@ckeditor/ckeditor5-import-word
Version:
Import from Word feature for CKEditor 5.
23 lines • 4.91 kB
JavaScript
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x1bcb4e=_0x40db;(function(_0x2ba98b,_0x2866e8){const _0x198af8=_0x40db,_0x12337b=_0x2ba98b();while(!![]){try{const _0x24324b=parseInt(_0x198af8(0x16f))/0x1+-parseInt(_0x198af8(0x17c))/0x2*(parseInt(_0x198af8(0x161))/0x3)+-parseInt(_0x198af8(0x17e))/0x4+parseInt(_0x198af8(0x178))/0x5+parseInt(_0x198af8(0x162))/0x6*(-parseInt(_0x198af8(0x175))/0x7)+-parseInt(_0x198af8(0x180))/0x8*(-parseInt(_0x198af8(0x176))/0x9)+parseInt(_0x198af8(0x16a))/0xa;if(_0x24324b===_0x2866e8)break;else _0x12337b['push'](_0x12337b['shift']());}catch(_0x4f1bd3){_0x12337b['push'](_0x12337b['shift']());}}}(_0x5d46,0x5f438));import{Plugin as _0x30dcce}from'ckeditor5/src/core.js';import{IconImportWord as _0x825a32}from'ckeditor5/src/icons.js';function _0x5d46(){const _0xde6762=['Importing\x20Word\x20document','isVisible','1821HLhZma','46608LvvLyk','isOn','isPremiumPlugin','get','bind','Import\x20from\x20Word','set','iconView','2650570XWADAK','componentFactory','editor','application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template','locale','158565kDNcDj','menuBar:importWord','pluginName','children','ImportWordUI','focus','14khiEDz','18tmHVci','done','876290BTmIia','isEnabled','execute','importWord','978beFijN','commands','2158940OUeIRl','tooltip','2573656spLwHc','isBusy','isOfficialPlugin','editing','view','_createButton','add','label','init'];_0x5d46=function(){return _0xde6762;};return _0x5d46();}function _0x40db(_0x2de799,_0x3b95e9){const _0x5d462f=_0x5d46();return _0x40db=function(_0x40db15,_0x171281){_0x40db15=_0x40db15-0x161;let _0x3f165=_0x5d462f[_0x40db15];return _0x3f165;},_0x40db(_0x2de799,_0x3b95e9);}import{MenuBarMenuListItemFileDialogButtonView as _0x40afb,SpinnerView as _0xdba43f,FileDialogButtonView as _0x3b4dbe}from'ckeditor5/src/ui.js';import{getTranslation as _0x4af6ed}from'./utils/common-translations.js';export default class i extends _0x30dcce{static get[_0x1bcb4e(0x171)](){const _0x5a11b3=_0x1bcb4e;return _0x5a11b3(0x173);}static get[_0x1bcb4e(0x182)](){return!0x0;}static get[_0x1bcb4e(0x164)](){return!0x0;}[_0x1bcb4e(0x188)](){const _0x5be173=_0x1bcb4e,_0x307bfa=this[_0x5be173(0x16c)];_0x307bfa['ui'][_0x5be173(0x16b)][_0x5be173(0x186)](_0x5be173(0x17b),()=>{const _0x79836a=_0x5be173,_0x21a0be=this[_0x79836a(0x185)](_0x3b4dbe),_0x285216=_0x307bfa[_0x79836a(0x17d)][_0x79836a(0x165)](_0x79836a(0x17b));return _0x21a0be[_0x79836a(0x166)](_0x79836a(0x163))['to'](_0x285216,_0x79836a(0x181)),_0x21a0be[_0x79836a(0x17f)]=!0x0,_0x21a0be;}),_0x307bfa['ui'][_0x5be173(0x16b)][_0x5be173(0x186)](_0x5be173(0x170),()=>this[_0x5be173(0x185)](_0x40afb));}[_0x1bcb4e(0x185)](_0x54e96d){const _0x566654=_0x1bcb4e,_0x9fe93=this[_0x566654(0x16c)],_0x1799ae=_0x9fe93[_0x566654(0x17d)][_0x566654(0x165)](_0x566654(0x17b)),_0x10941c=new _0x54e96d(_0x9fe93[_0x566654(0x16e)]),_0x16d8fb=new _0xdba43f();return _0x10941c[_0x566654(0x168)]({'acceptedType':_0x566654(0x16d)}),_0x10941c[_0x566654(0x168)]({'icon':_0x825a32}),_0x10941c[_0x566654(0x166)](_0x566654(0x179))['to'](_0x1799ae),_0x10941c[_0x566654(0x166)](_0x566654(0x187))['to'](_0x1799ae,_0x566654(0x181),_0x4ba522=>_0x4af6ed(_0x9fe93[_0x566654(0x16e)],_0x4ba522?_0x566654(0x189):_0x566654(0x167))),_0x16d8fb[_0x566654(0x166)](_0x566654(0x18a))['to'](_0x1799ae,_0x566654(0x181)),_0x10941c[_0x566654(0x169)][_0x566654(0x166)](_0x566654(0x18a))['to'](_0x1799ae,_0x566654(0x181),_0x430c87=>!_0x430c87),_0x10941c[_0x566654(0x172)][_0x566654(0x186)](_0x16d8fb),_0x10941c['on'](_0x566654(0x177),(_0x4d25e3,_0x149b15)=>{const _0x1cc4cc=_0x566654;_0x9fe93[_0x1cc4cc(0x17a)](_0x1cc4cc(0x17b),_0x149b15[0x0],{}),_0x9fe93[_0x1cc4cc(0x183)][_0x1cc4cc(0x184)][_0x1cc4cc(0x174)]();}),_0x10941c;}}