@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 5.41 kB
JavaScript
/*
* 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 _0x1ab996=_0x5c09;function _0x5c09(_0x279623,_0x885098){const _0x251378=_0x2513();return _0x5c09=function(_0x5c092c,_0x43a7df){_0x5c092c=_0x5c092c-0xae;let _0x48f492=_0x251378[_0x5c092c];return _0x48f492;},_0x5c09(_0x279623,_0x885098);}(function(_0x5464f0,_0x54ea96){const _0x490131=_0x5c09,_0x2e4c38=_0x5464f0();while(!![]){try{const _0x124c9c=parseInt(_0x490131(0xd0))/0x1+parseInt(_0x490131(0xca))/0x2*(parseInt(_0x490131(0xd5))/0x3)+parseInt(_0x490131(0xd2))/0x4+-parseInt(_0x490131(0xb1))/0x5+-parseInt(_0x490131(0xb3))/0x6+-parseInt(_0x490131(0xb6))/0x7*(-parseInt(_0x490131(0xc9))/0x8)+-parseInt(_0x490131(0xb0))/0x9;if(_0x124c9c===_0x54ea96)break;else _0x2e4c38['push'](_0x2e4c38['shift']());}catch(_0x5bf229){_0x2e4c38['push'](_0x2e4c38['shift']());}}}(_0x2513,0x77bb2));import{Plugin as _0x27ead4}from'ckeditor5/src/core.js';function _0x2513(){const _0x522d0a=['lock','875220CJmTCI','batch','createRange','5477633QBewDg','remove','forward','document','showSuggestionHighlights','deleteForward','requires','enableCommand','detach','unlock','editor','selection','commands','root','unit','modifySelection','writer','unbindElementFromMarkerName','markerNameToElements','8xpywCi','218WpdBDu','merge','plugins','createSelection','delete','rootName','955062gvEIRR','high','2123280clrUVT','removeMarker:suggestion:deletion','fromRange','17601qjMyHX','data','enqueueChange','init','addMarker:suggestion:deletion','uiElement','mapper','downcastDispatcher','$graveyard','model','getFirstRange','isCollapsed','editing','TrackChangesEditing','options','start','markerName','get','bind','setSelection','end','buffer','16025985Herypd','2454755YfXEqG'];_0x2513=function(){return _0x522d0a;};return _0x2513();}import{LiveRange as _0x358685}from'ckeditor5/src/engine.js';import{Delete as _0x45fd13}from'ckeditor5/src/typing.js';import{downcastSplitMergeMarker as _0x32f611}from'./utils.js';export default class z extends _0x27ead4{static get[_0x1ab996(0xbc)](){return[_0x45fd13];}[_0x1ab996(0xd8)](){const _0x23a6f2=_0x1ab996,_0x15b707=this[_0x23a6f2(0xc0)],_0x2a82de=_0x15b707[_0x23a6f2(0xcc)][_0x23a6f2(0xe6)](_0x23a6f2(0xe2));_0x2a82de[_0x23a6f2(0xbd)](_0x23a6f2(0xce));const _0x345272=_0x15b707[_0x23a6f2(0xc2)][_0x23a6f2(0xe6)](_0x23a6f2(0xbb));_0x2a82de[_0x23a6f2(0xbd)](_0x23a6f2(0xbb),(_0x4f5fee,_0x485aa8={})=>{const _0x7f8b68=_0x23a6f2,_0x1bac43=_0x15b707[_0x7f8b68(0xde)][_0x7f8b68(0xcd)](_0x15b707[_0x7f8b68(0xde)][_0x7f8b68(0xb9)][_0x7f8b68(0xc1)]);_0x1bac43[_0x7f8b68(0xe0)]&&_0x15b707[_0x7f8b68(0xde)][_0x7f8b68(0xc5)](_0x1bac43,{'direction':_0x7f8b68(0xb8),'unit':_0x485aa8[_0x7f8b68(0xc4)]});const _0x367477=_0x1bac43[_0x7f8b68(0xdf)](),_0x387e9a=_0x358685[_0x7f8b68(0xd4)](_0x367477);let _0x74cc71;_0x4f5fee(_0x485aa8),_0x74cc71=_0x7f8b68(0xdd)==_0x387e9a[_0x7f8b68(0xc3)][_0x7f8b68(0xcf)]?_0x15b707[_0x7f8b68(0xde)][_0x7f8b68(0xb5)](_0x367477[_0x7f8b68(0xe4)]):_0x15b707[_0x7f8b68(0xde)][_0x7f8b68(0xb5)](_0x387e9a[_0x7f8b68(0xe4)],_0x387e9a[_0x7f8b68(0xae)]),_0x387e9a[_0x7f8b68(0xbe)](),_0x15b707[_0x7f8b68(0xde)][_0x7f8b68(0xd7)](_0x345272[_0x7f8b68(0xaf)][_0x7f8b68(0xb4)],_0x29792e=>{const _0x541a1e=_0x7f8b68;_0x345272[_0x541a1e(0xaf)][_0x541a1e(0xb2)](),_0x29792e[_0x541a1e(0xe8)](_0x29792e[_0x541a1e(0xb5)](_0x74cc71[_0x541a1e(0xae)])),_0x345272[_0x541a1e(0xaf)][_0x541a1e(0xbf)]();});}),_0x15b707[_0x23a6f2(0xe1)][_0x23a6f2(0xdc)]['on'](_0x23a6f2(0xd9),_0x32f611(_0x15b707,_0x23a6f2(0xcb)),{'priority':_0x23a6f2(0xd1)}),_0x15b707[_0x23a6f2(0xd6)][_0x23a6f2(0xdc)]['on'](_0x23a6f2(0xd9),(_0x44e7ff,_0x658a74,_0x592f88)=>{const _0x2e12c2=_0x23a6f2;_0x592f88[_0x2e12c2(0xe3)][_0x2e12c2(0xba)]&&_0x32f611(_0x15b707,_0x2e12c2(0xcb),{'showActiveMarker':!0x1})[_0x2e12c2(0xe7)](this)(_0x44e7ff,_0x658a74,_0x592f88);},{'priority':_0x23a6f2(0xd1)}),_0x15b707[_0x23a6f2(0xe1)][_0x23a6f2(0xdc)]['on'](_0x23a6f2(0xd3),(_0x53b021,_0x14c8b9,_0x421a83)=>{const _0x3ac41b=_0x23a6f2,_0x1c4118=_0x421a83[_0x3ac41b(0xdb)][_0x3ac41b(0xc8)](_0x14c8b9[_0x3ac41b(0xe5)]);if(_0x1c4118){for(const _0x40215b of _0x1c4118)_0x40215b['is'](_0x3ac41b(0xda))&&(_0x421a83[_0x3ac41b(0xdb)][_0x3ac41b(0xc7)](_0x40215b,_0x14c8b9[_0x3ac41b(0xe5)]),_0x421a83[_0x3ac41b(0xc6)][_0x3ac41b(0xb7)](_0x40215b));}},{'priority':_0x23a6f2(0xd1)});}}