UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 4.27 kB
/* * 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 _0x168f76=_0x259a;function _0x259a(_0xc555ea,_0x32f531){const _0x3c31f7=_0x3c31();return _0x259a=function(_0x259a0c,_0x4a4f98){_0x259a0c=_0x259a0c-0xaa;let _0x2ff12e=_0x3c31f7[_0x259a0c];return _0x2ff12e;},_0x259a(_0xc555ea,_0x32f531);}(function(_0x42d0e5,_0x1a1e27){const _0x284bf9=_0x259a,_0x1624a1=_0x42d0e5();while(!![]){try{const _0x2f84d9=-parseInt(_0x284bf9(0xad))/0x1+parseInt(_0x284bf9(0xc6))/0x2+-parseInt(_0x284bf9(0xb9))/0x3+parseInt(_0x284bf9(0xce))/0x4*(parseInt(_0x284bf9(0xc0))/0x5)+parseInt(_0x284bf9(0xbb))/0x6*(-parseInt(_0x284bf9(0xbc))/0x7)+-parseInt(_0x284bf9(0xc5))/0x8*(parseInt(_0x284bf9(0xb5))/0x9)+parseInt(_0x284bf9(0xb4))/0xa;if(_0x2f84d9===_0x1a1e27)break;else _0x1624a1['push'](_0x1624a1['shift']());}catch(_0x25258f){_0x1624a1['push'](_0x1624a1['shift']());}}}(_0x3c31,0x3fb9b));import{Plugin as _0x346632}from'ckeditor5/src/core.js';import{getTranslation as _0x5550b4}from'../utils/common-translations.js';function _0x3c31(){const _0x5510ca=['editor','1729405tmddhU','BookmarkEditing','descriptionFactory','bookmark','has','8GtqzvJ','610982yuZKFC','enableCommand','attribute','key','*Insert:*\x20%0','deletion','type','registerBlockAttribute','4jMXMwf','bookmarkId','get','registerDescriptionCallback','*Set\x20bookmark:*\x20%0','afterInit','*Remove:*\x20%0','insertion','252800GtkLpF','updateBookmark','format','element','getContainedElement','locale','getAttribute','4224120ICQumW','1891827xqlCiI','TrackChangesEditing','insertBookmark','plugins','2541fPopde','ELEMENT_BOOKMARK','126lWtKlr','116305lsJAYf','enableDefaultAttributesIntegration','newValue'];_0x3c31=function(){return _0x5510ca;};return _0x3c31();}export default class L extends _0x346632{[_0x168f76(0xaa)](){const _0xb73f42=_0x168f76,_0x14daf2=this[_0xb73f42(0xbf)],_0x30d60d=_0x14daf2[_0xb73f42(0xb2)],_0x2504ca=_0x14daf2[_0xb73f42(0xb8)][_0xb73f42(0xd0)](_0xb73f42(0xb6));_0x14daf2[_0xb73f42(0xb8)][_0xb73f42(0xc4)](_0xb73f42(0xc1))&&(_0x2504ca[_0xb73f42(0xc7)](_0xb73f42(0xb7)),_0x2504ca[_0xb73f42(0xbd)](_0xb73f42(0xae)),_0x2504ca[_0xb73f42(0xcd)](_0xb73f42(0xcf)),_0x2504ca[_0xb73f42(0xc2)][_0xb73f42(0xd1)](_0x3e4c5d=>{const _0x5bbca8=_0xb73f42;if(_0x5bbca8(0xac)!=_0x3e4c5d[_0x5bbca8(0xcc)]&&_0x5bbca8(0xcb)!=_0x3e4c5d[_0x5bbca8(0xcc)]&&_0x5bbca8(0xc8)!=_0x3e4c5d[_0x5bbca8(0xcc)])return;const _0x1bbd87=_0x3e4c5d[_0x5bbca8(0xb1)]();if(null==_0x1bbd87)return;if(!_0x1bbd87['is'](_0x5bbca8(0xb0),_0x5bbca8(0xc3)))return;const _0x451ce2=_0x1bbd87[_0x5bbca8(0xb3)](_0x5bbca8(0xcf));if(_0x5bbca8(0xac)==_0x3e4c5d[_0x5bbca8(0xcc)])return{'type':_0x5bbca8(0xac),'content':_0x5550b4(_0x30d60d,_0x5bbca8(0xca),'\x22'+_0x451ce2+'\x22\x20'+_0x5550b4(_0x30d60d,_0x5bbca8(0xba)))};if(_0x5bbca8(0xcb)==_0x3e4c5d[_0x5bbca8(0xcc)])return{'type':_0x5bbca8(0xcb),'content':_0x5550b4(_0x30d60d,_0x5bbca8(0xab),'\x22'+_0x451ce2+'\x22\x20'+_0x5550b4(_0x30d60d,_0x5bbca8(0xba)))};const {data:_0x272adc}=_0x3e4c5d;if(!_0x272adc||_0x5bbca8(0xcf)!=_0x272adc[_0x5bbca8(0xc9)])return;return{'type':_0x5bbca8(0xaf),'content':_0x5550b4(_0x30d60d,_0x5bbca8(0xd2),'\x22'+_0x272adc[_0x5bbca8(0xbe)]+'\x22')};}));}}