@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.57 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 _0x5602(_0x2f13a1,_0x1cdcd1){const _0x5348fe=_0x5348();return _0x5602=function(_0x5602ba,_0xc329c5){_0x5602ba=_0x5602ba-0x9b;let _0x10ec9e=_0x5348fe[_0x5602ba];return _0x10ec9e;},_0x5602(_0x2f13a1,_0x1cdcd1);}const _0x15a57f=_0x5602;(function(_0xb4534a,_0x28835d){const _0x4cf5c1=_0x5602,_0x19df2e=_0xb4534a();while(!![]){try{const _0x251c52=parseInt(_0x4cf5c1(0xb2))/0x1*(-parseInt(_0x4cf5c1(0x9f))/0x2)+-parseInt(_0x4cf5c1(0xb7))/0x3*(-parseInt(_0x4cf5c1(0x9d))/0x4)+-parseInt(_0x4cf5c1(0xb4))/0x5+-parseInt(_0x4cf5c1(0xb8))/0x6*(-parseInt(_0x4cf5c1(0xb3))/0x7)+-parseInt(_0x4cf5c1(0xa4))/0x8*(parseInt(_0x4cf5c1(0xc3))/0x9)+-parseInt(_0x4cf5c1(0xc1))/0xa+parseInt(_0x4cf5c1(0x9c))/0xb*(parseInt(_0x4cf5c1(0x9b))/0xc);if(_0x251c52===_0x28835d)break;else _0x19df2e['push'](_0x19df2e['shift']());}catch(_0xfa8d51){_0x19df2e['push'](_0x19df2e['shift']());}}}(_0x5348,0x639be));import{Plugin as _0x45e5ec}from'ckeditor5/src/core.js';import{getRangesWithAttribute as _0x4d2c15}from'./utils.js';import{getTranslation as _0x3875ec}from'../utils/common-translations.js';function _0x5348(){const _0x237ad5=['markInlineFormat','formatBlock','afterInit','registerDescriptionCallback','commands','commandName','descriptionFactory','model','TrackChangesEditing','StandardEditingModeEditing','has','enableCommand','type','63141AIHJli','4487iddevh','1680285LHYmQg','restrictedEditingException','isCollapsed','3FvOezD','4506zWdTks','format','document','plugins','change','forceValue','from','get','selection','3055250MtFzwS','locale','140040wCeRlV','editor','commandParams','27768uLWAHI','5269oufDQx','174448wtpCtk','FORMAT_RESTRICTED_DISABLED','18fNzzoG','value','formatInline','getRanges','FORMAT_RESTRICTED_ENABLED','8SVUdOn'];_0x5348=function(){return _0x237ad5;};return _0x5348();}export default class _t extends _0x45e5ec{[_0x15a57f(0xa7)](){const _0x5e0a44=_0x15a57f,_0x1da7a7=this[_0x5e0a44(0xc4)],_0x571ff2=_0x1da7a7[_0x5e0a44(0xac)],_0x3cef4b=_0x1da7a7[_0x5e0a44(0xc2)];if(!_0x1da7a7[_0x5e0a44(0xbb)][_0x5e0a44(0xaf)](_0x5e0a44(0xae)))return;const _0xcc5507=_0x1da7a7[_0x5e0a44(0xbb)][_0x5e0a44(0xbf)](_0x5e0a44(0xad)),_0x448b68=_0x5e0a44(0xb5),_0x1f284c=_0x1da7a7[_0x5e0a44(0xa9)][_0x5e0a44(0xbf)](_0x448b68);_0xcc5507[_0x5e0a44(0xb0)](_0x448b68,(_0x511076,_0x4d325e={})=>{const _0x4cd8a4=_0x5e0a44,_0x42b388=_0x571ff2[_0x4cd8a4(0xba)][_0x4cd8a4(0xc0)];if(_0x42b388[_0x4cd8a4(0xb6)])return void _0x511076(_0x4d325e);const _0x14052a=void 0x0!==_0x4d325e[_0x4cd8a4(0xbd)]?_0x4d325e[_0x4cd8a4(0xbd)]:!_0x1f284c[_0x4cd8a4(0xa0)];_0x571ff2[_0x4cd8a4(0xbc)](()=>{const _0x34c901=_0x4cd8a4,_0x20910b=Array[_0x34c901(0xbe)](_0x42b388[_0x34c901(0xa2)]());for(const _0x475097 of _0x20910b){const _0x5ab22c=_0x14052a?[_0x475097]:_0x4d2c15(_0x448b68,_0x475097,_0x571ff2);for(const _0x561037 of _0x5ab22c)_0xcc5507[_0x34c901(0xa5)](_0x561037,{'commandName':_0x448b68,'commandParams':[{'forceValue':_0x14052a}]});}});}),_0xcc5507[_0x5e0a44(0xab)][_0x5e0a44(0xa8)](_0x226ded=>{const _0x52acfa=_0x5e0a44;if(_0x52acfa(0xa6)!=_0x226ded[_0x52acfa(0xb1)]&&_0x52acfa(0xa1)!=_0x226ded[_0x52acfa(0xb1)])return;const {data:_0x1de68b}=_0x226ded;return _0x1de68b&&_0x1de68b[_0x52acfa(0xaa)]==_0x448b68?_0x1de68b[_0x52acfa(0xc5)][0x0][_0x52acfa(0xbd)]?{'type':_0x52acfa(0xb9),'content':_0x3875ec(_0x3cef4b,_0x52acfa(0xa3))}:{'type':_0x52acfa(0xb9),'content':_0x3875ec(_0x3cef4b,_0x52acfa(0x9e))}:void 0x0;});}}