@ckeditor/ckeditor5-collaboration-core
Version:
Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.
23 lines • 3.91 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 _0x37b729=_0x11ff;function _0x19b0(){const _0x3e94ce=['addMarker:suggestion','editor','toViewElement','options','tableCell','item','3802935UZEvvN','addClass','2554902hORKUl','data-author-id','classes','5886696OlhDan','2214078ibAysL','4Zkeiou','highest','afterInit','270fuUfRy','141633fcCGkw','626822KSpacT','downcastDispatcher','showSuggestionHighlights','mapper','setAttribute','2PiyWUC','1058204YQMxnP','plugins','data','writer','element','has','data-suggestion-id','Table','markerName'];_0x19b0=function(){return _0x3e94ce;};return _0x19b0();}(function(_0x422f6e,_0x423427){const _0x5ddd47=_0x11ff,_0x342ceb=_0x422f6e();while(!![]){try{const _0x2fafd4=-parseInt(_0x5ddd47(0x1f2))/0x1*(-parseInt(_0x5ddd47(0x1f7))/0x2)+-parseInt(_0x5ddd47(0x1ec))/0x3*(parseInt(_0x5ddd47(0x1ed))/0x4)+parseInt(_0x5ddd47(0x1e6))/0x5+-parseInt(_0x5ddd47(0x1e8))/0x6+-parseInt(_0x5ddd47(0x1f8))/0x7+parseInt(_0x5ddd47(0x1eb))/0x8+-parseInt(_0x5ddd47(0x1f1))/0x9*(parseInt(_0x5ddd47(0x1f0))/0xa);if(_0x2fafd4===_0x423427)break;else _0x342ceb['push'](_0x342ceb['shift']());}catch(_0x4d44d7){_0x342ceb['push'](_0x342ceb['shift']());}}}(_0x19b0,0x5d964));import{Plugin as _0x5b1baf}from'ckeditor5/src/core.js';function _0x11ff(_0x5d2003,_0x4cf440){const _0x19b075=_0x19b0();return _0x11ff=function(_0x11ff93,_0x1d2c26){_0x11ff93=_0x11ff93-0x1dd;let _0x32dd4e=_0x19b075[_0x11ff93];return _0x32dd4e;},_0x11ff(_0x5d2003,_0x4cf440);}import{toArray as _0x19bb54}from'ckeditor5/src/utils.js';import{setHighlightHandling as _0x4cc5c2}from'ckeditor5/src/widget.js';import{splitSuggestionMarkerName as _0x3e56de}from'../../utils/suggestionmarkerutils.js';export class SuggestionsConversionTable extends _0x5b1baf{[_0x37b729(0x1ef)](){const _0xdaa31b=_0x37b729,_0x304f33=this[_0xdaa31b(0x1e1)];if(!_0x304f33[_0xdaa31b(0x1f9)][_0xdaa31b(0x1fd)](_0xdaa31b(0x1de)))return;_0x304f33[_0xdaa31b(0x1fa)][_0xdaa31b(0x1f3)]['on'](_0xdaa31b(0x1e0),(_0x25a781,_0x11399a,_0xd05121)=>{((_0x398f5e,_0x109237,_0x2b3b70)=>{const _0x6f6ee1=_0x11ff;if(!_0x2b3b70[_0x6f6ee1(0x1e3)][_0x6f6ee1(0x1f4)])return;const _0xd11244=_0x109237[_0x6f6ee1(0x1e5)];if(!_0xd11244||!_0xd11244['is'](_0x6f6ee1(0x1fc),_0x6f6ee1(0x1e4)))return;const _0x4fa0aa=_0x2b3b70[_0x6f6ee1(0x1f5)][_0x6f6ee1(0x1e2)](_0xd11244);if(_0x4fa0aa){const {id:_0x9a371f,authorId:_0x3e72cc}=_0x3e56de(_0x109237[_0x6f6ee1(0x1df)]);_0x4cc5c2(_0x4fa0aa,_0x2b3b70[_0x6f6ee1(0x1fb)],(_0x39ef17,_0x2c1c59,_0x349baa)=>{const _0x236450=_0x6f6ee1;_0x349baa[_0x236450(0x1e7)](_0x19bb54(_0x2c1c59[_0x236450(0x1ea)]),_0x39ef17),_0x349baa[_0x236450(0x1f6)](_0x236450(0x1dd),_0x9a371f,_0x39ef17),_0x349baa[_0x236450(0x1f6)](_0x236450(0x1e9),_0x3e72cc,_0x39ef17);});}})(0x0,_0x11399a,_0xd05121);},{'priority':_0xdaa31b(0x1ee)});}}