@ckeditor/ckeditor5-merge-fields
Version:
Merge fields feature for CKEditor 5.
23 lines • 3.69 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 _0x560b(_0x5bc892,_0x574062){const _0x6a460=_0x6a46();return _0x560b=function(_0x560b5f,_0x1dc2cc){_0x560b5f=_0x560b5f-0x114;let _0x5b22ce=_0x6a460[_0x560b5f];return _0x5b22ce;},_0x560b(_0x5bc892,_0x574062);}const _0x3e9585=_0x560b;(function(_0x402662,_0xbf418c){const _0x1edcf7=_0x560b,_0x3f4ebd=_0x402662();while(!![]){try{const _0x3c1913=-parseInt(_0x1edcf7(0x121))/0x1+-parseInt(_0x1edcf7(0x11d))/0x2*(parseInt(_0x1edcf7(0x12d))/0x3)+-parseInt(_0x1edcf7(0x115))/0x4*(-parseInt(_0x1edcf7(0x11e))/0x5)+parseInt(_0x1edcf7(0x116))/0x6+-parseInt(_0x1edcf7(0x117))/0x7+-parseInt(_0x1edcf7(0x125))/0x8+parseInt(_0x1edcf7(0x12c))/0x9*(parseInt(_0x1edcf7(0x128))/0xa);if(_0x3c1913===_0xbf418c)break;else _0x3f4ebd['push'](_0x3f4ebd['shift']());}catch(_0x2073d4){_0x3f4ebd['push'](_0x3f4ebd['shift']());}}}(_0x6a46,0xcca2a));import{Command as _0x1955ba}from'ckeditor5/src/core.js';import{findOptimalInsertionRange as _0x2998d5}from'ckeditor5/src/widget.js';export default class i extends _0x1955ba{[_0x3e9585(0x127)](){const _0x75481b=_0x3e9585,_0xe5b92b=this[_0x75481b(0x120)][_0x75481b(0x12e)],_0x5a95bd=_0xe5b92b[_0x75481b(0x123)][_0x75481b(0x130)];this[_0x75481b(0x11a)]=function(_0x22dc40,_0x29cbee){const _0x1383ba=_0x75481b,_0x1fc287=_0x2998d5(_0x22dc40,_0x29cbee);let _0x1e2407=_0x1fc287[_0x1383ba(0x118)][_0x1383ba(0x12f)];return _0x1e2407[_0x1383ba(0x11b)]&&!_0x29cbee[_0x1383ba(0x129)][_0x1383ba(0x11f)](_0x1e2407)&&(_0x1e2407=_0x1e2407[_0x1383ba(0x12f)]),_0x29cbee[_0x1383ba(0x129)][_0x1383ba(0x12a)](_0x1e2407,_0x1383ba(0x12b));}(_0x5a95bd,_0xe5b92b);}[_0x3e9585(0x122)](_0x3ca773,_0x13577c){const _0x40ec9c=_0x3e9585;if(!_0x3ca773||_0x40ec9c(0x126)!=typeof _0x3ca773)return;const _0x5c67a1=this[_0x40ec9c(0x120)][_0x40ec9c(0x12e)];_0x5c67a1[_0x40ec9c(0x119)](_0x253add=>{const _0x596af4=_0x40ec9c,_0x24f98e=_0x253add[_0x596af4(0x11c)](_0x596af4(0x12b),{'id':_0x3ca773});_0x5c67a1[_0x596af4(0x114)](_0x24f98e,_0x5c67a1[_0x596af4(0x123)][_0x596af4(0x130)],null,{'setSelection':'on','findOptimalPosition':!0x1===_0x13577c?void 0x0:_0x596af4(0x124)});});}}function _0x6a46(){const _0x47183a=['3165474XRffUj','10325441WrECpJ','start','change','isEnabled','isEmpty','createElement','2048386bIjEHu','1531885kjJsDN','isLimit','editor','492997BDDCJa','execute','document','auto','6444944hiXMvV','string','refresh','38021010JFhqcU','schema','checkChild','mergeFieldBlock','9DDphxW','3ohQmkz','model','parent','selection','insertObject','4DsDKIk'];_0x6a46=function(){return _0x47183a;};return _0x6a46();}