UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 4.79 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0x5ab8(_0x2d4b51,_0x374318){const _0x59548a=_0x5954();return _0x5ab8=function(_0x5ab824,_0x64dad3){_0x5ab824=_0x5ab824-0x1ad;let _0x5cb9fb=_0x59548a[_0x5ab824];return _0x5cb9fb;},_0x5ab8(_0x2d4b51,_0x374318);}const _0x5ebca9=_0x5ab8;(function(_0x5cef7f,_0x4b648f){const _0x2a2f85=_0x5ab8,_0x197029=_0x5cef7f();while(!![]){try{const _0x534c0a=parseInt(_0x2a2f85(0x1bc))/0x1*(parseInt(_0x2a2f85(0x1d1))/0x2)+parseInt(_0x2a2f85(0x1ad))/0x3*(-parseInt(_0x2a2f85(0x1d4))/0x4)+-parseInt(_0x2a2f85(0x1c8))/0x5+parseInt(_0x2a2f85(0x1d5))/0x6+parseInt(_0x2a2f85(0x1ae))/0x7+-parseInt(_0x2a2f85(0x1b1))/0x8+-parseInt(_0x2a2f85(0x1cb))/0x9;if(_0x534c0a===_0x4b648f)break;else _0x197029['push'](_0x197029['shift']());}catch(_0x5885f8){_0x197029['push'](_0x197029['shift']());}}}(_0x5954,0x5679c));import{Plugin as _0x3ff79e}from'ckeditor5/src/core.js';import{getTranslation as _0x85f9b3}from'../utils/common-translations.js';function _0x5954(){const _0x32b586=['1299640XwuomV','src','enableDefaultAttributesIntegration','285716Nvuvwp','1967082aXlPAo','9hAUSZu','4792921NRoTFk','has','registerCustomCallback','1033936PsGGUn','key','formatBlock','getSuggestionCallback','*Replace\x20image*','editor','registerBlockAttribute','_suggestionFactory','descriptionFactory','afterInit','commandName','1XaLYFa','plugins','_registerLegacyDescription','newValue','TrackChangesEditing','locale','ImageEditing','format','registerDescriptionCallback','type','oldValue','discard','3533920JBFNvo','_handleLegacySuggestions','replaceImageSource','2320677ecCGMe','attribute','formatInline','*Format:*\x20replace\x20image\x20URL','get','accept'];_0x5954=function(){return _0x32b586;};return _0x5954();}export default class at extends _0x3ff79e{[_0x5ebca9(0x1ba)](){const _0x34b166=_0x5ebca9;if(!this[_0x34b166(0x1b6)][_0x34b166(0x1bd)][_0x34b166(0x1af)](_0x34b166(0x1c2)))return;const _0x29f58b=this[_0x34b166(0x1b6)][_0x34b166(0x1c1)],_0x349015=this[_0x34b166(0x1b6)][_0x34b166(0x1bd)][_0x34b166(0x1cf)](_0x34b166(0x1c0));_0x349015[_0x34b166(0x1d3)](_0x34b166(0x1ca)),_0x349015[_0x34b166(0x1b7)](_0x34b166(0x1d2)),_0x349015[_0x34b166(0x1b9)][_0x34b166(0x1c4)](_0x3bbe96=>{const _0x122130=_0x34b166;if(_0x122130(0x1cc)!=_0x3bbe96[_0x122130(0x1c5)])return;const {data:_0x229cc5}=_0x3bbe96;return _0x229cc5&&_0x122130(0x1d2)==_0x229cc5[_0x122130(0x1b2)]?_0x229cc5[_0x122130(0x1bf)]&&_0x229cc5[_0x122130(0x1c6)]?{'type':_0x122130(0x1c3),'content':_0x85f9b3(_0x29f58b,_0x122130(0x1b5))}:{'type':_0x122130(0x1c3),'content':''}:void 0x0;}),this[_0x34b166(0x1c9)]();}[_0x5ebca9(0x1c9)](){const _0x38cf70=_0x5ebca9,_0xc87771=this[_0x38cf70(0x1b6)][_0x38cf70(0x1bd)][_0x38cf70(0x1cf)](_0x38cf70(0x1c0));_0xc87771[_0x38cf70(0x1b8)][_0x38cf70(0x1b0)](_0x38cf70(0x1b3),_0x38cf70(0x1ca),_0x38cf70(0x1d0),_0xc87771[_0x38cf70(0x1b8)][_0x38cf70(0x1b4)](_0x38cf70(0x1b3),null,_0x38cf70(0x1c7))),_0xc87771[_0x38cf70(0x1b8)][_0x38cf70(0x1b0)](_0x38cf70(0x1b3),_0x38cf70(0x1ca),_0x38cf70(0x1c7),_0xc87771[_0x38cf70(0x1b8)][_0x38cf70(0x1b4)](_0x38cf70(0x1b3),null,_0x38cf70(0x1d0))),this[_0x38cf70(0x1be)]();}[_0x5ebca9(0x1be)](){const _0xbeabae=_0x5ebca9,_0x41de83=this[_0xbeabae(0x1b6)],_0x2e4ab9=_0x41de83[_0xbeabae(0x1c1)];_0x41de83[_0xbeabae(0x1bd)][_0xbeabae(0x1cf)](_0xbeabae(0x1c0))[_0xbeabae(0x1b9)][_0xbeabae(0x1c4)](_0x50e91c=>{const _0x45a6b2=_0xbeabae;if(_0x45a6b2(0x1b3)!=_0x50e91c[_0x45a6b2(0x1c5)]&&_0x45a6b2(0x1cd)!=_0x50e91c[_0x45a6b2(0x1c5)])return;const {data:_0x3f2309}=_0x50e91c;if(!_0x3f2309||_0x45a6b2(0x1ca)!=_0x3f2309[_0x45a6b2(0x1bb)])return;return{'type':_0x45a6b2(0x1c3),'content':_0x85f9b3(_0x2e4ab9,_0x45a6b2(0x1ce))};});}}