@ckeditor/ckeditor5-export-word
Version:
Export to Word feature for CKEditor 5.
23 lines • 4.83 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
function _0x7567(){const _0x3b030e=['Exporting\x20Word\x20document','execute','isPremiumPlugin','commands','editing','175494gdIZYG','bind','isBusy','label','listenTo','7GDOmQg','isOn','componentFactory','275sXmLEV','exportWord','editor','3813608bJdMaa','init','menuBar:exportWord','488280zvGRPa','isOfficialPlugin','isVisible','children','ExportWordUI','10SMkNar','Export\x20to\x20Word','add','pluginName','focus','11010zrrxMk','285873DHgFvr','_createButton','config','view','iconView','get','locale','54174LRHdUp','isEnabled','set','52EmiDeg','2123154vJEElK'];_0x7567=function(){return _0x3b030e;};return _0x7567();}function _0x311d(_0x3feddc,_0x4f04c7){const _0x756794=_0x7567();return _0x311d=function(_0x311d90,_0x5d51a3){_0x311d90=_0x311d90-0x109;let _0x112df7=_0x756794[_0x311d90];return _0x112df7;},_0x311d(_0x3feddc,_0x4f04c7);}const _0x3b930d=_0x311d;(function(_0x11f107,_0x5a48c5){const _0x6333d2=_0x311d,_0x6ed7e2=_0x11f107();while(!![]){try{const _0x2c66e2=parseInt(_0x6333d2(0x10b))/0x1+-parseInt(_0x6333d2(0x115))/0x2*(parseInt(_0x6333d2(0x112))/0x3)+parseInt(_0x6333d2(0x12a))/0x4+-parseInt(_0x6333d2(0x124))/0x5*(-parseInt(_0x6333d2(0x10a))/0x6)+-parseInt(_0x6333d2(0x121))/0x7*(-parseInt(_0x6333d2(0x127))/0x8)+-parseInt(_0x6333d2(0x116))/0x9*(parseInt(_0x6333d2(0x12f))/0xa)+-parseInt(_0x6333d2(0x11c))/0xb;if(_0x2c66e2===_0x5a48c5)break;else _0x6ed7e2['push'](_0x6ed7e2['shift']());}catch(_0x37d624){_0x6ed7e2['push'](_0x6ed7e2['shift']());}}}(_0x7567,0x40809));import{Plugin as _0x34759d}from'ckeditor5/src/core.js';import{ButtonView as _0x5b0a2d,MenuBarMenuListItemButtonView as _0x36ef79,SpinnerView as _0x1dc256}from'ckeditor5/src/ui.js';import _0x15a179 from'../theme/icons/exportword.svg';import{getTranslation as _0x5d9857}from'./utils/common-translations.js';export default class o extends _0x34759d{static get[_0x3b930d(0x132)](){const _0x32fb88=_0x3b930d;return _0x32fb88(0x12e);}static get[_0x3b930d(0x12b)](){return!0x0;}static get[_0x3b930d(0x119)](){return!0x0;}[_0x3b930d(0x128)](){const _0xe38717=_0x3b930d,_0x1101c1=this[_0xe38717(0x126)];_0x1101c1['ui'][_0xe38717(0x123)][_0xe38717(0x131)](_0xe38717(0x125),()=>{const _0x39c213=_0xe38717,_0x1c0c59=_0x1101c1[_0x39c213(0x11a)][_0x39c213(0x110)](_0x39c213(0x125)),_0x16ca6c=this[_0x39c213(0x10c)](_0x5b0a2d);return _0x16ca6c[_0x39c213(0x114)]({'tooltip':!0x0}),_0x16ca6c[_0x39c213(0x11d)](_0x39c213(0x122))['to'](_0x1c0c59,_0x39c213(0x11e)),_0x16ca6c;}),_0x1101c1['ui'][_0xe38717(0x123)][_0xe38717(0x131)](_0xe38717(0x129),()=>this[_0xe38717(0x10c)](_0x36ef79));}[_0x3b930d(0x10c)](_0x46444){const _0x4f51b0=_0x3b930d,_0x535ef6=this[_0x4f51b0(0x126)],_0x11c44b=_0x535ef6[_0x4f51b0(0x10d)][_0x4f51b0(0x110)](_0x4f51b0(0x125))||{},_0x1b0feb=_0x535ef6[_0x4f51b0(0x11a)][_0x4f51b0(0x110)](_0x4f51b0(0x125)),_0x1ed53b=new _0x46444(_0x535ef6[_0x4f51b0(0x111)]),_0x44f26c=new _0x1dc256();return _0x1ed53b[_0x4f51b0(0x12d)][_0x4f51b0(0x131)](_0x44f26c),_0x44f26c[_0x4f51b0(0x11d)](_0x4f51b0(0x12c))['to'](_0x1b0feb,_0x4f51b0(0x11e)),_0x1ed53b[_0x4f51b0(0x10f)][_0x4f51b0(0x11d)](_0x4f51b0(0x12c))['to'](_0x1b0feb,_0x4f51b0(0x11e),_0x57d527=>!_0x57d527),_0x1ed53b[_0x4f51b0(0x114)]({'icon':_0x15a179}),_0x1ed53b[_0x4f51b0(0x11d)](_0x4f51b0(0x113))['to'](_0x1b0feb,_0x4f51b0(0x113)),_0x1ed53b[_0x4f51b0(0x11d)](_0x4f51b0(0x11f))['to'](_0x1b0feb,_0x4f51b0(0x11e),_0x393b6e=>_0x5d9857(_0x535ef6[_0x4f51b0(0x111)],_0x393b6e?_0x4f51b0(0x117):_0x4f51b0(0x130))),this[_0x4f51b0(0x120)](_0x1ed53b,_0x4f51b0(0x118),()=>{const _0x35c2c5=_0x4f51b0;_0x535ef6[_0x35c2c5(0x118)](_0x35c2c5(0x125),_0x11c44b),_0x535ef6[_0x35c2c5(0x11b)][_0x35c2c5(0x10e)][_0x35c2c5(0x109)]();}),_0x1ed53b;}}