@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 8.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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x3ac00f=_0x3dae;(function(_0x474678,_0x29ebe3){const _0x27b963=_0x3dae,_0xd92154=_0x474678();while(!![]){try{const _0x5bb5f2=parseInt(_0x27b963(0x112))/0x1+-parseInt(_0x27b963(0xed))/0x2*(-parseInt(_0x27b963(0xe7))/0x3)+-parseInt(_0x27b963(0x133))/0x4*(parseInt(_0x27b963(0x135))/0x5)+parseInt(_0x27b963(0x126))/0x6+-parseInt(_0x27b963(0x123))/0x7*(-parseInt(_0x27b963(0x105))/0x8)+parseInt(_0x27b963(0x11e))/0x9*(-parseInt(_0x27b963(0x111))/0xa)+-parseInt(_0x27b963(0x12d))/0xb;if(_0x5bb5f2===_0x29ebe3)break;else _0xd92154['push'](_0xd92154['shift']());}catch(_0x146472){_0xd92154['push'](_0xd92154['shift']());}}}(_0x2b3e,0xd6174));import{Plugin as _0x4cb6c8}from'ckeditor5/src/core.js';import{getTranslation as _0x538608}from'../utils/common-translations.js';function _0x2b3e(){const _0x39e9b3=['formatBlock','subType','nodeAfter','setAttribute','70wubXWS','1243191bykHZf','selection','tableWidth','format','*Format:*\x20change\x20table\x20properties','TrackChangesTableProperties','tableCellBorderColor','getSelectionAffectedTableCells','tableCellWidth','tableCellBackgroundColor','discard','join','428859uadtkA','_getSuggestion','*Format:*\x20change\x20table\x20cell\x20properties','accept','getAttribute','21UEVLfq','locale','table','8443020UKgXPA','getFirstPosition','model','document','tableCellProperties','descriptionFactory','tableCellHorizontalAlignment','24720630bpFHZo','has','TableCellPropertiesEditing','TableUtils','isOfficialPlugin','getContainedElement','20wcUXJl','handleDiscardAction','1377980sYLrFq','change','tableProperties','1215fTOWjD','TablePropertiesEditing','markBlockFormat','_suggestionFactory','enqueueChange','start','7046WZMXiQ','tableCellPadding','enableCommand','afterInit','registerCustomCallback','tableBorderWidth','getSuggestionCallback','tableCellBorderWidth','tableHeight','findAncestor','tableAlignment','TrackChangesEditing','tableBorderStyle','getSuggestions','tableCellBorderStyle','commandParams','removeAttribute','isPremiumPlugin','data','batch','pluginName','tableBackgroundColor','_handlePropertyChange','get','2022952POryay','registerDescriptionCallback','tableBorderColor','tableCellVerticalAlignment','handleSuggestionDescription','editor','plugins','tableCellHeight'];_0x2b3e=function(){return _0x39e9b3;};return _0x2b3e();}function _0x3dae(_0x54bab6,_0xacf492){const _0x2b3e47=_0x2b3e();return _0x3dae=function(_0x3dae1c,_0x46bccf){_0x3dae1c=_0x3dae1c-0xe7;let _0xa22be1=_0x2b3e47[_0x3dae1c];return _0xa22be1;},_0x3dae(_0x54bab6,_0xacf492);}export default class Vt extends _0x4cb6c8{[_0x3ac00f(0x137)];[_0x3ac00f(0x12a)];constructor(_0x51be65){const _0x27a3c9=_0x3ac00f;super(_0x51be65),this[_0x27a3c9(0x137)]=[_0x27a3c9(0x107),_0x27a3c9(0xf9),_0x27a3c9(0xf2),_0x27a3c9(0xf7),_0x27a3c9(0x114),_0x27a3c9(0xf5),_0x27a3c9(0x102)],this[_0x27a3c9(0x12a)]=[_0x27a3c9(0x118),_0x27a3c9(0xfb),_0x27a3c9(0xf4),_0x27a3c9(0xee),_0x27a3c9(0x11a),_0x27a3c9(0x10c),_0x27a3c9(0x11b),_0x27a3c9(0x12c),_0x27a3c9(0x108)];}static get[_0x3ac00f(0x101)](){const _0x3375d1=_0x3ac00f;return _0x3375d1(0x117);}static get[_0x3ac00f(0x131)](){return!0x0;}static get[_0x3ac00f(0xfe)](){return!0x0;}[_0x3ac00f(0xf0)](){const _0x5560e5=_0x3ac00f,_0x20a7b4=this[_0x5560e5(0x10a)][_0x5560e5(0x10b)][_0x5560e5(0x104)](_0x5560e5(0xf8));if(this[_0x5560e5(0x10a)][_0x5560e5(0x10b)][_0x5560e5(0x12e)](_0x5560e5(0xe8))){for(const _0xe8bb3a of this[_0x5560e5(0x137)])_0x20a7b4[_0x5560e5(0xef)](_0xe8bb3a,(_0x5b5ce9,_0x4e56bc)=>{const _0x56194a=_0x5560e5,_0x32d114=this[_0x56194a(0x10a)][_0x56194a(0x128)][_0x56194a(0x129)][_0x56194a(0x113)][_0x56194a(0x127)]()[_0x56194a(0xf6)](_0x56194a(0x125));this[_0x56194a(0x103)](_0xe8bb3a,[_0x32d114],this[_0x56194a(0x137)],_0x56194a(0x137),_0x5b5ce9,_0x4e56bc);});_0x20a7b4[_0x5560e5(0xea)][_0x5560e5(0xf1)](_0x5560e5(0x10d),_0x5560e5(0x137),_0x5560e5(0x121),_0x20a7b4[_0x5560e5(0xea)][_0x5560e5(0xf3)](_0x5560e5(0x10d),null,_0x5560e5(0x11c))),_0x20a7b4[_0x5560e5(0xea)][_0x5560e5(0xf1)](_0x5560e5(0x10d),_0x5560e5(0x137),_0x5560e5(0x11c),(_0x4e1426,_0x2d02bf)=>this[_0x5560e5(0x134)](this[_0x5560e5(0x137)],_0x4e1426,_0x2d02bf)),_0x20a7b4[_0x5560e5(0xea)][_0x5560e5(0xf1)](_0x5560e5(0x10d),_0x5560e5(0x137),_0x5560e5(0x11d),()=>!0x1);}if(this[_0x5560e5(0x10a)][_0x5560e5(0x10b)][_0x5560e5(0x12e)](_0x5560e5(0x12f))){for(const _0x13857e of this[_0x5560e5(0x12a)])_0x20a7b4[_0x5560e5(0xef)](_0x13857e,(_0x497c49,_0x2b8c66)=>{const _0x3c6e30=_0x5560e5,_0x3528b9=this[_0x3c6e30(0x10a)][_0x3c6e30(0x10b)][_0x3c6e30(0x104)](_0x3c6e30(0x130))[_0x3c6e30(0x119)](this[_0x3c6e30(0x10a)][_0x3c6e30(0x128)][_0x3c6e30(0x129)][_0x3c6e30(0x113)]);this[_0x3c6e30(0x103)](_0x13857e,_0x3528b9,this[_0x3c6e30(0x12a)],_0x3c6e30(0x12a),_0x497c49,_0x2b8c66);});_0x20a7b4[_0x5560e5(0xea)][_0x5560e5(0xf1)](_0x5560e5(0x10d),_0x5560e5(0x12a),_0x5560e5(0x121),_0x20a7b4[_0x5560e5(0xea)][_0x5560e5(0xf3)](_0x5560e5(0x10d),null,_0x5560e5(0x11c))),_0x20a7b4[_0x5560e5(0xea)][_0x5560e5(0xf1)](_0x5560e5(0x10d),_0x5560e5(0x12a),_0x5560e5(0x11c),(_0x3f44e5,_0x4bb2f2)=>this[_0x5560e5(0x134)](this[_0x5560e5(0x12a)],_0x3f44e5,_0x4bb2f2)),_0x20a7b4[_0x5560e5(0xea)][_0x5560e5(0xf1)](_0x5560e5(0x10d),_0x5560e5(0x12a),_0x5560e5(0x11d),()=>!0x1);}_0x20a7b4[_0x5560e5(0x12b)][_0x5560e5(0x106)](_0x5340bb=>this[_0x5560e5(0x109)](_0x5340bb));}[_0x3ac00f(0x103)](_0x3760ac,_0x46aa17,_0x113dcf,_0x513611,_0x2c3564,_0x4263e2){const _0x39044a=_0x3ac00f,_0x7b1d3f=this[_0x39044a(0x10a)][_0x39044a(0x10b)][_0x39044a(0x104)](_0x39044a(0xf8));this[_0x39044a(0x10a)][_0x39044a(0x128)][_0x39044a(0xeb)](_0x4263e2[_0x39044a(0x100)],()=>{const _0x4a9172=_0x39044a;for(const _0x15b606 of _0x46aa17){if(this[_0x4a9172(0x11f)](_0x15b606,_0x513611))_0x2c3564(_0x4263e2);else{const _0x3fff67={};for(const _0x17ff2a of _0x113dcf){const _0x4a00bb=_0x15b606[_0x4a9172(0x122)](_0x17ff2a);void 0x0!==_0x4a00bb&&(_0x3fff67[_0x17ff2a]=_0x4a00bb);}_0x2c3564(_0x4263e2),_0x7b1d3f[_0x4a9172(0xe9)](_0x15b606,{'commandParams':[_0x3fff67]},[],_0x513611);}}});}[_0x3ac00f(0x134)](_0x5241bd,_0x3d3c20,_0x55d290){const _0x4efdab=_0x3ac00f,_0x500c29=_0x3d3c20[0x0][_0x4efdab(0xec)][_0x4efdab(0x10f)],_0x5574ff=_0x55d290[_0x4efdab(0xfc)][0x0];this[_0x4efdab(0x10a)][_0x4efdab(0x128)][_0x4efdab(0x136)](_0x119617=>{const _0x34e126=_0x4efdab;for(const _0x2e0196 of _0x5241bd)void 0x0!==_0x5574ff[_0x2e0196]?_0x119617[_0x34e126(0x110)](_0x2e0196,_0x5574ff[_0x2e0196],_0x500c29):_0x119617[_0x34e126(0xfd)](_0x2e0196,_0x500c29);});}[_0x3ac00f(0x109)](_0x5713cf){const _0x586eaa=_0x3ac00f;if(_0x5713cf[_0x586eaa(0xff)])switch(_0x5713cf[_0x586eaa(0x10e)]){case _0x586eaa(0x137):return{'type':_0x586eaa(0x115),'content':_0x538608(this[_0x586eaa(0x10a)][_0x586eaa(0x124)],_0x586eaa(0x116))};case _0x586eaa(0x12a):return{'type':_0x586eaa(0x115),'content':_0x538608(this[_0x586eaa(0x10a)][_0x586eaa(0x124)],_0x586eaa(0x120))};}}[_0x3ac00f(0x11f)](_0x468fa8,_0xe56689){const _0x5a09eb=_0x3ac00f,_0x36a019=this[_0x5a09eb(0x10a)][_0x5a09eb(0x10b)][_0x5a09eb(0x104)](_0x5a09eb(0xf8));for(const _0x1fd879 of _0x36a019[_0x5a09eb(0xfa)]({'skipNotAttached':!0x0})){const _0x2661e6=_0x1fd879[_0x5a09eb(0x132)]();if(_0x1fd879[_0x5a09eb(0x10e)]===_0xe56689&&_0x2661e6===_0x468fa8)return _0x1fd879;}return null;}}