UNPKG

@ckeditor/ckeditor5-merge-fields

Version:

Merge fields feature for CKEditor 5.

23 lines 3.58 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x468a6b=_0x314e;function _0x314e(_0x3972a2,_0x3c2100){const _0x3e331d=_0x3e33();return _0x314e=function(_0x314e03,_0x19e81d){_0x314e03=_0x314e03-0x154;let _0x400045=_0x3e331d[_0x314e03];return _0x400045;},_0x314e(_0x3972a2,_0x3c2100);}(function(_0x499bcd,_0x357372){const _0x20a0e9=_0x314e,_0x5aa52f=_0x499bcd();while(!![]){try{const _0x812f34=-parseInt(_0x20a0e9(0x16a))/0x1+parseInt(_0x20a0e9(0x165))/0x2+parseInt(_0x20a0e9(0x15c))/0x3*(parseInt(_0x20a0e9(0x168))/0x4)+-parseInt(_0x20a0e9(0x160))/0x5+parseInt(_0x20a0e9(0x157))/0x6+parseInt(_0x20a0e9(0x156))/0x7*(parseInt(_0x20a0e9(0x16b))/0x8)+parseInt(_0x20a0e9(0x164))/0x9*(parseInt(_0x20a0e9(0x161))/0xa);if(_0x812f34===_0x357372)break;else _0x5aa52f['push'](_0x5aa52f['shift']());}catch(_0x45294f){_0x5aa52f['push'](_0x5aa52f['shift']());}}}(_0x3e33,0x7dcac));import{Command as _0x5899fb}from'ckeditor5/src/core.js';export default class r extends _0x5899fb{[_0x468a6b(0x158)](){const _0x188cfd=_0x468a6b,_0x36f256=this[_0x188cfd(0x15a)][_0x188cfd(0x155)],_0x5cd6e5=_0x36f256[_0x188cfd(0x15f)][_0x188cfd(0x169)](_0x36f256[_0x188cfd(0x170)][_0x188cfd(0x162)][_0x188cfd(0x163)],_0x188cfd(0x16f));this[_0x188cfd(0x15e)]=_0x5cd6e5;}[_0x468a6b(0x15d)](_0x424997){const _0x2788a0=_0x468a6b;if(!_0x424997||_0x2788a0(0x166)!=typeof _0x424997)return;const _0x33e70a=this[_0x2788a0(0x15a)][_0x2788a0(0x155)];_0x33e70a[_0x2788a0(0x154)](_0x200d1a=>{const _0x2d22fe=_0x2788a0;_0x33e70a[_0x2d22fe(0x159)](_0x33e70a[_0x2d22fe(0x170)][_0x2d22fe(0x162)]);const _0x53bffd=_0x200d1a[_0x2d22fe(0x16c)](_0x2d22fe(0x16f),{'id':_0x424997});for(const [_0x29a582,_0x376bac]of _0x33e70a[_0x2d22fe(0x170)][_0x2d22fe(0x162)][_0x2d22fe(0x16e)]())_0x33e70a[_0x2d22fe(0x15f)][_0x2d22fe(0x171)](_0x53bffd,_0x29a582)&&_0x200d1a[_0x2d22fe(0x167)](_0x29a582,_0x376bac,_0x53bffd);_0x33e70a[_0x2d22fe(0x15b)](_0x53bffd,_0x33e70a[_0x2d22fe(0x170)][_0x2d22fe(0x162)],0x0,{'setSelection':_0x2d22fe(0x16d)});});}}function _0x3e33(){const _0x51756a=['242826ASVXWD','execute','isEnabled','schema','5110985JbeZoZ','20ZUZeuJ','selection','focus','195651ZuAHOt','293420NtmzGb','string','setAttribute','36yftMZE','checkChild','710338bOkUyx','80hKkDeO','createElement','after','getAttributes','mergeField','document','checkAttribute','change','model','288435JjvKrH','5502378QxSoZR','refresh','deleteContent','editor','insertContent'];_0x3e33=function(){return _0x51756a;};return _0x3e33();}