@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.36 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 _0x1622(_0xe47875,_0x4ea3a8){const _0x28366b=_0x2836();return _0x1622=function(_0x1622ac,_0x5b0ded){_0x1622ac=_0x1622ac-0x11d;let _0x18ba82=_0x28366b[_0x1622ac];return _0x18ba82;},_0x1622(_0xe47875,_0x4ea3a8);}const _0x6b8e2b=_0x1622;function _0x2836(){const _0x5d325a=['plugins','registerAttributeLabel','commandParams','429852FUdlYZ','locale','right','justify','enableDefaultAttributesIntegration','FORMAT_ALIGN_TO_LEFT','format','11hANTXS','TrackChangesEditing','*Format:*\x20%0','formatBlock','has','editor','1646uXwRNc','AlignmentEditing','registerBlockAttribute','FORMAT_ALIGNMENT','20340480dRNuJt','176056XxuwwQ','FORMAT_JUSTIFY_TEXT','center','9jiTCoM','FORMAT_ALIGN_TO_RIGHT','afterInit','alignment','descriptionFactory','4381580tHXMIg','left','type','_registerLegacyDescription','18kNfJFo','commandName','1179696MMFkMc','50oNNYGx','1483791renIgv','get','registerDescriptionCallback','value','FORMAT_ALIGN_TO_CENTER'];_0x2836=function(){return _0x5d325a;};return _0x2836();}(function(_0x29aeb9,_0x2b1d49){const _0xe96430=_0x1622,_0x4131b3=_0x29aeb9();while(!![]){try{const _0x495cbe=parseInt(_0xe96430(0x12a))/0x1*(-parseInt(_0xe96430(0x143))/0x2)+-parseInt(_0xe96430(0x12e))/0x3+parseInt(_0xe96430(0x11e))/0x4+-parseInt(_0xe96430(0x12d))/0x5*(parseInt(_0xe96430(0x136))/0x6)+-parseInt(_0xe96430(0x126))/0x7+parseInt(_0xe96430(0x12c))/0x8*(parseInt(_0xe96430(0x121))/0x9)+-parseInt(_0xe96430(0x11d))/0xa*(-parseInt(_0xe96430(0x13d))/0xb);if(_0x495cbe===_0x2b1d49)break;else _0x4131b3['push'](_0x4131b3['shift']());}catch(_0x461ce6){_0x4131b3['push'](_0x4131b3['shift']());}}}(_0x2836,0x5b3f9));import{Plugin as _0x501757}from'ckeditor5/src/core.js';import{getTranslation as _0x3034eb}from'../utils/common-translations.js';export default class V extends _0x501757{[_0x6b8e2b(0x123)](){const _0x59a646=_0x6b8e2b,_0x3a6eb1=this[_0x59a646(0x142)],_0x195627=_0x3a6eb1[_0x59a646(0x137)];if(!_0x3a6eb1[_0x59a646(0x133)][_0x59a646(0x141)](_0x59a646(0x144)))return;const _0xb17715=_0x3a6eb1[_0x59a646(0x133)][_0x59a646(0x12f)](_0x59a646(0x13e));_0xb17715[_0x59a646(0x13a)](_0x59a646(0x124)),_0xb17715[_0x59a646(0x145)](_0x59a646(0x124)),_0xb17715[_0x59a646(0x125)][_0x59a646(0x134)](_0x59a646(0x124),_0x3034eb(_0x195627,_0x59a646(0x146))),this[_0x59a646(0x129)]();}[_0x6b8e2b(0x129)](){const _0x2e15ac=_0x6b8e2b,_0x1412fd=this[_0x2e15ac(0x142)],_0x83df33=_0x1412fd[_0x2e15ac(0x137)];_0x1412fd[_0x2e15ac(0x133)][_0x2e15ac(0x12f)](_0x2e15ac(0x13e))[_0x2e15ac(0x125)][_0x2e15ac(0x130)](_0x126f38=>{const _0x3d8efb=_0x2e15ac;if(_0x3d8efb(0x140)!=_0x126f38[_0x3d8efb(0x128)])return;const {data:_0x2784ec}=_0x126f38;if(_0x2784ec&&_0x3d8efb(0x124)==_0x2784ec[_0x3d8efb(0x12b)]){const _0xbe57ce=_0x2784ec[_0x3d8efb(0x135)][0x0][_0x3d8efb(0x131)];return{'type':_0x3d8efb(0x13c),'content':_0x3034eb(_0x83df33,_0x3d8efb(0x13f),function(_0x56236f){const _0x442966=_0x3d8efb;switch(_0x56236f){case _0x442966(0x127):return _0x3034eb(_0x83df33,_0x442966(0x13b));case _0x442966(0x138):return _0x3034eb(_0x83df33,_0x442966(0x122));case _0x442966(0x120):return _0x3034eb(_0x83df33,_0x442966(0x132));case _0x442966(0x139):return _0x3034eb(_0x83df33,_0x442966(0x11f));}}(_0xbe57ce))};}});}}