@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 • 4.87 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
function _0x2693(_0x1473f0,_0x586374){const _0x48a1af=_0x48a1();return _0x2693=function(_0x2693f8,_0x22567a){_0x2693f8=_0x2693f8-0x1e6;let _0x49de7d=_0x48a1af[_0x2693f8];return _0x49de7d;},_0x2693(_0x1473f0,_0x586374);}const _0x29b254=_0x2693;function _0x48a1(){const _0x5590df=['data','_activeMarkers','split','2342142cPMUYU','48HdVtmo','span','deletion','addClass','createUIElement','merge','consumable','model','addMarker:suggestion','insert','options','276eLSQZG','6185285jtNifh','getItems','element','writer','showSuggestionHighlights','243069CwiOTD','ck-suggestion-marker-','mapper','editor','test','editing','6740814mZkSlV','15404CiGHVi','639ABnFHd','markerRange','toViewPosition','SuggestionsConversion','get','ck-suggestion-marker--active','markerName','downcastDispatcher','has','185390KzzysZ','702653lCTsAd','createPositionBefore','120CRCznJ','softBreak','10eoOVWX','plugins','name','bindElementToMarker','high','includes','ShiftEnter','afterInit'];_0x48a1=function(){return _0x5590df;};return _0x48a1();}(function(_0x528664,_0x266c4f){const _0x336764=_0x2693,_0x1d317e=_0x528664();while(!![]){try{const _0x248d37=parseInt(_0x336764(0x213))/0x1*(-parseInt(_0x336764(0x1f6))/0x2)+parseInt(_0x336764(0x1f4))/0x3*(parseInt(_0x336764(0x1e7))/0x4)+-parseInt(_0x336764(0x20e))/0x5+-parseInt(_0x336764(0x1e6))/0x6+parseInt(_0x336764(0x1f2))/0x7*(parseInt(_0x336764(0x202))/0x8)+parseInt(_0x336764(0x1e8))/0x9*(-parseInt(_0x336764(0x1f1))/0xa)+parseInt(_0x336764(0x201))/0xb*(parseInt(_0x336764(0x20d))/0xc);if(_0x248d37===_0x266c4f)break;else _0x1d317e['push'](_0x1d317e['shift']());}catch(_0x37cc89){_0x1d317e['push'](_0x1d317e['shift']());}}}(_0x48a1,0xb9e24));import{Plugin as _0x4c536c}from'ckeditor5/src/core.js';import{splitSuggestionMarkerName as _0x275ad0}from'../../utils/suggestionmarkerutils.js';export class SuggestionsConversionShiftEnter extends _0x4c536c{[_0x29b254(0x1fd)](){const _0x2813ae=_0x29b254,_0x2a2fde=this[_0x2813ae(0x216)];if(!_0x2a2fde[_0x2813ae(0x1f7)][_0x2813ae(0x1f0)](_0x2813ae(0x1fc)))return;const _0x320393=_0x2a2fde[_0x2813ae(0x1f7)][_0x2813ae(0x1ec)](_0x2813ae(0x1eb)),_0x661b02=(_0x51b28d,_0x50545b,_0x3a3768,_0x1ec219)=>{const _0x49da60=_0x2813ae;if(_0x1ec219&&!_0x3a3768[_0x49da60(0x20c)][_0x49da60(0x212)])return;if(!_0x3a3768[_0x49da60(0x208)][_0x49da60(0x217)](_0x50545b[_0x49da60(0x1e9)],_0x51b28d[_0x49da60(0x1f8)]))return;const _0x51cdd6=_0x2a2fde[_0x49da60(0x209)];for(const _0x4b9e0b of _0x50545b[_0x49da60(0x1e9)][_0x49da60(0x20f)]()){if(!_0x4b9e0b['is'](_0x49da60(0x210),_0x49da60(0x1f5)))continue;const _0xd7f426=_0x49da60(0x204)==_0x50545b[_0x49da60(0x1ee)][_0x49da60(0x200)](':')[0x1]?_0x49da60(0x207):_0x49da60(0x200),{id:_0x35b992,authorId:_0x25bc37}=_0x275ad0(_0x50545b[_0x49da60(0x1ee)]),_0x111f7d=_0x3a3768[_0x49da60(0x211)][_0x49da60(0x206)](_0x49da60(0x203),{'class':_0x49da60(0x214)+_0xd7f426,'data-suggestion':_0x35b992,'data-author-id':_0x25bc37}),_0x13c366=_0x3a3768[_0x49da60(0x215)][_0x49da60(0x1ea)](_0x51cdd6[_0x49da60(0x1f3)](_0x4b9e0b));!_0x1ec219&&_0x320393[_0x49da60(0x1ff)][_0x49da60(0x1fb)](_0x50545b[_0x49da60(0x1ee)])&&_0x3a3768[_0x49da60(0x211)][_0x49da60(0x205)](_0x49da60(0x1ed),_0x111f7d),_0x3a3768[_0x49da60(0x211)][_0x49da60(0x20b)](_0x13c366,_0x111f7d),_0x3a3768[_0x49da60(0x215)][_0x49da60(0x1f9)](_0x111f7d,_0x50545b[_0x49da60(0x1ee)]);}};_0x2a2fde[_0x2813ae(0x218)][_0x2813ae(0x1ef)]['on'](_0x2813ae(0x20a),(_0x2a6ece,_0x1e31ac,_0x124cf1)=>{_0x661b02(_0x2a6ece,_0x1e31ac,_0x124cf1,!0x1);},{'priority':_0x2813ae(0x1fa)}),_0x2a2fde[_0x2813ae(0x1fe)][_0x2813ae(0x1ef)]['on'](_0x2813ae(0x20a),(_0x257fcc,_0x474cb1,_0x16c37e)=>{_0x661b02(_0x257fcc,_0x474cb1,_0x16c37e,!0x0);},{'priority':_0x2813ae(0x1fa)});}}