UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 4.55 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 _0x1c4ee7=_0x43e6;function _0x4188(){const _0x2d60d4=['123360SXwPiM','424185jCOywo','editor','42AnrshI','ELEMENT_MERGE_FIELD','registerElementLabel','1198426zhqqPA','MergeFieldsEditing','155928xghstV','enableCommand','27231543sFqigU','*Insert:*\x20%0','type','locale','insertMergeFieldImage','unwrapAffixes','5989740eGeFhi','getLabel','afterInit','getMergeFieldType','3471566DVTHNl','has','mergeFieldBlock','insertMergeFieldBlock','*Remove:*\x20%0','insertMergeField','src','descriptionFactory','mergeField','get','getAttribute','insertion','deletion','16zQVixu','TrackChangesEditing','getContainedElement','image','plugins','registerDescriptionCallback'];_0x4188=function(){return _0x2d60d4;};return _0x4188();}function _0x43e6(_0x3e4e28,_0x5ee9d0){const _0x41887b=_0x4188();return _0x43e6=function(_0x43e61f,_0x305efa){_0x43e61f=_0x43e61f-0x1c8;let _0x372d2b=_0x41887b[_0x43e61f];return _0x372d2b;},_0x43e6(_0x3e4e28,_0x5ee9d0);}(function(_0x37d2e5,_0x5ea3d7){const _0x1a3f4d=_0x43e6,_0x4f5f1f=_0x37d2e5();while(!![]){try{const _0x4e9df0=-parseInt(_0x1a3f4d(0x1ea))/0x1+parseInt(_0x1a3f4d(0x1e4))/0x2+parseInt(_0x1a3f4d(0x1ec))/0x3+-parseInt(_0x1a3f4d(0x1cd))/0x4+parseInt(_0x1a3f4d(0x1e5))/0x5*(-parseInt(_0x1a3f4d(0x1e7))/0x6)+parseInt(_0x1a3f4d(0x1d1))/0x7*(parseInt(_0x1a3f4d(0x1de))/0x8)+parseInt(_0x1a3f4d(0x1ee))/0x9;if(_0x4e9df0===_0x5ea3d7)break;else _0x4f5f1f['push'](_0x4f5f1f['shift']());}catch(_0x4859f6){_0x4f5f1f['push'](_0x4f5f1f['shift']());}}}(_0x4188,0xcd743));import{Plugin as _0xcc2c61}from'ckeditor5/src/core.js';import{getTranslation as _0x3f8fae}from'../utils/common-translations.js';export default class kt extends _0xcc2c61{[_0x1c4ee7(0x1cf)](){const _0xf82d5d=_0x1c4ee7,_0x1d8319=this[_0xf82d5d(0x1e6)];if(!_0x1d8319[_0xf82d5d(0x1e2)][_0xf82d5d(0x1d2)](_0xf82d5d(0x1eb)))return;const _0x34ea4d=_0x1d8319[_0xf82d5d(0x1e2)][_0xf82d5d(0x1da)](_0xf82d5d(0x1df)),_0x3e1460=_0x1d8319[_0xf82d5d(0x1ca)];_0x34ea4d[_0xf82d5d(0x1ed)](_0xf82d5d(0x1d6)),_0x34ea4d[_0xf82d5d(0x1ed)](_0xf82d5d(0x1d4)),_0x34ea4d[_0xf82d5d(0x1ed)](_0xf82d5d(0x1cb)),_0x34ea4d[_0xf82d5d(0x1d8)][_0xf82d5d(0x1e9)](_0xf82d5d(0x1d9),_0x8946f8=>_0x3f8fae(_0x3e1460,_0xf82d5d(0x1e8),_0x8946f8)),_0x34ea4d[_0xf82d5d(0x1d8)][_0xf82d5d(0x1e9)](_0xf82d5d(0x1d3),_0x45f871=>_0x3f8fae(_0x3e1460,_0xf82d5d(0x1e8),_0x45f871)),_0x34ea4d[_0xf82d5d(0x1d8)][_0xf82d5d(0x1e3)](_0x249821=>{const _0x26393b=_0xf82d5d;if(_0x26393b(0x1dc)!=_0x249821[_0x26393b(0x1c9)]&&_0x26393b(0x1dd)!=_0x249821[_0x26393b(0x1c9)])return;const _0xb88e67=_0x249821[_0x26393b(0x1e0)]();if(null==_0xb88e67)return;const _0x150307=_0x1d8319[_0x26393b(0x1e2)][_0x26393b(0x1da)](_0x26393b(0x1eb));let _0x5baa11;switch(_0x150307[_0x26393b(0x1d0)](_0xb88e67)){case null:return;case _0x26393b(0x1e1):{const _0x5596d6=_0x150307[_0x26393b(0x1cc)](_0xb88e67[_0x26393b(0x1db)](_0x26393b(0x1d7)));_0x5baa11=_0x150307[_0x26393b(0x1ce)](_0x5596d6)||_0x5596d6;break;}default:{const _0x2628f4=_0xb88e67[_0x26393b(0x1db)]('id');_0x5baa11=_0x150307[_0x26393b(0x1ce)](_0x2628f4)||_0x2628f4;break;}}return _0x26393b(0x1dc)==_0x249821[_0x26393b(0x1c9)]?{'type':_0x26393b(0x1dc),'content':_0x3f8fae(_0x3e1460,_0x26393b(0x1c8),'\x22'+_0x5baa11+'\x22\x20'+_0x3f8fae(_0x3e1460,_0x26393b(0x1e8)))}:{'type':_0x26393b(0x1dd),'content':_0x3f8fae(_0x3e1460,_0x26393b(0x1d5),'\x22'+_0x5baa11+'\x22\x20'+_0x3f8fae(_0x3e1460,_0x26393b(0x1e8)))};});}}