@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 5.21 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 _0x41c56b=_0x2eac;(function(_0x2851e1,_0x1d0bff){const _0x44d795=_0x2eac,_0x2f18d5=_0x2851e1();while(!![]){try{const _0x6086d2=parseInt(_0x44d795(0x1e2))/0x1+-parseInt(_0x44d795(0x1e6))/0x2+-parseInt(_0x44d795(0x1e4))/0x3*(parseInt(_0x44d795(0x1cc))/0x4)+parseInt(_0x44d795(0x1ec))/0x5*(-parseInt(_0x44d795(0x1c0))/0x6)+-parseInt(_0x44d795(0x1ea))/0x7+-parseInt(_0x44d795(0x1ba))/0x8*(parseInt(_0x44d795(0x1d3))/0x9)+parseInt(_0x44d795(0x1b6))/0xa*(parseInt(_0x44d795(0x1e3))/0xb);if(_0x6086d2===_0x1d0bff)break;else _0x2f18d5['push'](_0x2f18d5['shift']());}catch(_0x4fe2c4){_0x2f18d5['push'](_0x2f18d5['shift']());}}}(_0x348c,0xa993a));import{Plugin as _0x5acb48}from'ckeditor5/src/core.js';import{Enter as _0x51d10b}from'ckeditor5/src/enter.js';import{LiveRange as _0x4f17e2}from'ckeditor5/src/engine.js';import{downcastSplitMergeMarker as _0x3598c7}from'./utils.js';function _0x2eac(_0x12599e,_0x38a5fc){const _0x348c55=_0x348c();return _0x2eac=function(_0x2eac8f,_0x3d2aa9){_0x2eac8f=_0x2eac8f-0x1b6;let _0x3072ba=_0x348c55[_0x2eac8f];return _0x3072ba;},_0x2eac(_0x12599e,_0x38a5fc);}export default class Y extends _0x5acb48{static get[_0x41c56b(0x1e5)](){return[_0x51d10b];}[_0x41c56b(0x1d7)](){const _0x59e7de=_0x41c56b,_0x299f8d=this[_0x59e7de(0x1cf)],_0x40726a=_0x299f8d[_0x59e7de(0x1eb)][_0x59e7de(0x1bb)](_0x59e7de(0x1df)),_0x24c4a3=_0x299f8d[_0x59e7de(0x1c5)][_0x59e7de(0x1bb)](_0x59e7de(0x1b7));_0x40726a[_0x59e7de(0x1bc)](_0x59e7de(0x1b7),()=>{const _0x16ae89=_0x59e7de;_0x299f8d[_0x16ae89(0x1c4)][_0x16ae89(0x1d9)](_0x5aa08d=>{const _0x5ac009=_0x16ae89,_0x17d0e8=_0x299f8d[_0x5ac009(0x1c4)][_0x5ac009(0x1da)][_0x5ac009(0x1bd)],_0x482cb6=_0x17d0e8[_0x5ac009(0x1bf)](),_0x47eb9f=_0x4f17e2[_0x5ac009(0x1d5)](_0x17d0e8[_0x5ac009(0x1d6)]());if(_0x24c4a3[_0x5ac009(0x1d0)](_0x5aa08d)){const _0x284011=_0x299f8d[_0x5ac009(0x1c4)][_0x5ac009(0x1c2)](_0x482cb6[_0x5ac009(0x1c3)][_0x5ac009(0x1db)],0x0),_0x2637a5=_0x5aa08d[_0x5ac009(0x1cb)](_0x482cb6,_0x284011);_0x40726a[_0x5ac009(0x1e9)](_0x2637a5);}else _0x5aa08d[_0x5ac009(0x1e1)](_0x5aa08d[_0x5ac009(0x1cb)](_0x47eb9f[_0x5ac009(0x1ce)]));_0x47eb9f[_0x5ac009(0x1dd)](),_0x24c4a3[_0x5ac009(0x1e0)](_0x5ac009(0x1de),{'writer':_0x5aa08d});});}),_0x299f8d[_0x59e7de(0x1dc)][_0x59e7de(0x1d8)]['on'](_0x59e7de(0x1e8),_0x3598c7(_0x299f8d,_0x59e7de(0x1c1)),{'priority':_0x59e7de(0x1d2)}),_0x299f8d[_0x59e7de(0x1dc)][_0x59e7de(0x1d8)]['on'](_0x59e7de(0x1d1),(_0x787f0d,_0x4c202e,_0x5a5d28)=>{const _0x4b73c6=_0x59e7de,_0x499677=_0x5a5d28[_0x4b73c6(0x1b9)][_0x4b73c6(0x1be)](_0x4c202e[_0x4b73c6(0x1ca)]);if(_0x499677){for(const _0x428423 of _0x499677)_0x428423[_0x4b73c6(0x1c9)](_0x4b73c6(0x1b8))&&(_0x5a5d28[_0x4b73c6(0x1b9)][_0x4b73c6(0x1c8)](_0x428423,_0x4c202e[_0x4b73c6(0x1ca)]),_0x5a5d28[_0x4b73c6(0x1d4)][_0x4b73c6(0x1cd)](_0x428423));}},{'priority':_0x59e7de(0x1d2)}),_0x299f8d[_0x59e7de(0x1ed)][_0x59e7de(0x1d8)]['on'](_0x59e7de(0x1e8),(_0x46a3ec,_0x58df6a,_0x52e1d2)=>{const _0x26c932=_0x59e7de;_0x52e1d2[_0x26c932(0x1e7)][_0x26c932(0x1c6)]&&_0x3598c7(_0x299f8d,_0x26c932(0x1c1),{'showActiveMarker':!0x1})[_0x26c932(0x1c7)](this)(_0x46a3ec,_0x58df6a,_0x52e1d2);},{'priority':_0x59e7de(0x1d2)});}}function _0x348c(){const _0x1c98b7=['markInsertion','4962062bpVqpv','plugins','5879685nnZRps','data','10HAGvzf','enter','ck-suggestion-marker-split','mapper','5064PZuCMV','get','enableCommand','selection','markerNameToElements','getFirstPosition','6cGCKyL','split','createPositionAt','parent','model','commands','showSuggestionHighlights','bind','unbindElementFromMarkerName','hasClass','markerName','createRange','348QpPxve','remove','end','editor','enterBlock','removeMarker:suggestion:insertion','high','15327fYRHZG','writer','fromRange','getFirstRange','init','downcastDispatcher','change','document','nextSibling','editing','detach','afterExecute','TrackChangesEditing','fire','setSelection','271595VffbZO','54379809tpEvYb','15105LpoKEm','requires','2239562pstsin','options','addMarker:suggestion:insertion'];_0x348c=function(){return _0x1c98b7;};return _0x348c();}