UNPKG

@ckeditor/ckeditor5-import-word

Version:

Import from Word feature for CKEditor 5.

23 lines 4.12 kB
/* * 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 _0x1a695b=_0x4b2a;(function(_0x519367,_0xff14f4){const _0x565909=_0x4b2a,_0x452249=_0x519367();while(!![]){try{const _0x43cb43=parseInt(_0x565909(0xb5))/0x1+parseInt(_0x565909(0xc3))/0x2+-parseInt(_0x565909(0xc0))/0x3*(-parseInt(_0x565909(0xcc))/0x4)+parseInt(_0x565909(0xbe))/0x5*(-parseInt(_0x565909(0xb0))/0x6)+parseInt(_0x565909(0xbc))/0x7*(-parseInt(_0x565909(0xb7))/0x8)+parseInt(_0x565909(0xc2))/0x9+parseInt(_0x565909(0xb2))/0xa;if(_0x43cb43===_0xff14f4)break;else _0x452249['push'](_0x452249['shift']());}catch(_0x384d6d){_0x452249['push'](_0x452249['shift']());}}}(_0x24b8,0x973bc));function _0x4b2a(_0x57a7b3,_0x3b98f0){const _0x24b841=_0x24b8();return _0x4b2a=function(_0x4b2a80,_0x409d3c){_0x4b2a80=_0x4b2a80-0xb0;let _0xd6e874=_0x24b841[_0x4b2a80];return _0xd6e874;},_0x4b2a(_0x57a7b3,_0x3b98f0);}function _0x24b8(){const _0x3938e9=['CloudServices','requires','editor','tokenUrl','966kGAbLd','config','3840570bDvHsQ','add','define','75114NjnTFN','get','40dWBYAi','getToken','ImportWordEditing','token','registerTokenUrl','1108366AQazJn','init','37895KdnSOA','isPremiumPlugin','4782hnyHvw','pluginName','8370774tfeUQQ','1234512vyKNuu','isOfficialPlugin','importWord','cloudServices','plugins','https://docx-converter.cke-cs.com/v2/convert/docx-html','commands','inline','none','1568TfCIlF','_token'];_0x24b8=function(){return _0x3938e9;};return _0x24b8();}import{Plugin as _0x7d3fb}from'ckeditor5/src/core.js';import{Notification as _0x52417a}from'ckeditor5/src/ui.js';import{ClipboardPipeline as _0x434f76}from'ckeditor5/src/clipboard.js';import _0x264f85 from'./importwordcommand.js';export default class e extends _0x7d3fb{static get[_0x1a695b(0xc1)](){const _0x4b2c58=_0x1a695b;return _0x4b2c58(0xb9);}static get[_0x1a695b(0xc4)](){return!0x0;}static get[_0x1a695b(0xbf)](){return!0x0;}static get[_0x1a695b(0xcf)](){const _0x40395c=_0x1a695b;return[_0x52417a,_0x434f76,_0x40395c(0xce)];}constructor(_0x1c51ae){const _0x3b9587=_0x1a695b;super(_0x1c51ae),this[_0x3b9587(0xcd)]=null;}async[_0x1a695b(0xbd)](){const _0xc9b3a7=_0x1a695b,_0x1d729c=this[_0xc9b3a7(0xd0)];_0x1d729c[_0xc9b3a7(0xb1)][_0xc9b3a7(0xb4)](_0xc9b3a7(0xc5),{'converterUrl':_0xc9b3a7(0xc8),'tokenUrl':(_0x1d729c[_0xc9b3a7(0xb1)][_0xc9b3a7(0xb6)](_0xc9b3a7(0xc6))||{})[_0xc9b3a7(0xd1)],'formatting':{'resets':_0xc9b3a7(0xcb),'defaults':_0xc9b3a7(0xcb),'styles':_0xc9b3a7(0xca)}}),_0x1d729c[_0xc9b3a7(0xc9)][_0xc9b3a7(0xb3)](_0xc9b3a7(0xc5),new _0x264f85(_0x1d729c));const {tokenUrl:_0x120924}=_0x1d729c[_0xc9b3a7(0xb1)][_0xc9b3a7(0xb6)](_0xc9b3a7(0xc5));if(_0x120924){const {tokenUrl:_0x2b92a4}=_0x1d729c[_0xc9b3a7(0xb1)][_0xc9b3a7(0xb6)](_0xc9b3a7(0xc6))||{};this[_0xc9b3a7(0xcd)]=_0x120924===_0x2b92a4?_0x1d729c[_0xc9b3a7(0xc7)][_0xc9b3a7(0xb6)](_0xc9b3a7(0xce))[_0xc9b3a7(0xba)]:await _0x1d729c[_0xc9b3a7(0xc7)][_0xc9b3a7(0xb6)](_0xc9b3a7(0xce))[_0xc9b3a7(0xbb)](_0x120924);}}[_0x1a695b(0xb8)](){const _0x44b3b9=_0x1a695b;return this[_0x44b3b9(0xcd)];}}