@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 3.75 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 _0x2d7f(){const _0x1529a6=['3191678XQCdMx','document','refresh','_isEnabledBasedOnSelection','5xiqsMa','_command','_suggestions','74215UUAEDc','4sXQgTZ','execute','1917dKNwGG','getRanges','isEnabled','121DdyZdG','size','model','values','editor','790086lGtAQu','selection','from','16344zpkAmM','canEditAt','1832487HQTvjP','813110BvKjog','2403330bTdacZ','_selectedSuggestions'];_0x2d7f=function(){return _0x1529a6;};return _0x2d7f();}const _0x172813=_0x25a6;(function(_0x51bc0b,_0x3f7bfd){const _0x42ed5c=_0x25a6,_0x2d74c6=_0x51bc0b();while(!![]){try{const _0x33cb58=parseInt(_0x42ed5c(0x13c))/0x1+-parseInt(_0x42ed5c(0x147))/0x2+-parseInt(_0x42ed5c(0x14c))/0x3*(parseInt(_0x42ed5c(0x13d))/0x4)+-parseInt(_0x42ed5c(0x139))/0x5*(-parseInt(_0x42ed5c(0x14e))/0x6)+parseInt(_0x42ed5c(0x150))/0x7+-parseInt(_0x42ed5c(0x14a))/0x8*(parseInt(_0x42ed5c(0x13f))/0x9)+-parseInt(_0x42ed5c(0x14d))/0xa*(-parseInt(_0x42ed5c(0x142))/0xb);if(_0x33cb58===_0x3f7bfd)break;else _0x2d74c6['push'](_0x2d74c6['shift']());}catch(_0x447a11){_0x2d74c6['push'](_0x2d74c6['shift']());}}}(_0x2d7f,0x5dc72));function _0x25a6(_0x5d5c72,_0x1f9304){const _0x2d7f06=_0x2d7f();return _0x25a6=function(_0x25a642,_0x33fe1a){_0x25a642=_0x25a642-0x136;let _0x4a69d4=_0x2d7f06[_0x25a642];return _0x4a69d4;},_0x25a6(_0x5d5c72,_0x1f9304);}import{Command as _0x430776}from'ckeditor5/src/core.js';import{sortSuggestions as _0x4a5b82,getSelectedSuggestions as _0x4de1f9,executeCommandForSuggestions as _0x68309f}from'../utils/utils.js';export default class E extends _0x430776{[_0x172813(0x13a)];[_0x172813(0x13b)];[_0x172813(0x14f)];constructor(_0xc57e81,_0x1aecaa,_0x209e58){const _0x1c44a9=_0x172813;super(_0xc57e81),this[_0x1c44a9(0x13a)]=_0x1aecaa,this[_0x1c44a9(0x13b)]=_0x209e58,this[_0x1c44a9(0x14f)]=new Set(),this[_0x1c44a9(0x137)](),this[_0x1c44a9(0x138)]=!0x1;}[_0x172813(0x137)](){const _0x55e127=_0x172813,_0x5bd890=this[_0x55e127(0x146)][_0x55e127(0x144)][_0x55e127(0x136)][_0x55e127(0x148)],_0x50f5a7=Array[_0x55e127(0x149)](this[_0x55e127(0x13b)][_0x55e127(0x145)]());this[_0x55e127(0x14f)]=_0x4de1f9(_0x5bd890,_0x50f5a7),this[_0x55e127(0x141)]=this[_0x55e127(0x13a)][_0x55e127(0x141)]&&!!this[_0x55e127(0x14f)][_0x55e127(0x143)];}[_0x172813(0x13e)](){const _0x16eab6=_0x172813,_0xb4af10=_0x4a5b82(Array[_0x16eab6(0x149)](this[_0x16eab6(0x14f)]));for(const _0x2d3e19 of _0xb4af10){const _0x5cdb7c=_0x2d3e19[_0x16eab6(0x140)]();if(!this[_0x16eab6(0x146)][_0x16eab6(0x144)][_0x16eab6(0x14b)](_0x5cdb7c))return;}_0x68309f(this[_0x16eab6(0x146)][_0x16eab6(0x144)],this[_0x16eab6(0x13a)],_0xb4af10);}}