@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 3.78 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 _0x9e5fc1=_0xea6a;(function(_0x223d52,_0x1e1399){const _0x25acfd=_0xea6a,_0x2f65ad=_0x223d52();while(!![]){try{const _0x2930c5=parseInt(_0x25acfd(0x1d8))/0x1+parseInt(_0x25acfd(0x1c8))/0x2+-parseInt(_0x25acfd(0x1d2))/0x3*(-parseInt(_0x25acfd(0x1d4))/0x4)+-parseInt(_0x25acfd(0x1cf))/0x5*(parseInt(_0x25acfd(0x1c2))/0x6)+-parseInt(_0x25acfd(0x1c4))/0x7+-parseInt(_0x25acfd(0x1cd))/0x8*(parseInt(_0x25acfd(0x1d1))/0x9)+-parseInt(_0x25acfd(0x1d6))/0xa*(-parseInt(_0x25acfd(0x1c3))/0xb);if(_0x2930c5===_0x1e1399)break;else _0x2f65ad['push'](_0x2f65ad['shift']());}catch(_0x8d1782){_0x2f65ad['push'](_0x2f65ad['shift']());}}}(_0x279f,0x7d00a));import{Command as _0x290db4}from'ckeditor5/src/core.js';import{sortSuggestions as _0x290e2d,getSelectedSuggestions as _0x8c404e,executeCommandForSuggestions as _0x8d63da}from'../utils/utils.js';function _0xea6a(_0x250e79,_0x1feeaf){const _0x279f9d=_0x279f();return _0xea6a=function(_0xea6a14,_0x326531){_0xea6a14=_0xea6a14-0x1bf;let _0x4656a4=_0x279f9d[_0xea6a14];return _0x4656a4;},_0xea6a(_0x250e79,_0x1feeaf);}export class ExecuteOnSelectedSuggestionsCommand extends _0x290db4{[_0x9e5fc1(0x1c1)];[_0x9e5fc1(0x1d9)];[_0x9e5fc1(0x1c5)];constructor(_0x1156d2,_0x488903,_0x26846b){const _0x517cb4=_0x9e5fc1;super(_0x1156d2),this[_0x517cb4(0x1c1)]=_0x488903,this[_0x517cb4(0x1d9)]=_0x26846b,this[_0x517cb4(0x1c5)]=new Set(),this[_0x517cb4(0x1d0)](),this[_0x517cb4(0x1ce)]=!0x1;}[_0x9e5fc1(0x1d0)](){const _0x50381b=_0x9e5fc1,_0x254f72=this[_0x50381b(0x1c7)][_0x50381b(0x1cc)][_0x50381b(0x1c0)][_0x50381b(0x1c6)],_0x4277f2=Array[_0x50381b(0x1ca)](this[_0x50381b(0x1d9)][_0x50381b(0x1c9)]());this[_0x50381b(0x1c5)]=_0x8c404e(_0x254f72,_0x4277f2),this[_0x50381b(0x1cb)]=this[_0x50381b(0x1c1)][_0x50381b(0x1cb)]&&!!this[_0x50381b(0x1c5)][_0x50381b(0x1d7)];}[_0x9e5fc1(0x1bf)](){const _0x4ab214=_0x9e5fc1,_0x2164eb=_0x290e2d(Array[_0x4ab214(0x1ca)](this[_0x4ab214(0x1c5)]));for(const _0x376a4b of _0x2164eb){const _0x4699db=_0x376a4b[_0x4ab214(0x1d5)]();if(!this[_0x4ab214(0x1c7)][_0x4ab214(0x1cc)][_0x4ab214(0x1d3)](_0x4699db))return;}_0x8d63da(this[_0x4ab214(0x1c7)][_0x4ab214(0x1cc)],this[_0x4ab214(0x1c1)],_0x2164eb);}}function _0x279f(){const _0x7c2117=['5917702phqbJz','_selectedSuggestions','selection','editor','1953168uGuOUm','values','from','isEnabled','model','2244728CRZQpm','_isEnabledBasedOnSelection','2381970pMFgOv','refresh','9OxpKxs','417BbjiDt','canEditAt','14764tnJBKb','getRanges','10vNdCQV','size','541573wCGuVZ','_suggestions','execute','document','_command','12ddsGzL','6155259sEHcyF'];_0x279f=function(){return _0x7c2117;};return _0x279f();}