@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.82 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 _0x5d4f34=_0x5126;(function(_0x43599c,_0x4379de){const _0x2ccba0=_0x5126,_0x4dcce1=_0x43599c();while(!![]){try{const _0x294dc7=parseInt(_0x2ccba0(0x1fb))/0x1+parseInt(_0x2ccba0(0x1f2))/0x2*(parseInt(_0x2ccba0(0x213))/0x3)+parseInt(_0x2ccba0(0x1f4))/0x4*(parseInt(_0x2ccba0(0x1f8))/0x5)+parseInt(_0x2ccba0(0x1fa))/0x6+-parseInt(_0x2ccba0(0x212))/0x7*(-parseInt(_0x2ccba0(0x20f))/0x8)+parseInt(_0x2ccba0(0x1f3))/0x9+-parseInt(_0x2ccba0(0x214))/0xa;if(_0x294dc7===_0x4379de)break;else _0x4dcce1['push'](_0x4dcce1['shift']());}catch(_0x3b988c){_0x4dcce1['push'](_0x4dcce1['shift']());}}}(_0x2a38,0x6b723));function _0x2a38(){const _0x33def1=['attribute','accept','formatBlock','TrackChangesEditing','_suggestionFactory','format','21602gSvDVy','4893696VENDLS','187868sxbZYv','key','formatInline','ImageEditing','5ieRsjr','commandName','1200696GEOPQr','660935xODyTQ','_registerLegacyDescription','get','has','oldValue','registerDescriptionCallback','editor','registerCustomCallback','*Format:*\x20replace\x20image\x20URL','plugins','getSuggestionCallback','afterInit','registerBlockAttribute','_handleLegacySuggestions','*Replace\x20image*','replaceImageSource','src','enableDefaultAttributesIntegration','type','newValue','157264ReOiLy','locale','descriptionFactory','7PlIvPe','120mvdLhV','14633610kkWdqo','discard'];_0x2a38=function(){return _0x33def1;};return _0x2a38();}import{Plugin as _0x4bbd0e}from'ckeditor5/src/core.js';import{getTranslation as _0x1be37b}from'../utils/common-translations.js';function _0x5126(_0x22a338,_0x5885ae){const _0x2a38a7=_0x2a38();return _0x5126=function(_0x512670,_0x3107dc){_0x512670=_0x512670-0x1ee;let _0x59ace5=_0x2a38a7[_0x512670];return _0x59ace5;},_0x5126(_0x22a338,_0x5885ae);}export default class at extends _0x4bbd0e{[_0x5d4f34(0x206)](){const _0x497c28=_0x5d4f34;if(!this[_0x497c28(0x201)][_0x497c28(0x204)][_0x497c28(0x1fe)](_0x497c28(0x1f7)))return;const _0x2a3284=this[_0x497c28(0x201)][_0x497c28(0x210)],_0x19feb4=this[_0x497c28(0x201)][_0x497c28(0x204)][_0x497c28(0x1fd)](_0x497c28(0x1ef));_0x19feb4[_0x497c28(0x20c)](_0x497c28(0x20a)),_0x19feb4[_0x497c28(0x207)](_0x497c28(0x20b)),_0x19feb4[_0x497c28(0x211)][_0x497c28(0x200)](_0x3a5792=>{const _0x2fbe08=_0x497c28;if(_0x2fbe08(0x216)!=_0x3a5792[_0x2fbe08(0x20d)])return;const {data:_0x578cce}=_0x3a5792;return _0x578cce&&_0x2fbe08(0x20b)==_0x578cce[_0x2fbe08(0x1f5)]?_0x578cce[_0x2fbe08(0x20e)]&&_0x578cce[_0x2fbe08(0x1ff)]?{'type':_0x2fbe08(0x1f1),'content':_0x1be37b(_0x2a3284,_0x2fbe08(0x209))}:{'type':_0x2fbe08(0x1f1),'content':''}:void 0x0;}),this[_0x497c28(0x208)]();}[_0x5d4f34(0x208)](){const _0x1ecb5c=_0x5d4f34,_0x12ce0=this[_0x1ecb5c(0x201)][_0x1ecb5c(0x204)][_0x1ecb5c(0x1fd)](_0x1ecb5c(0x1ef));_0x12ce0[_0x1ecb5c(0x1f0)][_0x1ecb5c(0x202)](_0x1ecb5c(0x1ee),_0x1ecb5c(0x20a),_0x1ecb5c(0x217),_0x12ce0[_0x1ecb5c(0x1f0)][_0x1ecb5c(0x205)](_0x1ecb5c(0x1ee),null,_0x1ecb5c(0x215))),_0x12ce0[_0x1ecb5c(0x1f0)][_0x1ecb5c(0x202)](_0x1ecb5c(0x1ee),_0x1ecb5c(0x20a),_0x1ecb5c(0x215),_0x12ce0[_0x1ecb5c(0x1f0)][_0x1ecb5c(0x205)](_0x1ecb5c(0x1ee),null,_0x1ecb5c(0x217))),this[_0x1ecb5c(0x1fc)]();}[_0x5d4f34(0x1fc)](){const _0x4dec6f=_0x5d4f34,_0x6c0733=this[_0x4dec6f(0x201)],_0x295c04=_0x6c0733[_0x4dec6f(0x210)];_0x6c0733[_0x4dec6f(0x204)][_0x4dec6f(0x1fd)](_0x4dec6f(0x1ef))[_0x4dec6f(0x211)][_0x4dec6f(0x200)](_0x2cfd0c=>{const _0x52a6cf=_0x4dec6f;if(_0x52a6cf(0x1ee)!=_0x2cfd0c[_0x52a6cf(0x20d)]&&_0x52a6cf(0x1f6)!=_0x2cfd0c[_0x52a6cf(0x20d)])return;const {data:_0x3d0249}=_0x2cfd0c;if(!_0x3d0249||_0x52a6cf(0x20a)!=_0x3d0249[_0x52a6cf(0x1f9)])return;return{'type':_0x52a6cf(0x1f1),'content':_0x1be37b(_0x295c04,_0x52a6cf(0x203))};});}}