@ckeditor/ckeditor5-track-changes 38.1.1 → 38.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +2 -2
- package/package.json +4 -3
- package/src/augmentation.d.ts +36 -36
- package/src/commands/acceptsuggestioncommand.d.ts +20 -20
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +20 -20
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +20 -20
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -20
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +22 -22
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -12
- package/src/index.js +1 -1
- package/src/integrations/alignment.d.ts +13 -13
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +13 -13
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +13 -13
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +13 -13
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +13 -13
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +10 -10
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +13 -13
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +13 -13
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +25 -25
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +12 -12
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +17 -17
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +13 -13
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +13 -13
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +13 -13
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +13 -13
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +13 -13
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +13 -13
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +13 -13
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +19 -19
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +14 -14
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +13 -13
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +12 -12
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +13 -13
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +13 -13
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +25 -25
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +13 -13
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +13 -13
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +13 -13
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +13 -13
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +13 -13
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +13 -13
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +12 -12
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +13 -13
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +14 -14
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +38 -38
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +18 -18
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +18 -18
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +22 -22
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +18 -18
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +18 -18
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +13 -13
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +23 -23
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +13 -13
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +13 -13
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +13 -13
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +17 -17
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +266 -266
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +163 -151
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +240 -240
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +71 -71
- package/src/trackchangesdata.d.ts +37 -37
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +435 -435
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +34 -34
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +36 -36
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +166 -166
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -182
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +5 -5
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +26 -26
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bef=['writer','get','document','format','plugins','filter','getItemLabel','locale','nodeAfter','isLimit','showSuggestionHighlights','isBlock','*Insert:*\x20%0','*Change\x20to:*\x20%0','editing','getFirstRange','start','createUIElement','addMarker:suggestion:insertion','span','markerRange','_descriptionFactory','bindElementToMarker','options','name','checkChild','includes','enableCommand','registerDescriptionCallback','insertion','data','TrackChangesEditing','type','registerElementLabel','has','insert','isObject','$text','end','selection','isTouching','consumable','paragraph','blockName','ELEMENT_PARAGRAPH','toViewPosition','markBlockFormat','consume','editor','downcastDispatcher','addClass','mapper','schema','markerName','model'];(function(_0x309dcb,_0x3bef0e){const _0x5a72a6=function(_0x3e6ad6){while(--_0x3e6ad6){_0x309dcb['push'](_0x309dcb['shift']());}};_0x5a72a6(++_0x3bef0e);}(_0x3bef,0x130));const _0x5a72=function(_0x309dcb,_0x3bef0e){_0x309dcb=_0x309dcb-0x0;let _0x5a72a6=_0x3bef[_0x309dcb];return _0x5a72a6;};import{Plugin as _0x442265}from'ckeditor5/src/core.js';import{getElementsAffectedByListItemRename as _0x131a96}from'./utils.js';import{getTranslation as _0x4052d0}from'../utils/common-translations.js';export default class ct extends _0x442265{['afterInit'](){const _0x3dd162=this[_0x5a72('0x13')];if(!_0x3dd162['plugins'][_0x5a72('0x5')]('Paragraph'))return;const _0x28f234=_0x3dd162[_0x5a72('0x21')],_0x51ff73=_0x3dd162[_0x5a72('0x1e')][_0x5a72('0x1b')](_0x5a72('0x2'));_0x51ff73[_0x5a72('0x2f')][_0x5a72('0x4')](_0x5a72('0xd'),_0x5e1993=>_0x4052d0(_0x28f234,_0x5a72('0xf'),_0x5e1993)),_0x51ff73[_0x5a72('0x35')](_0x5a72('0xd'),(_0xfa105e,_0x11b7ae={})=>{const _0x207c54=_0x3dd162[_0x5a72('0x19')][_0x5a72('0x1c')],_0x4e7105=_0x11b7ae[_0x5a72('0xa')]||_0x207c54[_0x5a72('0xa')],_0x4315ba=Array['from'](_0x4e7105['getSelectedBlocks']())[_0x5a72('0x1f')](_0x6cda97=>function(_0x5ae765,_0x372c0f){return _0x372c0f[_0x5a72('0x33')](_0x5ae765['parent'],_0x5a72('0xd'))&&!_0x372c0f[_0x5a72('0x7')](_0x5ae765)&&_0x5a72('0xd')!=_0x5ae765[_0x5a72('0x32')];}(_0x6cda97,this[_0x5a72('0x13')][_0x5a72('0x19')]['schema']));_0x3dd162[_0x5a72('0x19')]['change'](()=>{for(const _0x3d5bb7 of _0x4315ba)_0x51ff73[_0x5a72('0x11')](_0x3d5bb7,{'commandName':'paragraph','commandParams':[],'formatGroupId':_0x5a72('0xe')},_0x131a96(_0x3d5bb7));});}),_0x51ff73[_0x5a72('0x2f')]['registerDescriptionCallback'](_0xc76886=>{const {data:_0x11961f}=_0xc76886;if(_0x11961f&&'paragraph'==_0x11961f['commandName'])return{'type':_0x5a72('0x1d'),'content':_0x4052d0(_0x28f234,_0x5a72('0x27'),_0x4052d0(_0x28f234,_0x5a72('0xf')))};}),_0x51ff73['enableCommand']('insertParagraph'),_0x3dd162[_0x5a72('0x28')][_0x5a72('0x14')]['on'](_0x5a72('0x2c'),ar(_0x3dd162),{'priority':'highest'}),_0x3dd162[_0x5a72('0x1')]['downcastDispatcher']['on'](_0x5a72('0x2c'),(_0x5c592d,_0x274fbb,_0x4b360a)=>{_0x4b360a[_0x5a72('0x31')][_0x5a72('0x24')]&&ar(_0x3dd162,{'showActiveMarker':!0x1})(_0x5c592d,_0x274fbb,_0x4b360a);},{'priority':'highest'});const _0x577f9d=_0x51ff73['_descriptionFactory'];_0x577f9d[_0x5a72('0x36')](_0x4f3ca4=>{if(_0x5a72('0x0')!==_0x4f3ca4[_0x5a72('0x3')])return;const {start:_0xb052ad,end:_0x3c1b96}=_0x4f3ca4[_0x5a72('0x29')]();if(!_0xb052ad['isTouching'](_0x3c1b96)||!_0xb052ad[_0x5a72('0x22')])return;const _0x38ee6c=_0x3dd162[_0x5a72('0x19')][_0x5a72('0x17')],_0x41f211=_0xb052ad[_0x5a72('0x22')];return _0x38ee6c['isBlock'](_0x41f211)&&!_0x38ee6c['isLimit'](_0x41f211)&&_0x38ee6c[_0x5a72('0x33')](_0x41f211,_0x5a72('0x8'))?{'type':_0x5a72('0x0'),'content':_0x4052d0(_0x28f234,_0x5a72('0x26'),_0x577f9d[_0x5a72('0x20')](_0x41f211,0x1))}:void 0x0;});}}function ar(_0x5a4c70,{showActiveMarker:_0x173c90=!0x0}={}){return(_0xd7d902,_0x378db2,_0x3b9975)=>{const _0x4b83fd=_0x5a4c70[_0x5a72('0x1e')][_0x5a72('0x1b')](_0x5a72('0x2')),_0x37db82=_0x378db2[_0x5a72('0x2e')][_0x5a72('0x2a')],_0x38c135=_0x378db2[_0x5a72('0x2e')][_0x5a72('0x9')],_0x701ab4=_0x5a4c70['model'][_0x5a72('0x17')];if(!_0x37db82[_0x5a72('0xb')](_0x38c135)||!_0x37db82[_0x5a72('0x22')])return;const _0x6b28a2=_0x37db82[_0x5a72('0x22')];if(_0x701ab4[_0x5a72('0x25')](_0x6b28a2)&&!_0x701ab4[_0x5a72('0x23')](_0x6b28a2)&&_0x701ab4[_0x5a72('0x33')](_0x6b28a2,_0x5a72('0x8'))){if(!_0x3b9975[_0x5a72('0xc')][_0x5a72('0x12')](_0x378db2['markerRange'],_0xd7d902[_0x5a72('0x32')]))return;const _0x3a1303=_0x3b9975['writer'][_0x5a72('0x2b')](_0x5a72('0x2d'),{'class':'ck-suggestion-marker-split'}),_0x278862=_0x3b9975[_0x5a72('0x16')][_0x5a72('0x10')](_0x38c135);_0x173c90&&_0x4b83fd['activeMarkers'][_0x5a72('0x34')](_0x378db2[_0x5a72('0x18')])&&_0x3b9975[_0x5a72('0x1a')][_0x5a72('0x15')]('ck-suggestion-marker--active',_0x3a1303),_0x3b9975['writer'][_0x5a72('0x6')](_0x278862,_0x3a1303),_0x3b9975[_0x5a72('0x16')][_0x5a72('0x30')](_0x3a1303,_0x378db2['markerName']);}};}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/removeformat
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for remove format feature.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesRemoveFormat extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/removeformat
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for remove format feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesRemoveFormat extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4494=['editor','getItems','format','removeFormat','get','plugins','TrackChangesEditing','model','getRanges','afterInit','RemoveFormatEditing','createRangeOn','*Remove\x20all\x20formatting*','schema','has','from','enableCommand','isFormatting','markInlineFormat','selection'];(function(_0x385993,_0x4494e5){const _0x964059=function(_0x34789f){while(--_0x34789f){_0x385993['push'](_0x385993['shift']());}};_0x964059(++_0x4494e5);}(_0x4494,0x150));const _0x9640=function(_0x385993,_0x4494e5){_0x385993=_0x385993-0x0;let _0x964059=_0x4494[_0x385993];return _0x964059;};import{Plugin as _0x5ae6a4}from'ckeditor5/src/core.js';import{getTranslation as _0x23fb3f}from'../utils/common-translations.js';export default class ht extends _0x5ae6a4{[_0x9640('0xd')](){const _0x20ccc5=this[_0x9640('0x4')];if(!_0x20ccc5[_0x9640('0x9')][_0x9640('0x12')](_0x9640('0xe')))return;const _0x131940=_0x20ccc5['plugins'][_0x9640('0x8')](_0x9640('0xa'));_0x131940[_0x9640('0x0')](_0x9640('0x7'),_0x78c50=>{const _0x3e132f=_0x20ccc5[_0x9640('0xb')]['document'][_0x9640('0x3')];_0x3e132f['isCollapsed']?_0x78c50():_0x20ccc5[_0x9640('0xb')]['change'](()=>{const _0x42b556=Array[_0x9640('0x13')](_0x3e132f[_0x9640('0xc')]());for(const _0x24bfba of _0x42b556)for(const _0x2dc617 of _0x24bfba[_0x9640('0x5')]())eo(_0x2dc617,_0x20ccc5[_0x9640('0xb')][_0x9640('0x11')])&&_0x131940[_0x9640('0x2')](_0x20ccc5['model'][_0x9640('0xf')](_0x2dc617),{'commandName':_0x9640('0x7'),'commandParams':[]});});}),_0x131940['_descriptionFactory']['registerDescriptionCallback'](_0x525cc2=>{const {data:_0x2ac86c}=_0x525cc2;if(_0x2ac86c&&_0x9640('0x7')==_0x2ac86c['commandName'])return{'type':_0x9640('0x6'),'content':_0x23fb3f(_0x20ccc5['locale'],_0x9640('0x10'))};});}}function eo(_0x19de8f,_0xd120ff){for(const [_0x4a64e0]of _0x19de8f['getAttributes']()){const _0x484f58=_0xd120ff['getAttributeProperties'](_0x4a64e0);if(_0x484f58&&_0x484f58[_0x9640('0x1')])return!0x0;}return!0x1;}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/mention
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for restricted editing mode feature from restricted editing package.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesRestrictedEditingMode extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/mention
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for restricted editing mode feature from restricted editing package.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesRestrictedEditingMode extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12d9=['acceptSuggestion','acceptAllSuggestions','discardSuggestion','trackChanges','RestrictedEditingModeEditing','get','plugins','enableCommand','acceptSelectedSuggestions','goToPreviousRestrictedEditingException','afterInit','discardAllSuggestions','TrackChangesEditing','editor'];(function(_0x18ba7f,_0x12d911){const _0xd56ecf=function(_0x1e6fdd){while(--_0x1e6fdd){_0x18ba7f['push'](_0x18ba7f['shift']());}};_0xd56ecf(++_0x12d911);}(_0x12d9,0xcb));const _0xd56e=function(_0x18ba7f,_0x12d911){_0x18ba7f=_0x18ba7f-0x0;let _0xd56ecf=_0x12d9[_0x18ba7f];return _0xd56ecf;};import{Plugin as _0x5b47af}from'ckeditor5/src/core.js';export default class ut extends _0x5b47af{[_0xd56e('0x3')](){const _0x204b02=this[_0xd56e('0x6')];if(!_0x204b02[_0xd56e('0xd')]['has'](_0xd56e('0xb')))return;const _0x3ba674=_0x204b02[_0xd56e('0xd')]['get'](_0xd56e('0x5'));_0x3ba674[_0xd56e('0x0')](_0xd56e('0x2')),_0x3ba674[_0xd56e('0x0')]('goToNextRestrictedEditingException');const _0x4db8d4=_0x204b02[_0xd56e('0xd')][_0xd56e('0xc')](_0xd56e('0xb'));_0x4db8d4[_0xd56e('0x0')](_0xd56e('0xa')),_0x4db8d4[_0xd56e('0x0')](_0xd56e('0x7')),_0x4db8d4[_0xd56e('0x0')](_0xd56e('0x9')),_0x4db8d4[_0xd56e('0x0')](_0xd56e('0x8')),_0x4db8d4[_0xd56e('0x0')](_0xd56e('0x4')),_0x4db8d4[_0xd56e('0x0')](_0xd56e('0x1')),_0x4db8d4[_0xd56e('0x0')]('discardSelectedSuggestions');}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/shiftentercommand
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
import { ShiftEnter } from 'ckeditor5/src/enter';
|
|
6
|
-
/**
|
|
7
|
-
* Provides track changes plugin integration for {@link module:enter/shiftentercommand~ShiftEnterCommand enter command}.
|
|
8
|
-
*/
|
|
9
|
-
export default class TrackChangesShiftEnterCommand extends Plugin {
|
|
10
|
-
static get requires(): readonly [typeof ShiftEnter];
|
|
11
|
-
init(): void;
|
|
12
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/shiftentercommand
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
import { ShiftEnter } from 'ckeditor5/src/enter.js';
|
|
6
|
+
/**
|
|
7
|
+
* Provides track changes plugin integration for {@link module:enter/shiftentercommand~ShiftEnterCommand enter command}.
|
|
8
|
+
*/
|
|
9
|
+
export default class TrackChangesShiftEnterCommand extends Plugin {
|
|
10
|
+
static get requires(): readonly [typeof ShiftEnter];
|
|
11
|
+
init(): void;
|
|
12
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b3c=['markerName','ck-suggestion-marker-','ck-suggestion-marker--active','get','merge','data','span','TrackChangesEditing','editor','editing','_descriptionFactory','createUIElement','enableCommand','toViewPosition','writer','high','model','downcastDispatcher','showSuggestionHighlights','markerRange','test','split','locale','activeMarkers','name','element','plugins','mapper','softBreak','includes','requires','shiftEnter','createPositionBefore'];(function(_0x528d6f,_0x3b3c55){const _0x3202c2=function(_0x115fcf){while(--_0x115fcf){_0x528d6f['push'](_0x528d6f['shift']());}};_0x3202c2(++_0x3b3c55);}(_0x3b3c,0x1bf));const _0x3202=function(_0x528d6f,_0x3b3c55){_0x528d6f=_0x528d6f-0x0;let _0x3202c2=_0x3b3c[_0x528d6f];return _0x3202c2;};import{Plugin as _0x319e3a}from'ckeditor5/src/core.js';import{ShiftEnter as _0x218ea9}from'ckeditor5/src/enter.js';import{getTranslation as _0x4a64f4}from'../utils/common-translations.js';export default class ft extends _0x319e3a{static get[_0x3202('0xc')](){return[_0x218ea9];}['init'](){const _0x272453=this[_0x3202('0x17')],_0x29c658=_0x272453['plugins'][_0x3202('0x12')](_0x3202('0x16'));_0x29c658[_0x3202('0x1b')](_0x3202('0xd')),_0x272453[_0x3202('0x18')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',re(_0x272453),{'priority':_0x3202('0x1e')}),_0x272453[_0x3202('0x18')][_0x3202('0x20')]['on']('addMarker:suggestion:deletion',re(_0x272453),{'priority':_0x3202('0x1e')}),_0x272453[_0x3202('0x14')]['downcastDispatcher']['on']('addMarker:suggestion',(_0x247d4d,_0x1fbc66,_0x32e1d0)=>{_0x32e1d0['options'][_0x3202('0x0')]&&re(_0x272453,{'showActiveMarker':!0x1})(_0x247d4d,_0x1fbc66,_0x32e1d0);}),_0x29c658[_0x3202('0x19')]['registerElementLabel']('softBreak',_0x2814e3=>_0x4a64f4(_0x272453[_0x3202('0x4')],'ELEMENT_LINE_BREAK',_0x2814e3));}}function re(_0x2a9283,{showActiveMarker:_0x7767c8=!0x0}={}){return(_0x316bf3,_0x39a9e9,_0x4d4158)=>{const _0xd504cc=_0x2a9283[_0x3202('0x8')]['get']('TrackChangesEditing');if(!_0x4d4158['consumable'][_0x3202('0x2')](_0x39a9e9[_0x3202('0x1')],_0x316bf3[_0x3202('0x6')]))return;const _0x2db179=_0x2a9283[_0x3202('0x1f')];for(const _0x4313f3 of _0x39a9e9['markerRange']['getItems']()){if(!_0x4313f3['is'](_0x3202('0x7'),_0x3202('0xa')))continue;const _0xbc91de='deletion'==_0x39a9e9[_0x3202('0xf')][_0x3202('0x3')](':')[0x1]?_0x3202('0x13'):_0x3202('0x3'),_0x2151e5=_0x4d4158[_0x3202('0x1d')][_0x3202('0x1a')](_0x3202('0x15'),{'class':_0x3202('0x10')+_0xbc91de}),_0x386d84=_0x4d4158[_0x3202('0x9')][_0x3202('0x1c')](_0x2db179[_0x3202('0xe')](_0x4313f3));_0x7767c8&&_0xd504cc[_0x3202('0x5')][_0x3202('0xb')](_0x39a9e9[_0x3202('0xf')])&&_0x4d4158[_0x3202('0x1d')]['addClass'](_0x3202('0x11'),_0x2151e5),_0x4d4158['writer']['insert'](_0x386d84,_0x2151e5),_0x4d4158[_0x3202('0x9')]['bindElementToMarker'](_0x2151e5,_0x39a9e9['markerName']);}};}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/mention
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for standard editing mode feature from restricted editing package.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesStandardEditingMode extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/mention
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for standard editing mode feature from restricted editing package.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesStandardEditingMode extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10fc=['change','markInlineFormat','get','enableCommand','document','selection','isCollapsed','forceValue','editor','registerDescriptionCallback','has','FORMAT_RESTRICTED_ENABLED','model','afterInit','plugins','commandName','from','restrictedEditingException','commands','TrackChangesEditing','commandParams','_descriptionFactory','getRanges'];(function(_0x1124f0,_0x10fcd2){const _0x510784=function(_0x52b73e){while(--_0x52b73e){_0x1124f0['push'](_0x1124f0['shift']());}};_0x510784(++_0x10fcd2);}(_0x10fc,0xac));const _0x5107=function(_0x1124f0,_0x10fcd2){_0x1124f0=_0x1124f0-0x0;let _0x510784=_0x10fc[_0x1124f0];return _0x510784;};import{Plugin as _0x169456}from'ckeditor5/src/core.js';import{getRangesWithAttribute as _0x39fe83}from'./utils.js';import{getTranslation as _0x5409a7}from'../utils/common-translations.js';export default class lt extends _0x169456{[_0x5107('0x2')](){const _0xf5cd25=this[_0x5107('0x14')],_0x355811=_0xf5cd25[_0x5107('0x1')],_0x1639e9=_0xf5cd25['locale'];if(!_0xf5cd25[_0x5107('0x3')][_0x5107('0x16')]('StandardEditingModeEditing'))return;const _0x3f2aef=_0xf5cd25[_0x5107('0x3')][_0x5107('0xe')](_0x5107('0x8')),_0xed5aac=_0x5107('0x6'),_0x1981d9=_0xf5cd25[_0x5107('0x7')][_0x5107('0xe')](_0xed5aac);_0x3f2aef[_0x5107('0xf')](_0xed5aac,(_0x330be3,_0x33ae70={})=>{const _0x83010=_0x355811[_0x5107('0x10')][_0x5107('0x11')];if(_0x83010[_0x5107('0x12')])return void _0x330be3(_0x33ae70);const _0x2c97ec=void 0x0!==_0x33ae70['forceValue']?_0x33ae70[_0x5107('0x13')]:!_0x1981d9['value'];_0x355811[_0x5107('0xc')](()=>{const _0x15d4e9=Array[_0x5107('0x5')](_0x83010[_0x5107('0xb')]());for(const _0x403272 of _0x15d4e9){const _0x43e8d0=_0x2c97ec?[_0x403272]:_0x39fe83(_0xed5aac,_0x403272,_0x355811);for(const _0x3bb978 of _0x43e8d0)_0x3f2aef[_0x5107('0xd')](_0x3bb978,{'commandName':_0xed5aac,'commandParams':[{'forceValue':_0x2c97ec}]});}});}),_0x3f2aef[_0x5107('0xa')][_0x5107('0x15')](_0x2ea096=>{const {data:_0x2b6197}=_0x2ea096;if(_0x2b6197&&_0x2b6197[_0x5107('0x4')]==_0xed5aac)return _0x2b6197[_0x5107('0x9')][0x0][_0x5107('0x13')]?{'type':'format','content':_0x5409a7(_0x1639e9,_0x5107('0x0'))}:{'type':'format','content':_0x5409a7(_0x1639e9,'FORMAT_RESTRICTED_DISABLED')};});}}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/style
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for styles dropdown feature.
|
|
7
|
-
* @todo Remove "any" casts after plugin has been rewritten to TS.
|
|
8
|
-
*/
|
|
9
|
-
export default class TrackChangesStylesDropdown extends Plugin {
|
|
10
|
-
/**
|
|
11
|
-
* @inheritDoc
|
|
12
|
-
*/
|
|
13
|
-
afterInit(): void;
|
|
14
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/style
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for styles dropdown feature.
|
|
7
|
+
* @todo Remove "any" casts after plugin has been rewritten to TS.
|
|
8
|
+
*/
|
|
9
|
+
export default class TrackChangesStylesDropdown extends Plugin {
|
|
10
|
+
/**
|
|
11
|
+
* @inheritDoc
|
|
12
|
+
*/
|
|
13
|
+
afterInit(): void;
|
|
14
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41f4=['*Format:*\x20%0','add','classes','block','TrackChangesEditing','locale','getAncestors','enableCommand','modelElements','getDefinitionsForView','value','Style','getRanges','normalizeConfig','every','isCollapsed','enabledStyles','styleName','includes','getSelectedBlocks','editor','model','format','document','toLowerCase','name','_getRangesWithClasses','commands','*Remove\x20format:*\x20%0','isBlock','markInlineFormat','_getStyleDefinition','find','markBlockFormat','style','style.definitions','get','plugins','afterInit','selection','has','commandName','change','push','commandParams'];(function(_0x273118,_0x41f45b){const _0x262c1e=function(_0x483dda){while(--_0x483dda){_0x273118['push'](_0x273118['shift']());}};_0x262c1e(++_0x41f45b);}(_0x41f4,0x108));const _0x262c=function(_0x273118,_0x41f45b){_0x273118=_0x273118-0x0;let _0x262c1e=_0x41f4[_0x273118];return _0x262c1e;};import{Plugin as _0x12eb29}from'ckeditor5/src/core.js';import{getTranslation as _0x1947ba}from'../utils/common-translations.js';export default class gt extends _0x12eb29{[_0x262c('0x2c')](){const _0x1fb51f=this[_0x262c('0x1a')];if(!_0x1fb51f['plugins'][_0x262c('0x1')](_0x262c('0x11')))return;const _0x245ec0=_0x1fb51f[_0x262c('0x21')][_0x262c('0x2a')](_0x262c('0x28')),_0x47f9b6=_0x1fb51f[_0x262c('0x2b')][_0x262c('0x2a')](_0x262c('0xa')),_0x104a8e=_0x1fb51f[_0x262c('0xb')],_0x50a235=_0x1fb51f[_0x262c('0x2b')]['get']('DataSchema'),_0x147b08=_0x1fb51f['plugins'][_0x262c('0x2a')]('StyleUtils')[_0x262c('0x13')](_0x50a235,_0x1fb51f['config'][_0x262c('0x2a')](_0x262c('0x29')));_0x47f9b6[_0x262c('0xd')]('style',(_0x4ad1a0,{styleName:_0x2cd0d1})=>{const _0xaecd70=_0x1fb51f[_0x262c('0x1b')][_0x262c('0x1d')][_0x262c('0x0')],_0x5528c0=this[_0x262c('0x25')](_0x2cd0d1,_0x147b08);if(!_0x5528c0)return;if(!_0x245ec0[_0x262c('0x16')][_0x262c('0x18')](_0x2cd0d1))return;if(_0xaecd70[_0x262c('0x15')]&&!_0x5528c0[_0x262c('0x23')])return void _0x4ad1a0({'styleName':_0x2cd0d1});const _0xe62b4b=!_0x245ec0[_0x262c('0x10')]['includes'](_0x5528c0[_0x262c('0x1f')]);if(_0x5528c0['isBlock']){const _0x2bb852=function(_0x1c4a07,_0x5066c8){const _0x2e6bc5=new Set();for(const _0x422156 of _0x1c4a07){const _0x40275f=_0x422156[_0x262c('0xc')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x44cd9b of _0x40275f)if(_0x5066c8[_0x262c('0x18')](_0x44cd9b[_0x262c('0x1f')])){_0x2e6bc5[_0x262c('0x7')](_0x44cd9b);break;}}return _0x2e6bc5;}(_0xaecd70[_0x262c('0x19')](),_0x5528c0[_0x262c('0xe')]);_0x1fb51f['model'][_0x262c('0x3')](()=>{for(const _0x2cbc96 of _0x2bb852)_0x47f9b6[_0x262c('0x27')](_0x2cbc96,{'commandName':_0x262c('0x28'),'commandParams':[{'styleName':_0x2cd0d1,'forceValue':_0xe62b4b}],'formatGroupId':'style:'+_0x2cd0d1});});}else{let _0x5c01c8=Array['from'](_0xaecd70[_0x262c('0x12')]());if(!_0xe62b4b){const _0x38b4fc=Array['from'](_0x50a235[_0x262c('0xf')](_0x5528c0['element'],!0x1))[0x0][_0x262c('0x1b')],_0x5be7c4=[];for(const _0x23eca5 of _0x5c01c8){const _0x583053=this[_0x262c('0x20')](_0x1fb51f[_0x262c('0x1b')],_0x23eca5,_0x5528c0[_0x262c('0x8')],_0x38b4fc);_0x5be7c4[_0x262c('0x4')](..._0x583053);}_0x5c01c8=_0x5be7c4;}_0x1fb51f[_0x262c('0x1b')][_0x262c('0x3')](()=>{for(const _0x259c0c of _0x5c01c8)_0x47f9b6[_0x262c('0x24')](_0x259c0c,{'commandName':_0x262c('0x28'),'commandParams':[{'styleName':_0x2cd0d1,'forceValue':_0xe62b4b}]});});}}),_0x47f9b6['_descriptionFactory']['registerDescriptionCallback'](_0x282d50=>{const {data:_0x1692ec}=_0x282d50;if(_0x1692ec&&_0x262c('0x28')===_0x1692ec[_0x262c('0x2')])return _0x1692ec[_0x262c('0x5')][0x0]['forceValue']?{'type':_0x262c('0x1c'),'content':_0x1947ba(_0x104a8e,_0x262c('0x6'),_0x1692ec[_0x262c('0x5')][0x0][_0x262c('0x17')][_0x262c('0x1e')]())}:{'type':_0x262c('0x1c'),'content':_0x1947ba(_0x104a8e,_0x262c('0x22'),_0x1692ec['commandParams'][0x0][_0x262c('0x17')][_0x262c('0x1e')]())};});}[_0x262c('0x25')](_0x40577f,_0x3f2a2b){let _0x4f3cdc=_0x3f2a2b[_0x262c('0x9')][_0x262c('0x26')](_0x5e6476=>_0x5e6476[_0x262c('0x1f')]===_0x40577f);return _0x4f3cdc||(_0x4f3cdc=_0x3f2a2b['inline'][_0x262c('0x26')](_0x5e9c82=>_0x5e9c82['name']===_0x40577f)),_0x4f3cdc;}[_0x262c('0x20')](_0x3732bd,_0x1d7737,_0x4224c7,_0x3ea085){const _0x34def2=[];for(const _0x44227b of _0x1d7737['getItems']()){const _0x51f5c9=_0x44227b['getAttribute'](_0x3ea085);_0x51f5c9&&(_0x4224c7[_0x262c('0x14')](_0x54488f=>_0x51f5c9[_0x262c('0x8')][_0x262c('0x18')](_0x54488f))&&_0x34def2[_0x262c('0x4')](_0x3732bd['createRangeOn'](_0x44227b)));}return _0x34def2;}}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/table
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for {@link module:table/table~Table table feature}.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesTable extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
constructor(editor: Editor);
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Coordinates for suggestion.
|
|
20
|
-
*/
|
|
21
|
-
export interface SuggestionCoordinates {
|
|
22
|
-
/**
|
|
23
|
-
* Index of the row at which the suggestion starts.
|
|
24
|
-
*/
|
|
25
|
-
minRow: number;
|
|
26
|
-
/**
|
|
27
|
-
* Index of the row at which the suggestion ends.
|
|
28
|
-
*/
|
|
29
|
-
maxRow: number;
|
|
30
|
-
/**
|
|
31
|
-
* Index of the column at which the suggestion starts.
|
|
32
|
-
*/
|
|
33
|
-
minColumn: number;
|
|
34
|
-
/**
|
|
35
|
-
* Index of the column at which the suggestion ends.
|
|
36
|
-
*/
|
|
37
|
-
maxColumn: number;
|
|
38
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/table
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:table/table~Table table feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesTable extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
constructor(editor: Editor);
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Coordinates for suggestion.
|
|
20
|
+
*/
|
|
21
|
+
export interface SuggestionCoordinates {
|
|
22
|
+
/**
|
|
23
|
+
* Index of the row at which the suggestion starts.
|
|
24
|
+
*/
|
|
25
|
+
minRow: number;
|
|
26
|
+
/**
|
|
27
|
+
* Index of the row at which the suggestion ends.
|
|
28
|
+
*/
|
|
29
|
+
maxRow: number;
|
|
30
|
+
/**
|
|
31
|
+
* Index of the column at which the suggestion starts.
|
|
32
|
+
*/
|
|
33
|
+
minColumn: number;
|
|
34
|
+
/**
|
|
35
|
+
* Index of the column at which the suggestion ends.
|
|
36
|
+
*/
|
|
37
|
+
maxColumn: number;
|
|
38
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x26f2=['getAttribute','above','getItems','insertion','detach','forceValue','table','refresh','getSelectionAffectedTableCells','getFirstRange','registerDescriptionCallback','filter','tableCell','ELEMENT_TABLE_WITH_TEXT','type','_acceptFormatSuggestionCallbackFactory','colspan','differ','tableColumn','oldRange','accept','removeTableRow','downcastDispatcher','getChanges','isEqual','fromRange','findAncestor','first','ELEMENT_TABLE_COLUMN_WITH_TEXT','selectTableRow','insertTableRowAbove','rootName','getChildren','suggestion','nodeAfter','ELEMENT_TABLE_ROW','_getCoordsForCells','element','highest','length','get','min','toLowerCase','afterInit','position','MAX_SAFE_INTEGER','_tableSuggestions','*Insert:*\x20%0','writer','toViewElement','setSelection','isIntersectingWithRange','values','enableCommand','hasAttribute','createPositionAt','root','selection','insertTable','tableRow','commands','substr','getCellLocation','end','*Remove:*\x20%0','push','model','getContainedElement','editor','_splitMarkerName','deletion','addClass','TableEditing','nodeBefore','getChangedMarkers','_setupColumnsRowsFixing','$graveyard','registerElementLabel','selectTableColumn','insertTableColumnLeft','TableUtils','startsWith','discard','plugins','last','MIN_SAFE_INTEGER','maxColumn','$textProxy','rowspan','start','change:data','addMarker:suggestion','ELEMENT_TABLE_COLUMN','insertTableColumnRight','isTouching','createRangeIn','_descriptionFactory','getRowIndexes','name','registerCustomCallback','addRange','left','_getSuggestionCoords','_suggestionFactory','minColumn','execute','join','createTableWalker','removeTableColumn','data','markMultiRangeDeletion','createRangeOn','every','document','getColumnIndexes','classes','isInContent','minRow','some','getRanges','enqueueChange','tablePaste','span','ELEMENT_TABLE_ROW_WITH_TEXT','map','isArray','_tablePostFixingSubtypes','registerPostFixer','cell','add','mapper','from','order','change','low','subType','markMultiRangeInsertion','showSuggestionHighlights'];(function(_0x55576f,_0x26f2ce){const _0xf817ce=function(_0x2b80dd){while(--_0x2b80dd){_0x55576f['push'](_0x55576f['shift']());}};_0xf817ce(++_0x26f2ce);}(_0x26f2,0x1ca));const _0xf817=function(_0x55576f,_0x26f2ce){_0x55576f=_0x55576f-0x0;let _0xf817ce=_0x26f2[_0x55576f];return _0xf817ce;};import{Plugin as _0x31c149}from'ckeditor5/src/core';import{LiveRange as _0x3eb9cb}from'ckeditor5/src/engine';import{setHighlightHandling as _0x8e5c63}from'ckeditor5/src/widget';import{getTranslation as _0x292fe2}from'../utils/common-translations';export default class mt extends _0x31c149{constructor(_0x1d860a){super(_0x1d860a),this[_0xf817('0x52')]=[_0xf817('0xf'),_0xf817('0x70')],this[_0xf817('0x2')]=new Set();}[_0xf817('0x89')](){const _0x14755f=this[_0xf817('0x18')],_0x3f8990=_0x14755f['model'][_0xf817('0x45')]['selection'];if(!_0x14755f['plugins']['has'](_0xf817('0x1c')))return;const _0x2c1680=_0x14755f['locale'],_0x3ccd91=_0x14755f[_0xf817('0x27')]['get']('TrackChangesEditing'),_0xfb155a=_0x14755f[_0xf817('0x27')]['get'](_0xf817('0x24'));_0x3ccd91[_0xf817('0x34')][_0xf817('0x21')]('table',_0x287a50=>_0x292fe2(_0x2c1680,'ELEMENT_TABLE',_0x287a50)),this['_setupColumnsRowsFixing'](),_0x3ccd91[_0xf817('0x9')](_0xf817('0xe')),_0x3ccd91[_0xf817('0x9')](_0xf817('0x7b')),_0x3ccd91[_0xf817('0x9')](_0xf817('0x22'));for(const _0x9bff83 of[_0xf817('0x7c'),'insertTableRowBelow']){const _0x57d631=_0x14755f['commands']['get'](_0x9bff83);_0x3ccd91['enableCommand'](_0x9bff83,_0x23810e=>{_0x14755f[_0xf817('0x16')]['change'](_0x251c14=>{_0x23810e();const _0x1dbef3=_0xf817('0x5f')===_0x57d631[_0xf817('0x58')],_0x5b62bd=_0xfb155a[_0xf817('0x66')](_0x3f8990),_0x53f8c4=_0xfb155a[_0xf817('0x35')](_0x5b62bd),_0x11edeb=_0x1dbef3?_0x53f8c4[_0xf817('0x79')]-0x1:_0x53f8c4[_0xf817('0x28')]+0x1,_0x1c884f=_0x5b62bd[0x0][_0xf817('0x78')](_0xf817('0x64')),_0x494888=_0xfb155a[_0xf817('0x3f')](_0x1c884f,{'startRow':_0x11edeb,'endRow':_0x11edeb}),_0x5b6900=Array[_0xf817('0x57')](_0x494888)[_0xf817('0x50')](_0x1fe723=>_0x251c14['createRangeOn'](_0x1fe723[_0xf817('0x54')]));_0x3ccd91[_0xf817('0x5c')](_0x5b6900,'tableRow');});});}for(const _0x1225b8 of[_0xf817('0x23'),_0xf817('0x31')]){const _0x4d4614=_0x14755f[_0xf817('0x10')][_0xf817('0x86')](_0x1225b8);_0x3ccd91[_0xf817('0x9')](_0x1225b8,_0x3ea190=>{_0x14755f['model'][_0xf817('0x59')](_0x23c7ad=>{_0x3ea190();const _0x1a9b07=_0xf817('0x39')===_0x4d4614['order'],_0xb6930e=_0xfb155a[_0xf817('0x66')](_0x3f8990),_0x17c8d8=_0xfb155a[_0xf817('0x46')](_0xb6930e),_0x1e3cc8=_0x1a9b07?_0x17c8d8[_0xf817('0x79')]-0x1:_0x17c8d8[_0xf817('0x28')]+0x1,_0x5d8d02=_0xb6930e[0x0][_0xf817('0x78')](_0xf817('0x64')),_0xf4aee=_0xfb155a['createTableWalker'](_0x5d8d02,{'startRow':0x0,'column':_0x1e3cc8,'includeAllSlots':!0x1}),_0x27df3b=Array[_0xf817('0x57')](_0xf4aee)[_0xf817('0x50')](_0x455dde=>_0x23c7ad[_0xf817('0x43')](_0x455dde[_0xf817('0x54')]));_0x3ccd91[_0xf817('0x5c')](_0x27df3b,_0xf817('0x70'));});});}for(const _0x545fd7 of[_0xf817('0x73'),_0xf817('0x40')]){const _0x59a173=_0x545fd7[_0xf817('0x11')](0xb),_0x45b5d0=_0x59a173[_0xf817('0x88')](),_0x50738f=_0x45b5d0['substr'](0x0,0x3)+_0xf817('0x4e'),_0x3cdd1c=_0xf817('0x64')+_0x59a173,_0x16a5c8=_0xf817('0x87')+_0x59a173,_0x445588='max'+_0x59a173;_0x3ccd91['enableCommand'](_0x545fd7,()=>{_0x14755f['model'][_0xf817('0x59')](_0x4afb52=>{const _0x695321=_0xfb155a['getSelectionAffectedTableCells'](_0x3f8990),_0x20322c=_0x695321[0x0][_0xf817('0x78')](_0xf817('0x64'));let _0x224449;if(_0xf817('0x73')==_0x545fd7){const _0xe927e1=_0xfb155a['getRowIndexes'](_0x695321);_0x224449={'startRow':_0xe927e1[_0xf817('0x79')],'endRow':_0xe927e1[_0xf817('0x28')],'includeAllSlots':!0x0};}else{const _0x3ac838=_0xfb155a[_0xf817('0x46')](_0x695321);_0x224449={'startColumn':_0x3ac838[_0xf817('0x79')],'endColumn':_0x3ac838[_0xf817('0x28')],'includeAllSlots':!0x0};}const _0x37b81f=_0xfb155a[_0xf817('0x3f')](_0x20322c,_0x224449),_0x588a1c=Array[_0xf817('0x57')](_0x37b81f)[_0xf817('0x50')](({cell:_0x3aebc7})=>_0x3aebc7),_0x3e2247=se(_0x588a1c[_0xf817('0x69')](_0x258bcc=>_0x258bcc['hasAttribute'](_0x50738f))),_0x29545d=se(_0x588a1c['filter'](_0x44bf4d=>!_0x44bf4d['hasAttribute'](_0x50738f)))[_0xf817('0x50')](_0x3b7aec=>_0x4afb52[_0xf817('0x43')](_0x3b7aec)),_0x2f1cd0=_0x3ccd91[_0xf817('0x42')](_0x29545d,_0x3cdd1c);if(_0x2f1cd0&&(_0xf817('0xf')==_0x2f1cd0[_0xf817('0x5b')]||'tableColumn'==_0x2f1cd0[_0xf817('0x5b')])){const _0x30006c=this[_0xf817('0x3a')](_0x2f1cd0);for(const _0x2d117e of _0x3e2247){const _0x11a90f=_0x4afb52[_0xf817('0x43')](_0x2d117e),_0x36c8e5=_0xfb155a[_0xf817('0x12')](_0x2d117e),_0x4681a2=_0x2d117e['getAttribute'](_0x50738f)-0x1,_0x19fbac=_0x30006c[_0x16a5c8],_0x45d042=_0x30006c[_0x445588];_0x19fbac<=_0x36c8e5[_0x45b5d0]&&_0x36c8e5[_0x45b5d0]+_0x4681a2<=_0x45d042&&_0x2f1cd0[_0xf817('0x38')](_0x11a90f);}}});});}function _0x596471(_0xe3e1e2){const _0x362bc5=Array[_0xf817('0x57')](_0x3f8990[_0xf817('0x4b')]())['map'](_0x414240=>_0x3eb9cb[_0xf817('0x77')](_0x414240));_0x14755f[_0xf817('0x16')][_0xf817('0x59')](_0x51a055=>{const _0x15bd95=_0x51a055['batch'];_0xe3e1e2=_0xe3e1e2['filter'](_0x5cabfd=>_0xf817('0x20')!=_0x5cabfd['root'][_0xf817('0x7d')]),_0x51a055['setSelection'](_0xe3e1e2),_0x14755f[_0xf817('0x10')][_0xf817('0x86')]('removeTableRow')[_0xf817('0x65')](),_0x14755f[_0xf817('0x3d')](_0xf817('0x73'),{'forceDefaultExecution':!0x0}),_0x14755f[_0xf817('0x16')][_0xf817('0x4c')](()=>{_0x14755f[_0xf817('0x16')][_0xf817('0x4c')](_0x15bd95,_0x8c1412=>{const _0x1be413=_0x362bc5[_0xf817('0x69')](_0x5265db=>_0xf817('0x20')!=_0x5265db['root'][_0xf817('0x7d')]);_0x1be413[_0xf817('0x85')]>0x0&&_0x8c1412['setSelection'](_0x1be413);for(const _0x593d26 of _0x362bc5)_0x593d26['detach']();});});});}function _0x35c177(_0xd6643c){_0x14755f[_0xf817('0x16')]['change'](_0x297011=>{const _0x579047=Array['from'](_0x3f8990[_0xf817('0x4b')]())[_0xf817('0x50')](_0x1ec121=>_0x3eb9cb[_0xf817('0x77')](_0x1ec121)),_0xdd3aac=[];for(const _0x5b2919 of _0xd6643c)for(const _0x296e30 of _0x5b2919[_0xf817('0x60')]({'shallow':!0x0}))_0xdd3aac[_0xf817('0x15')](_0x296e30);for(const _0x467f06 of _0xdd3aac)_0xf817('0x20')!=_0x467f06[_0xf817('0xc')][_0xf817('0x7d')]&&(_0x297011['setSelection'](_0x297011[_0xf817('0xb')](_0x467f06,0x0)),_0x14755f[_0xf817('0x10')][_0xf817('0x86')](_0xf817('0x40'))[_0xf817('0x65')](),_0x14755f[_0xf817('0x3d')](_0xf817('0x40'),{'forceDefaultExecution':!0x0}));const _0x5609df=_0x579047[_0xf817('0x69')](_0x1a36ae=>_0xf817('0x20')!=_0x1a36ae[_0xf817('0xc')][_0xf817('0x7d')]);_0x5609df[_0xf817('0x85')]>0x0&&_0x297011[_0xf817('0x6')](_0x5609df);for(const _0x16aa4f of _0x579047)_0x16aa4f['detach']();});}function _0x3142d7(_0x49d734,_0x29bf41){return _0x29bf41[_0xf817('0x44')](_0xf418b1=>_0x49d734[_0xf817('0x4a')](_0x64e547=>_0x64e547['end'][_0xf817('0x76')](_0xf418b1[_0xf817('0x2d')])||_0xf418b1[_0xf817('0x13')][_0xf817('0x76')](_0x64e547[_0xf817('0x2d')])));}function _0xfe1fbd(_0x4078fe,_0x288143){return _0x4078fe['some'](_0x1f3ed0=>_0x288143[_0xf817('0x4a')](_0x178891=>_0x1f3ed0[_0xf817('0x13')][_0xf817('0x32')](_0x178891[_0xf817('0x2d')])));}_0x14755f['data'][_0xf817('0x74')]['on'](_0xf817('0x2f'),(_0x3b49a4,_0x2d25f3,_0x15b013)=>{if(!_0x15b013['options'][_0xf817('0x5d')])return;const _0x282451=_0x2d25f3['item'];if(!_0x282451)return;const _0x463271=_0x15b013[_0xf817('0x56')][_0xf817('0x5')](_0x282451);function _0x3d29bf(_0x172ced){return Array[_0xf817('0x51')](_0x172ced)?_0x172ced:[_0x172ced];}_0x463271&&'tableCell'===_0x282451[_0xf817('0x36')]&&_0x8e5c63(_0x463271,_0x15b013[_0xf817('0x4')],(_0x3ce190,_0x47c71d,_0x538e9b)=>_0x538e9b[_0xf817('0x1b')](_0x3d29bf(_0x47c71d[_0xf817('0x47')]),_0x3ce190),(_0x56820a,_0x4e1d87,_0x4c9448)=>_0x4c9448['removeClass'](_0x3d29bf(_0x4e1d87['classes']),_0x56820a));},{'priority':_0xf817('0x84')}),_0x3ccd91['_descriptionFactory'][_0xf817('0x68')](_0x53479e=>{if(_0xf817('0x61')!=_0x53479e[_0xf817('0x6c')]&&_0xf817('0x1a')!=_0x53479e[_0xf817('0x6c')])return;const _0x1668b7=_0x53479e[_0xf817('0x17')]();if(null!=_0x1668b7&&_0x1668b7['is'](_0xf817('0x83'),'table')){if(_0xf817('0x61')==_0x53479e[_0xf817('0x6c')]){const _0x5d2d42=_0x53479e[_0xf817('0x60')]()[_0xf817('0x69')](_0x55aa50=>_0x55aa50['is'](_0xf817('0x2b')))[_0xf817('0x50')](_0x35f388=>_0x35f388[_0xf817('0x41')]);if(_0x5d2d42[_0xf817('0x85')])return{'type':'insertion','content':_0x292fe2(_0x2c1680,_0xf817('0x3'),_0x292fe2(_0x2c1680,_0xf817('0x6b'),'\x22'+_0x5d2d42[_0xf817('0x3e')]('\x20')+'\x22'))};}if('deletion'==_0x53479e[_0xf817('0x6c')]){const _0x524c94=_0x53479e[_0xf817('0x60')]()['filter'](_0x4bcf96=>_0x4bcf96['is']('$textProxy'))['map'](_0x38339e=>_0x38339e[_0xf817('0x41')]);if(_0x524c94[_0xf817('0x85')])return{'type':_0xf817('0x1a'),'content':_0x292fe2(_0x2c1680,_0xf817('0x14'),_0x292fe2(_0x2c1680,_0xf817('0x6b'),'\x22'+_0x524c94[_0xf817('0x3e')]('\x20')+'\x22'))};}}}),_0x3ccd91[_0xf817('0x34')][_0xf817('0x68')](_0x580598=>{if(_0xf817('0xf')==_0x580598['subType']){const _0x1f7f58=_0x580598[_0xf817('0x60')]()[_0xf817('0x69')](_0x42f7be=>_0x42f7be['is'](_0xf817('0x2b')))[_0xf817('0x50')](_0x5dce4a=>_0x5dce4a[_0xf817('0x41')]),_0x3a4003=this[_0xf817('0x3a')](_0x580598),_0x52b446=_0x3a4003['maxRow']-_0x3a4003[_0xf817('0x49')]+0x1;if(_0xf817('0x61')==_0x580598['type'])return _0x1f7f58[_0xf817('0x85')]?{'type':_0xf817('0x61'),'content':_0x292fe2(_0x2c1680,_0xf817('0x3'),_0x292fe2(_0x2c1680,_0xf817('0x4f'),[_0x52b446,'\x22'+_0x1f7f58[_0xf817('0x3e')]('\x20')+'\x22']))}:{'type':_0xf817('0x61'),'content':_0x292fe2(_0x2c1680,_0xf817('0x3'),_0x292fe2(_0x2c1680,_0xf817('0x81'),_0x52b446))};if(_0xf817('0x1a')==_0x580598[_0xf817('0x6c')])return _0x1f7f58[_0xf817('0x85')]?{'type':'deletion','content':_0x292fe2(_0x2c1680,'*Remove:*\x20%0',_0x292fe2(_0x2c1680,_0xf817('0x4f'),[_0x52b446,'\x22'+_0x1f7f58[_0xf817('0x3e')]('\x20')+'\x22']))}:{'type':_0xf817('0x1a'),'content':_0x292fe2(_0x2c1680,_0xf817('0x14'),_0x292fe2(_0x2c1680,_0xf817('0x81'),_0x52b446))};}if('tableColumn'==_0x580598[_0xf817('0x5b')]){const _0x382e2c=_0x580598['getItems']()[_0xf817('0x69')](_0x57971d=>_0x57971d['is'](_0xf817('0x2b')))[_0xf817('0x50')](_0x19e39a=>_0x19e39a['data']),_0x294a29=this['_getSuggestionCoords'](_0x580598),_0x20a105=_0x294a29[_0xf817('0x2a')]-_0x294a29[_0xf817('0x3c')]+0x1;if(_0xf817('0x61')==_0x580598['type'])return _0x382e2c[_0xf817('0x85')]?{'type':_0xf817('0x61'),'content':_0x292fe2(_0x2c1680,_0xf817('0x3'),_0x292fe2(_0x2c1680,_0xf817('0x7a'),[_0x20a105,'\x22'+_0x382e2c[_0xf817('0x3e')]('\x20')+'\x22']))}:{'type':_0xf817('0x61'),'content':_0x292fe2(_0x2c1680,_0xf817('0x3'),_0x292fe2(_0x2c1680,_0xf817('0x30'),_0x20a105))};if('deletion'==_0x580598[_0xf817('0x6c')])return _0x382e2c[_0xf817('0x85')]?{'type':'deletion','content':_0x292fe2(_0x2c1680,'*Remove:*\x20%0',_0x292fe2(_0x2c1680,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20a105,'\x22'+_0x382e2c[_0xf817('0x3e')]('\x20')+'\x22']))}:{'type':_0xf817('0x1a'),'content':_0x292fe2(_0x2c1680,_0xf817('0x14'),_0x292fe2(_0x2c1680,_0xf817('0x30'),_0x20a105))};}}),_0x3ccd91[_0xf817('0x3b')][_0xf817('0x37')](_0xf817('0x61'),_0xf817('0xf'),_0xf817('0x26'),_0x596471),_0x3ccd91[_0xf817('0x3b')]['registerCustomCallback'](_0xf817('0x1a'),_0xf817('0xf'),_0xf817('0x72'),_0x596471),_0x3ccd91[_0xf817('0x3b')][_0xf817('0x37')](_0xf817('0x61'),_0xf817('0x70'),_0xf817('0x26'),_0x35c177),_0x3ccd91[_0xf817('0x3b')][_0xf817('0x37')](_0xf817('0x1a'),'tableColumn',_0xf817('0x72'),_0x35c177),_0x3ccd91[_0xf817('0x3b')][_0xf817('0x37')](_0xf817('0x61'),_0xf817('0x70'),_0xf817('0x3e'),_0x3142d7),_0x3ccd91[_0xf817('0x3b')][_0xf817('0x37')](_0xf817('0x1a'),_0xf817('0x70'),'join',_0x3142d7),_0x3ccd91[_0xf817('0x3b')]['registerCustomCallback']('insertion',_0xf817('0xf'),_0xf817('0x3e'),_0xfe1fbd),_0x3ccd91[_0xf817('0x3b')][_0xf817('0x37')](_0xf817('0x1a'),_0xf817('0xf'),_0xf817('0x3e'),_0xfe1fbd);}[_0xf817('0x6d')](){const _0x103351=this['editor'],_0x4c13fa=_0x103351[_0xf817('0x16')][_0xf817('0x45')][_0xf817('0xd')];return(_0x5c4dc3,_0x3dab7f)=>{_0x103351[_0xf817('0x16')]['change'](_0x33e698=>{const {commandName:_0x10ace4,commandParams:_0x20cc93}=_0x3dab7f;let _0x4af872=_0x5c4dc3[0x0][_0xf817('0x13')][_0xf817('0x1d')];_0x20cc93&&_0x20cc93[0x0]&&!0x1===_0x20cc93[0x0][_0xf817('0x63')]&&(_0x4af872=_0x5c4dc3[0x0][_0xf817('0x2d')][_0xf817('0x80')]);const _0x469606=_0x33e698[_0xf817('0x33')](_0x4af872);if(_0xf817('0x20')==_0x469606['root'][_0xf817('0x7d')])return;const _0x2b1554=Array[_0xf817('0x57')](_0x4c13fa['getRanges']())[_0xf817('0x50')](_0x1d1953=>_0x3eb9cb[_0xf817('0x77')](_0x1d1953));_0x33e698[_0xf817('0x6')](_0x469606),_0x103351[_0xf817('0x10')]['get'](_0x10ace4)['refresh'](),_0x20cc93[_0xf817('0x15')]({'forceDefaultExecution':!0x0}),_0x103351['execute'](_0x10ace4,..._0x20cc93);const _0x52a245=_0x2b1554[_0xf817('0x69')](_0x4018f3=>_0xf817('0x20')!=_0x4018f3[_0xf817('0xc')][_0xf817('0x7d')]);_0x52a245['length']>0x0&&_0x33e698[_0xf817('0x6')](_0x52a245);for(const _0x1469f2 of _0x2b1554)_0x1469f2[_0xf817('0x62')]();});};}['_getCoordsForCells'](_0xb3baf5){const _0x442b3e=this[_0xf817('0x18')]['plugins'][_0xf817('0x86')](_0xf817('0x24'));let _0x2cd05=Number[_0xf817('0x1')],_0x1a3044=Number[_0xf817('0x29')],_0x36a935=Number[_0xf817('0x1')],_0x1981bf=Number[_0xf817('0x29')];for(const _0x53795f of _0xb3baf5){if(_0xf817('0x20')==_0x53795f['root']['rootName'])continue;const {row:_0x25054b,column:_0x54c7dd}=_0x442b3e[_0xf817('0x12')](_0x53795f),_0x8ad2=_0x53795f['hasAttribute'](_0xf817('0x2c'))?_0x53795f[_0xf817('0x5e')](_0xf817('0x2c'))-0x1:0x0,_0x58005f=_0x53795f[_0xf817('0xa')](_0xf817('0x6e'))?_0x53795f[_0xf817('0x5e')](_0xf817('0x6e'))-0x1:0x0;_0x2cd05=_0x25054b<_0x2cd05?_0x25054b:_0x2cd05,_0x1a3044=_0x25054b+_0x8ad2>_0x1a3044?_0x25054b+_0x8ad2:_0x1a3044,_0x36a935=_0x54c7dd<_0x36a935?_0x54c7dd:_0x36a935,_0x1981bf=_0x54c7dd+_0x58005f>_0x1981bf?_0x54c7dd+_0x58005f:_0x1981bf;}return{'minRow':_0x2cd05,'maxRow':_0x1a3044,'minColumn':_0x36a935,'maxColumn':_0x1981bf};}[_0xf817('0x1f')](){const _0x1c0cdd=this[_0xf817('0x18')],_0x5756db=_0x1c0cdd[_0xf817('0x27')][_0xf817('0x86')]('TrackChangesEditing'),_0x42bade=_0x1c0cdd['plugins'][_0xf817('0x86')]('TableUtils');_0x1c0cdd[_0xf817('0x16')][_0xf817('0x45')]['on'](_0xf817('0x2e'),()=>{const _0x14577d=Array[_0xf817('0x57')](_0x1c0cdd[_0xf817('0x16')][_0xf817('0x45')]['differ'][_0xf817('0x1e')]());for(const {name:_0x2bc357,data:_0x3f685f}of _0x14577d){const {group:_0x4c16b4,id:_0x128d9a,subType:_0x437ce3}=_0x5756db[_0xf817('0x19')](_0x2bc357);if(_0xf817('0x7f')!=_0x4c16b4)continue;if(null!=_0x3f685f[_0xf817('0x71')])continue;const _0x4f2f7a=_0x5756db['getSuggestion'](_0x128d9a);this['_tablePostFixingSubtypes']['includes'](_0x437ce3)&&this[_0xf817('0x2')][_0xf817('0x55')](_0x4f2f7a);}},{'priority':_0xf817('0x5a')});const _0x5b85e1=(_0x308e6f,_0xcb626c)=>{let _0xcf17bc=!0x1;const _0x1d30a9=_0xcb626c[_0xf817('0x43')](_0x308e6f),_0x3dee9e=_0x308e6f['findAncestor'](_0xf817('0x64')),_0x4a1083=_0x42bade[_0xf817('0x12')](_0x308e6f);for(const _0x447edc of this['_tableSuggestions']){const _0x4c9cdf=_0x447edc['subType'],_0x4b0c75=_0x4c9cdf[_0xf817('0x25')](_0xf817('0x4d')),_0x33fcfd=_0x4c9cdf['substr'](_0x4b0c75?0xa:0x5),_0x33bfcf=_0x33fcfd['toLowerCase'](),_0x19998d=_0x33bfcf['substr'](0x0,0x3)+_0xf817('0x4e'),_0x19898e=_0xf817('0x87')+_0x33fcfd,_0x258df5='max'+_0x33fcfd;if(!_0x447edc[_0xf817('0x48')])continue;if(_0x3dee9e!=_0x447edc[_0xf817('0x67')]()['start'][_0xf817('0x78')](_0xf817('0x64')))continue;if(_0x447edc[_0xf817('0x7')](_0x1d30a9))continue;const _0x5f5769=_0x308e6f[_0xf817('0xa')](_0x19998d)?_0x308e6f[_0xf817('0x5e')](_0x19998d)-0x1:0x0,_0x3661f7=this[_0xf817('0x3a')](_0x447edc),_0x5072b3=_0x3661f7[_0x19898e],_0x46daa7=_0x3661f7[_0x258df5];_0x5072b3<=_0x4a1083[_0x33bfcf]&&_0x4a1083[_0x33bfcf]+_0x5f5769<=_0x46daa7&&(_0x447edc[_0xf817('0x38')](_0x1d30a9),_0xcf17bc=!0x0);}return _0xcf17bc;};_0x1c0cdd[_0xf817('0x16')][_0xf817('0x45')][_0xf817('0x53')](_0x407c60=>{let _0x4857ac=!0x1;for(const _0x548d11 of _0x1c0cdd[_0xf817('0x16')]['document'][_0xf817('0x6f')][_0xf817('0x75')]())if('insert'==_0x548d11[_0xf817('0x6c')]){if('tableRow'==_0x548d11[_0xf817('0x36')])for(const _0x126ad0 of _0x548d11[_0xf817('0x0')]['nodeAfter'][_0xf817('0x7e')]())_0x4857ac=_0x4857ac||_0x5b85e1(_0x126ad0,_0x407c60);else _0xf817('0x6a')==_0x548d11[_0xf817('0x36')]&&(_0x4857ac=_0x4857ac||_0x5b85e1(_0x548d11[_0xf817('0x0')][_0xf817('0x80')],_0x407c60));}return _0x4857ac;});}[_0xf817('0x3a')](_0x496abb){return this[_0xf817('0x82')](_0x496abb[_0xf817('0x4b')]()[_0xf817('0x50')](_0x2554f1=>_0x2554f1[_0xf817('0x2d')][_0xf817('0x80')]));}}function se(_0x3d11a8){return Array['from'](new Set(_0x3d11a8)[_0xf817('0x8')]());}
|
|
23
|
+
const _0xb443=['_descriptionFactory','registerDescriptionCallback','map','markMultiRangeInsertion','enqueueChange','item','isArray','getCellLocation','min','removeTableColumn','afterInit','from','_acceptFormatSuggestionCallbackFactory','addRange','differ','markMultiRangeDeletion','isInContent','refresh','editor','discard','every','selectTableColumn','getItems','isEqual','insertTableColumnLeft','$textProxy','insert','low','cell','classes','toViewElement','removeClass','startsWith','findAncestor','MAX_SAFE_INTEGER','*Insert:*\x20%0','addClass','selection','enableCommand','ELEMENT_TABLE_COLUMN_WITH_TEXT','length','downcastDispatcher','insertTableColumnRight','createRangeOn','ELEMENT_TABLE_COLUMN','ELEMENT_TABLE_ROW_WITH_TEXT','getSuggestion','name','colspan','$graveyard','has','mapper','toLowerCase','batch','*Remove:*\x20%0','hasAttribute','model','deletion','MIN_SAFE_INTEGER','ELEMENT_TABLE','detach','nodeBefore','createRangeIn','some','data','minRow','_getCoordsForCells','values','setSelection','registerCustomCallback','ELEMENT_TABLE_WITH_TEXT','substr','change','_getSuggestionCoords','fromRange','isIntersectingWithRange','end','get','push','rootName','insertTable','type','getColumnIndexes','_tableSuggestions','highest','nodeAfter','root','span','filter','first','getChangedMarkers','execute','oldRange','includes','tableRow','join','rowspan','plugins','position','insertTableRowAbove','locale','insertTableRowBelow','getRowIndexes','selectTableRow','TrackChangesEditing','ELEMENT_TABLE_ROW','element','createPositionAt','accept','TableUtils','left','table','max','insertion','document','getChildren','change:data','start','minColumn','getAttribute','commands','registerElementLabel','last','getRanges','getSelectionAffectedTableCells','addMarker:suggestion','subType','_tablePostFixingSubtypes','writer','_suggestionFactory','createTableWalker','forceValue','tableColumn','order','maxColumn','removeTableRow'];(function(_0x3a681f,_0xb44371){const _0x4b0aec=function(_0x899de6){while(--_0x899de6){_0x3a681f['push'](_0x3a681f['shift']());}};_0x4b0aec(++_0xb44371);}(_0xb443,0x159));const _0x4b0a=function(_0x3a681f,_0xb44371){_0x3a681f=_0x3a681f-0x0;let _0x4b0aec=_0xb443[_0x3a681f];return _0x4b0aec;};import{Plugin as _0x3a036f}from'ckeditor5/src/core.js';import{LiveRange as _0x2cf8aa}from'ckeditor5/src/engine.js';import{setHighlightHandling as _0x457e1e}from'ckeditor5/src/widget.js';import{getTranslation as _0x2a7062}from'../utils/common-translations.js';export default class mt extends _0x3a036f{constructor(_0x45ee08){super(_0x45ee08),this[_0x4b0a('0x36')]=['tableRow','tableColumn'],this[_0x4b0a('0xa')]=new Set();}[_0x4b0a('0x49')](){const _0x1937ca=this[_0x4b0a('0x51')],_0x4c99ea=_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x29')][_0x4b0a('0x64')];if(!_0x1937ca[_0x4b0a('0x18')][_0x4b0a('0x71')]('TableEditing'))return;const _0x412f11=_0x1937ca[_0x4b0a('0x1b')],_0x1b52da=_0x1937ca['plugins']['get'](_0x4b0a('0x1f')),_0xe2efa0=_0x1937ca[_0x4b0a('0x18')][_0x4b0a('0x4')]('TableUtils');_0x1b52da[_0x4b0a('0x3f')][_0x4b0a('0x30')](_0x4b0a('0x26'),_0x486814=>_0x2a7062(_0x412f11,_0x4b0a('0x7a'),_0x486814)),this['_setupColumnsRowsFixing'](),_0x1b52da[_0x4b0a('0x65')](_0x4b0a('0x7')),_0x1b52da[_0x4b0a('0x65')](_0x4b0a('0x1e')),_0x1b52da[_0x4b0a('0x65')](_0x4b0a('0x54'));for(const _0xd46449 of[_0x4b0a('0x1a'),_0x4b0a('0x1c')]){const _0x18bf99=_0x1937ca[_0x4b0a('0x2f')][_0x4b0a('0x4')](_0xd46449);_0x1b52da[_0x4b0a('0x65')](_0xd46449,_0xfcc0a0=>{_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x87')](_0xaa2cd4=>{_0xfcc0a0();const _0x4bb9af='above'===_0x18bf99[_0x4b0a('0x3c')],_0x3e5914=_0xe2efa0[_0x4b0a('0x33')](_0x4c99ea),_0x104d1b=_0xe2efa0[_0x4b0a('0x1d')](_0x3e5914),_0x54e2e4=_0x4bb9af?_0x104d1b[_0x4b0a('0x10')]-0x1:_0x104d1b[_0x4b0a('0x31')]+0x1,_0x1fe229=_0x3e5914[0x0]['findAncestor'](_0x4b0a('0x26')),_0x1e9125=_0xe2efa0['createTableWalker'](_0x1fe229,{'startRow':_0x54e2e4,'endRow':_0x54e2e4}),_0x1b2424=Array[_0x4b0a('0x4a')](_0x1e9125)[_0x4b0a('0x41')](_0x4c702f=>_0xaa2cd4['createRangeOn'](_0x4c702f[_0x4b0a('0x5b')]));_0x1b52da[_0x4b0a('0x42')](_0x1b2424,_0x4b0a('0x15'));});});}for(const _0x3783f0 of[_0x4b0a('0x57'),_0x4b0a('0x69')]){const _0x20dfec=_0x1937ca[_0x4b0a('0x2f')][_0x4b0a('0x4')](_0x3783f0);_0x1b52da[_0x4b0a('0x65')](_0x3783f0,_0x2c83e6=>{_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x87')](_0x4b24c9=>{_0x2c83e6();const _0x4f2bc9=_0x4b0a('0x25')===_0x20dfec[_0x4b0a('0x3c')],_0x44979b=_0xe2efa0[_0x4b0a('0x33')](_0x4c99ea),_0x476d04=_0xe2efa0[_0x4b0a('0x9')](_0x44979b),_0x3141c0=_0x4f2bc9?_0x476d04['first']-0x1:_0x476d04[_0x4b0a('0x31')]+0x1,_0x58209d=_0x44979b[0x0]['findAncestor'](_0x4b0a('0x26')),_0x2ad266=_0xe2efa0[_0x4b0a('0x39')](_0x58209d,{'startRow':0x0,'column':_0x3141c0,'includeAllSlots':!0x1}),_0x577300=Array[_0x4b0a('0x4a')](_0x2ad266)[_0x4b0a('0x41')](_0x120b69=>_0x4b24c9[_0x4b0a('0x6a')](_0x120b69[_0x4b0a('0x5b')]));_0x1b52da[_0x4b0a('0x42')](_0x577300,_0x4b0a('0x3b'));});});}for(const _0x4ca0c0 of[_0x4b0a('0x3e'),_0x4b0a('0x48')]){const _0x325694=_0x4ca0c0['substr'](0xb),_0x4d645b=_0x325694[_0x4b0a('0x73')](),_0x59a377=_0x4d645b[_0x4b0a('0x86')](0x0,0x3)+_0x4b0a('0xe'),_0xb60424='table'+_0x325694,_0x3e981d=_0x4b0a('0x47')+_0x325694,_0x151cf9=_0x4b0a('0x27')+_0x325694;_0x1b52da['enableCommand'](_0x4ca0c0,()=>{_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x87')](_0x2e6210=>{const _0x1b1d59=_0xe2efa0[_0x4b0a('0x33')](_0x4c99ea),_0x32e402=_0x1b1d59[0x0][_0x4b0a('0x60')](_0x4b0a('0x26'));let _0x54a399;if(_0x4b0a('0x3e')==_0x4ca0c0){const _0x112adb=_0xe2efa0[_0x4b0a('0x1d')](_0x1b1d59);_0x54a399={'startRow':_0x112adb[_0x4b0a('0x10')],'endRow':_0x112adb['last'],'includeAllSlots':!0x0};}else{const _0x2c00a1=_0xe2efa0['getColumnIndexes'](_0x1b1d59);_0x54a399={'startColumn':_0x2c00a1['first'],'endColumn':_0x2c00a1[_0x4b0a('0x31')],'includeAllSlots':!0x0};}const _0x45eec8=_0xe2efa0[_0x4b0a('0x39')](_0x32e402,_0x54a399),_0x4f0ac8=Array[_0x4b0a('0x4a')](_0x45eec8)[_0x4b0a('0x41')](({cell:_0x204901})=>_0x204901),_0x2a83b5=ie(_0x4f0ac8[_0x4b0a('0xf')](_0x5252c6=>_0x5252c6[_0x4b0a('0x76')](_0x59a377))),_0xf0abed=ie(_0x4f0ac8[_0x4b0a('0xf')](_0x384ad2=>!_0x384ad2[_0x4b0a('0x76')](_0x59a377)))[_0x4b0a('0x41')](_0x32d22e=>_0x2e6210[_0x4b0a('0x6a')](_0x32d22e)),_0x25d1fb=_0x1b52da[_0x4b0a('0x4e')](_0xf0abed,_0xb60424);if(_0x25d1fb&&(_0x4b0a('0x15')==_0x25d1fb[_0x4b0a('0x35')]||_0x4b0a('0x3b')==_0x25d1fb['subType'])){const _0x30c783=this[_0x4b0a('0x0')](_0x25d1fb);for(const _0x255e83 of _0x2a83b5){const _0x5e4e10=_0x2e6210[_0x4b0a('0x6a')](_0x255e83),_0x1f18c9=_0xe2efa0[_0x4b0a('0x46')](_0x255e83),_0x5f33a2=_0x255e83[_0x4b0a('0x2e')](_0x59a377)-0x1,_0x1af3dd=_0x30c783[_0x3e981d],_0x248b9a=_0x30c783[_0x151cf9];_0x1af3dd<=_0x1f18c9[_0x4d645b]&&_0x1f18c9[_0x4d645b]+_0x5f33a2<=_0x248b9a&&_0x25d1fb[_0x4b0a('0x4c')](_0x5e4e10);}}});});}function _0x288483(_0x4b10fe){const _0x4e7f7e=Array[_0x4b0a('0x4a')](_0x4c99ea[_0x4b0a('0x32')]())[_0x4b0a('0x41')](_0x2a21fb=>_0x2cf8aa[_0x4b0a('0x1')](_0x2a21fb));_0x1937ca[_0x4b0a('0x77')]['change'](_0x172f7b=>{const _0x375106=_0x172f7b[_0x4b0a('0x74')];_0x4b10fe=_0x4b10fe['filter'](_0x1b3e86=>'$graveyard'!=_0x1b3e86[_0x4b0a('0xd')][_0x4b0a('0x6')]),_0x172f7b[_0x4b0a('0x83')](_0x4b10fe),_0x1937ca[_0x4b0a('0x2f')][_0x4b0a('0x4')]('removeTableRow')[_0x4b0a('0x50')](),_0x1937ca[_0x4b0a('0x12')](_0x4b0a('0x3e'),{'forceDefaultExecution':!0x0}),_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x43')](()=>{_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x43')](_0x375106,_0x4d9db7=>{const _0x29bdb3=_0x4e7f7e[_0x4b0a('0xf')](_0xe55cb9=>_0x4b0a('0x70')!=_0xe55cb9[_0x4b0a('0xd')][_0x4b0a('0x6')]);_0x29bdb3[_0x4b0a('0x67')]>0x0&&_0x4d9db7[_0x4b0a('0x83')](_0x29bdb3);for(const _0x40211e of _0x4e7f7e)_0x40211e['detach']();});});});}function _0x26494a(_0x34e560){_0x1937ca['model'][_0x4b0a('0x87')](_0x20c72c=>{const _0x40ee4a=Array[_0x4b0a('0x4a')](_0x4c99ea[_0x4b0a('0x32')]())[_0x4b0a('0x41')](_0x5c62f8=>_0x2cf8aa[_0x4b0a('0x1')](_0x5c62f8)),_0x4da995=[];for(const _0x4941a1 of _0x34e560)for(const _0x483cd1 of _0x4941a1[_0x4b0a('0x55')]({'shallow':!0x0}))_0x4da995[_0x4b0a('0x5')](_0x483cd1);for(const _0x40065a of _0x4da995)_0x4b0a('0x70')!=_0x40065a[_0x4b0a('0xd')]['rootName']&&(_0x20c72c[_0x4b0a('0x83')](_0x20c72c[_0x4b0a('0x22')](_0x40065a,0x0)),_0x1937ca[_0x4b0a('0x2f')][_0x4b0a('0x4')]('removeTableColumn')[_0x4b0a('0x50')](),_0x1937ca[_0x4b0a('0x12')](_0x4b0a('0x48'),{'forceDefaultExecution':!0x0}));const _0x4cc8c8=_0x40ee4a[_0x4b0a('0xf')](_0x3adcff=>'$graveyard'!=_0x3adcff[_0x4b0a('0xd')][_0x4b0a('0x6')]);_0x4cc8c8['length']>0x0&&_0x20c72c[_0x4b0a('0x83')](_0x4cc8c8);for(const _0xcf385 of _0x40ee4a)_0xcf385[_0x4b0a('0x7b')]();});}function _0x294862(_0x4641ab,_0x43448a){return _0x43448a[_0x4b0a('0x53')](_0x340b3d=>_0x4641ab[_0x4b0a('0x7e')](_0x4e7b47=>_0x4e7b47['end'][_0x4b0a('0x56')](_0x340b3d[_0x4b0a('0x2c')])||_0x340b3d[_0x4b0a('0x3')][_0x4b0a('0x56')](_0x4e7b47['start'])));}function _0x472c91(_0x420a20,_0x2534d2){return _0x420a20[_0x4b0a('0x7e')](_0x2d115e=>_0x2534d2[_0x4b0a('0x7e')](_0x528aab=>_0x2d115e[_0x4b0a('0x3')]['isTouching'](_0x528aab[_0x4b0a('0x2c')])));}_0x1937ca[_0x4b0a('0x7f')][_0x4b0a('0x68')]['on'](_0x4b0a('0x34'),(_0x325e22,_0xdde29e,_0x20b814)=>{if(!_0x20b814['options']['showSuggestionHighlights'])return;const _0x102eb4=_0xdde29e[_0x4b0a('0x44')];if(!_0x102eb4)return;const _0x5370c7=_0x20b814[_0x4b0a('0x72')][_0x4b0a('0x5d')](_0x102eb4);function _0x4d153e(_0x5bf50e){return Array[_0x4b0a('0x45')](_0x5bf50e)?_0x5bf50e:[_0x5bf50e];}_0x5370c7&&'tableCell'===_0x102eb4[_0x4b0a('0x6e')]&&_0x457e1e(_0x5370c7,_0x20b814[_0x4b0a('0x37')],(_0x49c908,_0x53227e,_0x247f71)=>_0x247f71[_0x4b0a('0x63')](_0x4d153e(_0x53227e[_0x4b0a('0x5c')]),_0x49c908),(_0x5efdbf,_0x3bafe0,_0x2b6321)=>_0x2b6321[_0x4b0a('0x5e')](_0x4d153e(_0x3bafe0[_0x4b0a('0x5c')]),_0x5efdbf));},{'priority':_0x4b0a('0xb')}),_0x1b52da[_0x4b0a('0x3f')][_0x4b0a('0x40')](_0x452a55=>{if(_0x4b0a('0x28')!=_0x452a55['type']&&_0x4b0a('0x78')!=_0x452a55[_0x4b0a('0x8')])return;const _0x2ef2a6=_0x452a55['getContainedElement']();if(null!=_0x2ef2a6&&_0x2ef2a6['is'](_0x4b0a('0x21'),_0x4b0a('0x26'))){if(_0x4b0a('0x28')==_0x452a55[_0x4b0a('0x8')]){const _0xc71027=_0x452a55['getItems']()['filter'](_0x319e2f=>_0x319e2f['is'](_0x4b0a('0x58')))['map'](_0x2a25d1=>_0x2a25d1['data']);if(_0xc71027[_0x4b0a('0x67')])return{'type':_0x4b0a('0x28'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x62'),_0x2a7062(_0x412f11,_0x4b0a('0x85'),'\x22'+_0xc71027[_0x4b0a('0x16')]('\x20')+'\x22'))};}if(_0x4b0a('0x78')==_0x452a55[_0x4b0a('0x8')]){const _0x3bda46=_0x452a55['getItems']()[_0x4b0a('0xf')](_0x359e10=>_0x359e10['is']('$textProxy'))[_0x4b0a('0x41')](_0x394074=>_0x394074[_0x4b0a('0x7f')]);if(_0x3bda46[_0x4b0a('0x67')])return{'type':_0x4b0a('0x78'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x75'),_0x2a7062(_0x412f11,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3bda46['join']('\x20')+'\x22'))};}}}),_0x1b52da[_0x4b0a('0x3f')]['registerDescriptionCallback'](_0x1e5321=>{if(_0x4b0a('0x15')==_0x1e5321[_0x4b0a('0x35')]){const _0x1c8c44=_0x1e5321['getItems']()[_0x4b0a('0xf')](_0x19f50e=>_0x19f50e['is']('$textProxy'))[_0x4b0a('0x41')](_0x38908a=>_0x38908a[_0x4b0a('0x7f')]),_0x27f7c2=this[_0x4b0a('0x0')](_0x1e5321),_0x437d61=_0x27f7c2['maxRow']-_0x27f7c2[_0x4b0a('0x80')]+0x1;if(_0x4b0a('0x28')==_0x1e5321[_0x4b0a('0x8')])return _0x1c8c44[_0x4b0a('0x67')]?{'type':_0x4b0a('0x28'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x62'),_0x2a7062(_0x412f11,_0x4b0a('0x6c'),[_0x437d61,'\x22'+_0x1c8c44[_0x4b0a('0x16')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x2a7062(_0x412f11,_0x4b0a('0x62'),_0x2a7062(_0x412f11,_0x4b0a('0x20'),_0x437d61))};if(_0x4b0a('0x78')==_0x1e5321[_0x4b0a('0x8')])return _0x1c8c44['length']?{'type':_0x4b0a('0x78'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x75'),_0x2a7062(_0x412f11,_0x4b0a('0x6c'),[_0x437d61,'\x22'+_0x1c8c44[_0x4b0a('0x16')]('\x20')+'\x22']))}:{'type':_0x4b0a('0x78'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x75'),_0x2a7062(_0x412f11,'ELEMENT_TABLE_ROW',_0x437d61))};}if(_0x4b0a('0x3b')==_0x1e5321['subType']){const _0x533701=_0x1e5321[_0x4b0a('0x55')]()[_0x4b0a('0xf')](_0x10fa71=>_0x10fa71['is']('$textProxy'))[_0x4b0a('0x41')](_0x17c3e6=>_0x17c3e6[_0x4b0a('0x7f')]),_0x2749e9=this[_0x4b0a('0x0')](_0x1e5321),_0x455b5f=_0x2749e9[_0x4b0a('0x3d')]-_0x2749e9[_0x4b0a('0x2d')]+0x1;if(_0x4b0a('0x28')==_0x1e5321[_0x4b0a('0x8')])return _0x533701['length']?{'type':'insertion','content':_0x2a7062(_0x412f11,_0x4b0a('0x62'),_0x2a7062(_0x412f11,_0x4b0a('0x66'),[_0x455b5f,'\x22'+_0x533701[_0x4b0a('0x16')]('\x20')+'\x22']))}:{'type':_0x4b0a('0x28'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x62'),_0x2a7062(_0x412f11,'ELEMENT_TABLE_COLUMN',_0x455b5f))};if(_0x4b0a('0x78')==_0x1e5321['type'])return _0x533701[_0x4b0a('0x67')]?{'type':'deletion','content':_0x2a7062(_0x412f11,'*Remove:*\x20%0',_0x2a7062(_0x412f11,_0x4b0a('0x66'),[_0x455b5f,'\x22'+_0x533701[_0x4b0a('0x16')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x2a7062(_0x412f11,_0x4b0a('0x75'),_0x2a7062(_0x412f11,_0x4b0a('0x6b'),_0x455b5f))};}}),_0x1b52da[_0x4b0a('0x38')][_0x4b0a('0x84')](_0x4b0a('0x28'),_0x4b0a('0x15'),_0x4b0a('0x52'),_0x288483),_0x1b52da['_suggestionFactory']['registerCustomCallback'](_0x4b0a('0x78'),_0x4b0a('0x15'),_0x4b0a('0x23'),_0x288483),_0x1b52da[_0x4b0a('0x38')][_0x4b0a('0x84')]('insertion','tableColumn','discard',_0x26494a),_0x1b52da['_suggestionFactory']['registerCustomCallback'](_0x4b0a('0x78'),_0x4b0a('0x3b'),_0x4b0a('0x23'),_0x26494a),_0x1b52da[_0x4b0a('0x38')][_0x4b0a('0x84')](_0x4b0a('0x28'),'tableColumn',_0x4b0a('0x16'),_0x294862),_0x1b52da['_suggestionFactory']['registerCustomCallback']('deletion',_0x4b0a('0x3b'),_0x4b0a('0x16'),_0x294862),_0x1b52da[_0x4b0a('0x38')][_0x4b0a('0x84')](_0x4b0a('0x28'),_0x4b0a('0x15'),_0x4b0a('0x16'),_0x472c91),_0x1b52da['_suggestionFactory']['registerCustomCallback'](_0x4b0a('0x78'),_0x4b0a('0x15'),_0x4b0a('0x16'),_0x472c91);}[_0x4b0a('0x4b')](){const _0xf8f3f0=this[_0x4b0a('0x51')],_0x27f2b8=_0xf8f3f0[_0x4b0a('0x77')][_0x4b0a('0x29')]['selection'];return(_0x2dc2b1,_0xcedcb2)=>{_0xf8f3f0['model']['change'](_0xa1bb28=>{const {commandName:_0x4bf3e9,commandParams:_0x388657}=_0xcedcb2;let _0x182582=_0x2dc2b1[0x0][_0x4b0a('0x3')][_0x4b0a('0x7c')];_0x388657&&_0x388657[0x0]&&!0x1===_0x388657[0x0][_0x4b0a('0x3a')]&&(_0x182582=_0x2dc2b1[0x0][_0x4b0a('0x2c')][_0x4b0a('0xc')]);const _0x374f1c=_0xa1bb28[_0x4b0a('0x7d')](_0x182582);if(_0x4b0a('0x70')==_0x374f1c[_0x4b0a('0xd')][_0x4b0a('0x6')])return;const _0x418593=Array['from'](_0x27f2b8[_0x4b0a('0x32')]())['map'](_0x5ba6cd=>_0x2cf8aa['fromRange'](_0x5ba6cd));_0xa1bb28[_0x4b0a('0x83')](_0x374f1c),_0xf8f3f0[_0x4b0a('0x2f')][_0x4b0a('0x4')](_0x4bf3e9)[_0x4b0a('0x50')](),_0x388657[_0x4b0a('0x5')]({'forceDefaultExecution':!0x0}),_0xf8f3f0[_0x4b0a('0x12')](_0x4bf3e9,..._0x388657);const _0x5197ed=_0x418593['filter'](_0x5bd64d=>_0x4b0a('0x70')!=_0x5bd64d[_0x4b0a('0xd')][_0x4b0a('0x6')]);_0x5197ed[_0x4b0a('0x67')]>0x0&&_0xa1bb28[_0x4b0a('0x83')](_0x5197ed);for(const _0x287d0e of _0x418593)_0x287d0e[_0x4b0a('0x7b')]();});};}[_0x4b0a('0x81')](_0x19d2e8){const _0x4a5eb7=this[_0x4b0a('0x51')]['plugins']['get']('TableUtils');let _0x3ca16b=Number[_0x4b0a('0x61')],_0x469744=Number[_0x4b0a('0x79')],_0x10ff96=Number['MAX_SAFE_INTEGER'],_0x182c96=Number[_0x4b0a('0x79')];for(const _0x5aedb6 of _0x19d2e8){if(_0x4b0a('0x70')==_0x5aedb6[_0x4b0a('0xd')][_0x4b0a('0x6')])continue;const {row:_0x37b4d9,column:_0x597d6f}=_0x4a5eb7[_0x4b0a('0x46')](_0x5aedb6),_0x5560fe=_0x5aedb6['hasAttribute'](_0x4b0a('0x17'))?_0x5aedb6['getAttribute'](_0x4b0a('0x17'))-0x1:0x0,_0x1cfc66=_0x5aedb6[_0x4b0a('0x76')](_0x4b0a('0x6f'))?_0x5aedb6[_0x4b0a('0x2e')](_0x4b0a('0x6f'))-0x1:0x0;_0x3ca16b=_0x37b4d9<_0x3ca16b?_0x37b4d9:_0x3ca16b,_0x469744=_0x37b4d9+_0x5560fe>_0x469744?_0x37b4d9+_0x5560fe:_0x469744,_0x10ff96=_0x597d6f<_0x10ff96?_0x597d6f:_0x10ff96,_0x182c96=_0x597d6f+_0x1cfc66>_0x182c96?_0x597d6f+_0x1cfc66:_0x182c96;}return{'minRow':_0x3ca16b,'maxRow':_0x469744,'minColumn':_0x10ff96,'maxColumn':_0x182c96};}['_setupColumnsRowsFixing'](){const _0x54d63c=this[_0x4b0a('0x51')],_0x5b92c5=_0x54d63c['plugins'][_0x4b0a('0x4')](_0x4b0a('0x1f')),_0x21fc0f=_0x54d63c[_0x4b0a('0x18')][_0x4b0a('0x4')](_0x4b0a('0x24'));_0x54d63c[_0x4b0a('0x77')]['document']['on'](_0x4b0a('0x2b'),()=>{const _0x5f3fca=Array[_0x4b0a('0x4a')](_0x54d63c[_0x4b0a('0x77')][_0x4b0a('0x29')]['differ'][_0x4b0a('0x11')]());for(const {name:_0x3cd51e,data:_0x39f37f}of _0x5f3fca){const {group:_0x359b8d,id:_0x4df6af,subType:_0x54320e}=_0x5b92c5['_splitMarkerName'](_0x3cd51e);if('suggestion'!=_0x359b8d)continue;if(null!=_0x39f37f[_0x4b0a('0x13')])continue;const _0x3de42f=_0x5b92c5[_0x4b0a('0x6d')](_0x4df6af);this[_0x4b0a('0x36')][_0x4b0a('0x14')](_0x54320e)&&this[_0x4b0a('0xa')]['add'](_0x3de42f);}},{'priority':_0x4b0a('0x5a')});const _0x1cc39b=(_0x549505,_0x5c62d6)=>{let _0x4964a9=!0x1;const _0xa64357=_0x5c62d6[_0x4b0a('0x6a')](_0x549505),_0x1a748f=_0x549505[_0x4b0a('0x60')](_0x4b0a('0x26')),_0x575309=_0x21fc0f[_0x4b0a('0x46')](_0x549505);for(const _0x23c9cb of this[_0x4b0a('0xa')]){const _0x23086a=_0x23c9cb[_0x4b0a('0x35')],_0x8923df=_0x23086a[_0x4b0a('0x5f')]('tablePaste'),_0x2fdb9b=_0x23086a[_0x4b0a('0x86')](_0x8923df?0xa:0x5),_0xc56e4e=_0x2fdb9b[_0x4b0a('0x73')](),_0x290848=_0xc56e4e[_0x4b0a('0x86')](0x0,0x3)+_0x4b0a('0xe'),_0x41b09b=_0x4b0a('0x47')+_0x2fdb9b,_0x431a8f='max'+_0x2fdb9b;if(!_0x23c9cb[_0x4b0a('0x4f')])continue;if(_0x1a748f!=_0x23c9cb['getFirstRange']()[_0x4b0a('0x2c')][_0x4b0a('0x60')](_0x4b0a('0x26')))continue;if(_0x23c9cb[_0x4b0a('0x2')](_0xa64357))continue;const _0x45ae88=_0x549505[_0x4b0a('0x76')](_0x290848)?_0x549505['getAttribute'](_0x290848)-0x1:0x0,_0x2f94f8=this[_0x4b0a('0x0')](_0x23c9cb),_0x5d8f8c=_0x2f94f8[_0x41b09b],_0x300e7b=_0x2f94f8[_0x431a8f];_0x5d8f8c<=_0x575309[_0xc56e4e]&&_0x575309[_0xc56e4e]+_0x45ae88<=_0x300e7b&&(_0x23c9cb['addRange'](_0xa64357),_0x4964a9=!0x0);}return _0x4964a9;};_0x54d63c[_0x4b0a('0x77')][_0x4b0a('0x29')]['registerPostFixer'](_0x2f2bb3=>{let _0x40be17=!0x1;for(const _0x9a7ad8 of _0x54d63c['model'][_0x4b0a('0x29')][_0x4b0a('0x4d')]['getChanges']())if(_0x4b0a('0x59')==_0x9a7ad8[_0x4b0a('0x8')]){if(_0x4b0a('0x15')==_0x9a7ad8[_0x4b0a('0x6e')])for(const _0xda8f32 of _0x9a7ad8[_0x4b0a('0x19')][_0x4b0a('0xc')][_0x4b0a('0x2a')]())_0x40be17=_0x40be17||_0x1cc39b(_0xda8f32,_0x2f2bb3);else'tableCell'==_0x9a7ad8[_0x4b0a('0x6e')]&&(_0x40be17=_0x40be17||_0x1cc39b(_0x9a7ad8['position'][_0x4b0a('0xc')],_0x2f2bb3));}return _0x40be17;});}[_0x4b0a('0x0')](_0x2add85){return this[_0x4b0a('0x81')](_0x2add85[_0x4b0a('0x32')]()[_0x4b0a('0x41')](_0x459266=>_0x459266[_0x4b0a('0x2c')][_0x4b0a('0xc')]));}}function ie(_0x5401a4){return Array[_0x4b0a('0x4a')](new Set(_0x5401a4)[_0x4b0a('0x82')]());}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/tablecaption
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
import TrackChangesTable from './table';
|
|
6
|
-
/**
|
|
7
|
-
* Provides track changes plugin integration for {@link module:table/table~Table table feature} caption.
|
|
8
|
-
*/
|
|
9
|
-
export default class TrackChangesTableCaption extends Plugin {
|
|
10
|
-
/**
|
|
11
|
-
* @inheritDoc
|
|
12
|
-
*/
|
|
13
|
-
static get requires(): readonly [typeof TrackChangesTable];
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
afterInit(): void;
|
|
18
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/tablecaption
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
import TrackChangesTable from './table.js';
|
|
6
|
+
/**
|
|
7
|
+
* Provides track changes plugin integration for {@link module:table/table~Table table feature} caption.
|
|
8
|
+
*/
|
|
9
|
+
export default class TrackChangesTableCaption extends Plugin {
|
|
10
|
+
/**
|
|
11
|
+
* @inheritDoc
|
|
12
|
+
*/
|
|
13
|
+
static get requires(): readonly [typeof TrackChangesTable];
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
afterInit(): void;
|
|
18
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ef1=['requires','enableCommand','toggleTableCaption','TableCaptionEditing','get','plugins','has'];(function(_0x5064e5,_0x2ef1d6){const _0x4670c0=function(_0x5b4ae0){while(--_0x5b4ae0){_0x5064e5['push'](_0x5064e5['shift']());}};_0x4670c0(++_0x2ef1d6);}(_0x2ef1,0x1b6));const _0x4670=function(_0x5064e5,_0x2ef1d6){_0x5064e5=_0x5064e5-0x0;let _0x4670c0=_0x2ef1[_0x5064e5];return _0x4670c0;};import{Plugin as _0x187cd3}from'ckeditor5/src/core.js';import _0x1cd2ec from'./table.js';export default class It extends _0x187cd3{static get[_0x4670('0x3')](){return[_0x1cd2ec];}['afterInit'](){const _0x3c757b=this['editor'];if(!_0x3c757b[_0x4670('0x1')][_0x4670('0x2')](_0x4670('0x6')))return;_0x3c757b[_0x4670('0x1')][_0x4670('0x0')]('TrackChangesEditing')[_0x4670('0x4')](_0x4670('0x5'));}}
|