UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 4.65 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 _0x53eb(_0x2315e8,_0x3e54d9){const _0x587cf9=_0x587c();return _0x53eb=function(_0x53ebdd,_0x4bd6b1){_0x53ebdd=_0x53ebdd-0xdb;let _0x586198=_0x587cf9[_0x53ebdd];return _0x586198;},_0x53eb(_0x2315e8,_0x3e54d9);}const _0x2ebbd5=_0x53eb;function _0x587c(){const _0x894f9f=['ELEMENT_MERGE_FIELD','383897ylagld','insertMergeField','*Insert:*\x20%0','80113iEcvOS','5985371FvAcGY','registerElementLabel','1250VPnvFY','mergeField','registerDescriptionCallback','image','getMergeFieldType','afterInit','get','476286vZteJW','mergeFieldBlock','27936BRySbO','1792kWuoQZ','locale','TrackChangesEditing','editor','55103520hOqobU','3901029pQTnvb','getContainedElement','insertion','src','6XvtHNL','*Remove:*\x20%0','insertMergeFieldBlock','MergeFieldsEditing','65vSXEqd','4kxkKWQ','getLabel','plugins','type','descriptionFactory','has','deletion','unwrapAffixes','enableCommand','getAttribute','insertMergeFieldImage'];_0x587c=function(){return _0x894f9f;};return _0x587c();}(function(_0x1dce97,_0xa34a02){const _0x11b80f=_0x53eb,_0x32a3ca=_0x1dce97();while(!![]){try{const _0x2231e7=parseInt(_0x11b80f(0xdd))/0x1*(-parseInt(_0x11b80f(0xf6))/0x2)+parseInt(_0x11b80f(0xf2))/0x3*(-parseInt(_0x11b80f(0xfb))/0x4)+parseInt(_0x11b80f(0xfa))/0x5*(parseInt(_0x11b80f(0xea))/0x6)+-parseInt(_0x11b80f(0xe1))/0x7+-parseInt(_0x11b80f(0xed))/0x8*(parseInt(_0x11b80f(0xec))/0x9)+parseInt(_0x11b80f(0xe3))/0xa*(-parseInt(_0x11b80f(0xe0))/0xb)+parseInt(_0x11b80f(0xf1))/0xc;if(_0x2231e7===_0xa34a02)break;else _0x32a3ca['push'](_0x32a3ca['shift']());}catch(_0x28f501){_0x32a3ca['push'](_0x32a3ca['shift']());}}}(_0x587c,0xad9f3));import{Plugin as _0x34320d}from'ckeditor5/src/core.js';import{getTranslation as _0x5d59e4}from'../utils/common-translations.js';export class TrackChangesMergeFields extends _0x34320d{[_0x2ebbd5(0xe8)](){const _0x47895c=_0x2ebbd5,_0x49a2a3=this[_0x47895c(0xf0)];if(!_0x49a2a3[_0x47895c(0xfd)][_0x47895c(0x100)](_0x47895c(0xf9)))return;const _0x4b1787=_0x49a2a3[_0x47895c(0xfd)][_0x47895c(0xe9)](_0x47895c(0xef)),_0x41dcfb=_0x49a2a3[_0x47895c(0xee)];_0x4b1787[_0x47895c(0x103)](_0x47895c(0xde)),_0x4b1787[_0x47895c(0x103)](_0x47895c(0xf8)),_0x4b1787[_0x47895c(0x103)](_0x47895c(0xdb)),_0x4b1787[_0x47895c(0xff)][_0x47895c(0xe2)](_0x47895c(0xe4),_0x493b9b=>_0x5d59e4(_0x41dcfb,_0x47895c(0xdc),_0x493b9b)),_0x4b1787[_0x47895c(0xff)][_0x47895c(0xe2)](_0x47895c(0xeb),_0xcb2c6e=>_0x5d59e4(_0x41dcfb,_0x47895c(0xdc),_0xcb2c6e)),_0x4b1787[_0x47895c(0xff)][_0x47895c(0xe5)](_0x3c341f=>{const _0x484dd5=_0x47895c;if(_0x484dd5(0xf4)!=_0x3c341f[_0x484dd5(0xfe)]&&_0x484dd5(0x101)!=_0x3c341f[_0x484dd5(0xfe)])return;const _0x2b7a57=_0x3c341f[_0x484dd5(0xf3)]();if(null==_0x2b7a57)return;const _0x591e8f=_0x49a2a3[_0x484dd5(0xfd)][_0x484dd5(0xe9)](_0x484dd5(0xf9));let _0x1a0000;switch(_0x591e8f[_0x484dd5(0xe7)](_0x2b7a57)){case null:return;case _0x484dd5(0xe6):{const _0x11ebca=_0x591e8f[_0x484dd5(0x102)](_0x2b7a57[_0x484dd5(0x104)](_0x484dd5(0xf5)));_0x1a0000=_0x591e8f[_0x484dd5(0xfc)](_0x11ebca)||_0x11ebca;break;}default:{const _0x1b5819=_0x2b7a57[_0x484dd5(0x104)]('id');_0x1a0000=_0x591e8f[_0x484dd5(0xfc)](_0x1b5819)||_0x1b5819;break;}}return _0x484dd5(0xf4)==_0x3c341f[_0x484dd5(0xfe)]?{'type':_0x484dd5(0xf4),'content':_0x5d59e4(_0x41dcfb,_0x484dd5(0xdf),'\x22'+_0x1a0000+'\x22\x20'+_0x5d59e4(_0x41dcfb,_0x484dd5(0xdc)))}:{'type':_0x484dd5(0x101),'content':_0x5d59e4(_0x41dcfb,_0x484dd5(0xf7),'\x22'+_0x1a0000+'\x22\x20'+_0x5d59e4(_0x41dcfb,_0x484dd5(0xdc)))};});}}