@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.38 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 _0x3321(_0xe93af3,_0x381bbb){const _0x4d6cf8=_0x4d6c();return _0x3321=function(_0x332193,_0x567799){_0x332193=_0x332193-0x14d;let _0x319ec7=_0x4d6cf8[_0x332193];return _0x319ec7;},_0x3321(_0xe93af3,_0x381bbb);}const _0x1a8c1b=_0x3321;(function(_0x5389c0,_0x4813a1){const _0x4e1f5b=_0x3321,_0xd033fc=_0x5389c0();while(!![]){try{const _0x630590=-parseInt(_0x4e1f5b(0x14f))/0x1*(-parseInt(_0x4e1f5b(0x15b))/0x2)+-parseInt(_0x4e1f5b(0x156))/0x3+parseInt(_0x4e1f5b(0x166))/0x4*(parseInt(_0x4e1f5b(0x174))/0x5)+parseInt(_0x4e1f5b(0x155))/0x6*(parseInt(_0x4e1f5b(0x159))/0x7)+-parseInt(_0x4e1f5b(0x16c))/0x8+-parseInt(_0x4e1f5b(0x173))/0x9+parseInt(_0x4e1f5b(0x169))/0xa*(parseInt(_0x4e1f5b(0x15f))/0xb);if(_0x630590===_0x4813a1)break;else _0xd033fc['push'](_0xd033fc['shift']());}catch(_0x36d03e){_0xd033fc['push'](_0xd033fc['shift']());}}}(_0x4d6c,0x97767));import{Plugin as _0xe7c7b9}from'ckeditor5/src/core.js';import{getTranslation as _0x5df1d7}from'../utils/common-translations.js';function _0x4d6c(){const _0x3c23ca=['5060601nWsUzt','2925490hbOKlC','bookmarkId','plugins','*Set\x20bookmark:*\x20%0','descriptionFactory','16238lSRQVP','has','deletion','element','afterInit','bookmark','44238ogRypQ','3697728qBZmJN','*Insert:*\x20%0','getAttribute','497EjfpBt','locale','106TQZkYC','enableCommand','newValue','key','77AqlvfS','get','getContainedElement','attribute','insertBookmark','TrackChangesEditing','insertion','8sNrvrh','enableDefaultAttributesIntegration','type','880990avOvZL','updateBookmark','format','6045840fGOvXU','registerBlockAttribute','*Remove:*\x20%0','editor','BookmarkEditing','registerDescriptionCallback','ELEMENT_BOOKMARK'];_0x4d6c=function(){return _0x3c23ca;};return _0x4d6c();}export class TrackChangesBookmark extends _0xe7c7b9{[_0x1a8c1b(0x153)](){const _0x3057b2=_0x1a8c1b,_0x5e6233=this[_0x3057b2(0x16f)],_0x491263=_0x5e6233[_0x3057b2(0x15a)],_0x287e4a=_0x5e6233[_0x3057b2(0x176)][_0x3057b2(0x160)](_0x3057b2(0x164));_0x5e6233[_0x3057b2(0x176)][_0x3057b2(0x150)](_0x3057b2(0x170))&&(_0x287e4a[_0x3057b2(0x15c)](_0x3057b2(0x163)),_0x287e4a[_0x3057b2(0x167)](_0x3057b2(0x16a)),_0x287e4a[_0x3057b2(0x16d)](_0x3057b2(0x175)),_0x287e4a[_0x3057b2(0x14e)][_0x3057b2(0x171)](_0x18d1bc=>{const _0x298672=_0x3057b2;if(_0x298672(0x165)!=_0x18d1bc[_0x298672(0x168)]&&_0x298672(0x151)!=_0x18d1bc[_0x298672(0x168)]&&_0x298672(0x162)!=_0x18d1bc[_0x298672(0x168)])return;const _0x6ed925=_0x18d1bc[_0x298672(0x161)]();if(null==_0x6ed925)return;if(!_0x6ed925['is'](_0x298672(0x152),_0x298672(0x154)))return;const _0x18c24d=_0x6ed925[_0x298672(0x158)](_0x298672(0x175));if(_0x298672(0x165)==_0x18d1bc[_0x298672(0x168)])return{'type':_0x298672(0x165),'content':_0x5df1d7(_0x491263,_0x298672(0x157),'\x22'+_0x18c24d+'\x22\x20'+_0x5df1d7(_0x491263,_0x298672(0x172)))};if(_0x298672(0x151)==_0x18d1bc[_0x298672(0x168)])return{'type':_0x298672(0x151),'content':_0x5df1d7(_0x491263,_0x298672(0x16e),'\x22'+_0x18c24d+'\x22\x20'+_0x5df1d7(_0x491263,_0x298672(0x172)))};const {data:_0x2dd914}=_0x18d1bc;if(!_0x2dd914||_0x298672(0x175)!=_0x2dd914[_0x298672(0x15e)])return;return{'type':_0x298672(0x16b),'content':_0x5df1d7(_0x491263,_0x298672(0x14d),'\x22'+_0x2dd914[_0x298672(0x15d)]+'\x22')};}));}}