@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.52 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
function _0x35fb(_0xc27759,_0x4ffdc7){const _0x15fc65=_0x15fc();return _0x35fb=function(_0x35fbb1,_0x25763b){_0x35fbb1=_0x35fbb1-0x15c;let _0xaf418b=_0x15fc65[_0x35fbb1];return _0xaf418b;},_0x35fb(_0xc27759,_0x4ffdc7);}const _0x4f6710=_0x35fb;(function(_0x5e801c,_0x20093b){const _0x2fcb9b=_0x35fb,_0x3ba7c9=_0x5e801c();while(!![]){try{const _0x2fdbf6=parseInt(_0x2fcb9b(0x166))/0x1*(parseInt(_0x2fcb9b(0x181))/0x2)+-parseInt(_0x2fcb9b(0x168))/0x3*(parseInt(_0x2fcb9b(0x171))/0x4)+-parseInt(_0x2fcb9b(0x15f))/0x5+-parseInt(_0x2fcb9b(0x174))/0x6*(-parseInt(_0x2fcb9b(0x16f))/0x7)+parseInt(_0x2fcb9b(0x165))/0x8+parseInt(_0x2fcb9b(0x180))/0x9*(parseInt(_0x2fcb9b(0x17c))/0xa)+parseInt(_0x2fcb9b(0x163))/0xb;if(_0x2fdbf6===_0x20093b)break;else _0x3ba7c9['push'](_0x3ba7c9['shift']());}catch(_0x3c0327){_0x3ba7c9['push'](_0x3ba7c9['shift']());}}}(_0x15fc,0xed6ac));import{Plugin as _0x5291c9}from'ckeditor5/src/core.js';function _0x15fc(){const _0x1fca40=['get','format','indent','TrackChangesEditing','IndentEditing','plugins','7984695VZSuYx','editor','*Indent:*\x20%0','getItems','3197612VnGIrX','getItemLabel','5247232VAWBYu','1246EloRZV','blockIndent','15YDqhvQ','commandName','formatBlock','registerBlockAttribute','FORMAT_INDENT','enableCommand','registerAttributeLabel','87339XHnyvV','registerDescriptionCallback','1382120QdTKse','afterInit','_registerLegacyDescription','306grQLvg','*Outdent:*\x20%0','outdentBlock','enableDefaultAttributesIntegration','outdent','indentBlock','IndentBlock','type','2780rbttfc','has','locale','descriptionFactory','28530HzZaol','2942rDyiaN'];_0x15fc=function(){return _0x1fca40;};return _0x15fc();}import{getTranslation as _0x151886}from'../utils/common-translations.js';export class TrackChangesIndent extends _0x5291c9{[_0x4f6710(0x172)](){const _0x294f84=_0x4f6710,_0x4fc174=this[_0x294f84(0x160)],_0x3a457e=_0x4fc174[_0x294f84(0x15e)][_0x294f84(0x182)](_0x294f84(0x15c));if(_0x4fc174[_0x294f84(0x15e)][_0x294f84(0x17d)](_0x294f84(0x15d))&&(_0x3a457e[_0x294f84(0x16d)](_0x294f84(0x184)),_0x3a457e[_0x294f84(0x16d)](_0x294f84(0x178))),_0x4fc174[_0x294f84(0x15e)][_0x294f84(0x17d)](_0x294f84(0x17a))){for(const _0x3c1532 of[_0x294f84(0x179),_0x294f84(0x176)])_0x3a457e[_0x294f84(0x177)](_0x3c1532);}const _0x20b802=_0x4fc174[_0x294f84(0x17e)];_0x3a457e[_0x294f84(0x16b)](_0x294f84(0x167)),_0x3a457e[_0x294f84(0x17f)][_0x294f84(0x16e)](_0x294f84(0x167),_0x151886(_0x20b802,_0x294f84(0x16c))),this[_0x294f84(0x173)]();}[_0x4f6710(0x173)](){const _0x37aafc=_0x4f6710,_0x593ab7=this[_0x37aafc(0x160)],_0x2c677a=_0x593ab7[_0x37aafc(0x17e)],_0x57e018=_0x593ab7[_0x37aafc(0x15e)][_0x37aafc(0x182)](_0x37aafc(0x15c));_0x57e018[_0x37aafc(0x17f)][_0x37aafc(0x170)](_0x39e50e=>{const _0x229a03=_0x37aafc;if(_0x229a03(0x16a)!=_0x39e50e[_0x229a03(0x17b)])return;const {data:_0x39953a}=_0x39e50e;if(!_0x39953a)return;if(_0x229a03(0x179)!=_0x39953a[_0x229a03(0x169)]&&_0x229a03(0x176)!=_0x39953a[_0x229a03(0x169)])return;const _0x613451=_0x39e50e[_0x229a03(0x162)]()[0x0],_0x50f6c2=_0x57e018[_0x229a03(0x17f)][_0x229a03(0x164)](_0x613451);return _0x229a03(0x179)==_0x39953a[_0x229a03(0x169)]?{'type':_0x229a03(0x183),'content':_0x151886(_0x2c677a,_0x229a03(0x161),_0x50f6c2)}:_0x229a03(0x176)==_0x39953a[_0x229a03(0x169)]?{'type':_0x229a03(0x183),'content':_0x151886(_0x2c677a,_0x229a03(0x175),_0x50f6c2)}:void 0x0;});}}