@ckeditor/ckeditor5-merge-fields
Version:
Merge fields feature for CKEditor 5.
23 lines • 3.67 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 _0x20cf62=_0x5726;(function(_0x3e0564,_0x250f1d){const _0x4d2891=_0x5726,_0x1b11ea=_0x3e0564();while(!![]){try{const _0x224169=parseInt(_0x4d2891(0x1c1))/0x1*(-parseInt(_0x4d2891(0x1b8))/0x2)+-parseInt(_0x4d2891(0x1c3))/0x3*(-parseInt(_0x4d2891(0x1cf))/0x4)+parseInt(_0x4d2891(0x1ce))/0x5+-parseInt(_0x4d2891(0x1be))/0x6*(parseInt(_0x4d2891(0x1c4))/0x7)+parseInt(_0x4d2891(0x1c8))/0x8+parseInt(_0x4d2891(0x1bc))/0x9*(-parseInt(_0x4d2891(0x1d1))/0xa)+-parseInt(_0x4d2891(0x1c0))/0xb*(parseInt(_0x4d2891(0x1d2))/0xc);if(_0x224169===_0x250f1d)break;else _0x1b11ea['push'](_0x1b11ea['shift']());}catch(_0x362817){_0x1b11ea['push'](_0x1b11ea['shift']());}}}(_0x4f2a,0x3e6c9));function _0x4f2a(){const _0x276200=['checkChild','deleteContent','4069912oEJuST','after','createElement','selection','setAttribute','checkAttribute','1222630QDEwdW','9492dKmJNA','model','110xbqcvM','60gZYuFw','change','insertContent','execute','string','refresh','56ziWAVY','document','isEnabled','schema','2610ovoqWr','mergeField','6294WbUXPT','editor','1343111VyLeMx','9067RNONKv','focus','546nviWgA','413xXnMcq','getAttributes'];_0x4f2a=function(){return _0x276200;};return _0x4f2a();}function _0x5726(_0x963df1,_0x3a4e70){const _0x4f2a95=_0x4f2a();return _0x5726=function(_0x57268c,_0x76c684){_0x57268c=_0x57268c-0x1b4;let _0x27ce34=_0x4f2a95[_0x57268c];return _0x27ce34;},_0x5726(_0x963df1,_0x3a4e70);}import{Command as _0x46cb1c}from'ckeditor5/src/core.js';export default class r extends _0x46cb1c{[_0x20cf62(0x1b7)](){const _0x4b6d39=_0x20cf62,_0x1a8715=this[_0x4b6d39(0x1bf)][_0x4b6d39(0x1d0)],_0x58fe69=_0x1a8715[_0x4b6d39(0x1bb)][_0x4b6d39(0x1c6)](_0x1a8715[_0x4b6d39(0x1b9)][_0x4b6d39(0x1cb)][_0x4b6d39(0x1c2)],_0x4b6d39(0x1bd));this[_0x4b6d39(0x1ba)]=_0x58fe69;}[_0x20cf62(0x1b5)](_0x205f68){const _0x5d0a9b=_0x20cf62;if(!_0x205f68||_0x5d0a9b(0x1b6)!=typeof _0x205f68)return;const _0x39041d=this[_0x5d0a9b(0x1bf)][_0x5d0a9b(0x1d0)];_0x39041d[_0x5d0a9b(0x1d3)](_0x86353d=>{const _0x27db14=_0x5d0a9b;_0x39041d[_0x27db14(0x1c7)](_0x39041d[_0x27db14(0x1b9)][_0x27db14(0x1cb)]);const _0x15c939=_0x86353d[_0x27db14(0x1ca)](_0x27db14(0x1bd),{'id':_0x205f68});for(const [_0x13bc8e,_0x2687d0]of _0x39041d[_0x27db14(0x1b9)][_0x27db14(0x1cb)][_0x27db14(0x1c5)]())_0x39041d[_0x27db14(0x1bb)][_0x27db14(0x1cd)](_0x15c939,_0x13bc8e)&&_0x86353d[_0x27db14(0x1cc)](_0x13bc8e,_0x2687d0,_0x15c939);_0x39041d[_0x27db14(0x1b4)](_0x15c939,_0x39041d[_0x27db14(0x1b9)][_0x27db14(0x1cb)],0x0,{'setSelection':_0x27db14(0x1c9)});});}}