UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.51 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 _0x11404c=_0x4523;(function(_0x4e286f,_0x30ceba){const _0x36dd99=_0x4523,_0x3c02f9=_0x4e286f();while(!![]){try{const _0x451d9c=-parseInt(_0x36dd99(0xc4))/0x1+parseInt(_0x36dd99(0xd9))/0x2+parseInt(_0x36dd99(0xf3))/0x3*(-parseInt(_0x36dd99(0xb8))/0x4)+parseInt(_0x36dd99(0xcf))/0x5*(-parseInt(_0x36dd99(0xd2))/0x6)+parseInt(_0x36dd99(0xc2))/0x7*(-parseInt(_0x36dd99(0xdc))/0x8)+parseInt(_0x36dd99(0xba))/0x9+parseInt(_0x36dd99(0xbf))/0xa*(parseInt(_0x36dd99(0xdd))/0xb);if(_0x451d9c===_0x30ceba)break;else _0x3c02f9['push'](_0x3c02f9['shift']());}catch(_0x4a6414){_0x3c02f9['push'](_0x3c02f9['shift']());}}}(_0x2533,0xde893));import{Plugin as _0x14ce00}from'ckeditor5/src/core.js';function _0x2533(){const _0x4378ec=['isCollapsed','batch','1820691sDDnWv','enableCommand','4RWEWyy','rootName','2163906wQcLEP','enqueueChange','setSelection','uiElement','fromRange','270RYPbfP','selection','bind','7lxJwie','getFirstRange','615707xkmcit','addMarker:suggestion:deletion','writer','detach','forward','TrackChangesEditing','options','markerNameToElements','requires','init','downcastDispatcher','10knBhsT','editing','buffer','4521882cYHnis','end','editor','get','unit','createRange','deleteForward','3106198OVfiMu','model','removeMarker:suggestion:deletion','7359832bpoJMk','1127643Tdqybh','delete','unlock','lock','unbindElementFromMarkerName','data','document','markerName','merge','mapper','$graveyard','start','remove','high','commands','plugins','showSuggestionHighlights','modifySelection','createSelection','root'];_0x2533=function(){return _0x4378ec;};return _0x2533();}import{ModelLiveRange as _0x202ef7}from'ckeditor5/src/engine.js';import{Delete as _0x123c0b}from'ckeditor5/src/typing.js';function _0x4523(_0x30094d,_0x2a0c97){const _0x25338d=_0x2533();return _0x4523=function(_0x45238b,_0xc69d88){_0x45238b=_0x45238b-0xb8;let _0x23aeb4=_0x25338d[_0x45238b];return _0x23aeb4;},_0x4523(_0x30094d,_0x2a0c97);}import{downcastSplitMergeMarker as _0x22efd1}from'./utils.js';export class TrackChangesDeleteCommand extends _0x14ce00{static get[_0x11404c(0xcc)](){return[_0x123c0b];}[_0x11404c(0xcd)](){const _0x512f4a=_0x11404c,_0x34c679=this[_0x512f4a(0xd4)],_0x103ea7=_0x34c679[_0x512f4a(0xec)][_0x512f4a(0xd5)](_0x512f4a(0xc9));_0x103ea7[_0x512f4a(0xf4)](_0x512f4a(0xde));const _0xe793d4=_0x34c679[_0x512f4a(0xeb)][_0x512f4a(0xd5)](_0x512f4a(0xd8));_0x103ea7[_0x512f4a(0xf4)](_0x512f4a(0xd8),(_0xe82817,_0x1be504={})=>{const _0x1e4efb=_0x512f4a,_0x87a02=_0x34c679[_0x1e4efb(0xda)][_0x1e4efb(0xef)](_0x34c679[_0x1e4efb(0xda)][_0x1e4efb(0xe3)][_0x1e4efb(0xc0)]);_0x87a02[_0x1e4efb(0xf1)]&&_0x34c679[_0x1e4efb(0xda)][_0x1e4efb(0xee)](_0x87a02,{'direction':_0x1e4efb(0xc8),'unit':_0x1be504[_0x1e4efb(0xd6)]});const _0x4ec0e5=_0x87a02[_0x1e4efb(0xc3)](),_0x58000b=_0x202ef7[_0x1e4efb(0xbe)](_0x4ec0e5);let _0x3581b5;_0xe82817(_0x1be504),_0x3581b5=_0x1e4efb(0xe7)==_0x58000b[_0x1e4efb(0xf0)][_0x1e4efb(0xb9)]?_0x34c679[_0x1e4efb(0xda)][_0x1e4efb(0xd7)](_0x4ec0e5[_0x1e4efb(0xe8)]):_0x34c679[_0x1e4efb(0xda)][_0x1e4efb(0xd7)](_0x58000b[_0x1e4efb(0xe8)],_0x58000b[_0x1e4efb(0xd3)]),_0x58000b[_0x1e4efb(0xc7)](),_0x34c679[_0x1e4efb(0xda)][_0x1e4efb(0xbb)](_0xe793d4[_0x1e4efb(0xd1)][_0x1e4efb(0xf2)],_0x3e15eb=>{const _0x45cb06=_0x1e4efb;_0xe793d4[_0x45cb06(0xd1)][_0x45cb06(0xe0)](),_0x3e15eb[_0x45cb06(0xbc)](_0x3e15eb[_0x45cb06(0xd7)](_0x3581b5[_0x45cb06(0xd3)])),_0xe793d4[_0x45cb06(0xd1)][_0x45cb06(0xdf)]();});}),_0x34c679[_0x512f4a(0xd0)][_0x512f4a(0xce)]['on'](_0x512f4a(0xc5),_0x22efd1(_0x34c679,_0x512f4a(0xe5)),{'priority':_0x512f4a(0xea)}),_0x34c679[_0x512f4a(0xe2)][_0x512f4a(0xce)]['on'](_0x512f4a(0xc5),(_0x3e1f6d,_0x5aa387,_0x1e55f4)=>{const _0x5dd32f=_0x512f4a;_0x1e55f4[_0x5dd32f(0xca)][_0x5dd32f(0xed)]&&_0x22efd1(_0x34c679,_0x5dd32f(0xe5),{'showActiveMarker':!0x1})[_0x5dd32f(0xc1)](this)(_0x3e1f6d,_0x5aa387,_0x1e55f4);},{'priority':_0x512f4a(0xea)}),_0x34c679[_0x512f4a(0xd0)][_0x512f4a(0xce)]['on'](_0x512f4a(0xdb),(_0x19bcc7,_0x25af63,_0x25afdf)=>{const _0x3cef40=_0x512f4a,_0x7c0a90=_0x25afdf[_0x3cef40(0xe6)][_0x3cef40(0xcb)](_0x25af63[_0x3cef40(0xe4)]);if(_0x7c0a90){for(const _0x4149be of _0x7c0a90)_0x4149be['is'](_0x3cef40(0xbd))&&(_0x25afdf[_0x3cef40(0xe6)][_0x3cef40(0xe1)](_0x4149be,_0x25af63[_0x3cef40(0xe4)]),_0x25afdf[_0x3cef40(0xc6)][_0x3cef40(0xe9)](_0x4149be));}},{'priority':_0x512f4a(0xea)});}}