@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 5.18 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 _0xd7e982=_0x2a63;(function(_0x2501c8,_0x1700c9){const _0x197e53=_0x2a63,_0x527fc6=_0x2501c8();while(!![]){try{const _0x46ea4e=parseInt(_0x197e53(0x6b))/0x1*(-parseInt(_0x197e53(0x76))/0x2)+parseInt(_0x197e53(0x6d))/0x3*(parseInt(_0x197e53(0x9e))/0x4)+-parseInt(_0x197e53(0x7c))/0x5+parseInt(_0x197e53(0x9b))/0x6+parseInt(_0x197e53(0x8e))/0x7+-parseInt(_0x197e53(0x71))/0x8*(parseInt(_0x197e53(0x75))/0x9)+parseInt(_0x197e53(0x6a))/0xa;if(_0x46ea4e===_0x1700c9)break;else _0x527fc6['push'](_0x527fc6['shift']());}catch(_0x57c405){_0x527fc6['push'](_0x527fc6['shift']());}}}(_0x5d7e,0xdf9ce));function _0x5d7e(){const _0x2720e8=['markerName','createPositionBefore','bindElementToMarker','model','enableCommand','createUIElement','split','11606231SRplEa','descriptionFactory','mapper','addClass','addMarker:suggestion','toViewPosition','insert','shiftEnter','options','ck-suggestion-marker-','high','_splitMarkerName','ELEMENT_LINE_BREAK','4886592OffZjl','merge','editor','4enYkbt','addMarker:suggestion:insertion','addMarker:suggestion:deletion','has','test','name','13115430yIOXVS','218NQDunm','activeMarkers','2342991nTgQEN','writer','plugins','afterInit','2824840oJbxCK','locale','markerRange','editing','45LCDbWP','8752HuDdIC','registerElementLabel','deletion','ck-suggestion-marker--active','downcastDispatcher','getItems','4647970uwmwsN','TrackChangesEditing','ShiftEnter','showSuggestionHighlights','consumable','includes','span','softBreak','element','data','get'];_0x5d7e=function(){return _0x2720e8;};return _0x5d7e();}import{Plugin as _0x125e0a}from'ckeditor5/src/core.js';import{getTranslation as _0x22142b}from'../utils/common-translations.js';export default class It extends _0x125e0a{[_0xd7e982(0x70)](){const _0x4c83d3=_0xd7e982,_0x36801d=this[_0x4c83d3(0x9d)];if(!_0x36801d[_0x4c83d3(0x6f)][_0x4c83d3(0x67)](_0x4c83d3(0x7e)))return;const _0x3a2dc7=_0x36801d[_0x4c83d3(0x6f)][_0x4c83d3(0x86)](_0x4c83d3(0x7d));_0x3a2dc7[_0x4c83d3(0x8b)](_0x4c83d3(0x95)),_0x36801d[_0x4c83d3(0x74)][_0x4c83d3(0x7a)]['on'](_0x4c83d3(0x65),je(_0x36801d),{'priority':_0x4c83d3(0x98)}),_0x36801d[_0x4c83d3(0x74)][_0x4c83d3(0x7a)]['on'](_0x4c83d3(0x66),je(_0x36801d),{'priority':_0x4c83d3(0x98)}),_0x36801d[_0x4c83d3(0x85)][_0x4c83d3(0x7a)]['on'](_0x4c83d3(0x92),(_0xad1026,_0x26b5f9,_0x1772e6)=>{const _0x1ca68f=_0x4c83d3;_0x1772e6[_0x1ca68f(0x96)][_0x1ca68f(0x7f)]&&je(_0x36801d,{'showActiveMarker':!0x1})(_0xad1026,_0x26b5f9,_0x1772e6);}),_0x3a2dc7[_0x4c83d3(0x8f)][_0x4c83d3(0x77)](_0x4c83d3(0x83),_0x445f4d=>_0x22142b(_0x36801d[_0x4c83d3(0x72)],_0x4c83d3(0x9a),_0x445f4d));}}function _0x2a63(_0x229c7c,_0x2b47e9){const _0x5d7e0e=_0x5d7e();return _0x2a63=function(_0x2a63c3,_0x458162){_0x2a63c3=_0x2a63c3-0x65;let _0x2d4dd8=_0x5d7e0e[_0x2a63c3];return _0x2d4dd8;},_0x2a63(_0x229c7c,_0x2b47e9);}function je(_0x4775f9,{showActiveMarker:_0x10694e=!0x0}={}){return(_0x18815c,_0x313a78,_0x52949d)=>{const _0x5e3302=_0x2a63,_0x7f15e=_0x4775f9[_0x5e3302(0x6f)][_0x5e3302(0x86)](_0x5e3302(0x7d));if(!_0x52949d[_0x5e3302(0x80)][_0x5e3302(0x68)](_0x313a78[_0x5e3302(0x73)],_0x18815c[_0x5e3302(0x69)]))return;const _0x1dbb70=_0x4775f9[_0x5e3302(0x8a)];for(const _0x4e24f7 of _0x313a78[_0x5e3302(0x73)][_0x5e3302(0x7b)]()){if(!_0x4e24f7['is'](_0x5e3302(0x84),_0x5e3302(0x83)))continue;const _0x1b4e1e=_0x5e3302(0x78)==_0x313a78[_0x5e3302(0x87)][_0x5e3302(0x8d)](':')[0x1]?_0x5e3302(0x9c):_0x5e3302(0x8d),{authorId:_0x3e67e4}=_0x7f15e[_0x5e3302(0x99)](_0x313a78[_0x5e3302(0x87)]),_0x130860=_0x52949d[_0x5e3302(0x6e)][_0x5e3302(0x8c)](_0x5e3302(0x82),{'class':_0x5e3302(0x97)+_0x1b4e1e,'data-author-id':_0x3e67e4}),_0x3c1c02=_0x52949d[_0x5e3302(0x90)][_0x5e3302(0x93)](_0x1dbb70[_0x5e3302(0x88)](_0x4e24f7));_0x10694e&&_0x7f15e[_0x5e3302(0x6c)][_0x5e3302(0x81)](_0x313a78[_0x5e3302(0x87)])&&_0x52949d[_0x5e3302(0x6e)][_0x5e3302(0x91)](_0x5e3302(0x79),_0x130860),_0x52949d[_0x5e3302(0x6e)][_0x5e3302(0x94)](_0x3c1c02,_0x130860),_0x52949d[_0x5e3302(0x90)][_0x5e3302(0x89)](_0x130860,_0x313a78[_0x5e3302(0x87)]);}};}