@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.37 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 _0x538ffb=_0x2663;(function(_0x4a254f,_0x17488a){const _0x1fd96d=_0x2663,_0x5d8d8e=_0x4a254f();while(!![]){try{const _0x3ffc8b=-parseInt(_0x1fd96d(0x16b))/0x1+parseInt(_0x1fd96d(0x154))/0x2+parseInt(_0x1fd96d(0x15d))/0x3*(-parseInt(_0x1fd96d(0x161))/0x4)+parseInt(_0x1fd96d(0x160))/0x5*(-parseInt(_0x1fd96d(0x14a))/0x6)+-parseInt(_0x1fd96d(0x146))/0x7*(-parseInt(_0x1fd96d(0x14e))/0x8)+-parseInt(_0x1fd96d(0x167))/0x9*(-parseInt(_0x1fd96d(0x15f))/0xa)+parseInt(_0x1fd96d(0x165))/0xb;if(_0x3ffc8b===_0x17488a)break;else _0x5d8d8e['push'](_0x5d8d8e['shift']());}catch(_0x5af5a0){_0x5d8d8e['push'](_0x5d8d8e['shift']());}}}(_0x260b,0x2c3ef));import{Plugin as _0x373139}from'ckeditor5/src/core.js';function _0x2663(_0x4b351f,_0x155bc5){const _0x260ba3=_0x260b();return _0x2663=function(_0x266394,_0x2f6a3f){_0x266394=_0x266394-0x145;let _0x41a87d=_0x260ba3[_0x266394];return _0x41a87d;},_0x2663(_0x4b351f,_0x155bc5);}import{getTranslation as _0x441861}from'../utils/common-translations.js';function _0x260b(){const _0x418f05=['*Set\x20bookmark:*\x20%0','element','updateBookmark','2118aMUFYx','format','get','*Remove:*\x20%0','505592iiicdz','has','insertion','descriptionFactory','TrackChangesEditing','*Insert:*\x20%0','108474KLoUTA','newValue','getContainedElement','attribute','BookmarkEditing','plugins','editor','enableCommand','afterInit','87BMsmtB','ELEMENT_BOOKMARK','3498100IRKeLK','120JSypMu','32556xDuuvl','getAttribute','bookmarkId','deletion','953073SFDxBh','type','9wSwmoU','bookmark','registerDescriptionCallback','locale','128155rhlkyR','registerBlockAttribute','key','insertBookmark','enableDefaultAttributesIntegration','7NyHIkt'];_0x260b=function(){return _0x418f05;};return _0x260b();}export default class L extends _0x373139{[_0x538ffb(0x15c)](){const _0x33435b=_0x538ffb,_0x4df42a=this[_0x33435b(0x15a)],_0x2d606e=_0x4df42a[_0x33435b(0x16a)],_0x3baeb1=_0x4df42a[_0x33435b(0x159)][_0x33435b(0x14c)](_0x33435b(0x152));_0x4df42a[_0x33435b(0x159)][_0x33435b(0x14f)](_0x33435b(0x158))&&(_0x3baeb1[_0x33435b(0x15b)](_0x33435b(0x16e)),_0x3baeb1[_0x33435b(0x145)](_0x33435b(0x149)),_0x3baeb1[_0x33435b(0x16c)](_0x33435b(0x163)),_0x3baeb1[_0x33435b(0x151)][_0x33435b(0x169)](_0x9d3102=>{const _0x32dd34=_0x33435b;if(_0x32dd34(0x150)!=_0x9d3102[_0x32dd34(0x166)]&&_0x32dd34(0x164)!=_0x9d3102[_0x32dd34(0x166)]&&_0x32dd34(0x157)!=_0x9d3102[_0x32dd34(0x166)])return;const _0x1b6f77=_0x9d3102[_0x32dd34(0x156)]();if(null==_0x1b6f77)return;if(!_0x1b6f77['is'](_0x32dd34(0x148),_0x32dd34(0x168)))return;const _0x2d5676=_0x1b6f77[_0x32dd34(0x162)](_0x32dd34(0x163));if(_0x32dd34(0x150)==_0x9d3102[_0x32dd34(0x166)])return{'type':_0x32dd34(0x150),'content':_0x441861(_0x2d606e,_0x32dd34(0x153),'\x22'+_0x2d5676+'\x22\x20'+_0x441861(_0x2d606e,_0x32dd34(0x15e)))};if(_0x32dd34(0x164)==_0x9d3102[_0x32dd34(0x166)])return{'type':_0x32dd34(0x164),'content':_0x441861(_0x2d606e,_0x32dd34(0x14d),'\x22'+_0x2d5676+'\x22\x20'+_0x441861(_0x2d606e,_0x32dd34(0x15e)))};const {data:_0x395c3c}=_0x9d3102;if(!_0x395c3c||_0x32dd34(0x163)!=_0x395c3c[_0x32dd34(0x16d)])return;return{'type':_0x32dd34(0x14b),'content':_0x441861(_0x2d606e,_0x32dd34(0x147),'\x22'+_0x395c3c[_0x32dd34(0x155)]+'\x22')};}));}}