@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.38 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 _0x1ca236=_0x1fed;(function(_0x5ae4ae,_0x46d757){const _0x140090=_0x1fed,_0x26df82=_0x5ae4ae();while(!![]){try{const _0x2b7731=-parseInt(_0x140090(0x120))/0x1*(-parseInt(_0x140090(0x134))/0x2)+parseInt(_0x140090(0x130))/0x3+parseInt(_0x140090(0x12b))/0x4+parseInt(_0x140090(0x136))/0x5+-parseInt(_0x140090(0x132))/0x6+-parseInt(_0x140090(0x128))/0x7+-parseInt(_0x140090(0x137))/0x8;if(_0x2b7731===_0x46d757)break;else _0x26df82['push'](_0x26df82['shift']());}catch(_0xfcceed){_0x26df82['push'](_0x26df82['shift']());}}}(_0xc2a9,0x45b00));function _0xc2a9(){const _0x7da631=['outdentBlock','getItems','getItemLabel','_registerLegacyDescription','type','plugins','IndentBlock','registerDescriptionCallback','TrackChangesEditing','commandName','55962iTSguH','indent','outdent','descriptionFactory','formatBlock','registerBlockAttribute','locale','has','1012746aYzonc','indentBlock','editor','1638504GJEFgn','*Outdent:*\x20%0','blockIndent','enableCommand','enableDefaultAttributesIntegration','429870rSLWyu','get','2093340JiwteH','afterInit','16jgZbpi','registerAttributeLabel','1402800nQKuFZ','4017312CcJTPe','*Indent:*\x20%0','format','IndentEditing','FORMAT_INDENT'];_0xc2a9=function(){return _0x7da631;};return _0xc2a9();}import{Plugin as _0x526dfd}from'ckeditor5/src/core.js';function _0x1fed(_0x3c1c94,_0x5b644c){const _0xc2a985=_0xc2a9();return _0x1fed=function(_0x1fedbb,_0x3d1510){_0x1fedbb=_0x1fedbb-0x118;let _0x44a8a5=_0xc2a985[_0x1fedbb];return _0x44a8a5;},_0x1fed(_0x3c1c94,_0x5b644c);}import{getTranslation as _0x4fbfec}from'../utils/common-translations.js';export default class ft extends _0x526dfd{[_0x1ca236(0x133)](){const _0xd05b27=_0x1ca236,_0x4b41c6=this[_0xd05b27(0x12a)],_0x5befea=_0x4b41c6[_0xd05b27(0x11b)][_0xd05b27(0x131)](_0xd05b27(0x11e));if(_0x4b41c6[_0xd05b27(0x11b)][_0xd05b27(0x127)](_0xd05b27(0x13a))&&(_0x5befea[_0xd05b27(0x12e)](_0xd05b27(0x121)),_0x5befea[_0xd05b27(0x12e)](_0xd05b27(0x122))),_0x4b41c6[_0xd05b27(0x11b)][_0xd05b27(0x127)](_0xd05b27(0x11c))){for(const _0x388c41 of[_0xd05b27(0x129),_0xd05b27(0x13c)])_0x5befea[_0xd05b27(0x12f)](_0x388c41);}const _0x55ec36=_0x4b41c6[_0xd05b27(0x126)];_0x5befea[_0xd05b27(0x125)](_0xd05b27(0x12d)),_0x5befea[_0xd05b27(0x123)][_0xd05b27(0x135)](_0xd05b27(0x12d),_0x4fbfec(_0x55ec36,_0xd05b27(0x13b))),this[_0xd05b27(0x119)]();}[_0x1ca236(0x119)](){const _0x2e2615=_0x1ca236,_0x57d786=this[_0x2e2615(0x12a)],_0x23608a=_0x57d786[_0x2e2615(0x126)],_0x561120=_0x57d786[_0x2e2615(0x11b)][_0x2e2615(0x131)](_0x2e2615(0x11e));_0x561120[_0x2e2615(0x123)][_0x2e2615(0x11d)](_0xc63157=>{const _0x5e91f6=_0x2e2615;if(_0x5e91f6(0x124)!=_0xc63157[_0x5e91f6(0x11a)])return;const {data:_0x1761aa}=_0xc63157;if(!_0x1761aa)return;if(_0x5e91f6(0x129)!=_0x1761aa[_0x5e91f6(0x11f)]&&_0x5e91f6(0x13c)!=_0x1761aa[_0x5e91f6(0x11f)])return;const _0x34fa6e=_0xc63157[_0x5e91f6(0x13d)]()[0x0],_0x34bfba=_0x561120[_0x5e91f6(0x123)][_0x5e91f6(0x118)](_0x34fa6e);return _0x5e91f6(0x129)==_0x1761aa[_0x5e91f6(0x11f)]?{'type':_0x5e91f6(0x139),'content':_0x4fbfec(_0x23608a,_0x5e91f6(0x138),_0x34bfba)}:_0x5e91f6(0x13c)==_0x1761aa[_0x5e91f6(0x11f)]?{'type':_0x5e91f6(0x139),'content':_0x4fbfec(_0x23608a,_0x5e91f6(0x12c),_0x34bfba)}:void 0x0;});}}