UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.18 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 _0x165f(_0x2c9937,_0x521845){const _0x416165=_0x4161();return _0x165f=function(_0x165f87,_0x1895fd){_0x165f87=_0x165f87-0x186;let _0x16af88=_0x416165[_0x165f87];return _0x16af88;},_0x165f(_0x2c9937,_0x521845);}const _0x405f4c=_0x165f;(function(_0x5212c1,_0x2c8bb8){const _0x15e00c=_0x165f,_0x154414=_0x5212c1();while(!![]){try{const _0x266bb6=-parseInt(_0x15e00c(0x1ad))/0x1*(parseInt(_0x15e00c(0x19a))/0x2)+-parseInt(_0x15e00c(0x1b0))/0x3+-parseInt(_0x15e00c(0x188))/0x4*(-parseInt(_0x15e00c(0x1b1))/0x5)+-parseInt(_0x15e00c(0x196))/0x6*(parseInt(_0x15e00c(0x18a))/0x7)+-parseInt(_0x15e00c(0x1a1))/0x8+-parseInt(_0x15e00c(0x193))/0x9+parseInt(_0x15e00c(0x1b6))/0xa*(parseInt(_0x15e00c(0x1a5))/0xb);if(_0x266bb6===_0x2c8bb8)break;else _0x154414['push'](_0x154414['shift']());}catch(_0xe99c4b){_0x154414['push'](_0x154414['shift']());}}}(_0x4161,0xc12af));import{Plugin as _0x58ca73}from'ckeditor5/src/core.js';function _0x4161(){const _0x45d70f=['bind','unbindElementFromMarkerName','1141256lzjrqL','editor','high','afterExecute','517zozOuH','showSuggestionHighlights','options','TrackChangesEditing','init','selection','commands','enterBlock','3vYbDKT','split','markInsertion','210975eysLoJ','35ruiHvz','end','removeMarker:suggestion:insertion','detach','createPositionAt','459450ZHRGCp','addMarker:suggestion:insertion','getFirstPosition','fire','plugins','document','enter','editing','requires','mapper','381228biYHhb','parent','4501483ElbUYZ','downcastDispatcher','markerNameToElements','markerName','ck-suggestion-marker-split','enableCommand','model','createRange','change','4660965SewCGF','fromRange','get','6QQDYdR','writer','getFirstRange','remove','440942pxWvYW','nextSibling','data','setSelection','hasClass'];_0x4161=function(){return _0x45d70f;};return _0x4161();}import{Enter as _0x1d9523}from'ckeditor5/src/enter.js';import{LiveRange as _0x121bef}from'ckeditor5/src/engine.js';import{downcastSplitMergeMarker as _0x316b61}from'./utils.js';export default class Y extends _0x58ca73{static get[_0x405f4c(0x186)](){return[_0x1d9523];}[_0x405f4c(0x1a9)](){const _0x51afc=_0x405f4c,_0x29c488=this[_0x51afc(0x1a2)],_0x15ed54=_0x29c488[_0x51afc(0x1ba)][_0x51afc(0x195)](_0x51afc(0x1a8)),_0x34a337=_0x29c488[_0x51afc(0x1ab)][_0x51afc(0x195)](_0x51afc(0x1bc));_0x15ed54[_0x51afc(0x18f)](_0x51afc(0x1bc),()=>{const _0x4ee2ba=_0x51afc;_0x29c488[_0x4ee2ba(0x190)][_0x4ee2ba(0x192)](_0x2384e9=>{const _0x5a80c8=_0x4ee2ba,_0x350376=_0x29c488[_0x5a80c8(0x190)][_0x5a80c8(0x1bb)][_0x5a80c8(0x1aa)],_0x5525ed=_0x350376[_0x5a80c8(0x1b8)](),_0x29f1d9=_0x121bef[_0x5a80c8(0x194)](_0x350376[_0x5a80c8(0x198)]());if(_0x34a337[_0x5a80c8(0x1ac)](_0x2384e9)){const _0x2d41c8=_0x29c488[_0x5a80c8(0x190)][_0x5a80c8(0x1b5)](_0x5525ed[_0x5a80c8(0x189)][_0x5a80c8(0x19b)],0x0),_0xdc83c6=_0x2384e9[_0x5a80c8(0x191)](_0x5525ed,_0x2d41c8);_0x15ed54[_0x5a80c8(0x1af)](_0xdc83c6);}else _0x2384e9[_0x5a80c8(0x19d)](_0x2384e9[_0x5a80c8(0x191)](_0x29f1d9[_0x5a80c8(0x1b2)]));_0x29f1d9[_0x5a80c8(0x1b4)](),_0x34a337[_0x5a80c8(0x1b9)](_0x5a80c8(0x1a4),{'writer':_0x2384e9});});}),_0x29c488[_0x51afc(0x1bd)][_0x51afc(0x18b)]['on'](_0x51afc(0x1b7),_0x316b61(_0x29c488,_0x51afc(0x1ae)),{'priority':_0x51afc(0x1a3)}),_0x29c488[_0x51afc(0x1bd)][_0x51afc(0x18b)]['on'](_0x51afc(0x1b3),(_0x264c28,_0x11dcbb,_0x5228a6)=>{const _0x346040=_0x51afc,_0x403507=_0x5228a6[_0x346040(0x187)][_0x346040(0x18c)](_0x11dcbb[_0x346040(0x18d)]);if(_0x403507){for(const _0xec5e3a of _0x403507)_0xec5e3a[_0x346040(0x19e)](_0x346040(0x18e))&&(_0x5228a6[_0x346040(0x187)][_0x346040(0x1a0)](_0xec5e3a,_0x11dcbb[_0x346040(0x18d)]),_0x5228a6[_0x346040(0x197)][_0x346040(0x199)](_0xec5e3a));}},{'priority':_0x51afc(0x1a3)}),_0x29c488[_0x51afc(0x19c)][_0x51afc(0x18b)]['on'](_0x51afc(0x1b7),(_0x406a9e,_0x3a6cef,_0x350cfd)=>{const _0x3894a2=_0x51afc;_0x350cfd[_0x3894a2(0x1a7)][_0x3894a2(0x1a6)]&&_0x316b61(_0x29c488,_0x3894a2(0x1ae),{'showActiveMarker':!0x1})[_0x3894a2(0x19f)](this)(_0x406a9e,_0x3a6cef,_0x350cfd);},{'priority':_0x51afc(0x1a3)});}}