@ckeditor/ckeditor5-export-pdf
Version:
Export to PDF feature for CKEditor 5.
23 lines • 4.75 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 _0x3c6cc8=_0x12c6;(function(_0x1adf9a,_0x25036b){const _0x103cd7=_0x12c6,_0x2b8969=_0x1adf9a();while(!![]){try{const _0x51af33=-parseInt(_0x103cd7(0x196))/0x1+parseInt(_0x103cd7(0x199))/0x2+-parseInt(_0x103cd7(0x1ab))/0x3*(parseInt(_0x103cd7(0x1b2))/0x4)+parseInt(_0x103cd7(0x19c))/0x5+-parseInt(_0x103cd7(0x1b7))/0x6+parseInt(_0x103cd7(0x19f))/0x7*(-parseInt(_0x103cd7(0x1a8))/0x8)+parseInt(_0x103cd7(0x1ac))/0x9;if(_0x51af33===_0x25036b)break;else _0x2b8969['push'](_0x2b8969['shift']());}catch(_0xb79c48){_0x2b8969['push'](_0x2b8969['shift']());}}}(_0xff45,0xb52be));function _0xff45(){const _0x2ca7a4=['Export\x20to\x20PDF','624930wuKNCw','iconView','children','3457279PseDbX','get','exportPdf','bind','isOn','focus','editor','Exporting\x20PDF\x20document','editing','24jycseD','init','componentFactory','4102278dXNoAA','42591870SEoIXt','locale','isPremiumPlugin','ExportPdfUI','label','commands','4oqbQyB','listenTo','pluginName','add','menuBar:exportPdf','6944214DAnYmW','_createButton','isOfficialPlugin','view','set','execute','isVisible','611430DEHrOe','isBusy','isEnabled','1005156nCrplW','config'];_0xff45=function(){return _0x2ca7a4;};return _0xff45();}import{Plugin as _0x2c2c4f}from'ckeditor5/src/core.js';import{IconExportPdf as _0x1e63c2}from'ckeditor5/src/icons.js';import{ButtonView as _0x598ec3,MenuBarMenuListItemButtonView as _0x36a828,SpinnerView as _0x1fe05f}from'ckeditor5/src/ui.js';import{getTranslation as _0x3b6ee9}from'./utils/common-translations.js';function _0x12c6(_0x33fe61,_0x1fdd1f){const _0xff4540=_0xff45();return _0x12c6=function(_0x12c6b5,_0x13ee5b){_0x12c6b5=_0x12c6b5-0x192;let _0x216642=_0xff4540[_0x12c6b5];return _0x216642;},_0x12c6(_0x33fe61,_0x1fdd1f);}export class ExportPdfUI extends _0x2c2c4f{static get[_0x3c6cc8(0x1b4)](){const _0xcc0042=_0x3c6cc8;return _0xcc0042(0x1af);}static get[_0x3c6cc8(0x1b9)](){return!0x0;}static get[_0x3c6cc8(0x1ae)](){return!0x0;}[_0x3c6cc8(0x1a9)](){const _0x232939=_0x3c6cc8,_0x1f48a7=this[_0x232939(0x1a5)];_0x1f48a7['ui'][_0x232939(0x1aa)][_0x232939(0x1b5)](_0x232939(0x1a1),()=>{const _0xf877f0=_0x232939,_0x1893c7=this[_0xf877f0(0x1b8)](_0x598ec3),_0x2c3847=_0x1f48a7[_0xf877f0(0x1b1)][_0xf877f0(0x1a0)](_0xf877f0(0x1a1));return _0x1893c7[_0xf877f0(0x193)]({'tooltip':!0x0}),_0x1893c7[_0xf877f0(0x1a2)](_0xf877f0(0x1a3))['to'](_0x2c3847,_0xf877f0(0x197)),_0x1893c7;}),_0x1f48a7['ui'][_0x232939(0x1aa)][_0x232939(0x1b5)](_0x232939(0x1b6),()=>this[_0x232939(0x1b8)](_0x36a828));}[_0x3c6cc8(0x1b8)](_0x20f3fe){const _0xff4279=_0x3c6cc8,_0x1a43d9=this[_0xff4279(0x1a5)],_0x69a371=_0x1a43d9[_0xff4279(0x19a)][_0xff4279(0x1a0)](_0xff4279(0x1a1))||{},_0x13f8ca=_0x1a43d9[_0xff4279(0x1b1)][_0xff4279(0x1a0)](_0xff4279(0x1a1)),_0x46e3e3=new _0x20f3fe(_0x1a43d9[_0xff4279(0x1ad)]),_0x3ed2db=new _0x1fe05f();return _0x46e3e3[_0xff4279(0x19e)][_0xff4279(0x1b5)](_0x3ed2db),_0x3ed2db[_0xff4279(0x1a2)](_0xff4279(0x195))['to'](_0x13f8ca,_0xff4279(0x197)),_0x46e3e3[_0xff4279(0x19d)][_0xff4279(0x1a2)](_0xff4279(0x195))['to'](_0x13f8ca,_0xff4279(0x197),_0x92ce7f=>!_0x92ce7f),_0x46e3e3[_0xff4279(0x193)]({'icon':_0x1e63c2}),_0x46e3e3[_0xff4279(0x1a2)](_0xff4279(0x198))['to'](_0x13f8ca,_0xff4279(0x198)),_0x46e3e3[_0xff4279(0x1a2)](_0xff4279(0x1b0))['to'](_0x13f8ca,_0xff4279(0x197),_0x394f10=>_0x3b6ee9(_0x1a43d9[_0xff4279(0x1ad)],_0x394f10?_0xff4279(0x1a6):_0xff4279(0x19b))),this[_0xff4279(0x1b3)](_0x46e3e3,_0xff4279(0x194),()=>{const _0x5c2196=_0xff4279;_0x1a43d9[_0x5c2196(0x194)](_0x5c2196(0x1a1),_0x69a371),_0x1a43d9[_0x5c2196(0x1a7)][_0x5c2196(0x192)][_0x5c2196(0x1a4)]();}),_0x46e3e3;}}