@ckeditor/ckeditor5-merge-fields
Version:
Merge fields feature for CKEditor 5.
23 lines • 3.64 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 _0x2f81(){const _0x114d2b=['6UfLxQX','1956UBHgQC','insertObject','807435AARpku','216boIRMS','start','change','parent','65841rEsMcN','string','23495ouYctJ','editor','auto','1148334UpdBuH','mergeFieldBlock','model','execute','isLimit','document','createElement','refresh','isEmpty','selection','isEnabled','3965IBhYdd','64708PCikGU','8937210jjwmzp','checkChild','schema'];_0x2f81=function(){return _0x114d2b;};return _0x2f81();}const _0x1f4cce=_0x2091;(function(_0x589e38,_0x1cd4a1){const _0x27e311=_0x2091,_0x46491f=_0x589e38();while(!![]){try{const _0x54ae0d=-parseInt(_0x27e311(0xcb))/0x1+parseInt(_0x27e311(0xc1))/0x2*(parseInt(_0x27e311(0xc9))/0x3)+-parseInt(_0x27e311(0xc2))/0x4*(parseInt(_0x27e311(0xbc))/0x5)+-parseInt(_0x27e311(0xce))/0x6+-parseInt(_0x27e311(0xbd))/0x7*(parseInt(_0x27e311(0xc5))/0x8)+parseInt(_0x27e311(0xc4))/0x9+parseInt(_0x27e311(0xbe))/0xa;if(_0x54ae0d===_0x1cd4a1)break;else _0x46491f['push'](_0x46491f['shift']());}catch(_0x39db79){_0x46491f['push'](_0x46491f['shift']());}}}(_0x2f81,0x301a4));import{Command as _0x87c222}from'ckeditor5/src/core.js';function _0x2091(_0x4579f1,_0x27b763){const _0x2f8189=_0x2f81();return _0x2091=function(_0x2091f9,_0x2d916b){_0x2091f9=_0x2091f9-0xb7;let _0x2328c2=_0x2f8189[_0x2091f9];return _0x2328c2;},_0x2091(_0x4579f1,_0x27b763);}import{findOptimalInsertionRange as _0x27b793}from'ckeditor5/src/widget.js';export default class i extends _0x87c222{[_0x1f4cce(0xb8)](){const _0x1b48f4=_0x1f4cce,_0xf01a0c=this[_0x1b48f4(0xcc)][_0x1b48f4(0xd0)],_0x1b1a5c=_0xf01a0c[_0x1b48f4(0xd3)][_0x1b48f4(0xba)];this[_0x1b48f4(0xbb)]=function(_0x4df3bb,_0x5b057b){const _0x41b6c9=_0x1b48f4,_0x239908=_0x27b793(_0x4df3bb,_0x5b057b);let _0x4dbd54=_0x239908[_0x41b6c9(0xc6)][_0x41b6c9(0xc8)];return _0x4dbd54[_0x41b6c9(0xb9)]&&!_0x5b057b[_0x41b6c9(0xc0)][_0x41b6c9(0xd2)](_0x4dbd54)&&(_0x4dbd54=_0x4dbd54[_0x41b6c9(0xc8)]),_0x5b057b[_0x41b6c9(0xc0)][_0x41b6c9(0xbf)](_0x4dbd54,_0x41b6c9(0xcf));}(_0x1b1a5c,_0xf01a0c);}[_0x1f4cce(0xd1)](_0x25c867,_0x1bc7eb){const _0x3e0f20=_0x1f4cce;if(!_0x25c867||_0x3e0f20(0xca)!=typeof _0x25c867)return;const _0x4e03c0=this[_0x3e0f20(0xcc)][_0x3e0f20(0xd0)];_0x4e03c0[_0x3e0f20(0xc7)](_0x32028e=>{const _0x5717de=_0x3e0f20,_0x2b7e28=_0x32028e[_0x5717de(0xb7)](_0x5717de(0xcf),{'id':_0x25c867});_0x4e03c0[_0x5717de(0xc3)](_0x2b7e28,_0x4e03c0[_0x5717de(0xd3)][_0x5717de(0xba)],null,{'setSelection':'on','findOptimalPosition':!0x1===_0x1bc7eb?void 0x0:_0x5717de(0xcd)});});}}