@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.82 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 _0x41397e=_0x49e1;(function(_0x5b0421,_0x566a4e){const _0x259388=_0x49e1,_0x6d769f=_0x5b0421();while(!![]){try{const _0x1fa115=-parseInt(_0x259388(0x12f))/0x1+-parseInt(_0x259388(0x14f))/0x2*(parseInt(_0x259388(0x13f))/0x3)+-parseInt(_0x259388(0x130))/0x4*(parseInt(_0x259388(0x154))/0x5)+parseInt(_0x259388(0x152))/0x6*(parseInt(_0x259388(0x139))/0x7)+-parseInt(_0x259388(0x147))/0x8*(parseInt(_0x259388(0x13a))/0x9)+-parseInt(_0x259388(0x12c))/0xa+parseInt(_0x259388(0x155))/0xb;if(_0x1fa115===_0x566a4e)break;else _0x6d769f['push'](_0x6d769f['shift']());}catch(_0x2311c0){_0x6d769f['push'](_0x6d769f['shift']());}}}(_0x40a6,0x7a62d));function _0x40a6(){const _0x393e38=['commands','unlink','enableDefaultAttributesIntegration','*Remove\x20link*','LinkEditing','formatInline','2AovvBA','locale','commandName','4422GaXKIy','label','5dVlubG','21506331hKgjPY','registerDescriptionCallback','6556830ILDOjc','plugins','link\x20(','480980jOiWyP','1384116DNcQPW','linkHref','editor','afterInit','manualDecorators','type','toLowerCase','descriptionFactory','_registerLegacyDescription','4893sAuaKp','13158nIObZc','get','newValue','link','format','524679ExLwZC','commandParams','TrackChangesEditing','*Set\x20link:*\x20%0','has','registerAttributeLabel','attribute','registerInlineAttribute','1704OPxFWR','key'];_0x40a6=function(){return _0x393e38;};return _0x40a6();}import{Plugin as _0x4bff7}from'ckeditor5/src/core.js';function _0x49e1(_0xc043e9,_0x36f1f1){const _0x40a67c=_0x40a6();return _0x49e1=function(_0x49e1a4,_0x2a9d16){_0x49e1a4=_0x49e1a4-0x12c;let _0x22f27e=_0x40a67c[_0x49e1a4];return _0x22f27e;},_0x49e1(_0xc043e9,_0x36f1f1);}import{getTranslation as _0xf788e3}from'../utils/common-translations.js';export default class gt extends _0x4bff7{[_0x41397e(0x133)](){const _0x84569a=_0x41397e,_0x1c18a5=this[_0x84569a(0x132)];if(!_0x1c18a5[_0x84569a(0x12d)][_0x84569a(0x143)](_0x84569a(0x14d)))return;const _0x50acfc=_0x1c18a5[_0x84569a(0x12d)][_0x84569a(0x13b)](_0x84569a(0x141)),_0x2f937d=_0x1c18a5[_0x84569a(0x149)][_0x84569a(0x13b)](_0x84569a(0x13d));_0x50acfc[_0x84569a(0x14b)](_0x84569a(0x13d)),_0x50acfc[_0x84569a(0x14b)](_0x84569a(0x14a)),_0x50acfc[_0x84569a(0x146)](_0x84569a(0x131));for(const _0x2eef66 of _0x2f937d[_0x84569a(0x134)])_0x50acfc[_0x84569a(0x146)](_0x2eef66['id']),_0x50acfc[_0x84569a(0x137)][_0x84569a(0x144)](_0x2eef66['id'],_0x84569a(0x12e)+_0x2eef66[_0x84569a(0x153)][_0x84569a(0x136)]()+')');_0x50acfc[_0x84569a(0x137)][_0x84569a(0x156)](_0x54191a=>{const _0x3ba107=_0x84569a;if(_0x3ba107(0x145)!=_0x54191a[_0x3ba107(0x135)])return;const {data:_0x58b2f9}=_0x54191a;if(!_0x58b2f9||_0x3ba107(0x131)!=_0x58b2f9[_0x3ba107(0x148)])return;const _0x543eb3=_0x58b2f9[_0x3ba107(0x13c)],_0xb37f78=_0x1c18a5[_0x3ba107(0x150)];return{'type':_0x3ba107(0x13e),'content':null==_0x543eb3?_0xf788e3(_0xb37f78,_0x3ba107(0x14c)):_0xf788e3(_0xb37f78,_0x3ba107(0x142),'\x22'+_0x543eb3+'\x22')};}),this[_0x84569a(0x138)]();}[_0x41397e(0x138)](){const _0x5c9143=_0x41397e,_0x4d2c6b=this[_0x5c9143(0x132)],_0x23b489=_0x4d2c6b[_0x5c9143(0x150)];_0x4d2c6b[_0x5c9143(0x12d)][_0x5c9143(0x13b)](_0x5c9143(0x141))[_0x5c9143(0x137)][_0x5c9143(0x156)](_0x3f7503=>{const _0x238e56=_0x5c9143;if(_0x238e56(0x14e)!=_0x3f7503[_0x238e56(0x135)])return;const {data:_0x4bc3fd}=_0x3f7503;if(_0x4bc3fd){if(_0x238e56(0x13d)==_0x4bc3fd[_0x238e56(0x151)]){const _0x1ea3f0=_0x4bc3fd[_0x238e56(0x140)][0x0];return{'type':_0x238e56(0x13e),'content':_0xf788e3(_0x23b489,_0x238e56(0x142),'\x22'+_0x1ea3f0+'\x22')};}return _0x238e56(0x14a)==_0x4bc3fd[_0x238e56(0x151)]?{'type':_0x238e56(0x13e),'content':_0xf788e3(_0x23b489,_0x238e56(0x14c))}:void 0x0;}});}}