UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.82 kB
/* * 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 _0x4b567a=_0x2359;(function(_0x138566,_0x2c46d6){const _0x5c519f=_0x2359,_0x2d7bbc=_0x138566();while(!![]){try{const _0x566ff1=-parseInt(_0x5c519f(0x1d5))/0x1*(parseInt(_0x5c519f(0x1b0))/0x2)+parseInt(_0x5c519f(0x1ab))/0x3+parseInt(_0x5c519f(0x1a8))/0x4*(-parseInt(_0x5c519f(0x1d6))/0x5)+parseInt(_0x5c519f(0x1cc))/0x6*(-parseInt(_0x5c519f(0x1b8))/0x7)+parseInt(_0x5c519f(0x1d2))/0x8+-parseInt(_0x5c519f(0x1d8))/0x9+parseInt(_0x5c519f(0x1a9))/0xa;if(_0x566ff1===_0x2c46d6)break;else _0x2d7bbc['push'](_0x2d7bbc['shift']());}catch(_0x1570ab){_0x2d7bbc['push'](_0x2d7bbc['shift']());}}}(_0x123e,0xb8482));function _0x123e(){const _0x54e934=['_suggestionFactory','TableColumnResizeEditing','afterInit','2jjTsqZ','getAttribute','author','enableCommand','getSelectedElement','accept','document','selection','1221920tttmdP','registerCustomCallback','format','Users','getSuggestions','subType','table','getSuggestionCallback','registerDescriptionCallback','TrackChangesEditing','handleResizeTableWidthCommand','formatGroupId','editor','has','commandParams','resizeTableWidth','handleSuggestionDescription','get','*Format:*\x20resize\x20table','change','6NeBaQT','discard','data','locale','getColumnGroupElement','bind','3871392RrMQrm','getContainedElement','resizeTable','838229podiVB','18155NyISoF','columnWidths','9453267tplrTS','formatBlock','type','tableWidth','getTableColumnsWidths','plugins','descriptionFactory','markBlockFormat','604JekpWL','16784580AjmxKi','formatInline','3611607HlhjPY','model'];_0x123e=function(){return _0x54e934;};return _0x123e();}import{Plugin as _0xfaac20}from'ckeditor5/src/core.js';import{getTranslation as _0x13f3d9}from'../utils/common-translations.js';function _0x2359(_0xc89b9e,_0x4f584a){const _0x123e3c=_0x123e();return _0x2359=function(_0x23597e,_0x45a93f){_0x23597e=_0x23597e-0x1a6;let _0x555bfc=_0x123e3c[_0x23597e];return _0x555bfc;},_0x2359(_0xc89b9e,_0x4f584a);}export default class Bt extends _0xfaac20{[_0x4b567a(0x1af)](){const _0x474bb4=_0x4b567a;if(!this[_0x474bb4(0x1c4)][_0x474bb4(0x1dd)][_0x474bb4(0x1c5)](_0x474bb4(0x1ae)))return;const _0x56a64a=this[_0x474bb4(0x1c4)][_0x474bb4(0x1dd)][_0x474bb4(0x1c9)](_0x474bb4(0x1c1));_0x56a64a[_0x474bb4(0x1b3)](_0x474bb4(0x1c7),this[_0x474bb4(0x1c2)][_0x474bb4(0x1d1)](this)),_0x56a64a[_0x474bb4(0x1ad)][_0x474bb4(0x1b9)](_0x474bb4(0x1d9),_0x474bb4(0x1d4),_0x474bb4(0x1b5),_0x56a64a[_0x474bb4(0x1ad)][_0x474bb4(0x1bf)](_0x474bb4(0x1d9),null,_0x474bb4(0x1cd))),_0x56a64a[_0x474bb4(0x1ad)][_0x474bb4(0x1b9)](_0x474bb4(0x1d9),_0x474bb4(0x1d4),_0x474bb4(0x1cd),_0x56a64a[_0x474bb4(0x1ad)][_0x474bb4(0x1bf)](_0x474bb4(0x1d9),null,_0x474bb4(0x1b5))),_0x56a64a[_0x474bb4(0x1a6)][_0x474bb4(0x1c0)](this[_0x474bb4(0x1c8)][_0x474bb4(0x1d1)](this));}[_0x4b567a(0x1c2)](_0x34ba95,_0x4210e4){const _0x319fbf=_0x4b567a,_0x3aadd2=this[_0x319fbf(0x1c4)][_0x319fbf(0x1dd)][_0x319fbf(0x1c9)](_0x319fbf(0x1c1)),_0xb46cb6=this[_0x319fbf(0x1c4)][_0x319fbf(0x1dd)][_0x319fbf(0x1c9)](_0x319fbf(0x1ae)),_0x1816ad=_0x4210e4[_0x319fbf(0x1be)]||this[_0x319fbf(0x1c4)][_0x319fbf(0x1ac)][_0x319fbf(0x1b6)][_0x319fbf(0x1b7)][_0x319fbf(0x1b4)]();this[_0x319fbf(0x1c4)][_0x319fbf(0x1ac)][_0x319fbf(0x1cb)](()=>{const _0xf79d4f=_0x319fbf,_0x26a2c1=_0xb46cb6[_0xf79d4f(0x1d0)](_0x1816ad);let _0x47b1f2=_0x26a2c1?_0xb46cb6[_0xf79d4f(0x1dc)](_0x26a2c1):null,_0xe04418=_0x1816ad[_0xf79d4f(0x1b1)](_0xf79d4f(0x1db))||null;const _0x1fa6a8=_0x4210e4[_0xf79d4f(0x1db)]||_0xe04418,_0x32d68b=_0x4210e4[_0xf79d4f(0x1d7)]||_0x47b1f2,_0x2b8ed7=this[_0xf79d4f(0x1c4)][_0xf79d4f(0x1dd)][_0xf79d4f(0x1c9)](_0xf79d4f(0x1bb))['me'];for(const _0x434659 of _0x3aadd2[_0xf79d4f(0x1bc)]()){const _0x14438b=_0x434659[_0xf79d4f(0x1d3)]();if(_0xf79d4f(0x1d4)===_0x434659[_0xf79d4f(0x1bd)]&&_0x14438b===_0x1816ad){_0x434659[_0xf79d4f(0x1b2)]!==_0x2b8ed7&&_0x434659[_0xf79d4f(0x1cd)]();const _0x3b7073=_0x434659[_0xf79d4f(0x1ce)][_0xf79d4f(0x1c6)];_0xe04418=_0x3b7073[0x0][_0xf79d4f(0x1db)],_0x47b1f2=_0x3b7073[0x0][_0xf79d4f(0x1d7)];break;}}_0x34ba95({'table':_0x1816ad,'tableWidth':_0x1fa6a8,'columnWidths':_0x32d68b}),_0x3aadd2[_0xf79d4f(0x1a7)](_0x1816ad,{'commandName':_0xf79d4f(0x1c7),'commandParams':[{'tableWidth':_0xe04418,'columnWidths':_0x47b1f2}],'formatGroupId':_0xf79d4f(0x1d4)},[],_0xf79d4f(0x1d4));});}[_0x4b567a(0x1c8)](_0x3e1a2b){const _0x2d31d4=_0x4b567a;if(_0x2d31d4(0x1d9)!=_0x3e1a2b[_0x2d31d4(0x1da)]&&_0x2d31d4(0x1aa)!=_0x3e1a2b[_0x2d31d4(0x1da)])return;const {data:_0xb2b1ff}=_0x3e1a2b;if(_0xb2b1ff&&_0x2d31d4(0x1d4)===_0xb2b1ff[_0x2d31d4(0x1c3)]){const _0x4f8103=_0x2d31d4(0x1ca);return{'type':_0x2d31d4(0x1ba),'content':_0x13f3d9(this[_0x2d31d4(0x1c4)][_0x2d31d4(0x1cf)],_0x4f8103)};}}}