@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.13 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 _0x2721ac=_0x5aad;function _0x2ff6(){const _0x4ee1b2=['key','1251750LFtKBZ','144oedwmb','editor','afterInit','TrackChangesEditing','multiLevelList','next','1122931KcldPk','registerDescriptionCallback','data','get','ELEMENT_MULTI_LEVEL_LIST','newValue','enableDefaultAttributesIntegration','has','locale','listMarkerStyle','1035OotIeQ','oldValue','168476PqjRaw','6XYYdIa','4932185wVOPeQ','5310702WdnxlK','descriptionFactory','plugins','head','10548sVFzvb','MultiLevelList','listType','format','handleDescriptions','2014294WdgSOm','registerBlockAttribute','*Remove\x20format:*\x20%0','*Set\x20format:*\x20%0'];_0x2ff6=function(){return _0x4ee1b2;};return _0x2ff6();}function _0x5aad(_0x4833c5,_0x3f8cdc){const _0x2ff693=_0x2ff6();return _0x5aad=function(_0x5aad1a,_0x329a4f){_0x5aad1a=_0x5aad1a-0x1a9;let _0x4684f3=_0x2ff693[_0x5aad1a];return _0x4684f3;},_0x5aad(_0x4833c5,_0x3f8cdc);}(function(_0x36bbd6,_0x5d6911){const _0x5ddddd=_0x5aad,_0x2a6002=_0x36bbd6();while(!![]){try{const _0x5e3a9a=-parseInt(_0x5ddddd(0x1cc))/0x1+-parseInt(_0x5ddddd(0x1c0))/0x2+parseInt(_0x5ddddd(0x1b2))/0x3*(parseInt(_0x5ddddd(0x1bb))/0x4)+-parseInt(_0x5ddddd(0x1b6))/0x5*(-parseInt(_0x5ddddd(0x1b5))/0x6)+-parseInt(_0x5ddddd(0x1b4))/0x7*(-parseInt(_0x5ddddd(0x1c6))/0x8)+parseInt(_0x5ddddd(0x1b7))/0x9+-parseInt(_0x5ddddd(0x1c5))/0xa;if(_0x5e3a9a===_0x5d6911)break;else _0x2a6002['push'](_0x2a6002['shift']());}catch(_0x13835d){_0x2a6002['push'](_0x2a6002['shift']());}}}(_0x2ff6,0xa22bb));import{Plugin as _0x349442}from'ckeditor5/src/core.js';import{getTranslation as _0x3c2414}from'../utils/common-translations.js';export class TrackChangesMultiLevelList extends _0x349442{[_0x2721ac(0x1c8)](){const _0x161914=_0x2721ac,_0xf288fe=this[_0x161914(0x1c7)],_0x74fda9=_0xf288fe[_0x161914(0x1b9)][_0x161914(0x1ab)](_0x161914(0x1c9));_0xf288fe[_0x161914(0x1b9)][_0x161914(0x1af)](_0x161914(0x1bc))&&(_0x74fda9[_0x161914(0x1ae)](_0x161914(0x1ca)),_0x74fda9[_0x161914(0x1c1)](_0x161914(0x1b1)),_0x74fda9[_0x161914(0x1b8)][_0x161914(0x1a9)](_0x19e218=>this[_0x161914(0x1bf)](_0x19e218)));}[_0x2721ac(0x1bf)](_0x1d7a56){const _0x2cfb77=_0x2721ac,_0x1902b2=this[_0x2cfb77(0x1c7)][_0x2cfb77(0x1b0)],{data:_0x27f6a6}=_0x1d7a56,_0x20a884={'type':_0x2cfb77(0x1be),'content':''};if(_0x27f6a6&&_0x2cfb77(0x1b1)==_0x27f6a6[_0x2cfb77(0x1c4)]){if(!_0x27f6a6[_0x2cfb77(0x1b3)])return{'type':_0x2cfb77(0x1be),'content':_0x3c2414(_0x1902b2,_0x2cfb77(0x1c3),_0x3c2414(_0x1902b2,_0x2cfb77(0x1ac)))+'\x20('+_0x27f6a6[_0x2cfb77(0x1ad)]+')'};if(!_0x27f6a6[_0x2cfb77(0x1ad)]){let _0x342cb6=_0x1d7a56[_0x2cfb77(0x1ba)];for(;_0x342cb6;){if(_0x342cb6[_0x2cfb77(0x1aa)]&&_0x2cfb77(0x1bd)==_0x342cb6[_0x2cfb77(0x1aa)][_0x2cfb77(0x1c4)]&&_0x342cb6[_0x2cfb77(0x1aa)][_0x2cfb77(0x1ad)])return _0x20a884;_0x342cb6=_0x342cb6[_0x2cfb77(0x1cb)];}return{'type':_0x2cfb77(0x1be),'content':_0x3c2414(_0x1902b2,_0x2cfb77(0x1c2),_0x3c2414(_0x1902b2,_0x2cfb77(0x1ac)))+'\x20('+_0x27f6a6[_0x2cfb77(0x1b3)]+')'};}}}}