UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.42 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 _0x3b49e8=_0x5929;(function(_0x5770aa,_0x530c44){const _0xc18a0e=_0x5929,_0x2e107f=_0x5770aa();while(!![]){try{const _0x522895=-parseInt(_0xc18a0e(0x127))/0x1*(parseInt(_0xc18a0e(0x13e))/0x2)+-parseInt(_0xc18a0e(0x12a))/0x3+parseInt(_0xc18a0e(0x110))/0x4*(parseInt(_0xc18a0e(0x11d))/0x5)+-parseInt(_0xc18a0e(0x12b))/0x6*(parseInt(_0xc18a0e(0x112))/0x7)+-parseInt(_0xc18a0e(0x135))/0x8*(parseInt(_0xc18a0e(0x141))/0x9)+-parseInt(_0xc18a0e(0x12c))/0xa*(-parseInt(_0xc18a0e(0x126))/0xb)+parseInt(_0xc18a0e(0x116))/0xc*(parseInt(_0xc18a0e(0x11a))/0xd);if(_0x522895===_0x530c44)break;else _0x2e107f['push'](_0x2e107f['shift']());}catch(_0x2ab96d){_0x2e107f['push'](_0x2e107f['shift']());}}}(_0x9f64,0x1fc93));import{Plugin as _0x12463a}from'ckeditor5/src/core.js';import{getTranslation as _0x3a5dec}from'../utils/common-translations.js';export default class At extends _0x12463a{[_0x3b49e8(0x137)](){const _0x318a0e=_0x3b49e8,_0x4a889e=this[_0x318a0e(0x12e)];if(!_0x4a889e[_0x318a0e(0x10c)][_0x318a0e(0x13f)](_0x318a0e(0x10f)))return;const _0x26e691=_0x4a889e[_0x318a0e(0x10c)][_0x318a0e(0x108)](_0x318a0e(0x136));_0x26e691[_0x318a0e(0x120)](_0x318a0e(0x12d)),_0x4a889e[_0x318a0e(0x113)][_0x318a0e(0x10d)]['on'](_0x318a0e(0x133),je(_0x4a889e),{'priority':_0x318a0e(0x13a)}),_0x4a889e[_0x318a0e(0x113)][_0x318a0e(0x10d)]['on'](_0x318a0e(0x109),je(_0x4a889e),{'priority':_0x318a0e(0x13a)}),_0x4a889e[_0x318a0e(0x122)][_0x318a0e(0x10d)]['on'](_0x318a0e(0x121),(_0x230711,_0x591bce,_0x484924)=>{const _0x1ab344=_0x318a0e;_0x484924[_0x1ab344(0x123)][_0x1ab344(0x139)]&&je(_0x4a889e,{'showActiveMarker':!0x1})(_0x230711,_0x591bce,_0x484924);}),_0x26e691[_0x318a0e(0x118)][_0x318a0e(0x119)](_0x318a0e(0x111),_0x42264d=>_0x3a5dec(_0x4a889e[_0x318a0e(0x138)],_0x318a0e(0x124),_0x42264d));}}function _0x5929(_0x459c1a,_0x344a82){const _0x9f6435=_0x9f64();return _0x5929=function(_0x59296c,_0x1e5b36){_0x59296c=_0x59296c-0x106;let _0x48b1ce=_0x9f6435[_0x59296c];return _0x48b1ce;},_0x5929(_0x459c1a,_0x344a82);}function _0x9f64(){const _0x1dbeaa=['addClass','getItems','236739ErYNEG','1054590IOSVAd','640oXuLaW','shiftEnter','editor','mapper','activeMarkers','ck-suggestion-marker--active','includes','addMarker:suggestion:insertion','createPositionBefore','70152JAxsvw','TrackChangesEditing','afterInit','locale','showSuggestionHighlights','high','merge','insert','consumable','5854bCqoST','has','createUIElement','117lLoHXI','markerName','_splitMarkerName','split','get','addMarker:suggestion:deletion','bindElementToMarker','span','plugins','downcastDispatcher','markerRange','ShiftEnter','224twSpMj','softBreak','7wUIRzW','editing','writer','test','19956kSEBKe','model','descriptionFactory','registerElementLabel','3289ziomLk','deletion','name','4145NSodpL','toViewPosition','element','enableCommand','addMarker:suggestion','data','options','ELEMENT_LINE_BREAK','ck-suggestion-marker-','27082aVaGDi','43UqSzoP'];_0x9f64=function(){return _0x1dbeaa;};return _0x9f64();}function je(_0xa13ada,{showActiveMarker:_0x32268e=!0x0}={}){return(_0x25dc78,_0x420e1f,_0x3a4092)=>{const _0x100aa5=_0x5929,_0x948f69=_0xa13ada[_0x100aa5(0x10c)][_0x100aa5(0x108)](_0x100aa5(0x136));if(!_0x3a4092[_0x100aa5(0x13d)][_0x100aa5(0x115)](_0x420e1f[_0x100aa5(0x10e)],_0x25dc78[_0x100aa5(0x11c)]))return;const _0x2d752a=_0xa13ada[_0x100aa5(0x117)];for(const _0x22c53b of _0x420e1f[_0x100aa5(0x10e)][_0x100aa5(0x129)]()){if(!_0x22c53b['is'](_0x100aa5(0x11f),_0x100aa5(0x111)))continue;const _0x2a4a3e=_0x100aa5(0x11b)==_0x420e1f[_0x100aa5(0x142)][_0x100aa5(0x107)](':')[0x1]?_0x100aa5(0x13b):_0x100aa5(0x107),{id:_0x260a78,authorId:_0x164be3}=_0x948f69[_0x100aa5(0x106)](_0x420e1f[_0x100aa5(0x142)]),_0x929e0a=_0x3a4092[_0x100aa5(0x114)][_0x100aa5(0x140)](_0x100aa5(0x10b),{'class':_0x100aa5(0x125)+_0x2a4a3e,'data-suggestion':_0x260a78,'data-author-id':_0x164be3}),_0x2ff51b=_0x3a4092[_0x100aa5(0x12f)][_0x100aa5(0x11e)](_0x2d752a[_0x100aa5(0x134)](_0x22c53b));_0x32268e&&_0x948f69[_0x100aa5(0x130)][_0x100aa5(0x132)](_0x420e1f[_0x100aa5(0x142)])&&_0x3a4092[_0x100aa5(0x114)][_0x100aa5(0x128)](_0x100aa5(0x131),_0x929e0a),_0x3a4092[_0x100aa5(0x114)][_0x100aa5(0x13c)](_0x2ff51b,_0x929e0a),_0x3a4092[_0x100aa5(0x12f)][_0x100aa5(0x10a)](_0x929e0a,_0x420e1f[_0x100aa5(0x142)]);}};}