@ckeditor/ckeditor5-export-word
Version:
Export to Word feature for CKEditor 5.
23 lines • 4.8 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 _0x4dc5f5=_0x33c4;(function(_0x5ac730,_0xc27856){const _0x159972=_0x33c4,_0x287fe3=_0x5ac730();while(!![]){try{const _0x8132c3=parseInt(_0x159972(0x171))/0x1+-parseInt(_0x159972(0x166))/0x2+parseInt(_0x159972(0x168))/0x3*(parseInt(_0x159972(0x159))/0x4)+-parseInt(_0x159972(0x17c))/0x5+parseInt(_0x159972(0x178))/0x6*(-parseInt(_0x159972(0x161))/0x7)+-parseInt(_0x159972(0x172))/0x8+-parseInt(_0x159972(0x15e))/0x9*(-parseInt(_0x159972(0x16a))/0xa);if(_0x8132c3===_0xc27856)break;else _0x287fe3['push'](_0x287fe3['shift']());}catch(_0x981922){_0x287fe3['push'](_0x287fe3['shift']());}}}(_0x12cd,0xbc567));import{Plugin as _0x563eb3}from'ckeditor5/src/core.js';function _0x33c4(_0x5cbda3,_0x5383f5){const _0x12cd0f=_0x12cd();return _0x33c4=function(_0x33c482,_0x361fb7){_0x33c482=_0x33c482-0x157;let _0x27356a=_0x12cd0f[_0x33c482];return _0x27356a;},_0x33c4(_0x5cbda3,_0x5383f5);}function _0x12cd(){const _0x4085de=['isOfficialPlugin','ExportWordUI','56280xAuonc','config','bind','pluginName','isVisible','2741840VLbCMu','commands','9RwSaJZ','init','9395250NVRIQV','view','isEnabled','exportWord','get','listenTo','editing','432748nPkNdj','1456184xOGzSG','focus','menuBar:exportWord','componentFactory','Export\x20to\x20Word','children','150HOkXmn','label','isBusy','execute','4020075ddrBAj','isOn','_createButton','add','locale','Exporting\x20Word\x20document','104088ZBseMu','editor','iconView','set','isPremiumPlugin','27ExpxCN'];_0x12cd=function(){return _0x4085de;};return _0x12cd();}import{IconExportWord as _0x3f32f6}from'ckeditor5/src/icons.js';import{ButtonView as _0x38447c,MenuBarMenuListItemButtonView as _0x289dfd,SpinnerView as _0x2a8539}from'ckeditor5/src/ui.js';import{getTranslation as _0x460065}from'./utils/common-translations.js';export default class o extends _0x563eb3{static get[_0x4dc5f5(0x164)](){const _0x2de937=_0x4dc5f5;return _0x2de937(0x160);}static get[_0x4dc5f5(0x15f)](){return!0x0;}static get[_0x4dc5f5(0x15d)](){return!0x0;}[_0x4dc5f5(0x169)](){const _0x2894be=_0x4dc5f5,_0x1cf783=this[_0x2894be(0x15a)];_0x1cf783['ui'][_0x2894be(0x175)][_0x2894be(0x17f)](_0x2894be(0x16d),()=>{const _0x126d96=_0x2894be,_0x2e4567=_0x1cf783[_0x126d96(0x167)][_0x126d96(0x16e)](_0x126d96(0x16d)),_0x44ac3a=this[_0x126d96(0x17e)](_0x38447c);return _0x44ac3a[_0x126d96(0x15c)]({'tooltip':!0x0}),_0x44ac3a[_0x126d96(0x163)](_0x126d96(0x17d))['to'](_0x2e4567,_0x126d96(0x17a)),_0x44ac3a;}),_0x1cf783['ui'][_0x2894be(0x175)][_0x2894be(0x17f)](_0x2894be(0x174),()=>this[_0x2894be(0x17e)](_0x289dfd));}[_0x4dc5f5(0x17e)](_0x24f089){const _0x3cd142=_0x4dc5f5,_0x3afc81=this[_0x3cd142(0x15a)],_0x2f3ad6=_0x3afc81[_0x3cd142(0x162)][_0x3cd142(0x16e)](_0x3cd142(0x16d))||{},_0x26bea4=_0x3afc81[_0x3cd142(0x167)][_0x3cd142(0x16e)](_0x3cd142(0x16d)),_0xdfa67c=new _0x24f089(_0x3afc81[_0x3cd142(0x157)]),_0x1cb769=new _0x2a8539();return _0xdfa67c[_0x3cd142(0x177)][_0x3cd142(0x17f)](_0x1cb769),_0x1cb769[_0x3cd142(0x163)](_0x3cd142(0x165))['to'](_0x26bea4,_0x3cd142(0x17a)),_0xdfa67c[_0x3cd142(0x15b)][_0x3cd142(0x163)](_0x3cd142(0x165))['to'](_0x26bea4,_0x3cd142(0x17a),_0x2d9f15=>!_0x2d9f15),_0xdfa67c[_0x3cd142(0x15c)]({'icon':_0x3f32f6}),_0xdfa67c[_0x3cd142(0x163)](_0x3cd142(0x16c))['to'](_0x26bea4,_0x3cd142(0x16c)),_0xdfa67c[_0x3cd142(0x163)](_0x3cd142(0x179))['to'](_0x26bea4,_0x3cd142(0x17a),_0x89a321=>_0x460065(_0x3afc81[_0x3cd142(0x157)],_0x89a321?_0x3cd142(0x158):_0x3cd142(0x176))),this[_0x3cd142(0x16f)](_0xdfa67c,_0x3cd142(0x17b),()=>{const _0xe4bb82=_0x3cd142;_0x3afc81[_0xe4bb82(0x17b)](_0xe4bb82(0x16d),_0x2f3ad6),_0x3afc81[_0xe4bb82(0x170)][_0xe4bb82(0x16b)][_0xe4bb82(0x173)]();}),_0xdfa67c;}}