UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 4.37 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 _0x4169dd=_0x3758;(function(_0x18ff55,_0x13d3b0){const _0x42a1ef=_0x3758,_0x16bd1d=_0x18ff55();while(!![]){try{const _0x264fbc=-parseInt(_0x42a1ef(0x163))/0x1+-parseInt(_0x42a1ef(0x16d))/0x2+parseInt(_0x42a1ef(0x156))/0x3+parseInt(_0x42a1ef(0x165))/0x4+parseInt(_0x42a1ef(0x16c))/0x5*(-parseInt(_0x42a1ef(0x154))/0x6)+parseInt(_0x42a1ef(0x155))/0x7*(-parseInt(_0x42a1ef(0x16e))/0x8)+parseInt(_0x42a1ef(0x161))/0x9;if(_0x264fbc===_0x13d3b0)break;else _0x16bd1d['push'](_0x16bd1d['shift']());}catch(_0x425118){_0x16bd1d['push'](_0x16bd1d['shift']());}}}(_0x3e8a,0x5609a));function _0x3e8a(){const _0x3472ac=['TrackChangesEditing','find','format','8095gMHVbM','656966BtBvVJ','8FOQUed','plugins','registerAttributeLabel','title','highlight.options','highlight','locale','FORMAT_HIGHLIGHT','_registerLegacyDescription','HighlightEditing','afterInit','config','editor','registerInlineAttribute','972UeKNjg','3844918XgRsGw','2108046IrxKMT','type','enableDefaultAttributesIntegration','value','model','*Set\x20highlight:*\x20%0','get','color','commandParams','descriptionFactory','toLowerCase','8522541VeQyFg','*Remove\x20highlight*','368516ZksZPu','registerDescriptionCallback','845320YyapUU','commandName','has','formatInline'];_0x3e8a=function(){return _0x3472ac;};return _0x3e8a();}function _0x3758(_0x4d9a3a,_0x1e200c){const _0x3e8aba=_0x3e8a();return _0x3758=function(_0x375866,_0x232761){_0x375866=_0x375866-0x14f;let _0x38ae5c=_0x3e8aba[_0x375866];return _0x38ae5c;},_0x3758(_0x4d9a3a,_0x1e200c);}import{Plugin as _0x51d7b6}from'ckeditor5/src/core.js';import{getTranslation as _0x6ab59c}from'../utils/common-translations.js';export default class nt extends _0x51d7b6{[_0x4169dd(0x150)](){const _0x3ae6ff=_0x4169dd,_0x2f89f8=this[_0x3ae6ff(0x152)];if(!_0x2f89f8[_0x3ae6ff(0x16f)][_0x3ae6ff(0x167)](_0x3ae6ff(0x14f)))return;const _0x51c7f2=_0x2f89f8[_0x3ae6ff(0x16f)][_0x3ae6ff(0x15c)](_0x3ae6ff(0x169)),_0x2d4604=_0x2f89f8[_0x3ae6ff(0x174)];_0x51c7f2[_0x3ae6ff(0x158)](_0x3ae6ff(0x173)),_0x51c7f2[_0x3ae6ff(0x153)](_0x3ae6ff(0x173)),_0x51c7f2[_0x3ae6ff(0x15f)][_0x3ae6ff(0x170)](_0x3ae6ff(0x173),_0x6ab59c(_0x2d4604,_0x3ae6ff(0x175))),this[_0x3ae6ff(0x176)]();}[_0x4169dd(0x176)](){const _0x3cb980=_0x4169dd,_0x45dada=this[_0x3cb980(0x152)],_0x419de1=_0x45dada[_0x3cb980(0x174)];_0x45dada[_0x3cb980(0x16f)][_0x3cb980(0x15c)](_0x3cb980(0x169))[_0x3cb980(0x15f)][_0x3cb980(0x164)](_0x4903eb=>{const _0x47f224=_0x3cb980;if(_0x47f224(0x168)!=_0x4903eb[_0x47f224(0x157)])return;const {data:_0x3fdf4a}=_0x4903eb;if(_0x3fdf4a&&_0x47f224(0x173)==_0x3fdf4a[_0x47f224(0x166)]){const _0x4f9a42=_0x419de1['t'],_0x29e099=_0x3fdf4a[_0x47f224(0x15e)][0x0][_0x47f224(0x159)];if(_0x29e099){const _0x111522=_0x45dada[_0x47f224(0x151)][_0x47f224(0x15c)](_0x47f224(0x172))[_0x47f224(0x16a)](_0x38ff1a=>_0x38ff1a[_0x47f224(0x15a)]==_0x29e099),_0x1e1f59=_0x4f9a42(_0x111522[_0x47f224(0x171)])[_0x47f224(0x160)]();return{'type':_0x47f224(0x16b),'content':_0x6ab59c(_0x419de1,_0x47f224(0x15b),_0x1e1f59),'color':{'value':_0x111522[_0x47f224(0x15d)],'title':_0x111522[_0x47f224(0x171)]}};}return{'type':_0x47f224(0x16b),'content':_0x6ab59c(_0x419de1,_0x47f224(0x162),_0x6ab59c(_0x419de1,_0x47f224(0x175)))};}});}}