@ckeditor/ckeditor5-import-word
Version:
Import from Word feature for CKEditor 5.
23 lines • 4.15 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 _0x507f(){const _0x4405b8=['token','1019221iFUAmh','registerTokenUrl','2358092oJOcAt','7332544RlIKCy','tokenUrl','requires','6609840GVaphL','isOfficialPlugin','get','https://docx-converter.cke-cs.com/v2/convert/docx-html','config','commands','65jiGneZ','1125758KIHUbV','isPremiumPlugin','define','ImportWordEditing','editor','_token','getToken','491602dPIAfG','plugins','9kBSUXr','150006FSQfWj','CloudServices','inline','init','6JmkrHw','importWord','pluginName','none','add','cloudServices'];_0x507f=function(){return _0x4405b8;};return _0x507f();}function _0xc3ed(_0x3b0d43,_0x578706){const _0x507f99=_0x507f();return _0xc3ed=function(_0xc3ed4,_0x18f77d){_0xc3ed4=_0xc3ed4-0xf1;let _0x1b17e3=_0x507f99[_0xc3ed4];return _0x1b17e3;},_0xc3ed(_0x3b0d43,_0x578706);}const _0x232d0=_0xc3ed;(function(_0x2d9444,_0x4364c7){const _0x13f9a3=_0xc3ed,_0x4f2211=_0x2d9444();while(!![]){try{const _0x413a62=parseInt(_0x13f9a3(0xfd))/0x1+-parseInt(_0x13f9a3(0xf6))/0x2*(-parseInt(_0x13f9a3(0x104))/0x3)+-parseInt(_0x13f9a3(0x10d))/0x4+-parseInt(_0x13f9a3(0xf5))/0x5*(parseInt(_0x13f9a3(0x100))/0x6)+parseInt(_0x13f9a3(0x10b))/0x7+-parseInt(_0x13f9a3(0x10e))/0x8*(parseInt(_0x13f9a3(0xff))/0x9)+parseInt(_0x13f9a3(0x111))/0xa;if(_0x413a62===_0x4364c7)break;else _0x4f2211['push'](_0x4f2211['shift']());}catch(_0x15b4bf){_0x4f2211['push'](_0x4f2211['shift']());}}}(_0x507f,0x90bcb));import{Plugin as _0x53db3f}from'ckeditor5/src/core.js';import{Notification as _0x3e6ae9}from'ckeditor5/src/ui.js';import{ClipboardPipeline as _0x32ab01}from'ckeditor5/src/clipboard.js';import _0x468fbc from'./importwordcommand.js';export default class e extends _0x53db3f{[_0x232d0(0xfb)];static get[_0x232d0(0x106)](){const _0x286702=_0x232d0;return _0x286702(0xf9);}static get[_0x232d0(0x112)](){return!0x0;}static get[_0x232d0(0xf7)](){return!0x0;}static get[_0x232d0(0x110)](){const _0x29225d=_0x232d0;return[_0x3e6ae9,_0x32ab01,_0x29225d(0x101)];}constructor(_0x5bf568){const _0x369c34=_0x232d0;super(_0x5bf568),this[_0x369c34(0xfb)]=null;}async[_0x232d0(0x103)](){const _0x222746=_0x232d0,_0x5a741a=this[_0x222746(0xfa)];_0x5a741a[_0x222746(0xf3)][_0x222746(0xf8)](_0x222746(0x105),{'converterUrl':_0x222746(0xf2),'tokenUrl':(_0x5a741a[_0x222746(0xf3)][_0x222746(0xf1)](_0x222746(0x109))||{})[_0x222746(0x10f)],'formatting':{'resets':_0x222746(0x107),'defaults':_0x222746(0x107),'styles':_0x222746(0x102)}}),_0x5a741a[_0x222746(0xf4)][_0x222746(0x108)](_0x222746(0x105),new _0x468fbc(_0x5a741a));const {tokenUrl:_0x5b43c1}=_0x5a741a[_0x222746(0xf3)][_0x222746(0xf1)](_0x222746(0x105));if(_0x5b43c1){const {tokenUrl:_0x2cc61c}=_0x5a741a[_0x222746(0xf3)][_0x222746(0xf1)](_0x222746(0x109))||{};this[_0x222746(0xfb)]=_0x5b43c1===_0x2cc61c?_0x5a741a[_0x222746(0xfe)][_0x222746(0xf1)](_0x222746(0x101))[_0x222746(0x10a)]:await _0x5a741a[_0x222746(0xfe)][_0x222746(0xf1)](_0x222746(0x101))[_0x222746(0x10c)](_0x5b43c1);}}[_0x232d0(0xfc)](){const _0x2a30b6=_0x232d0;return this[_0x2a30b6(0xfb)];}}