@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.38 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 _0x36a82b=_0x3652;function _0x29fd(){const _0x7a9a55=['_registerLegacyDescription','commandParams','registerDescriptionCallback','type','4583097xdPkxk','editor','highlight.options','HighlightEditing','plugins','TrackChangesEditing','*Set\x20highlight:*\x20%0','commandName','highlight','model','180694SmrUIS','afterInit','*Remove\x20highlight*','2576755ddswYf','format','descriptionFactory','21xRRzQK','251760zUlEIc','FORMAT_HIGHLIGHT','1470784PUtQDr','444cgFaFV','73268uDTBNU','registerInlineAttribute','find','get','locale','value','enableDefaultAttributesIntegration','registerAttributeLabel','title','18046raidsb','formatInline','toLowerCase','config','color','has'];_0x29fd=function(){return _0x7a9a55;};return _0x29fd();}function _0x3652(_0x11b1fb,_0x4f8572){const _0x29fd10=_0x29fd();return _0x3652=function(_0x365292,_0x23e1a1){_0x365292=_0x365292-0x1ab;let _0x526777=_0x29fd10[_0x365292];return _0x526777;},_0x3652(_0x11b1fb,_0x4f8572);}(function(_0x572060,_0xe8a86c){const _0x379d57=_0x3652,_0x43c52d=_0x572060();while(!![]){try{const _0x45240b=parseInt(_0x379d57(0x1bc))/0x1+-parseInt(_0x379d57(0x1c7))/0x2*(-parseInt(_0x379d57(0x1c2))/0x3)+parseInt(_0x379d57(0x1c3))/0x4+-parseInt(_0x379d57(0x1bf))/0x5+-parseInt(_0x379d57(0x1c6))/0x6*(-parseInt(_0x379d57(0x1d0))/0x7)+-parseInt(_0x379d57(0x1c5))/0x8+parseInt(_0x379d57(0x1b2))/0x9;if(_0x45240b===_0xe8a86c)break;else _0x43c52d['push'](_0x43c52d['shift']());}catch(_0x12ee40){_0x43c52d['push'](_0x43c52d['shift']());}}}(_0x29fd,0x7a48e));import{Plugin as _0x23d742}from'ckeditor5/src/core.js';import{getTranslation as _0x3693d3}from'../utils/common-translations.js';export class TrackChangesHighlight extends _0x23d742{[_0x36a82b(0x1bd)](){const _0x372d47=_0x36a82b,_0x408925=this[_0x372d47(0x1b3)];if(!_0x408925[_0x372d47(0x1b6)][_0x372d47(0x1ad)](_0x372d47(0x1b5)))return;const _0x19a854=_0x408925[_0x372d47(0x1b6)][_0x372d47(0x1ca)](_0x372d47(0x1b7)),_0x284e64=_0x408925[_0x372d47(0x1cb)];_0x19a854[_0x372d47(0x1cd)](_0x372d47(0x1ba)),_0x19a854[_0x372d47(0x1c8)](_0x372d47(0x1ba)),_0x19a854[_0x372d47(0x1c1)][_0x372d47(0x1ce)](_0x372d47(0x1ba),_0x3693d3(_0x284e64,_0x372d47(0x1c4))),this[_0x372d47(0x1ae)]();}[_0x36a82b(0x1ae)](){const _0x1666a5=_0x36a82b,_0x3cbfc5=this[_0x1666a5(0x1b3)],_0x550900=_0x3cbfc5[_0x1666a5(0x1cb)];_0x3cbfc5[_0x1666a5(0x1b6)][_0x1666a5(0x1ca)](_0x1666a5(0x1b7))[_0x1666a5(0x1c1)][_0x1666a5(0x1b0)](_0xb0e0c4=>{const _0x48aa32=_0x1666a5;if(_0x48aa32(0x1d1)!=_0xb0e0c4[_0x48aa32(0x1b1)])return;const {data:_0x2fbdba}=_0xb0e0c4;if(_0x2fbdba&&_0x48aa32(0x1ba)==_0x2fbdba[_0x48aa32(0x1b9)]){const _0x47f981=_0x550900['t'],_0x5b4f94=_0x2fbdba[_0x48aa32(0x1af)][0x0][_0x48aa32(0x1cc)];if(_0x5b4f94){const _0x212ac7=_0x3cbfc5[_0x48aa32(0x1ab)][_0x48aa32(0x1ca)](_0x48aa32(0x1b4))[_0x48aa32(0x1c9)](_0x1ea573=>_0x1ea573[_0x48aa32(0x1bb)]==_0x5b4f94),_0x3fa704=_0x47f981(_0x212ac7[_0x48aa32(0x1cf)])[_0x48aa32(0x1d2)]();return{'type':_0x48aa32(0x1c0),'content':_0x3693d3(_0x550900,_0x48aa32(0x1b8),_0x3fa704),'color':{'value':_0x212ac7[_0x48aa32(0x1ac)],'title':_0x212ac7[_0x48aa32(0x1cf)]}};}return{'type':_0x48aa32(0x1c0),'content':_0x3693d3(_0x550900,_0x48aa32(0x1be),_0x3693d3(_0x550900,_0x48aa32(0x1c4)))};}});}}