@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.35 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 _0x29e9(){const _0x28adc5=['11uCUKXQ','9096696vkzHkM','FORMAT_ALIGNMENT','*Format:*\x20%0','FORMAT_ALIGN_TO_RIGHT','justify','registerDescriptionCallback','descriptionFactory','right','value','enableDefaultAttributesIntegration','1962lxJngo','registerBlockAttribute','AlignmentEditing','78879tqDJtv','formatBlock','editor','1122575keDLQZ','FORMAT_ALIGN_TO_LEFT','25lQQrmS','_registerLegacyDescription','49120pJtsjE','1239212oHgXcl','TrackChangesEditing','commandName','type','has','FORMAT_ALIGN_TO_CENTER','left','4648nafsLk','afterInit','alignment','center','locale','FORMAT_JUSTIFY_TEXT','203uSKKqv','get','registerAttributeLabel','format','commandParams','16723884aNCCjx','plugins','38fOAuZV'];_0x29e9=function(){return _0x28adc5;};return _0x29e9();}const _0x28305a=_0x2f00;(function(_0x39bdf0,_0x40c211){const _0x55489a=_0x2f00,_0x2e902c=_0x39bdf0();while(!![]){try{const _0x439f82=-parseInt(_0x55489a(0x97))/0x1+parseInt(_0x55489a(0xb0))/0x2*(-parseInt(_0x55489a(0x94))/0x3)+parseInt(_0x55489a(0x9c))/0x4*(-parseInt(_0x55489a(0x99))/0x5)+parseInt(_0x55489a(0xb2))/0x6+parseInt(_0x55489a(0xa9))/0x7*(parseInt(_0x55489a(0xa3))/0x8)+parseInt(_0x55489a(0x91))/0x9*(parseInt(_0x55489a(0x9b))/0xa)+-parseInt(_0x55489a(0xb1))/0xb*(-parseInt(_0x55489a(0xae))/0xc);if(_0x439f82===_0x40c211)break;else _0x2e902c['push'](_0x2e902c['shift']());}catch(_0x564dd6){_0x2e902c['push'](_0x2e902c['shift']());}}}(_0x29e9,0xc9ba9));import{Plugin as _0x59005d}from'ckeditor5/src/core.js';function _0x2f00(_0x432634,_0x584e81){const _0x29e91e=_0x29e9();return _0x2f00=function(_0x2f0099,_0x179d82){_0x2f0099=_0x2f0099-0x8f;let _0x506ac0=_0x29e91e[_0x2f0099];return _0x506ac0;},_0x2f00(_0x432634,_0x584e81);}import{getTranslation as _0x8f1f03}from'../utils/common-translations.js';export class TrackChangesAlignment extends _0x59005d{[_0x28305a(0xa4)](){const _0xe1e6e1=_0x28305a,_0x3eb838=this[_0xe1e6e1(0x96)],_0x28b2f4=_0x3eb838[_0xe1e6e1(0xa7)];if(!_0x3eb838[_0xe1e6e1(0xaf)][_0xe1e6e1(0xa0)](_0xe1e6e1(0x93)))return;const _0x2fd120=_0x3eb838[_0xe1e6e1(0xaf)][_0xe1e6e1(0xaa)](_0xe1e6e1(0x9d));_0x2fd120[_0xe1e6e1(0x90)](_0xe1e6e1(0xa5)),_0x2fd120[_0xe1e6e1(0x92)](_0xe1e6e1(0xa5)),_0x2fd120[_0xe1e6e1(0xb8)][_0xe1e6e1(0xab)](_0xe1e6e1(0xa5),_0x8f1f03(_0x28b2f4,_0xe1e6e1(0xb3))),this[_0xe1e6e1(0x9a)]();}[_0x28305a(0x9a)](){const _0x556dc9=_0x28305a,_0x5cea=this[_0x556dc9(0x96)],_0x15b376=_0x5cea[_0x556dc9(0xa7)];_0x5cea[_0x556dc9(0xaf)][_0x556dc9(0xaa)](_0x556dc9(0x9d))[_0x556dc9(0xb8)][_0x556dc9(0xb7)](_0x4919f9=>{const _0x4884ed=_0x556dc9;if(_0x4884ed(0x95)!=_0x4919f9[_0x4884ed(0x9f)])return;const {data:_0xe23230}=_0x4919f9;if(_0xe23230&&_0x4884ed(0xa5)==_0xe23230[_0x4884ed(0x9e)]){const _0xa67d70=_0xe23230[_0x4884ed(0xad)][0x0][_0x4884ed(0x8f)];return{'type':_0x4884ed(0xac),'content':_0x8f1f03(_0x15b376,_0x4884ed(0xb4),function(_0x3838c5){const _0x280f8e=_0x4884ed;switch(_0x3838c5){case _0x280f8e(0xa2):return _0x8f1f03(_0x15b376,_0x280f8e(0x98));case _0x280f8e(0xb9):return _0x8f1f03(_0x15b376,_0x280f8e(0xb5));case _0x280f8e(0xa6):return _0x8f1f03(_0x15b376,_0x280f8e(0xa1));case _0x280f8e(0xb6):return _0x8f1f03(_0x15b376,_0x280f8e(0xa8));}}(_0xa67d70))};}});}}