@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 3.77 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 _0x1ead89=_0x51fb;(function(_0x1bca57,_0x4d02d5){const _0x3af919=_0x51fb,_0x34161d=_0x1bca57();while(!![]){try{const _0x4bd4e1=parseInt(_0x3af919(0xf3))/0x1*(parseInt(_0x3af919(0xe9))/0x2)+parseInt(_0x3af919(0xf2))/0x3*(-parseInt(_0x3af919(0xe4))/0x4)+-parseInt(_0x3af919(0xeb))/0x5*(parseInt(_0x3af919(0xdb))/0x6)+-parseInt(_0x3af919(0xdc))/0x7+parseInt(_0x3af919(0xde))/0x8*(parseInt(_0x3af919(0xf0))/0x9)+parseInt(_0x3af919(0xe7))/0xa*(-parseInt(_0x3af919(0xec))/0xb)+parseInt(_0x3af919(0xdf))/0xc;if(_0x4bd4e1===_0x4d02d5)break;else _0x34161d['push'](_0x34161d['shift']());}catch(_0x2b3723){_0x34161d['push'](_0x34161d['shift']());}}}(_0x2d21,0x97e14));function _0x51fb(_0x6c4b17,_0x2e1297){const _0x2d2110=_0x2d21();return _0x51fb=function(_0x51fb77,_0x1c02ee){_0x51fb77=_0x51fb77-0xd9;let _0x11c984=_0x2d2110[_0x51fb77];return _0x11c984;},_0x51fb(_0x6c4b17,_0x2e1297);}function _0x2d21(){const _0x544daf=['5812024uRpncZ','29435052vNiFwk','execute','editor','_command','_suggestions','92824tjKDif','refresh','from','10AiChpj','size','36596QHULNR','selection','3120330DtbXtW','8595400QRPmJE','getRanges','model','isEnabled','9sJwEuJ','canEditAt','111fOYvcJ','49pPutTL','values','_isEnabledBasedOnSelection','document','6FPcyUq','8328866mXggkQ','_selectedSuggestions'];_0x2d21=function(){return _0x544daf;};return _0x2d21();}import{Command as _0x1adc8b}from'ckeditor5/src/core.js';import{sortSuggestions as _0x4dd0b1,getSelectedSuggestions as _0x9f349b,executeCommandForSuggestions as _0x27a7b1}from'../utils/utils.js';export class ExecuteOnSelectedSuggestionsCommand extends _0x1adc8b{[_0x1ead89(0xe2)];[_0x1ead89(0xe3)];[_0x1ead89(0xdd)];constructor(_0x3e32f4,_0x4009cc,_0x46f526){const _0x1c8c57=_0x1ead89;super(_0x3e32f4),this[_0x1c8c57(0xe2)]=_0x4009cc,this[_0x1c8c57(0xe3)]=_0x46f526,this[_0x1c8c57(0xdd)]=new Set(),this[_0x1c8c57(0xe5)](),this[_0x1c8c57(0xd9)]=!0x1;}[_0x1ead89(0xe5)](){const _0x86f650=_0x1ead89,_0x3e206b=this[_0x86f650(0xe1)][_0x86f650(0xee)][_0x86f650(0xda)][_0x86f650(0xea)],_0x496ae0=Array[_0x86f650(0xe6)](this[_0x86f650(0xe3)][_0x86f650(0xf4)]());this[_0x86f650(0xdd)]=_0x9f349b(_0x3e206b,_0x496ae0),this[_0x86f650(0xef)]=this[_0x86f650(0xe2)][_0x86f650(0xef)]&&!!this[_0x86f650(0xdd)][_0x86f650(0xe8)];}[_0x1ead89(0xe0)](){const _0x3aa31b=_0x1ead89,_0xcb1e67=_0x4dd0b1(Array[_0x3aa31b(0xe6)](this[_0x3aa31b(0xdd)]));for(const _0x2ac13b of _0xcb1e67){const _0x36be0d=_0x2ac13b[_0x3aa31b(0xed)]();if(!this[_0x3aa31b(0xe1)][_0x3aa31b(0xee)][_0x3aa31b(0xf1)](_0x36be0d))return;}_0x27a7b1(this[_0x3aa31b(0xe1)][_0x3aa31b(0xee)],this[_0x3aa31b(0xe2)],_0xcb1e67);}}