@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 5.68 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 _0x4dea00=_0x39c9;(function(_0x345f27,_0xb93a04){const _0x5dbe4b=_0x39c9,_0x523f6b=_0x345f27();while(!![]){try{const _0x48f8c6=parseInt(_0x5dbe4b(0xcf))/0x1*(parseInt(_0x5dbe4b(0xd9))/0x2)+-parseInt(_0x5dbe4b(0xe8))/0x3+parseInt(_0x5dbe4b(0xc4))/0x4*(-parseInt(_0x5dbe4b(0xc7))/0x5)+-parseInt(_0x5dbe4b(0xe7))/0x6+-parseInt(_0x5dbe4b(0xd6))/0x7+parseInt(_0x5dbe4b(0xdf))/0x8+parseInt(_0x5dbe4b(0xcc))/0x9;if(_0x48f8c6===_0xb93a04)break;else _0x523f6b['push'](_0x523f6b['shift']());}catch(_0xf9814e){_0x523f6b['push'](_0x523f6b['shift']());}}}(_0x3564,0xbafb0));function _0x3564(){const _0x36234a=['3317157abzfKl','discard','columnWidths','enableCommand','document','subType','plugins','getColumnGroupElement','locale','change','markBlockFormat','Users','registerDescriptionCallback','getSelectedElement','table','formatInline','formatGroupId','descriptionFactory','getSuggestions','172TamBDe','bind','model','111305ruuTEC','getContainedElement','formatBlock','type','handleSuggestionDescription','37053855bjKZcD','editor','author','23geRuXn','*Format:*\x20resize\x20table','data','handleResizeTableWidthCommand','commandParams','has','format','5856480KhKEcY','TableColumnResizeEditing','selection','20476xmrtxQ','afterInit','getSuggestionCallback','tableWidth','accept','resizeTable','3547544yFrJlt','getAttribute','resizeTableWidth','get','registerCustomCallback','getTableColumnsWidths','TrackChangesEditing','_suggestionFactory','6783348FCUjLg'];_0x3564=function(){return _0x36234a;};return _0x3564();}import{Plugin as _0x2ee129}from'ckeditor5/src/core.js';import{getTranslation as _0x1a00e7}from'../utils/common-translations.js';function _0x39c9(_0xd3fa81,_0x58eaa8){const _0x35642b=_0x3564();return _0x39c9=function(_0x39c9af,_0x26e2ad){_0x39c9af=_0x39c9af-0xb2;let _0x42210e=_0x35642b[_0x39c9af];return _0x42210e;},_0x39c9(_0xd3fa81,_0x58eaa8);}export default class Bt extends _0x2ee129{[_0x4dea00(0xda)](){const _0x3a2c66=_0x4dea00;if(!this[_0x3a2c66(0xcd)][_0x3a2c66(0xb7)][_0x3a2c66(0xd4)](_0x3a2c66(0xd7)))return;const _0xafa1a5=this[_0x3a2c66(0xcd)][_0x3a2c66(0xb7)][_0x3a2c66(0xe2)](_0x3a2c66(0xe5));_0xafa1a5[_0x3a2c66(0xb4)](_0x3a2c66(0xe1),this[_0x3a2c66(0xd2)][_0x3a2c66(0xc5)](this)),_0xafa1a5[_0x3a2c66(0xe6)][_0x3a2c66(0xe3)](_0x3a2c66(0xc9),_0x3a2c66(0xde),_0x3a2c66(0xdd),_0xafa1a5[_0x3a2c66(0xe6)][_0x3a2c66(0xdb)](_0x3a2c66(0xc9),null,_0x3a2c66(0xb2))),_0xafa1a5[_0x3a2c66(0xe6)][_0x3a2c66(0xe3)](_0x3a2c66(0xc9),_0x3a2c66(0xde),_0x3a2c66(0xb2),_0xafa1a5[_0x3a2c66(0xe6)][_0x3a2c66(0xdb)](_0x3a2c66(0xc9),null,_0x3a2c66(0xdd))),_0xafa1a5[_0x3a2c66(0xc2)][_0x3a2c66(0xbd)](this[_0x3a2c66(0xcb)][_0x3a2c66(0xc5)](this));}[_0x4dea00(0xd2)](_0x22a3f0,_0x5be581){const _0x48604f=_0x4dea00,_0x36f273=this[_0x48604f(0xcd)][_0x48604f(0xb7)][_0x48604f(0xe2)](_0x48604f(0xe5)),_0x4ba1f4=this[_0x48604f(0xcd)][_0x48604f(0xb7)][_0x48604f(0xe2)](_0x48604f(0xd7)),_0x2587d9=_0x5be581[_0x48604f(0xbf)]||this[_0x48604f(0xcd)][_0x48604f(0xc6)][_0x48604f(0xb5)][_0x48604f(0xd8)][_0x48604f(0xbe)]();this[_0x48604f(0xcd)][_0x48604f(0xc6)][_0x48604f(0xba)](()=>{const _0x142be5=_0x48604f,_0x3ba35a=_0x4ba1f4[_0x142be5(0xb8)](_0x2587d9);let _0x41bff9=_0x3ba35a?_0x4ba1f4[_0x142be5(0xe4)](_0x3ba35a):null,_0x2de604=_0x2587d9[_0x142be5(0xe0)](_0x142be5(0xdc))||null;const _0xa34f3e=_0x5be581[_0x142be5(0xdc)]||_0x2de604,_0x417d8e=_0x5be581[_0x142be5(0xb3)]||_0x41bff9,_0x23f5ec=this[_0x142be5(0xcd)][_0x142be5(0xb7)][_0x142be5(0xe2)](_0x142be5(0xbc))['me'];for(const _0xa23c5d of _0x36f273[_0x142be5(0xc3)]()){const _0x1408ee=_0xa23c5d[_0x142be5(0xc8)]();if(_0x142be5(0xde)===_0xa23c5d[_0x142be5(0xb6)]&&_0x1408ee===_0x2587d9){_0xa23c5d[_0x142be5(0xce)]!==_0x23f5ec&&_0xa23c5d[_0x142be5(0xb2)]();const _0x1dbd8e=_0xa23c5d[_0x142be5(0xd1)][_0x142be5(0xd3)];_0x2de604=_0x1dbd8e[0x0][_0x142be5(0xdc)],_0x41bff9=_0x1dbd8e[0x0][_0x142be5(0xb3)];break;}}_0x22a3f0({'table':_0x2587d9,'tableWidth':_0xa34f3e,'columnWidths':_0x417d8e}),_0x36f273[_0x142be5(0xbb)](_0x2587d9,{'commandName':_0x142be5(0xe1),'commandParams':[{'tableWidth':_0x2de604,'columnWidths':_0x41bff9}],'formatGroupId':_0x142be5(0xde)},[],_0x142be5(0xde));});}[_0x4dea00(0xcb)](_0x8b27e9){const _0x30987f=_0x4dea00;if(_0x30987f(0xc9)!=_0x8b27e9[_0x30987f(0xca)]&&_0x30987f(0xc0)!=_0x8b27e9[_0x30987f(0xca)])return;const {data:_0x51b708}=_0x8b27e9;if(_0x51b708&&_0x30987f(0xde)===_0x51b708[_0x30987f(0xc1)]){const _0x4dc37c=_0x30987f(0xd0);return{'type':_0x30987f(0xd5),'content':_0x1a00e7(this[_0x30987f(0xcd)][_0x30987f(0xb9)],_0x4dc37c)};}}}