UNPKG

@ckeditor/ckeditor5-merge-fields

Version:

Merge fields feature for CKEditor 5.

23 lines 3.17 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0xa374(_0x4a0ef2,_0x59a3b5){const _0x4dc188=_0x4dc1();return _0xa374=function(_0xa37472,_0x3e1bae){_0xa37472=_0xa37472-0x1bf;let _0x568a3a=_0x4dc188[_0xa37472];return _0x568a3a;},_0xa374(_0x4a0ef2,_0x59a3b5);}const _0x5ece28=_0xa374;(function(_0x2c7a8d,_0x67c937){const _0x54f145=_0xa374,_0x234319=_0x2c7a8d();while(!![]){try{const _0x1c2419=-parseInt(_0x54f145(0x1c2))/0x1+parseInt(_0x54f145(0x1d1))/0x2+-parseInt(_0x54f145(0x1d3))/0x3+-parseInt(_0x54f145(0x1cc))/0x4*(-parseInt(_0x54f145(0x1cf))/0x5)+parseInt(_0x54f145(0x1c7))/0x6+-parseInt(_0x54f145(0x1c0))/0x7*(parseInt(_0x54f145(0x1c5))/0x8)+parseInt(_0x54f145(0x1cb))/0x9;if(_0x1c2419===_0x67c937)break;else _0x234319['push'](_0x234319['shift']());}catch(_0x536612){_0x234319['push'](_0x234319['shift']());}}}(_0x4dc1,0x59f6e));import{Command as _0x8e0a1}from'ckeditor5/src/core.js';export default class s extends _0x8e0a1{constructor(_0x5047c7){const _0xf9d11=_0xa374;super(_0x5047c7),this[_0xf9d11(0x1c8)](_0xf9d11(0x1d0))['to'](this[_0xf9d11(0x1bf)][_0xf9d11(0x1c9)][_0xf9d11(0x1c4)](_0xf9d11(0x1cd)));}[_0x5ece28(0x1ce)](_0x3c231c,_0x1108a1){const _0x53b296=_0x5ece28;if(!_0x3c231c||_0x53b296(0x1d4)!=typeof _0x3c231c)return;const _0x10a377=this[_0x53b296(0x1bf)][_0x53b296(0x1c3)][_0x53b296(0x1c4)](_0x53b296(0x1c1)),_0x4bc186=_0x10a377[_0x53b296(0x1ca)](_0x3c231c),_0x27d7f5=_0x10a377[_0x53b296(0x1d2)](_0x3c231c);this[_0x53b296(0x1bf)][_0x53b296(0x1ce)](_0x53b296(0x1cd),{'source':{'src':_0x10a377[_0x53b296(0x1c6)](_0x3c231c),'width':_0x4bc186,'height':_0x27d7f5},'breakBlock':_0x1108a1&&_0x1108a1[_0x53b296(0x1d5)]});}}function _0x4dc1(){const _0x3fc278=['35oUQvxr','MergeFieldsEditing','121184BWbydn','plugins','get','909032XvLnRC','wrapInAffixes','586062pWXJuG','bind','commands','getMergeFieldWidth','9937881KeKhwz','2276nauQDi','insertImage','execute','1415ZOtiFf','isEnabled','211540EfovTf','getMergeFieldHeight','1232580glCWPy','string','breakBlock','editor'];_0x4dc1=function(){return _0x3fc278;};return _0x4dc1();}