@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 8.24 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 _0x4825(_0x8832,_0x3d7534){const _0x409b6f=_0x409b();return _0x4825=function(_0x482599,_0x326772){_0x482599=_0x482599-0x66;let _0x46f3ba=_0x409b6f[_0x482599];return _0x46f3ba;},_0x4825(_0x8832,_0x3d7534);}function _0x409b(){const _0x5a056b=['registerCustomCallback','registerDescriptionCallback','start','tableBackgroundColor','getContainedElement','_handlePropertyChange','_suggestionFactory','4230trmsIb','getFirstPosition','has','plugins','tableCellBorderWidth','TableCellPropertiesEditing','TrackChangesTableProperties','1713hiDSgS','11157381QOkLpH','enqueueChange','9197988WoIxfB','tableProperties','setAttribute','tableCellBorderStyle','removeAttribute','get','join','TrackChangesEditing','tableBorderColor','1054335yxIhBW','TableUtils','853100WayJPO','40nxoZFZ','tableCellProperties','*Format:*\x20change\x20table\x20properties','tableCellVerticalAlignment','formatBlock','afterInit','handleSuggestionDescription','10NbZhSN','accept','format','_getSuggestion','discard','2344RGFqSf','tableBorderStyle','isOfficialPlugin','tableCellHeight','commandParams','20468591QFYnUt','29001jLhiCp','selection','tableCellWidth','document','data','getAttribute','editor','table','tableBorderWidth','pluginName','tableCellHorizontalAlignment','nodeAfter','handleDiscardAction','tableWidth','batch','subType','tableHeight','TablePropertiesEditing','descriptionFactory','tableCellBackgroundColor','getSuggestionCallback','isPremiumPlugin','change','getSuggestions','enableCommand','tableCellBorderColor','tableAlignment','markBlockFormat','model','tableCellPadding','getSelectionAffectedTableCells','*Format:*\x20change\x20table\x20cell\x20properties','findAncestor','locale'];_0x409b=function(){return _0x5a056b;};return _0x409b();}const _0xad492f=_0x4825;(function(_0x48db24,_0x3dc016){const _0x5df959=_0x4825,_0x1960cc=_0x48db24();while(!![]){try{const _0x2ab223=-parseInt(_0x5df959(0x9d))/0x1+-parseInt(_0x5df959(0x8a))/0x2*(parseInt(_0x5df959(0x91))/0x3)+parseInt(_0x5df959(0x9f))/0x4*(-parseInt(_0x5df959(0xa7))/0x5)+-parseInt(_0x5df959(0x94))/0x6+parseInt(_0x5df959(0xb2))/0x7*(-parseInt(_0x5df959(0xac))/0x8)+-parseInt(_0x5df959(0x92))/0x9+-parseInt(_0x5df959(0xa0))/0xa*(-parseInt(_0x5df959(0xb1))/0xb);if(_0x2ab223===_0x3dc016)break;else _0x1960cc['push'](_0x1960cc['shift']());}catch(_0x523950){_0x1960cc['push'](_0x1960cc['shift']());}}}(_0x409b,0xbb7e0));import{Plugin as _0x1f52f5}from'ckeditor5/src/core.js';import{getTranslation as _0x201f5b}from'../utils/common-translations.js';export default class Vt extends _0x1f52f5{[_0xad492f(0x95)];[_0xad492f(0xa1)];constructor(_0x3176da){const _0x15dfc8=_0xad492f;super(_0x3176da),this[_0x15dfc8(0x95)]=[_0x15dfc8(0x9c),_0x15dfc8(0xad),_0x15dfc8(0x69),_0x15dfc8(0x7b),_0x15dfc8(0x6e),_0x15dfc8(0x71),_0x15dfc8(0x86)],this[_0x15dfc8(0xa1)]=[_0x15dfc8(0x7a),_0x15dfc8(0x97),_0x15dfc8(0x8e),_0x15dfc8(0x7e),_0x15dfc8(0xb4),_0x15dfc8(0xaf),_0x15dfc8(0x74),_0x15dfc8(0x6b),_0x15dfc8(0xa3)];}static get[_0xad492f(0x6a)](){const _0x2cf8dc=_0xad492f;return _0x2cf8dc(0x90);}static get[_0xad492f(0xae)](){return!0x0;}static get[_0xad492f(0x76)](){return!0x0;}[_0xad492f(0xa5)](){const _0x505fb5=_0xad492f,_0x5c393d=this[_0x505fb5(0x67)][_0x505fb5(0x8d)][_0x505fb5(0x99)](_0x505fb5(0x9b));if(this[_0x505fb5(0x67)][_0x505fb5(0x8d)][_0x505fb5(0x8c)](_0x505fb5(0x72))){for(const _0x24353e of this[_0x505fb5(0x95)])_0x5c393d[_0x505fb5(0x79)](_0x24353e,(_0x16a8a3,_0x88f86d)=>{const _0x563935=_0x505fb5,_0x46d52c=this[_0x563935(0x67)][_0x563935(0x7d)][_0x563935(0xb5)][_0x563935(0xb3)][_0x563935(0x8b)]()[_0x563935(0x81)](_0x563935(0x68));this[_0x563935(0x88)](_0x24353e,[_0x46d52c],this[_0x563935(0x95)],_0x563935(0x95),_0x16a8a3,_0x88f86d);});_0x5c393d[_0x505fb5(0x89)][_0x505fb5(0x83)](_0x505fb5(0xa4),_0x505fb5(0x95),_0x505fb5(0xa8),_0x5c393d[_0x505fb5(0x89)][_0x505fb5(0x75)](_0x505fb5(0xa4),null,_0x505fb5(0xab))),_0x5c393d[_0x505fb5(0x89)][_0x505fb5(0x83)](_0x505fb5(0xa4),_0x505fb5(0x95),_0x505fb5(0xab),(_0xd29c0,_0x10456c)=>this[_0x505fb5(0x6d)](this[_0x505fb5(0x95)],_0xd29c0,_0x10456c)),_0x5c393d[_0x505fb5(0x89)][_0x505fb5(0x83)](_0x505fb5(0xa4),_0x505fb5(0x95),_0x505fb5(0x9a),()=>!0x1);}if(this[_0x505fb5(0x67)][_0x505fb5(0x8d)][_0x505fb5(0x8c)](_0x505fb5(0x8f))){for(const _0x36ebe1 of this[_0x505fb5(0xa1)])_0x5c393d[_0x505fb5(0x79)](_0x36ebe1,(_0x1f6f4e,_0x432e55)=>{const _0x1ded26=_0x505fb5,_0x1145bc=this[_0x1ded26(0x67)][_0x1ded26(0x8d)][_0x1ded26(0x99)](_0x1ded26(0x9e))[_0x1ded26(0x7f)](this[_0x1ded26(0x67)][_0x1ded26(0x7d)][_0x1ded26(0xb5)][_0x1ded26(0xb3)]);this[_0x1ded26(0x88)](_0x36ebe1,_0x1145bc,this[_0x1ded26(0xa1)],_0x1ded26(0xa1),_0x1f6f4e,_0x432e55);});_0x5c393d[_0x505fb5(0x89)][_0x505fb5(0x83)](_0x505fb5(0xa4),_0x505fb5(0xa1),_0x505fb5(0xa8),_0x5c393d[_0x505fb5(0x89)][_0x505fb5(0x75)](_0x505fb5(0xa4),null,_0x505fb5(0xab))),_0x5c393d[_0x505fb5(0x89)][_0x505fb5(0x83)](_0x505fb5(0xa4),_0x505fb5(0xa1),_0x505fb5(0xab),(_0x2fcf66,_0x49b348)=>this[_0x505fb5(0x6d)](this[_0x505fb5(0xa1)],_0x2fcf66,_0x49b348)),_0x5c393d[_0x505fb5(0x89)][_0x505fb5(0x83)](_0x505fb5(0xa4),_0x505fb5(0xa1),_0x505fb5(0x9a),()=>!0x1);}_0x5c393d[_0x505fb5(0x73)][_0x505fb5(0x84)](_0xa58495=>this[_0x505fb5(0xa6)](_0xa58495));}[_0xad492f(0x88)](_0x5d6f9d,_0x230c1f,_0x48c049,_0xace78b,_0x4cf391,_0x1b683a){const _0x592ca5=_0xad492f,_0x21ebac=this[_0x592ca5(0x67)][_0x592ca5(0x8d)][_0x592ca5(0x99)](_0x592ca5(0x9b));this[_0x592ca5(0x67)][_0x592ca5(0x7d)][_0x592ca5(0x93)](_0x1b683a[_0x592ca5(0x6f)],()=>{const _0x4e8897=_0x592ca5;for(const _0x33e083 of _0x230c1f){if(this[_0x4e8897(0xaa)](_0x33e083,_0xace78b))_0x4cf391(_0x1b683a);else{const _0x4865de={};for(const _0x2e157b of _0x48c049){const _0x4bcc1e=_0x33e083[_0x4e8897(0x66)](_0x2e157b);void 0x0!==_0x4bcc1e&&(_0x4865de[_0x2e157b]=_0x4bcc1e);}_0x4cf391(_0x1b683a),_0x21ebac[_0x4e8897(0x7c)](_0x33e083,{'commandParams':[_0x4865de]},[],_0xace78b);}}});}[_0xad492f(0x6d)](_0x50dc02,_0x1f503d,_0x5edbf6){const _0xd0920b=_0xad492f,_0xcef899=_0x1f503d[0x0][_0xd0920b(0x85)][_0xd0920b(0x6c)],_0x196d3d=_0x5edbf6[_0xd0920b(0xb0)][0x0];this[_0xd0920b(0x67)][_0xd0920b(0x7d)][_0xd0920b(0x77)](_0x127cb4=>{const _0x4424c5=_0xd0920b;for(const _0x177105 of _0x50dc02)void 0x0!==_0x196d3d[_0x177105]?_0x127cb4[_0x4424c5(0x96)](_0x177105,_0x196d3d[_0x177105],_0xcef899):_0x127cb4[_0x4424c5(0x98)](_0x177105,_0xcef899);});}[_0xad492f(0xa6)](_0x3e1cf4){const _0x475cda=_0xad492f;if(_0x3e1cf4[_0x475cda(0xb6)])switch(_0x3e1cf4[_0x475cda(0x70)]){case _0x475cda(0x95):return{'type':_0x475cda(0xa9),'content':_0x201f5b(this[_0x475cda(0x67)][_0x475cda(0x82)],_0x475cda(0xa2))};case _0x475cda(0xa1):return{'type':_0x475cda(0xa9),'content':_0x201f5b(this[_0x475cda(0x67)][_0x475cda(0x82)],_0x475cda(0x80))};}}[_0xad492f(0xaa)](_0x419dac,_0x45fb1d){const _0x5c1bcd=_0xad492f,_0x3a931a=this[_0x5c1bcd(0x67)][_0x5c1bcd(0x8d)][_0x5c1bcd(0x99)](_0x5c1bcd(0x9b));for(const _0x244e7b of _0x3a931a[_0x5c1bcd(0x78)]({'skipNotAttached':!0x0})){const _0x41a36d=_0x244e7b[_0x5c1bcd(0x87)]();if(_0x244e7b[_0x5c1bcd(0x70)]===_0x45fb1d&&_0x41a36d===_0x419dac)return _0x244e7b;}return null;}}