UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.27 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0x37f0(){const _0x2c9d2b=['132HsfBgT','change','end','fromRange','mapper','enableCommand','data','commands','enterBlock','removeMarker:suggestion:insertion','enter','TrackChangesEditing','document','selection','markInsertion','createRange','3035511WudJuG','createPositionAt','8tunenh','get','1239657ZjuzCL','split','12lBfsqJ','detach','markerNameToElements','hasClass','ck-suggestion-marker-split','options','requires','bind','editor','getFirstRange','high','570134WshjNk','parent','editing','277151oVYBDp','remove','addMarker:suggestion:insertion','model','nextSibling','11jMmxdR','init','9468870eGeyFx','writer','27688248aFFawD','getFirstPosition','fire','unbindElementFromMarkerName','3PFKLeK','1033590zzqVzN','markerName','plugins','showSuggestionHighlights','downcastDispatcher','afterExecute','setSelection'];_0x37f0=function(){return _0x2c9d2b;};return _0x37f0();}const _0x58b516=_0x3b57;(function(_0x3f2ba4,_0x22994e){const _0xabb47c=_0x3b57,_0x41bec3=_0x3f2ba4();while(!![]){try{const _0x3c2496=-parseInt(_0xabb47c(0x1dc))/0x1*(-parseInt(_0xabb47c(0x205))/0x2)+parseInt(_0xabb47c(0x1f8))/0x3+-parseInt(_0xabb47c(0x1fa))/0x4*(parseInt(_0xabb47c(0x1dd))/0x5)+-parseInt(_0xabb47c(0x1e4))/0x6*(-parseInt(_0xabb47c(0x208))/0x7)+-parseInt(_0xabb47c(0x1f6))/0x8*(-parseInt(_0xabb47c(0x1f4))/0x9)+parseInt(_0xabb47c(0x1d6))/0xa+parseInt(_0xabb47c(0x1d4))/0xb*(-parseInt(_0xabb47c(0x1d8))/0xc);if(_0x3c2496===_0x22994e)break;else _0x41bec3['push'](_0x41bec3['shift']());}catch(_0x200f0d){_0x41bec3['push'](_0x41bec3['shift']());}}}(_0x37f0,0x791fc));import{Plugin as _0x2f0973}from'ckeditor5/src/core.js';import{Enter as _0xa831ee}from'ckeditor5/src/enter.js';import{ModelLiveRange as _0x4bbfb6}from'ckeditor5/src/engine.js';function _0x3b57(_0x39378c,_0x308140){const _0x37f0eb=_0x37f0();return _0x3b57=function(_0x3b5748,_0x4c7237){_0x3b5748=_0x3b5748-0x1d0;let _0x1a71cc=_0x37f0eb[_0x3b5748];return _0x1a71cc;},_0x3b57(_0x39378c,_0x308140);}import{downcastSplitMergeMarker as _0x272ac7}from'./utils.js';export class TrackChangesEnterCommand extends _0x2f0973{static get[_0x58b516(0x200)](){return[_0xa831ee];}[_0x58b516(0x1d5)](){const _0x2e4e7b=_0x58b516,_0x72b51a=this[_0x2e4e7b(0x202)],_0x2c305a=_0x72b51a[_0x2e4e7b(0x1df)][_0x2e4e7b(0x1f7)](_0x2e4e7b(0x1ef)),_0x4dddfa=_0x72b51a[_0x2e4e7b(0x1eb)][_0x2e4e7b(0x1f7)](_0x2e4e7b(0x1ee));_0x2c305a[_0x2e4e7b(0x1e9)](_0x2e4e7b(0x1ee),()=>{const _0x5c19d0=_0x2e4e7b;_0x72b51a[_0x5c19d0(0x1d2)][_0x5c19d0(0x1e5)](_0x2d4a99=>{const _0x86a0d5=_0x5c19d0,_0xe27008=_0x72b51a[_0x86a0d5(0x1d2)][_0x86a0d5(0x1f0)][_0x86a0d5(0x1f1)],_0x4325dc=_0xe27008[_0x86a0d5(0x1d9)](),_0x5c736d=_0x4bbfb6[_0x86a0d5(0x1e7)](_0xe27008[_0x86a0d5(0x203)]());if(_0x4dddfa[_0x86a0d5(0x1ec)](_0x2d4a99)){const _0x4ce196=_0x72b51a[_0x86a0d5(0x1d2)][_0x86a0d5(0x1f5)](_0x4325dc[_0x86a0d5(0x206)][_0x86a0d5(0x1d3)],0x0),_0x1510d7=_0x2d4a99[_0x86a0d5(0x1f3)](_0x4325dc,_0x4ce196);_0x2c305a[_0x86a0d5(0x1f2)](_0x1510d7);}else _0x2d4a99[_0x86a0d5(0x1e3)](_0x2d4a99[_0x86a0d5(0x1f3)](_0x5c736d[_0x86a0d5(0x1e6)]));_0x5c736d[_0x86a0d5(0x1fb)](),_0x4dddfa[_0x86a0d5(0x1da)](_0x86a0d5(0x1e2),{'writer':_0x2d4a99});});}),_0x72b51a[_0x2e4e7b(0x207)][_0x2e4e7b(0x1e1)]['on'](_0x2e4e7b(0x1d1),_0x272ac7(_0x72b51a,_0x2e4e7b(0x1f9)),{'priority':_0x2e4e7b(0x204)}),_0x72b51a[_0x2e4e7b(0x207)][_0x2e4e7b(0x1e1)]['on'](_0x2e4e7b(0x1ed),(_0x335d18,_0x5cd061,_0x17b37b)=>{const _0x261da8=_0x2e4e7b,_0x34e66b=_0x17b37b[_0x261da8(0x1e8)][_0x261da8(0x1fc)](_0x5cd061[_0x261da8(0x1de)]);if(_0x34e66b){for(const _0x84b7cc of _0x34e66b)_0x84b7cc[_0x261da8(0x1fd)](_0x261da8(0x1fe))&&(_0x17b37b[_0x261da8(0x1e8)][_0x261da8(0x1db)](_0x84b7cc,_0x5cd061[_0x261da8(0x1de)]),_0x17b37b[_0x261da8(0x1d7)][_0x261da8(0x1d0)](_0x84b7cc));}},{'priority':_0x2e4e7b(0x204)}),_0x72b51a[_0x2e4e7b(0x1ea)][_0x2e4e7b(0x1e1)]['on'](_0x2e4e7b(0x1d1),(_0x49ebca,_0x7ca901,_0x10767b)=>{const _0x486623=_0x2e4e7b;_0x10767b[_0x486623(0x1ff)][_0x486623(0x1e0)]&&_0x272ac7(_0x72b51a,_0x486623(0x1f9),{'showActiveMarker':!0x1})[_0x486623(0x201)](this)(_0x49ebca,_0x7ca901,_0x10767b);},{'priority':_0x2e4e7b(0x204)});}}