UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 4.82 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 _0x49d540=_0x454c;(function(_0x148f9f,_0x599bf8){const _0x3111dc=_0x454c,_0x455bb3=_0x148f9f();while(!![]){try{const _0x55b57d=parseInt(_0x3111dc(0x167))/0x1*(-parseInt(_0x3111dc(0x16e))/0x2)+-parseInt(_0x3111dc(0x171))/0x3*(-parseInt(_0x3111dc(0x16b))/0x4)+parseInt(_0x3111dc(0x155))/0x5*(parseInt(_0x3111dc(0x153))/0x6)+parseInt(_0x3111dc(0x16c))/0x7*(parseInt(_0x3111dc(0x154))/0x8)+parseInt(_0x3111dc(0x169))/0x9+parseInt(_0x3111dc(0x151))/0xa+-parseInt(_0x3111dc(0x162))/0xb;if(_0x55b57d===_0x599bf8)break;else _0x455bb3['push'](_0x455bb3['shift']());}catch(_0xc7da04){_0x455bb3['push'](_0x455bb3['shift']());}}}(_0x647e,0xa3fb5));import{Plugin as _0x230332}from'ckeditor5/src/core.js';function _0x647e(){const _0x1241b4=['enableDefaultAttributesIntegration','locale','afterInit','attribute','type','LinkEditing','*Set\x20link:*\x20%0','format','manualDecorators','2048343zLjmwp','toLowerCase','TrackChangesEditing','link','commandParams','5351pqqTiI','unlink','2822913csEMLg','get','4688zyYRGa','7rCFQJo','registerInlineAttribute','298vxquhP','editor','newValue','288bGRkkG','formatInline','commands','has','registerAttributeLabel','registerDescriptionCallback','commandName','descriptionFactory','link\x20(','*Remove\x20link*','plugins','8595560lsLkcU','linkHref','6HOLAJd','2001848WnurRp','596125TkHuKH','label','_registerLegacyDescription','key'];_0x647e=function(){return _0x1241b4;};return _0x647e();}function _0x454c(_0x8e3c09,_0xb52052){const _0x647eba=_0x647e();return _0x454c=function(_0x454cd2,_0x5f15d){_0x454cd2=_0x454cd2-0x14b;let _0xac3d0=_0x647eba[_0x454cd2];return _0xac3d0;},_0x454c(_0x8e3c09,_0xb52052);}import{getTranslation as _0xff4d72}from'../utils/common-translations.js';export class TrackChangesLink extends _0x230332{[_0x49d540(0x15b)](){const _0x15a849=_0x49d540,_0x702bb9=this[_0x15a849(0x16f)];if(!_0x702bb9[_0x15a849(0x150)][_0x15a849(0x174)](_0x15a849(0x15e)))return;const _0x3d99ab=_0x702bb9[_0x15a849(0x150)][_0x15a849(0x16a)](_0x15a849(0x164)),_0x44bc30=_0x702bb9[_0x15a849(0x173)][_0x15a849(0x16a)](_0x15a849(0x165));_0x3d99ab[_0x15a849(0x159)](_0x15a849(0x165)),_0x3d99ab[_0x15a849(0x159)](_0x15a849(0x168)),_0x3d99ab[_0x15a849(0x16d)](_0x15a849(0x152));for(const _0x40f9d1 of _0x44bc30[_0x15a849(0x161)])_0x3d99ab[_0x15a849(0x16d)](_0x40f9d1['id']),_0x3d99ab[_0x15a849(0x14d)][_0x15a849(0x175)](_0x40f9d1['id'],_0x15a849(0x14e)+_0x40f9d1[_0x15a849(0x156)][_0x15a849(0x163)]()+')');_0x3d99ab[_0x15a849(0x14d)][_0x15a849(0x14b)](_0x44e665=>{const _0x13d931=_0x15a849;if(_0x13d931(0x15c)!=_0x44e665[_0x13d931(0x15d)])return;const {data:_0x1c9341}=_0x44e665;if(!_0x1c9341||_0x13d931(0x152)!=_0x1c9341[_0x13d931(0x158)])return;const _0x293caf=_0x1c9341[_0x13d931(0x170)],_0xc081e6=_0x702bb9[_0x13d931(0x15a)];return{'type':_0x13d931(0x160),'content':null==_0x293caf?_0xff4d72(_0xc081e6,_0x13d931(0x14f)):_0xff4d72(_0xc081e6,_0x13d931(0x15f),'\x22'+_0x293caf+'\x22')};}),this[_0x15a849(0x157)]();}[_0x49d540(0x157)](){const _0x2b0165=_0x49d540,_0x244d7f=this[_0x2b0165(0x16f)],_0x3c1e17=_0x244d7f[_0x2b0165(0x15a)];_0x244d7f[_0x2b0165(0x150)][_0x2b0165(0x16a)](_0x2b0165(0x164))[_0x2b0165(0x14d)][_0x2b0165(0x14b)](_0x50b28f=>{const _0x47255b=_0x2b0165;if(_0x47255b(0x172)!=_0x50b28f[_0x47255b(0x15d)])return;const {data:_0x387a5e}=_0x50b28f;if(_0x387a5e){if(_0x47255b(0x165)==_0x387a5e[_0x47255b(0x14c)]){const _0x29c114=_0x387a5e[_0x47255b(0x166)][0x0];return{'type':_0x47255b(0x160),'content':_0xff4d72(_0x3c1e17,_0x47255b(0x15f),'\x22'+_0x29c114+'\x22')};}return _0x47255b(0x168)==_0x387a5e[_0x47255b(0x14c)]?{'type':_0x47255b(0x160),'content':_0xff4d72(_0x3c1e17,_0x47255b(0x14f))}:void 0x0;}});}}