@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 3.71 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 _0x16bc(_0x3b32d3,_0x4ccf87){const _0x381f2a=_0x381f();return _0x16bc=function(_0x16bc18,_0x203381){_0x16bc18=_0x16bc18-0x7d;let _0x219c8a=_0x381f2a[_0x16bc18];return _0x219c8a;},_0x16bc(_0x3b32d3,_0x4ccf87);}function _0x381f(){const _0x10044b=['_command','169118bvbJHc','size','from','3398406NkHUOz','6WpDgPp','95808lqGjEb','execute','20oLjzuu','editor','_selectedSuggestions','refresh','getRanges','isEnabled','_isEnabledBasedOnSelection','2233PsWMvQ','_suggestions','1477085gNYpgQ','830454MqQSPF','model','11100195FLyZtl','values','28dgCHnv','canEditAt','document','117230uLrExj','selection'];_0x381f=function(){return _0x10044b;};return _0x381f();}const _0x9be2b6=_0x16bc;(function(_0x2e7bd0,_0x4e3cfc){const _0x17663e=_0x16bc,_0x453959=_0x2e7bd0();while(!![]){try{const _0x2489ba=parseInt(_0x17663e(0x82))/0x1*(-parseInt(_0x17663e(0x86))/0x2)+parseInt(_0x17663e(0x85))/0x3+parseInt(_0x17663e(0x89))/0x4*(-parseInt(_0x17663e(0x92))/0x5)+-parseInt(_0x17663e(0x93))/0x6*(-parseInt(_0x17663e(0x97))/0x7)+-parseInt(_0x17663e(0x87))/0x8+-parseInt(_0x17663e(0x95))/0x9+-parseInt(_0x17663e(0x7f))/0xa*(-parseInt(_0x17663e(0x90))/0xb);if(_0x2489ba===_0x4e3cfc)break;else _0x453959['push'](_0x453959['shift']());}catch(_0x57cf6e){_0x453959['push'](_0x453959['shift']());}}}(_0x381f,0xcc355));import{Command as _0x38c839}from'ckeditor5/src/core.js';import{sortSuggestions as _0x20270a,getSelectedSuggestions as _0x4fc51b,executeCommandForSuggestions as _0x1d1ee9}from'../utils/utils.js';export default class E extends _0x38c839{[_0x9be2b6(0x81)];[_0x9be2b6(0x91)];[_0x9be2b6(0x8b)];constructor(_0x15b0c0,_0x224fc8,_0x59f2e3){const _0x15de19=_0x9be2b6;super(_0x15b0c0),this[_0x15de19(0x81)]=_0x224fc8,this[_0x15de19(0x91)]=_0x59f2e3,this[_0x15de19(0x8b)]=new Set(),this[_0x15de19(0x8c)](),this[_0x15de19(0x8f)]=!0x1;}[_0x9be2b6(0x8c)](){const _0x10c3bf=_0x9be2b6,_0x2b6c94=this[_0x10c3bf(0x8a)][_0x10c3bf(0x94)][_0x10c3bf(0x7e)][_0x10c3bf(0x80)],_0x4e6993=Array[_0x10c3bf(0x84)](this[_0x10c3bf(0x91)][_0x10c3bf(0x96)]());this[_0x10c3bf(0x8b)]=_0x4fc51b(_0x2b6c94,_0x4e6993),this[_0x10c3bf(0x8e)]=this[_0x10c3bf(0x81)][_0x10c3bf(0x8e)]&&!!this[_0x10c3bf(0x8b)][_0x10c3bf(0x83)];}[_0x9be2b6(0x88)](){const _0x484c0a=_0x9be2b6,_0x40bde8=_0x20270a(Array[_0x484c0a(0x84)](this[_0x484c0a(0x8b)]));for(const _0x2df7d8 of _0x40bde8){const _0x367cba=_0x2df7d8[_0x484c0a(0x8d)]();if(!this[_0x484c0a(0x8a)][_0x484c0a(0x94)][_0x484c0a(0x7d)](_0x367cba))return;}_0x1d1ee9(this[_0x484c0a(0x8a)][_0x484c0a(0x94)],this[_0x484c0a(0x81)],_0x40bde8);}}