@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.55 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 _0x3184(_0x227d39,_0x1d0370){const _0x3e7e12=_0x3e7e();return _0x3184=function(_0x3184e1,_0x80c75e){_0x3184e1=_0x3184e1-0xdd;let _0x399ad8=_0x3e7e12[_0x3184e1];return _0x399ad8;},_0x3184(_0x227d39,_0x1d0370);}const _0x3130b3=_0x3184;(function(_0x436bf8,_0x13fb94){const _0xe87f80=_0x3184,_0x4c6158=_0x436bf8();while(!![]){try{const _0x298d5f=parseInt(_0xe87f80(0xe5))/0x1+-parseInt(_0xe87f80(0xf6))/0x2+-parseInt(_0xe87f80(0xfb))/0x3+-parseInt(_0xe87f80(0xde))/0x4*(-parseInt(_0xe87f80(0xf4))/0x5)+parseInt(_0xe87f80(0x100))/0x6*(parseInt(_0xe87f80(0xeb))/0x7)+-parseInt(_0xe87f80(0xfa))/0x8*(-parseInt(_0xe87f80(0xf0))/0x9)+parseInt(_0xe87f80(0xe7))/0xa*(parseInt(_0xe87f80(0xef))/0xb);if(_0x298d5f===_0x13fb94)break;else _0x4c6158['push'](_0x4c6158['shift']());}catch(_0x10669e){_0x4c6158['push'](_0x4c6158['shift']());}}}(_0x3e7e,0xc7145));import{Plugin as _0x1f8a9d}from'ckeditor5/src/core.js';import{getRangesWithAttribute as _0xa96a91}from'./utils.js';function _0x3e7e(){const _0x18d3ff=['16VyiAnp','1020789JugEJC','document','registerDescriptionCallback','commandParams','selection','6047934NifAmn','from','forceValue','formatBlock','locale','commands','isCollapsed','model','710588ZgjTLJ','restrictedEditingException','plugins','change','afterInit','FORMAT_RESTRICTED_DISABLED','commandName','147394wfiPdC','formatInline','4028230AyDeLF','type','has','get','7VSCgFJ','getRanges','descriptionFactory','TrackChangesEditing','11LHQKSd','3301911ZUHRCJ','editor','markInlineFormat','enableCommand','5FCenCU','FORMAT_RESTRICTED_ENABLED','2627838OvqVLf','StandardEditingModeEditing','value','format'];_0x3e7e=function(){return _0x18d3ff;};return _0x3e7e();}import{getTranslation as _0x1abe99}from'../utils/common-translations.js';export class TrackChangesStandardEditingMode extends _0x1f8a9d{[_0x3130b3(0xe2)](){const _0x10e4b5=_0x3130b3,_0x238154=this[_0x10e4b5(0xf1)],_0x3e5ffb=_0x238154[_0x10e4b5(0xdd)],_0x51b048=_0x238154[_0x10e4b5(0x104)];if(!_0x238154[_0x10e4b5(0xe0)][_0x10e4b5(0xe9)](_0x10e4b5(0xf7)))return;const _0x2bef33=_0x238154[_0x10e4b5(0xe0)][_0x10e4b5(0xea)](_0x10e4b5(0xee)),_0x1e9161=_0x10e4b5(0xdf),_0x3d4a4b=_0x238154[_0x10e4b5(0x105)][_0x10e4b5(0xea)](_0x1e9161);_0x2bef33[_0x10e4b5(0xf3)](_0x1e9161,(_0x1bcebf,_0x163d50={})=>{const _0x424d38=_0x10e4b5,_0x2c0d08=_0x3e5ffb[_0x424d38(0xfc)][_0x424d38(0xff)];if(_0x2c0d08[_0x424d38(0x106)])return void _0x1bcebf(_0x163d50);const _0x3d3dec=void 0x0!==_0x163d50[_0x424d38(0x102)]?_0x163d50[_0x424d38(0x102)]:!_0x3d4a4b[_0x424d38(0xf8)];_0x3e5ffb[_0x424d38(0xe1)](()=>{const _0x3476bf=_0x424d38,_0x3fbc81=Array[_0x3476bf(0x101)](_0x2c0d08[_0x3476bf(0xec)]());for(const _0x307558 of _0x3fbc81){const _0x92ada5=_0x3d3dec?[_0x307558]:_0xa96a91(_0x1e9161,_0x307558,_0x3e5ffb);for(const _0x2b405e of _0x92ada5)_0x2bef33[_0x3476bf(0xf2)](_0x2b405e,{'commandName':_0x1e9161,'commandParams':[{'forceValue':_0x3d3dec}]});}});}),_0x2bef33[_0x10e4b5(0xed)][_0x10e4b5(0xfd)](_0xf1747a=>{const _0x4c13e6=_0x10e4b5;if(_0x4c13e6(0x103)!=_0xf1747a[_0x4c13e6(0xe8)]&&_0x4c13e6(0xe6)!=_0xf1747a[_0x4c13e6(0xe8)])return;const {data:_0x3da9c9}=_0xf1747a;return _0x3da9c9&&_0x3da9c9[_0x4c13e6(0xe4)]==_0x1e9161?_0x3da9c9[_0x4c13e6(0xfe)][0x0][_0x4c13e6(0x102)]?{'type':_0x4c13e6(0xf9),'content':_0x1abe99(_0x51b048,_0x4c13e6(0xf5))}:{'type':_0x4c13e6(0xf9),'content':_0x1abe99(_0x51b048,_0x4c13e6(0xe3))}:void 0x0;});}}