@ckeditor/ckeditor5-track-changes 36.0.0 → 37.0.0-rc.0
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 +1 -1
- package/ckeditor5-metadata.json +10 -0
- package/package.json +21 -6
- package/src/augmentation.d.ts +36 -0
- package/src/augmentation.js +23 -0
- package/src/commands/acceptsuggestioncommand.d.ts +20 -0
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +20 -0
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +20 -0
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -0
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +22 -0
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -0
- package/src/index.js +1 -1
- package/src/integrations/alignment.d.ts +13 -0
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +13 -0
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +13 -0
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +13 -0
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +13 -0
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +10 -0
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +12 -0
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +13 -0
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +25 -0
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +11 -0
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +17 -0
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +13 -0
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.d.ts +13 -0
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +13 -0
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +13 -0
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +13 -0
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +13 -0
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +19 -0
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +14 -0
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +13 -0
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +11 -0
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +13 -0
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +13 -0
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +25 -0
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +13 -0
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +13 -0
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +13 -0
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +13 -0
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +13 -0
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +13 -0
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +11 -0
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +13 -0
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +14 -0
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +38 -0
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +17 -0
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +17 -0
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +22 -0
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +17 -0
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +17 -0
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableproperties.d.ts +23 -0
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/title.d.ts +13 -0
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +13 -0
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +17 -0
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +266 -0
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +151 -0
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +222 -0
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +53 -0
- package/src/trackchangesconfig.js +23 -0
- package/src/trackchangesdata.d.ts +38 -0
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +391 -0
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +34 -0
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +36 -0
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +166 -0
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +184 -0
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +5 -0
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +26 -0
- package/src/utils/utils.js +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/pagebreak
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:page-break/pagebreak~PageBreak page break feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesPageBreak extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a7f=['TrackChangesEditing','afterInit','has','pageBreak','registerElementLabel','locale','plugins','get'];(function(_0x4a2935,_0x5a7fce){const _0x4e201f=function(_0x3618d0){while(--_0x3618d0){_0x4a2935['push'](_0x4a2935['shift']());}};_0x4e201f(++_0x5a7fce);}(_0x5a7f,0x77));const _0x4e20=function(_0x4a2935,_0x5a7fce){_0x4a2935=_0x4a2935-0x0;let _0x4e201f=_0x5a7f[_0x4a2935];return _0x4e201f;};import{Plugin as _0x13ffb1}from'ckeditor5/src/core';import{getTranslation as _0x10de19}from'../utils/common-translations';export default class rt extends _0x13ffb1{[_0x4e20('0x2')](){const _0x3d8352=this['editor'];if(!_0x3d8352[_0x4e20('0x7')][_0x4e20('0x3')]('PageBreakEditing'))return;_0x3d8352[_0x4e20('0x7')][_0x4e20('0x0')](_0x4e20('0x1'))['enableCommand'](_0x4e20('0x4'));const _0x199305=_0x3d8352[_0x4e20('0x7')][_0x4e20('0x0')](_0x4e20('0x1')),_0x2e9726=_0x3d8352[_0x4e20('0x6')];_0x199305['_descriptionFactory'][_0x4e20('0x5')](_0x4e20('0x4'),_0x37adbc=>_0x10de19(_0x2e9726,'ELEMENT_PAGE_BREAK',_0x37adbc));}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/paragraph
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for paragraph feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesParagraph extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b3d=['get','markBlockFormat','isTouching','insertParagraph','schema','change','afterInit','start','isBlock','toViewPosition','name','span','_descriptionFactory','downcastDispatcher','selection','includes','registerElementLabel','activeMarkers','ck-suggestion-marker-split','blockName','type','registerDescriptionCallback','data','paragraph','writer','markerRange','commandName','format','bindElementToMarker','getSelectedBlocks','enableCommand','Paragraph','getItemLabel','addMarker:suggestion:insertion','editing','ELEMENT_PARAGRAPH','TrackChangesEditing','*Change\x20to:*\x20%0','plugins','isObject','parent','isLimit','from','insertion','consume','*Insert:*\x20%0','model','options','showSuggestionHighlights','consumable','nodeAfter','has','markerName','ck-suggestion-marker--active','checkChild','mapper','document','getFirstRange'];(function(_0x490c1d,_0x5b3d20){const _0x44cd76=function(_0xc42f73){while(--_0xc42f73){_0x490c1d['push'](_0x490c1d['shift']());}};_0x44cd76(++_0x5b3d20);}(_0x5b3d,0x197));const _0x44cd=function(_0x490c1d,_0x5b3d20){_0x490c1d=_0x490c1d-0x0;let _0x44cd76=_0x5b3d[_0x490c1d];return _0x44cd76;};import{Plugin as _0x14fb1b}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x2c7662}from'./utils';import{getTranslation as _0x3d32a2}from'../utils/common-translations';export default class at extends _0x14fb1b{[_0x44cd('0x5')](){const _0x386a94=this['editor'];if(!_0x386a94[_0x44cd('0x25')][_0x44cd('0x32')](_0x44cd('0x1e')))return;const _0x63130f=_0x386a94['locale'],_0x774bec=_0x386a94[_0x44cd('0x25')][_0x44cd('0x39')](_0x44cd('0x23'));_0x774bec[_0x44cd('0xb')][_0x44cd('0xf')](_0x44cd('0x16'),_0x407a03=>_0x3d32a2(_0x63130f,'ELEMENT_PARAGRAPH',_0x407a03)),_0x774bec[_0x44cd('0x1d')]('paragraph',(_0x4b85c5,_0x23a4ef={})=>{const _0x356128=_0x386a94[_0x44cd('0x2d')][_0x44cd('0x37')],_0x4e7307=_0x23a4ef[_0x44cd('0xd')]||_0x356128[_0x44cd('0xd')],_0x5260e2=Array[_0x44cd('0x29')](_0x4e7307[_0x44cd('0x1c')]())['filter'](_0x522b7e=>function(_0x1e92db,_0x55f8c7){return _0x55f8c7[_0x44cd('0x35')](_0x1e92db[_0x44cd('0x27')],_0x44cd('0x16'))&&!_0x55f8c7[_0x44cd('0x26')](_0x1e92db)&&_0x44cd('0x16')!=_0x1e92db[_0x44cd('0x9')];}(_0x522b7e,this['editor'][_0x44cd('0x2d')][_0x44cd('0x3')]));_0x386a94['model'][_0x44cd('0x4')](()=>{for(const _0x33ba9b of _0x5260e2)_0x774bec[_0x44cd('0x0')](_0x33ba9b,{'commandName':'paragraph','commandParams':[],'formatGroupId':_0x44cd('0x12')},_0x2c7662(_0x33ba9b));});}),_0x774bec[_0x44cd('0xb')][_0x44cd('0x14')](_0x28ca9e=>{const {data:_0x339871}=_0x28ca9e;if(_0x339871&&_0x44cd('0x16')==_0x339871[_0x44cd('0x19')])return{'type':_0x44cd('0x1a'),'content':_0x3d32a2(_0x63130f,_0x44cd('0x24'),_0x3d32a2(_0x63130f,_0x44cd('0x22')))};}),_0x774bec[_0x44cd('0x1d')](_0x44cd('0x2')),_0x386a94[_0x44cd('0x21')][_0x44cd('0xc')]['on'](_0x44cd('0x20'),tr(_0x386a94),{'priority':'highest'}),_0x386a94[_0x44cd('0x15')]['downcastDispatcher']['on'](_0x44cd('0x20'),(_0x31b3dd,_0x3b9e67,_0x15bc36)=>{_0x15bc36[_0x44cd('0x2e')][_0x44cd('0x2f')]&&tr(_0x386a94,{'showActiveMarker':!0x1})(_0x31b3dd,_0x3b9e67,_0x15bc36);},{'priority':'highest'});const _0x1147b3=_0x774bec[_0x44cd('0xb')];_0x1147b3[_0x44cd('0x14')](_0x2ddf1f=>{if(_0x44cd('0x2a')!==_0x2ddf1f[_0x44cd('0x13')])return;const {start:_0x2efa8f,end:_0x27617b}=_0x2ddf1f[_0x44cd('0x38')]();if(!_0x2efa8f[_0x44cd('0x1')](_0x27617b)||!_0x2efa8f[_0x44cd('0x31')])return;const _0x15df47=_0x386a94[_0x44cd('0x2d')][_0x44cd('0x3')],_0x1cea63=_0x2efa8f[_0x44cd('0x31')];return _0x15df47[_0x44cd('0x7')](_0x1cea63)&&!_0x15df47[_0x44cd('0x28')](_0x1cea63)&&_0x15df47[_0x44cd('0x35')](_0x1cea63,'$text')?{'type':_0x44cd('0x2a'),'content':_0x3d32a2(_0x63130f,_0x44cd('0x2c'),_0x1147b3[_0x44cd('0x1f')](_0x1cea63,0x1))}:void 0x0;});}}function tr(_0x43f8a1,{showActiveMarker:_0x19943c=!0x0}={}){return(_0x18137e,_0x22ebe1,_0x3c0f92)=>{const _0x95f9d1=_0x43f8a1[_0x44cd('0x25')][_0x44cd('0x39')](_0x44cd('0x23')),_0x31c194=_0x22ebe1[_0x44cd('0x18')][_0x44cd('0x6')],_0x5c87b2=_0x22ebe1[_0x44cd('0x18')]['end'],_0x3d6245=_0x43f8a1[_0x44cd('0x2d')][_0x44cd('0x3')];if(!_0x31c194[_0x44cd('0x1')](_0x5c87b2)||!_0x31c194[_0x44cd('0x31')])return;const _0x30567d=_0x31c194['nodeAfter'];if(_0x3d6245[_0x44cd('0x7')](_0x30567d)&&!_0x3d6245[_0x44cd('0x28')](_0x30567d)&&_0x3d6245[_0x44cd('0x35')](_0x30567d,'$text')){if(!_0x3c0f92[_0x44cd('0x30')][_0x44cd('0x2b')](_0x22ebe1[_0x44cd('0x18')],_0x18137e[_0x44cd('0x9')]))return;const _0x2212a0=_0x3c0f92[_0x44cd('0x17')]['createUIElement'](_0x44cd('0xa'),{'class':_0x44cd('0x11')}),_0x2e13b2=_0x3c0f92[_0x44cd('0x36')][_0x44cd('0x8')](_0x5c87b2);_0x19943c&&_0x95f9d1[_0x44cd('0x10')][_0x44cd('0xe')](_0x22ebe1[_0x44cd('0x33')])&&_0x3c0f92['writer']['addClass'](_0x44cd('0x34'),_0x2212a0),_0x3c0f92[_0x44cd('0x17')]['insert'](_0x2e13b2,_0x2212a0),_0x3c0f92[_0x44cd('0x36')][_0x44cd('0x1b')](_0x2212a0,_0x22ebe1[_0x44cd('0x33')]);}};}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7c98=['get','*Remove\x20all\x20formatting*','editor','getItems','format','getAttributes','document','getRanges','removeFormat','createRangeOn','schema','locale','model','TrackChangesEditing','afterInit','registerDescriptionCallback','change','getAttributeProperties','from','isCollapsed','plugins','RemoveFormatEditing','commandName','selection'];(function(_0x2890c6,_0x7c981b){const _0x11b4dc=function(_0xd39caf){while(--_0xd39caf){_0x2890c6['push'](_0x2890c6['shift']());}};_0x11b4dc(++_0x7c981b);}(_0x7c98,0x10e));const _0x11b4=function(_0x2890c6,_0x7c981b){_0x2890c6=_0x2890c6-0x0;let _0x11b4dc=_0x7c98[_0x2890c6];return _0x11b4dc;};import{Plugin as _0x499edd}from'ckeditor5/src/core';import{getTranslation as _0x27b904}from'../utils/common-translations';export default class ct extends _0x499edd{[_0x11b4('0x8')](){const _0xcbc69a=this[_0x11b4('0x14')];if(!_0xcbc69a[_0x11b4('0xe')]['has'](_0x11b4('0xf')))return;const _0x182e23=_0xcbc69a['plugins'][_0x11b4('0x12')](_0x11b4('0x7'));_0x182e23['enableCommand'](_0x11b4('0x2'),_0x32c113=>{const _0x3249fb=_0xcbc69a[_0x11b4('0x6')][_0x11b4('0x0')][_0x11b4('0x11')];_0x3249fb[_0x11b4('0xd')]?_0x32c113():_0xcbc69a[_0x11b4('0x6')][_0x11b4('0xa')](()=>{const _0x3161d3=Array[_0x11b4('0xc')](_0x3249fb[_0x11b4('0x1')]());for(const _0x30e224 of _0x3161d3)for(const _0x1e6d16 of _0x30e224[_0x11b4('0x15')]())ro(_0x1e6d16,_0xcbc69a['model'][_0x11b4('0x4')])&&_0x182e23['markInlineFormat'](_0xcbc69a[_0x11b4('0x6')][_0x11b4('0x3')](_0x1e6d16),{'commandName':_0x11b4('0x2'),'commandParams':[]});});}),_0x182e23['_descriptionFactory'][_0x11b4('0x9')](_0x316bbc=>{const {data:_0x2f12cf}=_0x316bbc;if(_0x2f12cf&&_0x11b4('0x2')==_0x2f12cf[_0x11b4('0x10')])return{'type':_0x11b4('0x16'),'content':_0x27b904(_0xcbc69a[_0x11b4('0x5')],_0x11b4('0x13'))};});}}function ro(_0x16ed38,_0x5e716e){for(const [_0x528bf8]of _0x16ed38[_0x11b4('0x17')]()){const _0x210668=_0x5e716e[_0x11b4('0xb')](_0x528bf8);if(_0x210668&&_0x210668['isFormatting'])return!0x0;}return!0x1;}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5317=['RestrictedEditingModeEditing','acceptSuggestion','plugins','discardAllSuggestions','discardSelectedSuggestions','get','acceptAllSuggestions','goToNextRestrictedEditingException','enableCommand','has','goToPreviousRestrictedEditingException','afterInit','TrackChangesEditing','acceptSelectedSuggestions'];(function(_0x6e4852,_0x531710){const _0x3448d3=function(_0x385fba){while(--_0x385fba){_0x6e4852['push'](_0x6e4852['shift']());}};_0x3448d3(++_0x531710);}(_0x5317,0x80));const _0x3448=function(_0x6e4852,_0x531710){_0x6e4852=_0x6e4852-0x0;let _0x3448d3=_0x5317[_0x6e4852];return _0x3448d3;};import{Plugin as _0xa885f5}from'ckeditor5/src/core';export default class ht extends _0xa885f5{[_0x3448('0x9')](){const _0x4f4add=this['editor'];if(!_0x4f4add[_0x3448('0x0')][_0x3448('0x7')](_0x3448('0xc')))return;const _0xa39a4a=_0x4f4add[_0x3448('0x0')][_0x3448('0x3')](_0x3448('0xa'));_0xa39a4a[_0x3448('0x6')](_0x3448('0x8')),_0xa39a4a[_0x3448('0x6')](_0x3448('0x5'));const _0x4f86f0=_0x4f4add[_0x3448('0x0')][_0x3448('0x3')](_0x3448('0xc'));_0x4f86f0[_0x3448('0x6')]('trackChanges'),_0x4f86f0['enableCommand'](_0x3448('0xd')),_0x4f86f0[_0x3448('0x6')]('discardSuggestion'),_0x4f86f0['enableCommand'](_0x3448('0x4')),_0x4f86f0[_0x3448('0x6')](_0x3448('0x1')),_0x4f86f0['enableCommand'](_0x3448('0xb')),_0x4f86f0[_0x3448('0x6')](_0x3448('0x2'));}}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/shiftentercommand
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:enter/shiftentercommand~ShiftEnterCommand enter command}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesShiftEnterCommand extends Plugin {
|
|
9
|
+
static get requires(): PluginDependencies;
|
|
10
|
+
init(): void;
|
|
11
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1245=['createUIElement','test','consumable','element','ck-suggestion-marker--active','includes','requires','model','editing','addMarker:suggestion:insertion','addMarker:suggestion','ELEMENT_LINE_BREAK','registerElementLabel','editor','enableCommand','span','data','get','mapper','options','getItems','plugins','split','markerRange','toViewPosition','writer','softBreak','bindElementToMarker','insert','addMarker:suggestion:deletion','downcastDispatcher','deletion','markerName','shiftEnter','high','init'];(function(_0x3fb26c,_0x12450f){const _0x17a130=function(_0x111bf6){while(--_0x111bf6){_0x3fb26c['push'](_0x3fb26c['shift']());}};_0x17a130(++_0x12450f);}(_0x1245,0x16f));const _0x17a1=function(_0x3fb26c,_0x12450f){_0x3fb26c=_0x3fb26c-0x0;let _0x17a130=_0x1245[_0x3fb26c];return _0x17a130;};import{Plugin as _0x5a5608}from'ckeditor5/src/core';import{ShiftEnter as _0x4b2a86}from'ckeditor5/src/enter';import{getTranslation as _0x97b2e6}from'../utils/common-translations';export default class ut extends _0x5a5608{static get[_0x17a1('0x23')](){return[_0x4b2a86];}[_0x17a1('0x1c')](){const _0x12caff=this[_0x17a1('0x6')],_0x1b6fb8=_0x12caff[_0x17a1('0xe')][_0x17a1('0xa')]('TrackChangesEditing');_0x1b6fb8[_0x17a1('0x7')](_0x17a1('0x1a')),_0x12caff[_0x17a1('0x1')][_0x17a1('0x17')]['on'](_0x17a1('0x2'),re(_0x12caff),{'priority':'high'}),_0x12caff[_0x17a1('0x1')][_0x17a1('0x17')]['on'](_0x17a1('0x16'),re(_0x12caff),{'priority':_0x17a1('0x1b')}),_0x12caff[_0x17a1('0x9')][_0x17a1('0x17')]['on'](_0x17a1('0x3'),(_0x23df02,_0x26e1d9,_0x55fe60)=>{_0x55fe60[_0x17a1('0xc')]['showSuggestionHighlights']&&re(_0x12caff,{'showActiveMarker':!0x1})(_0x23df02,_0x26e1d9,_0x55fe60);}),_0x1b6fb8['_descriptionFactory'][_0x17a1('0x5')](_0x17a1('0x13'),_0x532a1e=>_0x97b2e6(_0x12caff['locale'],_0x17a1('0x4'),_0x532a1e));}}function re(_0x40b42b,{showActiveMarker:_0x5a3f66=!0x0}={}){return(_0x12f9cb,_0x56b379,_0x58918a)=>{const _0x2c70ac=_0x40b42b[_0x17a1('0xe')][_0x17a1('0xa')]('TrackChangesEditing');if(!_0x58918a[_0x17a1('0x1f')][_0x17a1('0x1e')](_0x56b379[_0x17a1('0x10')],_0x12f9cb['name']))return;const _0x338a38=_0x40b42b[_0x17a1('0x0')];for(const _0x31b124 of _0x56b379[_0x17a1('0x10')][_0x17a1('0xd')]()){if(!_0x31b124['is'](_0x17a1('0x20'),'softBreak'))continue;const _0xe3d35e=_0x17a1('0x18')==_0x56b379[_0x17a1('0x19')][_0x17a1('0xf')](':')[0x1]?'merge':_0x17a1('0xf'),_0x139983=_0x58918a[_0x17a1('0x12')][_0x17a1('0x1d')](_0x17a1('0x8'),{'class':'ck-suggestion-marker-'+_0xe3d35e}),_0x21ea8b=_0x58918a['mapper'][_0x17a1('0x11')](_0x338a38['createPositionBefore'](_0x31b124));_0x5a3f66&&_0x2c70ac['activeMarkers'][_0x17a1('0x22')](_0x56b379[_0x17a1('0x19')])&&_0x58918a[_0x17a1('0x12')]['addClass'](_0x17a1('0x21'),_0x139983),_0x58918a['writer'][_0x17a1('0x15')](_0x21ea8b,_0x139983),_0x58918a[_0x17a1('0xb')][_0x17a1('0x14')](_0x139983,_0x56b379[_0x17a1('0x19')]);}};}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x308e=['_descriptionFactory','FORMAT_RESTRICTED_DISABLED','forceValue','commands','enableCommand','change','restrictedEditingException','markInlineFormat','document','get','getRanges','StandardEditingModeEditing','format','has','commandParams','commandName','isCollapsed','registerDescriptionCallback','locale','from','FORMAT_RESTRICTED_ENABLED','plugins'];(function(_0x1fb613,_0x308ebb){const _0x35da6c=function(_0xed1eab){while(--_0xed1eab){_0x1fb613['push'](_0x1fb613['shift']());}};_0x35da6c(++_0x308ebb);}(_0x308e,0xe9));const _0x35da=function(_0x1fb613,_0x308ebb){_0x1fb613=_0x1fb613-0x0;let _0x35da6c=_0x308e[_0x1fb613];return _0x35da6c;};import{Plugin as _0x1510fb}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x53ee10}from'./utils';import{getTranslation as _0xa29d32}from'../utils/common-translations';export default class ft extends _0x1510fb{['afterInit'](){const _0xcbad9f=this['editor'],_0x3c0b97=_0xcbad9f['model'],_0x92e67d=_0xcbad9f[_0x35da('0x5')];if(!_0xcbad9f['plugins'][_0x35da('0x0')](_0x35da('0x14')))return;const _0x404695=_0xcbad9f[_0x35da('0x8')][_0x35da('0x12')]('TrackChangesEditing'),_0x275481=_0x35da('0xf'),_0x548e4d=_0xcbad9f[_0x35da('0xc')][_0x35da('0x12')](_0x275481);_0x404695[_0x35da('0xd')](_0x275481,(_0x1c7846,_0x195992={})=>{const _0x2a564c=_0x3c0b97[_0x35da('0x11')]['selection'];if(_0x2a564c[_0x35da('0x3')])return void _0x1c7846(_0x195992);const _0x1888f2=void 0x0!==_0x195992[_0x35da('0xb')]?_0x195992[_0x35da('0xb')]:!_0x548e4d['value'];_0x3c0b97[_0x35da('0xe')](()=>{const _0x326c90=Array[_0x35da('0x6')](_0x2a564c[_0x35da('0x13')]());for(const _0x37d2d1 of _0x326c90){const _0x5a0276=_0x1888f2?[_0x37d2d1]:_0x53ee10(_0x275481,_0x37d2d1,_0x3c0b97);for(const _0x4981e5 of _0x5a0276)_0x404695[_0x35da('0x10')](_0x4981e5,{'commandName':_0x275481,'commandParams':[{'forceValue':_0x1888f2}]});}});}),_0x404695[_0x35da('0x9')][_0x35da('0x4')](_0x1d7174=>{const {data:_0x4375e4}=_0x1d7174;if(_0x4375e4&&_0x4375e4[_0x35da('0x2')]==_0x275481)return _0x4375e4[_0x35da('0x1')][0x0][_0x35da('0xb')]?{'type':_0x35da('0x15'),'content':_0xa29d32(_0x92e67d,_0x35da('0x7'))}:{'type':'format','content':_0xa29d32(_0x92e67d,_0x35da('0xa'))};});}}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa27a=['*Format:*\x20%0','format','push','markInlineFormat','inline','add','createRangeOn','enabledStyles','isBlock','plugins','find','block','getSelectedBlocks','styleName','change','includes','commandName','name','forceValue','every','document','getAncestors','isCollapsed','modelElements','_descriptionFactory','markBlockFormat','toLowerCase','_getStyleDefinition','selection','getAttribute','Style','has','getRanges','config','TrackChangesEditing','from','enableCommand','model','*Remove\x20format:*\x20%0','style','style:','locale','DataSchema','commandParams','get','getItems'];(function(_0x5111d2,_0xa27a14){const _0x527141=function(_0x160d6b){while(--_0x160d6b){_0x5111d2['push'](_0x5111d2['shift']());}};_0x527141(++_0xa27a14);}(_0xa27a,0x1b8));const _0x5271=function(_0x5111d2,_0xa27a14){_0x5111d2=_0x5111d2-0x0;let _0x527141=_0xa27a[_0x5111d2];return _0x527141;};import{Plugin as _0x451c2d}from'ckeditor5/src/core';import{getTranslation as _0x26eaa3}from'../utils/common-translations';export default class lt extends _0x451c2d{['afterInit'](){const _0x45ac9e=this['editor'];if(!_0x45ac9e[_0x5271('0x1d')][_0x5271('0x5')](_0x5271('0x4')))return;const _0x1b39f6=_0x45ac9e['commands'][_0x5271('0x12')](_0x5271('0xd')),_0x3f547d=_0x45ac9e['plugins'][_0x5271('0x12')](_0x5271('0x8')),_0x41b85b=_0x45ac9e[_0x5271('0xf')],_0x4bb7c9=_0x45ac9e[_0x5271('0x1d')][_0x5271('0x12')](_0x5271('0x10')),_0xb4c40d=_0x45ac9e[_0x5271('0x1d')]['get']('StyleUtils')['normalizeConfig'](_0x4bb7c9,_0x45ac9e[_0x5271('0x7')][_0x5271('0x12')]('style.definitions'));_0x3f547d[_0x5271('0xa')](_0x5271('0xd'),(_0x105d5e,{styleName:_0x33c2cf})=>{const _0x4fbcf6=_0x45ac9e[_0x5271('0xb')][_0x5271('0x28')][_0x5271('0x2')],_0x36173f=this[_0x5271('0x1')](_0x33c2cf,_0xb4c40d);if(!_0x36173f)return;if(!_0x1b39f6[_0x5271('0x1b')][_0x5271('0x23')](_0x33c2cf))return;if(_0x4fbcf6[_0x5271('0x2a')]&&!_0x36173f[_0x5271('0x1c')])return void _0x105d5e({'styleName':_0x33c2cf});const _0x18042b=!_0x1b39f6['value'][_0x5271('0x23')](_0x36173f['name']);if(_0x36173f[_0x5271('0x1c')]){const _0x2ce508=function(_0x2f9612,_0xe1e38b){const _0x1b897a=new Set();for(const _0x57a865 of _0x2f9612){const _0x458a9b=_0x57a865[_0x5271('0x29')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0xdc0769 of _0x458a9b)if(_0xe1e38b[_0x5271('0x23')](_0xdc0769[_0x5271('0x25')])){_0x1b897a[_0x5271('0x19')](_0xdc0769);break;}}return _0x1b897a;}(_0x4fbcf6[_0x5271('0x20')](),_0x36173f[_0x5271('0x2b')]);_0x45ac9e['model'][_0x5271('0x22')](()=>{for(const _0x101342 of _0x2ce508)_0x3f547d[_0x5271('0x2d')](_0x101342,{'commandName':_0x5271('0xd'),'commandParams':[{'styleName':_0x33c2cf,'forceValue':_0x18042b}],'formatGroupId':_0x5271('0xe')+_0x33c2cf});});}else{let _0x2fa80c=Array['from'](_0x4fbcf6[_0x5271('0x6')]());if(!_0x18042b){const _0x2b1775=Array[_0x5271('0x9')](_0x4bb7c9['getDefinitionsForView'](_0x36173f['element'],!0x1))[0x0][_0x5271('0xb')],_0x3d9590=[];for(const _0xa7edc5 of _0x2fa80c){const _0x36e8ef=this['_getRangesWithClasses'](_0x45ac9e[_0x5271('0xb')],_0xa7edc5,_0x36173f['classes'],_0x2b1775);_0x3d9590[_0x5271('0x16')](..._0x36e8ef);}_0x2fa80c=_0x3d9590;}_0x45ac9e['model'][_0x5271('0x22')](()=>{for(const _0x387dcf of _0x2fa80c)_0x3f547d[_0x5271('0x17')](_0x387dcf,{'commandName':'style','commandParams':[{'styleName':_0x33c2cf,'forceValue':_0x18042b}]});});}}),_0x3f547d[_0x5271('0x2c')]['registerDescriptionCallback'](_0x1427d5=>{const {data:_0x41f379}=_0x1427d5;if(_0x41f379&&_0x5271('0xd')===_0x41f379[_0x5271('0x24')])return _0x41f379[_0x5271('0x11')][0x0][_0x5271('0x26')]?{'type':_0x5271('0x15'),'content':_0x26eaa3(_0x41b85b,_0x5271('0x14'),_0x41f379[_0x5271('0x11')][0x0][_0x5271('0x21')][_0x5271('0x0')]())}:{'type':_0x5271('0x15'),'content':_0x26eaa3(_0x41b85b,_0x5271('0xc'),_0x41f379['commandParams'][0x0][_0x5271('0x21')][_0x5271('0x0')]())};});}[_0x5271('0x1')](_0x59c04f,_0x15bd61){let _0x28eb06=_0x15bd61[_0x5271('0x1f')]['find'](_0x3a3469=>_0x3a3469[_0x5271('0x25')]===_0x59c04f);return _0x28eb06||(_0x28eb06=_0x15bd61[_0x5271('0x18')][_0x5271('0x1e')](_0x120010=>_0x120010[_0x5271('0x25')]===_0x59c04f)),_0x28eb06;}['_getRangesWithClasses'](_0x25fdbe,_0xf5d9a9,_0xe174c,_0x4202ff){const _0xa75e3=[];for(const _0x25fb85 of _0xf5d9a9[_0x5271('0x13')]()){const _0x85dcc6=_0x25fb85[_0x5271('0x3')](_0x4202ff);_0x85dcc6&&(_0xe174c[_0x5271('0x27')](_0xf020ed=>_0x85dcc6['classes'][_0x5271('0x23')](_0xf020ed))&&_0xa75e3[_0x5271('0x16')](_0x25fdbe[_0x5271('0x1a')](_0x25fb85)));}return _0xa75e3;}}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3ecc=['minRow','suggestion','plugins','length','get','accept','getRanges','nodeAfter','getSuggestion','getAttribute','registerElementLabel','getCellLocation','rootName','isTouching','getChildren','writer','root','options','start','insert','showSuggestionHighlights','toViewElement','cell','downcastDispatcher','from','rowspan','insertTableColumnRight','first','subType','tablePaste','getChanges','createRangeIn','TableEditing','MIN_SAFE_INTEGER','ELEMENT_TABLE_COLUMN','change:data','markMultiRangeDeletion','textProxy','findAncestor','createTableWalker','insertTableRowBelow','above','_tablePostFixingSubtypes','getSelectionAffectedTableCells','batch','TrackChangesEditing','colspan','_tableSuggestions','map','includes','document','refresh','*Insert:*\x20%0','oldRange','substr','createRangeOn','insertTableColumnLeft','has','maxRow','isArray','_setupColumnsRowsFixing','end','_getCoordsForCells','model','_splitMarkerName','commands','ELEMENT_TABLE','join','position','removeTableColumn','registerCustomCallback','startsWith','hasAttribute','addRange','push','ELEMENT_TABLE_COLUMN_WITH_TEXT','add','getItems','_getSuggestionCoords','ELEMENT_TABLE_WITH_TEXT','execute','classes','editor','every','*Remove:*\x20%0','table','isIntersectingWithRange','enqueueChange','nodeBefore','getContainedElement','registerPostFixer','type','toLowerCase','isInContent','_descriptionFactory','fromRange','removeTableRow','getColumnIndexes','max','createPositionAt','removeClass','insertTable','left','last','ELEMENT_TABLE_ROW_WITH_TEXT','some','insertion','min','tableRow','setSelection','isEqual','change','order','ELEMENT_TABLE_ROW','detach','selectTableColumn','enableCommand','addClass','tableCell','filter','data','selection','registerDescriptionCallback','differ','TableUtils','name','forceValue','maxColumn','_suggestionFactory','$graveyard','tableColumn','afterInit','mapper','span','getRowIndexes','getChangedMarkers','MAX_SAFE_INTEGER','deletion','markMultiRangeInsertion'];(function(_0xdf81e2,_0x3eccb5){const _0xe0247=function(_0x247da8){while(--_0x247da8){_0xdf81e2['push'](_0xdf81e2['shift']());}};_0xe0247(++_0x3eccb5);}(_0x3ecc,0x9e));const _0xe024=function(_0xdf81e2,_0x3eccb5){_0xdf81e2=_0xdf81e2-0x0;let _0xe0247=_0x3ecc[_0xdf81e2];return _0xe0247;};import{Plugin as _0x225fb5}from'ckeditor5/src/core';import{LiveRange as _0x455a87}from'ckeditor5/src/engine';import{setHighlightHandling as _0x29112c}from'ckeditor5/src/widget';import{getTranslation as _0x590e85}from'../utils/common-translations';export default class dt extends _0x225fb5{constructor(_0x539bcf){super(_0x539bcf),this['_tablePostFixingSubtypes']=[_0xe024('0x59'),_0xe024('0x6f')];}[_0xe024('0x70')](){const _0xa08c75=this[_0xe024('0x3f')],_0x58898c=_0xa08c75[_0xe024('0x2c')][_0xe024('0x1f')]['selection'];if(!_0xa08c75[_0xe024('0x7a')][_0xe024('0x26')](_0xe024('0xd')))return;const _0x20dcd4=_0xa08c75['locale'],_0x326517=_0xa08c75[_0xe024('0x7a')]['get'](_0xe024('0x1a')),_0x31e079=_0xa08c75[_0xe024('0x7a')]['get'](_0xe024('0x69'));_0x326517[_0xe024('0x4b')][_0xe024('0x82')](_0xe024('0x42'),_0x59f657=>_0x590e85(_0x20dcd4,_0xe024('0x2f'),_0x59f657)),this[_0xe024('0x29')](),_0x326517[_0xe024('0x61')](_0xe024('0x52')),_0x326517[_0xe024('0x61')]('selectTableRow'),_0x326517[_0xe024('0x61')](_0xe024('0x60'));for(const _0x144bd5 of['insertTableRowAbove',_0xe024('0x15')]){const _0xadc1af=_0xa08c75[_0xe024('0x2e')][_0xe024('0x7c')](_0x144bd5);_0x326517[_0xe024('0x61')](_0x144bd5,_0x10b15b=>{_0xa08c75['model'][_0xe024('0x5c')](_0x439085=>{_0x10b15b();const _0x9b7495=_0xe024('0x16')===_0xadc1af[_0xe024('0x5d')],_0x1677ae=_0x31e079[_0xe024('0x18')](_0x58898c),_0x3af9cc=_0x31e079['getRowIndexes'](_0x1677ae),_0x17536c=_0x9b7495?_0x3af9cc['first']-0x1:_0x3af9cc[_0xe024('0x54')]+0x1,_0x583585=_0x1677ae[0x0][_0xe024('0x13')](_0xe024('0x42')),_0x9e5c8a=_0x31e079[_0xe024('0x14')](_0x583585,{'startRow':_0x17536c,'endRow':_0x17536c}),_0x2c1752=Array[_0xe024('0x5')](_0x9e5c8a)['map'](_0x4aa2d3=>_0x439085[_0xe024('0x24')](_0x4aa2d3[_0xe024('0x3')]));_0x326517[_0xe024('0x77')](_0x2c1752,'tableRow');});});}for(const _0x72775c of[_0xe024('0x25'),_0xe024('0x7')]){const _0x395914=_0xa08c75[_0xe024('0x2e')]['get'](_0x72775c);_0x326517[_0xe024('0x61')](_0x72775c,_0x101387=>{_0xa08c75[_0xe024('0x2c')]['change'](_0x1cd7eb=>{_0x101387();const _0x3dbf9d=_0xe024('0x53')===_0x395914[_0xe024('0x5d')],_0x328fce=_0x31e079[_0xe024('0x18')](_0x58898c),_0x55fd66=_0x31e079[_0xe024('0x4e')](_0x328fce),_0x368047=_0x3dbf9d?_0x55fd66[_0xe024('0x8')]-0x1:_0x55fd66[_0xe024('0x54')]+0x1,_0x20b94d=_0x328fce[0x0][_0xe024('0x13')](_0xe024('0x42')),_0x2d9938=_0x31e079['createTableWalker'](_0x20b94d,{'startRow':0x0,'column':_0x368047,'includeAllSlots':!0x1}),_0x558896=Array[_0xe024('0x5')](_0x2d9938)['map'](_0x1610f8=>_0x1cd7eb[_0xe024('0x24')](_0x1610f8['cell']));_0x326517[_0xe024('0x77')](_0x558896,'tableColumn');});});}for(const _0x4dd8c5 of[_0xe024('0x4d'),_0xe024('0x32')]){const _0x464c65=_0x4dd8c5['substr'](0xb),_0x2afb97=_0x464c65[_0xe024('0x49')](),_0x1cbc31=_0x2afb97[_0xe024('0x23')](0x0,0x3)+_0xe024('0x72'),_0x4a487b=_0xe024('0x42')+_0x464c65,_0x3e47c2=_0xe024('0x58')+_0x464c65,_0x1b85da=_0xe024('0x4f')+_0x464c65;_0x326517[_0xe024('0x61')](_0x4dd8c5,()=>{_0xa08c75[_0xe024('0x2c')][_0xe024('0x5c')](_0x3d3952=>{const _0x3d3fac=_0x31e079[_0xe024('0x18')](_0x58898c),_0x54beaf=_0x3d3fac[0x0]['findAncestor'](_0xe024('0x42'));let _0x31cafe;if(_0xe024('0x4d')==_0x4dd8c5){const _0xa022f6=_0x31e079[_0xe024('0x73')](_0x3d3fac);_0x31cafe={'startRow':_0xa022f6[_0xe024('0x8')],'endRow':_0xa022f6[_0xe024('0x54')],'includeAllSlots':!0x0};}else{const _0x1091ab=_0x31e079['getColumnIndexes'](_0x3d3fac);_0x31cafe={'startColumn':_0x1091ab[_0xe024('0x8')],'endColumn':_0x1091ab[_0xe024('0x54')],'includeAllSlots':!0x0};}const _0x4c7c05=_0x31e079[_0xe024('0x14')](_0x54beaf,_0x31cafe),_0x448dd8=Array[_0xe024('0x5')](_0x4c7c05)[_0xe024('0x1d')](({cell:_0x11fb76})=>_0x11fb76),_0x84ba24=le(_0x448dd8['filter'](_0x257fbc=>_0x257fbc[_0xe024('0x35')](_0x1cbc31))),_0x261a87=le(_0x448dd8[_0xe024('0x64')](_0x4894fe=>!_0x4894fe['hasAttribute'](_0x1cbc31)))[_0xe024('0x1d')](_0x4c7f41=>_0x3d3952['createRangeOn'](_0x4c7f41)),_0x52e6fb=_0x326517[_0xe024('0x11')](_0x261a87,_0x4a487b);if(_0x52e6fb&&(_0xe024('0x59')==_0x52e6fb[_0xe024('0x9')]||_0xe024('0x6f')==_0x52e6fb['subType'])){const _0x5e303f=this[_0xe024('0x3b')](_0x52e6fb);for(const _0x1e131e of _0x84ba24){const _0x331ab5=_0x3d3952[_0xe024('0x24')](_0x1e131e),_0x548551=_0x31e079['getCellLocation'](_0x1e131e),_0x16f874=_0x1e131e[_0xe024('0x81')](_0x1cbc31)-0x1,_0x144ab5=_0x5e303f[_0x3e47c2],_0x4af4f7=_0x5e303f[_0x1b85da];_0x144ab5<=_0x548551[_0x2afb97]&&_0x548551[_0x2afb97]+_0x16f874<=_0x4af4f7&&_0x52e6fb['addRange'](_0x331ab5);}}});});}function _0x31e932(_0x167ba6){const _0x84a4d3=Array[_0xe024('0x5')](_0x58898c[_0xe024('0x7e')]())[_0xe024('0x1d')](_0x26671b=>_0x455a87[_0xe024('0x4c')](_0x26671b));_0xa08c75[_0xe024('0x2c')][_0xe024('0x5c')](_0x1b2e03=>{const _0x44db1f=_0x1b2e03[_0xe024('0x19')];_0x167ba6=_0x167ba6[_0xe024('0x64')](_0x4c8ccc=>_0xe024('0x6e')!=_0x4c8ccc[_0xe024('0x88')][_0xe024('0x84')]),_0x1b2e03['setSelection'](_0x167ba6),_0xa08c75[_0xe024('0x2e')][_0xe024('0x7c')]('removeTableRow')[_0xe024('0x20')](),_0xa08c75[_0xe024('0x3d')](_0xe024('0x4d'),{'forceDefaultExecution':!0x0}),_0xa08c75[_0xe024('0x2c')][_0xe024('0x44')](()=>{_0xa08c75[_0xe024('0x2c')]['enqueueChange'](_0x44db1f,_0x13707c=>{const _0x4f4a8b=_0x84a4d3[_0xe024('0x64')](_0x437dcb=>_0xe024('0x6e')!=_0x437dcb[_0xe024('0x88')][_0xe024('0x84')]);_0x4f4a8b[_0xe024('0x7b')]>0x0&&_0x13707c['setSelection'](_0x4f4a8b);for(const _0x2a2a0 of _0x84a4d3)_0x2a2a0['detach']();});});});}function _0x5353cf(_0x14d8dc){_0xa08c75[_0xe024('0x2c')][_0xe024('0x5c')](_0x51694b=>{const _0x5c3206=Array['from'](_0x58898c['getRanges']())[_0xe024('0x1d')](_0x26cf7e=>_0x455a87[_0xe024('0x4c')](_0x26cf7e)),_0x86fdcf=[];for(const _0x1ca02d of _0x14d8dc)for(const _0x509895 of _0x1ca02d[_0xe024('0x3a')]({'shallow':!0x0}))_0x86fdcf[_0xe024('0x37')](_0x509895);for(const _0x3e5960 of _0x86fdcf)_0xe024('0x6e')!=_0x3e5960[_0xe024('0x88')]['rootName']&&(_0x51694b[_0xe024('0x5a')](_0x51694b[_0xe024('0x50')](_0x3e5960,0x0)),_0xa08c75[_0xe024('0x2e')][_0xe024('0x7c')](_0xe024('0x32'))[_0xe024('0x20')](),_0xa08c75[_0xe024('0x3d')](_0xe024('0x32'),{'forceDefaultExecution':!0x0}));const _0x37ea6c=_0x5c3206[_0xe024('0x64')](_0x5dc66c=>_0xe024('0x6e')!=_0x5dc66c[_0xe024('0x88')][_0xe024('0x84')]);_0x37ea6c[_0xe024('0x7b')]>0x0&&_0x51694b[_0xe024('0x5a')](_0x37ea6c);for(const _0x341392 of _0x5c3206)_0x341392[_0xe024('0x5f')]();});}function _0x1ea9fa(_0x5f022e,_0x48e4ff){return _0x48e4ff[_0xe024('0x40')](_0x160399=>_0x5f022e['some'](_0x59718d=>_0x59718d[_0xe024('0x2a')][_0xe024('0x5b')](_0x160399[_0xe024('0x8a')])||_0x160399[_0xe024('0x2a')]['isEqual'](_0x59718d[_0xe024('0x8a')])));}function _0x1d6802(_0x12b236,_0x511ac8){return _0x12b236[_0xe024('0x56')](_0x2f0144=>_0x511ac8[_0xe024('0x56')](_0x343b06=>_0x2f0144[_0xe024('0x2a')][_0xe024('0x85')](_0x343b06[_0xe024('0x8a')])));}_0xa08c75[_0xe024('0x65')][_0xe024('0x4')]['on']('addMarker:suggestion',(_0x58657d,_0x1e011c,_0x238823)=>{if(!_0x238823[_0xe024('0x89')][_0xe024('0x1')])return;const _0x4c0b04=_0x1e011c['item'];if(!_0x4c0b04)return;const _0x196764=_0x238823[_0xe024('0x71')][_0xe024('0x2')](_0x4c0b04);function _0x3bfd4a(_0xc1e449){return Array[_0xe024('0x28')](_0xc1e449)?_0xc1e449:[_0xc1e449];}_0x196764&&_0xe024('0x63')===_0x4c0b04[_0xe024('0x6a')]&&_0x29112c(_0x196764,_0x238823[_0xe024('0x87')],(_0x4cac31,_0x2a6bb8,_0x1b84aa)=>_0x1b84aa[_0xe024('0x62')](_0x3bfd4a(_0x2a6bb8['classes']),_0x4cac31),(_0x3a9096,_0x802f03,_0x2d3184)=>_0x2d3184[_0xe024('0x51')](_0x3bfd4a(_0x802f03[_0xe024('0x3e')]),_0x3a9096));},{'priority':'highest'}),_0x326517[_0xe024('0x4b')][_0xe024('0x67')](_0x2ef3eb=>{if('insertion'!=_0x2ef3eb['type']&&_0xe024('0x76')!=_0x2ef3eb[_0xe024('0x48')])return;const _0x29860c=_0x2ef3eb[_0xe024('0x46')]();if(null!=_0x29860c&&_0x29860c['is']('element',_0xe024('0x42'))){if(_0xe024('0x57')==_0x2ef3eb['type']){const _0x2b8b9b=_0x2ef3eb[_0xe024('0x3a')]()[_0xe024('0x64')](_0x557c75=>_0x557c75['is']('textProxy'))['map'](_0x5d6d8c=>_0x5d6d8c[_0xe024('0x65')]);if(_0x2b8b9b[_0xe024('0x7b')])return{'type':_0xe024('0x57'),'content':_0x590e85(_0x20dcd4,'*Insert:*\x20%0',_0x590e85(_0x20dcd4,_0xe024('0x3c'),'\x22'+_0x2b8b9b[_0xe024('0x30')]('\x20')+'\x22'))};}if('deletion'==_0x2ef3eb[_0xe024('0x48')]){const _0x155948=_0x2ef3eb['getItems']()[_0xe024('0x64')](_0x3abf45=>_0x3abf45['is'](_0xe024('0x12')))[_0xe024('0x1d')](_0x4025a6=>_0x4025a6['data']);if(_0x155948[_0xe024('0x7b')])return{'type':_0xe024('0x76'),'content':_0x590e85(_0x20dcd4,_0xe024('0x41'),_0x590e85(_0x20dcd4,_0xe024('0x3c'),'\x22'+_0x155948['join']('\x20')+'\x22'))};}}}),_0x326517[_0xe024('0x4b')][_0xe024('0x67')](_0xa64c68=>{if(_0xe024('0x59')==_0xa64c68[_0xe024('0x9')]){const _0x97ea15=_0xa64c68[_0xe024('0x3a')]()[_0xe024('0x64')](_0x4f474f=>_0x4f474f['is'](_0xe024('0x12')))[_0xe024('0x1d')](_0x5d787e=>_0x5d787e[_0xe024('0x65')]),_0x855e77=this[_0xe024('0x3b')](_0xa64c68),_0x38c796=_0x855e77[_0xe024('0x27')]-_0x855e77[_0xe024('0x78')]+0x1;if(_0xe024('0x57')==_0xa64c68[_0xe024('0x48')])return _0x97ea15[_0xe024('0x7b')]?{'type':'insertion','content':_0x590e85(_0x20dcd4,'*Insert:*\x20%0',_0x590e85(_0x20dcd4,_0xe024('0x55'),[_0x38c796,'\x22'+_0x97ea15[_0xe024('0x30')]('\x20')+'\x22']))}:{'type':_0xe024('0x57'),'content':_0x590e85(_0x20dcd4,'*Insert:*\x20%0',_0x590e85(_0x20dcd4,_0xe024('0x5e'),_0x38c796))};if(_0xe024('0x76')==_0xa64c68[_0xe024('0x48')])return _0x97ea15[_0xe024('0x7b')]?{'type':_0xe024('0x76'),'content':_0x590e85(_0x20dcd4,_0xe024('0x41'),_0x590e85(_0x20dcd4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x38c796,'\x22'+_0x97ea15[_0xe024('0x30')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x590e85(_0x20dcd4,_0xe024('0x41'),_0x590e85(_0x20dcd4,_0xe024('0x5e'),_0x38c796))};}if(_0xe024('0x6f')==_0xa64c68[_0xe024('0x9')]){const _0x5a189a=_0xa64c68[_0xe024('0x3a')]()[_0xe024('0x64')](_0x2edf44=>_0x2edf44['is'](_0xe024('0x12')))[_0xe024('0x1d')](_0x1564b3=>_0x1564b3['data']),_0x4e9ebc=this[_0xe024('0x3b')](_0xa64c68),_0x1f7b61=_0x4e9ebc[_0xe024('0x6c')]-_0x4e9ebc['minColumn']+0x1;if(_0xe024('0x57')==_0xa64c68[_0xe024('0x48')])return _0x5a189a['length']?{'type':'insertion','content':_0x590e85(_0x20dcd4,_0xe024('0x21'),_0x590e85(_0x20dcd4,_0xe024('0x38'),[_0x1f7b61,'\x22'+_0x5a189a[_0xe024('0x30')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x590e85(_0x20dcd4,_0xe024('0x21'),_0x590e85(_0x20dcd4,_0xe024('0xf'),_0x1f7b61))};if(_0xe024('0x76')==_0xa64c68[_0xe024('0x48')])return _0x5a189a['length']?{'type':_0xe024('0x76'),'content':_0x590e85(_0x20dcd4,'*Remove:*\x20%0',_0x590e85(_0x20dcd4,_0xe024('0x38'),[_0x1f7b61,'\x22'+_0x5a189a[_0xe024('0x30')]('\x20')+'\x22']))}:{'type':_0xe024('0x76'),'content':_0x590e85(_0x20dcd4,_0xe024('0x41'),_0x590e85(_0x20dcd4,_0xe024('0xf'),_0x1f7b61))};}}),_0x326517[_0xe024('0x6d')]['registerCustomCallback']('insertion',_0xe024('0x59'),'discard',_0x31e932),_0x326517['_suggestionFactory'][_0xe024('0x33')](_0xe024('0x76'),_0xe024('0x59'),_0xe024('0x7d'),_0x31e932),_0x326517[_0xe024('0x6d')][_0xe024('0x33')](_0xe024('0x57'),_0xe024('0x6f'),'discard',_0x5353cf),_0x326517[_0xe024('0x6d')][_0xe024('0x33')]('deletion',_0xe024('0x6f'),'accept',_0x5353cf),_0x326517[_0xe024('0x6d')][_0xe024('0x33')](_0xe024('0x57'),_0xe024('0x6f'),_0xe024('0x30'),_0x1ea9fa),_0x326517[_0xe024('0x6d')][_0xe024('0x33')](_0xe024('0x76'),'tableColumn','join',_0x1ea9fa),_0x326517[_0xe024('0x6d')][_0xe024('0x33')](_0xe024('0x57'),_0xe024('0x59'),_0xe024('0x30'),_0x1d6802),_0x326517['_suggestionFactory'][_0xe024('0x33')](_0xe024('0x76'),'tableRow',_0xe024('0x30'),_0x1d6802);}['_acceptFormatSuggestionCallbackFactory'](){const _0x477c8f=this[_0xe024('0x3f')],_0x51add5=_0x477c8f[_0xe024('0x2c')][_0xe024('0x1f')][_0xe024('0x66')];return(_0x1d4b29,_0x1e2dff)=>{_0x477c8f[_0xe024('0x2c')]['change'](_0x209b43=>{const {commandName:_0x26c4dc,commandParams:_0x45bc75}=_0x1e2dff;let _0x416c23=_0x1d4b29[0x0][_0xe024('0x2a')][_0xe024('0x45')];_0x45bc75&&_0x45bc75[0x0]&&!0x1===_0x45bc75[0x0][_0xe024('0x6b')]&&(_0x416c23=_0x1d4b29[0x0][_0xe024('0x8a')][_0xe024('0x7f')]);const _0x4b4ca5=_0x209b43[_0xe024('0xc')](_0x416c23);if(_0xe024('0x6e')==_0x4b4ca5[_0xe024('0x88')][_0xe024('0x84')])return;const _0x44116f=Array[_0xe024('0x5')](_0x51add5[_0xe024('0x7e')]())[_0xe024('0x1d')](_0x4f85fb=>_0x455a87[_0xe024('0x4c')](_0x4f85fb));_0x209b43[_0xe024('0x5a')](_0x4b4ca5),_0x477c8f[_0xe024('0x2e')][_0xe024('0x7c')](_0x26c4dc)['refresh'](),_0x45bc75[_0xe024('0x37')]({'forceDefaultExecution':!0x0}),_0x477c8f[_0xe024('0x3d')](_0x26c4dc,..._0x45bc75);const _0x539895=_0x44116f['filter'](_0xdde904=>_0xe024('0x6e')!=_0xdde904[_0xe024('0x88')]['rootName']);_0x539895['length']>0x0&&_0x209b43['setSelection'](_0x539895);for(const _0x2a04b2 of _0x44116f)_0x2a04b2[_0xe024('0x5f')]();});};}[_0xe024('0x2b')](_0x2d2686){const _0x4a3d4f=this[_0xe024('0x3f')][_0xe024('0x7a')][_0xe024('0x7c')](_0xe024('0x69'));let _0x354d01=Number[_0xe024('0x75')],_0x5aa349=Number[_0xe024('0xe')],_0x542cd9=Number['MAX_SAFE_INTEGER'],_0x1ef829=Number[_0xe024('0xe')];for(const _0x5be040 of _0x2d2686){if(_0xe024('0x6e')==_0x5be040[_0xe024('0x88')][_0xe024('0x84')])continue;const {row:_0x300836,column:_0x413f70}=_0x4a3d4f['getCellLocation'](_0x5be040),_0x38855b=_0x5be040[_0xe024('0x35')](_0xe024('0x6'))?_0x5be040['getAttribute'](_0xe024('0x6'))-0x1:0x0,_0xc2dfcc=_0x5be040['hasAttribute']('colspan')?_0x5be040[_0xe024('0x81')](_0xe024('0x1b'))-0x1:0x0;_0x354d01=_0x300836<_0x354d01?_0x300836:_0x354d01,_0x5aa349=_0x300836+_0x38855b>_0x5aa349?_0x300836+_0x38855b:_0x5aa349,_0x542cd9=_0x413f70<_0x542cd9?_0x413f70:_0x542cd9,_0x1ef829=_0x413f70+_0xc2dfcc>_0x1ef829?_0x413f70+_0xc2dfcc:_0x1ef829;}return{'minRow':_0x354d01,'maxRow':_0x5aa349,'minColumn':_0x542cd9,'maxColumn':_0x1ef829};}['_setupColumnsRowsFixing'](){const _0x227154=this[_0xe024('0x3f')],_0x23bf9e=_0x227154[_0xe024('0x7a')]['get'](_0xe024('0x1a')),_0x5a40f6=_0x227154[_0xe024('0x7a')][_0xe024('0x7c')](_0xe024('0x69'));this[_0xe024('0x1c')]=new Set(),_0x227154[_0xe024('0x2c')][_0xe024('0x1f')]['on'](_0xe024('0x10'),()=>{const _0x2cf80e=Array[_0xe024('0x5')](_0x227154[_0xe024('0x2c')]['document'][_0xe024('0x68')][_0xe024('0x74')]());for(const {name:_0x1cb7a2,data:_0x1ccf9a}of _0x2cf80e){const {group:_0x27b7a7,id:_0x3fd8d6,subType:_0xa1ee6e}=_0x23bf9e[_0xe024('0x2d')](_0x1cb7a2);if(_0xe024('0x79')!=_0x27b7a7)continue;if(null!=_0x1ccf9a[_0xe024('0x22')])continue;const _0xb1495b=_0x23bf9e[_0xe024('0x80')](_0x3fd8d6);this[_0xe024('0x17')][_0xe024('0x1e')](_0xa1ee6e)&&this[_0xe024('0x1c')][_0xe024('0x39')](_0xb1495b);}},{'priority':'low'});const _0x6b3ffb=(_0x1540a2,_0x590db1)=>{let _0x24eb5f=!0x1;const _0x132af0=_0x590db1[_0xe024('0x24')](_0x1540a2),_0x99febe=_0x1540a2[_0xe024('0x13')](_0xe024('0x42')),_0x3b4ab4=_0x5a40f6[_0xe024('0x83')](_0x1540a2);for(const _0x248a62 of this[_0xe024('0x1c')]){const _0xd7297a=_0x248a62[_0xe024('0x9')],_0x35ad61=_0xd7297a[_0xe024('0x34')](_0xe024('0xa')),_0x13a30c=_0xd7297a['substr'](_0x35ad61?0xa:0x5),_0x5bb7cc=_0x13a30c[_0xe024('0x49')](),_0x3ef4b5=_0x5bb7cc[_0xe024('0x23')](0x0,0x3)+_0xe024('0x72'),_0x69a950=_0xe024('0x58')+_0x13a30c,_0xa6ac79=_0xe024('0x4f')+_0x13a30c;if(!_0x248a62[_0xe024('0x4a')])continue;if(_0x99febe!=_0x248a62['getFirstRange']()[_0xe024('0x8a')][_0xe024('0x13')]('table'))continue;if(_0x248a62[_0xe024('0x43')](_0x132af0))continue;const _0x173a17=_0x1540a2[_0xe024('0x35')](_0x3ef4b5)?_0x1540a2[_0xe024('0x81')](_0x3ef4b5)-0x1:0x0,_0x49f94f=this[_0xe024('0x3b')](_0x248a62),_0x2ebc16=_0x49f94f[_0x69a950],_0x4662d2=_0x49f94f[_0xa6ac79];_0x2ebc16<=_0x3b4ab4[_0x5bb7cc]&&_0x3b4ab4[_0x5bb7cc]+_0x173a17<=_0x4662d2&&(_0x248a62[_0xe024('0x36')](_0x132af0),_0x24eb5f=!0x0);}return _0x24eb5f;};_0x227154[_0xe024('0x2c')][_0xe024('0x1f')][_0xe024('0x47')](_0x3e3c4a=>{let _0x5c36a0=!0x1;for(const _0x287d53 of _0x227154[_0xe024('0x2c')][_0xe024('0x1f')][_0xe024('0x68')][_0xe024('0xb')]())if(_0xe024('0x0')==_0x287d53[_0xe024('0x48')]){if(_0xe024('0x59')==_0x287d53[_0xe024('0x6a')])for(const _0x2b805b of _0x287d53[_0xe024('0x31')][_0xe024('0x7f')][_0xe024('0x86')]())_0x5c36a0=_0x5c36a0||_0x6b3ffb(_0x2b805b,_0x3e3c4a);else'tableCell'==_0x287d53['name']&&(_0x5c36a0=_0x5c36a0||_0x6b3ffb(_0x287d53[_0xe024('0x31')][_0xe024('0x7f')],_0x3e3c4a));}return _0x5c36a0;});}[_0xe024('0x3b')](_0x3700d9){return this[_0xe024('0x2b')](_0x3700d9[_0xe024('0x7e')]()[_0xe024('0x1d')](_0x47b196=>_0x47b196[_0xe024('0x8a')][_0xe024('0x7f')]));}}function le(_0x2a87d7){return Array['from'](new Set(_0x2a87d7)['values']());}
|
|
23
|
+
const _0x2105=['createPositionAt','MIN_SAFE_INTEGER','minColumn','enqueueChange','first','ELEMENT_TABLE','deletion','detach','root','join','_descriptionFactory','order','_tableSuggestions','getChanges','*Insert:*\x20%0','ELEMENT_TABLE_ROW_WITH_TEXT','addClass','document','$graveyard','createRangeIn','markMultiRangeDeletion','some','getSuggestion','findAncestor','startsWith','rowspan','rootName','above','nodeBefore','ELEMENT_TABLE_COLUMN_WITH_TEXT','_suggestionFactory','maxRow','fromRange','getItems','options','execute','getRanges','createRangeOn','markMultiRangeInsertion','filter','_getSuggestionCoords','getAttribute','$textProxy','registerElementLabel','removeClass','getCellLocation','colspan','MAX_SAFE_INTEGER','isIntersectingWithRange','_acceptFormatSuggestionCallbackFactory','plugins','data','minRow','nodeAfter','_setupColumnsRowsFixing','from','discard','writer','*Remove:*\x20%0','showSuggestionHighlights','insertion','maxColumn','change:data','max','tablePaste','values','add','change','subType','toLowerCase','highest','name','classes','registerDescriptionCallback','tableRow','removeTableRow','type','TrackChangesEditing','editor','position','getChangedMarkers','TableUtils','table','isTouching','setSelection','getContainedElement','mapper','registerPostFixer','cell','hasAttribute','push','afterInit','tableCell','getRowIndexes','map','forceValue','ELEMENT_TABLE_WITH_TEXT','element','accept','registerCustomCallback','locale','createTableWalker','getColumnIndexes','removeTableColumn','isEqual','substr','get','getSelectionAffectedTableCells','end','start','tableColumn','addRange','model','isArray','enableCommand','last','TableEditing','refresh','low','_getCoordsForCells','commands','_tablePostFixingSubtypes','suggestion','ELEMENT_TABLE_ROW','span','min','selection','length','differ'];(function(_0x4ad0bb,_0x2105bf){const _0xaa392=function(_0x466d25){while(--_0x466d25){_0x4ad0bb['push'](_0x4ad0bb['shift']());}};_0xaa392(++_0x2105bf);}(_0x2105,0x19e));const _0xaa39=function(_0x4ad0bb,_0x2105bf){_0x4ad0bb=_0x4ad0bb-0x0;let _0xaa392=_0x2105[_0x4ad0bb];return _0xaa392;};import{Plugin as _0x2ee664}from'ckeditor5/src/core';import{LiveRange as _0xb8c4f2}from'ckeditor5/src/engine';import{setHighlightHandling as _0x45e3f2}from'ckeditor5/src/widget';import{getTranslation as _0x54f9c9}from'../utils/common-translations';export default class gt extends _0x2ee664{constructor(_0x2d88ba){super(_0x2d88ba),this[_0xaa39('0x5e')]=['tableRow',_0xaa39('0x53')],this['_tableSuggestions']=new Set();}[_0xaa39('0x40')](){const _0x39c145=this[_0xaa39('0x33')],_0x5e1cd4=_0x39c145[_0xaa39('0x55')][_0xaa39('0x77')][_0xaa39('0x63')];if(!_0x39c145[_0xaa39('0x17')]['has'](_0xaa39('0x59')))return;const _0x1f92a3=_0x39c145[_0xaa39('0x49')],_0x37a9ae=_0x39c145[_0xaa39('0x17')][_0xaa39('0x4f')](_0xaa39('0x32')),_0x55a169=_0x39c145[_0xaa39('0x17')][_0xaa39('0x4f')](_0xaa39('0x36'));_0x37a9ae[_0xaa39('0x70')][_0xaa39('0x10')](_0xaa39('0x37'),_0x2fb16e=>_0x54f9c9(_0x1f92a3,_0xaa39('0x6b'),_0x2fb16e)),this[_0xaa39('0x1b')](),_0x37a9ae[_0xaa39('0x57')]('insertTable'),_0x37a9ae[_0xaa39('0x57')]('selectTableRow'),_0x37a9ae[_0xaa39('0x57')]('selectTableColumn');for(const _0x4e9e5e of['insertTableRowAbove','insertTableRowBelow']){const _0x2a6db1=_0x39c145[_0xaa39('0x5d')][_0xaa39('0x4f')](_0x4e9e5e);_0x37a9ae[_0xaa39('0x57')](_0x4e9e5e,_0x1f3607=>{_0x39c145[_0xaa39('0x55')]['change'](_0x59ef6c=>{_0x1f3607();const _0x367ad2=_0xaa39('0x0')===_0x2a6db1['order'],_0x5c19ef=_0x55a169[_0xaa39('0x50')](_0x5e1cd4),_0x300062=_0x55a169[_0xaa39('0x42')](_0x5c19ef),_0x11e33f=_0x367ad2?_0x300062[_0xaa39('0x6a')]-0x1:_0x300062[_0xaa39('0x58')]+0x1,_0x3da24c=_0x5c19ef[0x0][_0xaa39('0x7d')](_0xaa39('0x37')),_0x1b935c=_0x55a169[_0xaa39('0x4a')](_0x3da24c,{'startRow':_0x11e33f,'endRow':_0x11e33f}),_0x5479b9=Array[_0xaa39('0x1c')](_0x1b935c)['map'](_0x157df6=>_0x59ef6c['createRangeOn'](_0x157df6[_0xaa39('0x3d')]));_0x37a9ae[_0xaa39('0xb')](_0x5479b9,'tableRow');});});}for(const _0xa6b5c5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4293ca=_0x39c145[_0xaa39('0x5d')][_0xaa39('0x4f')](_0xa6b5c5);_0x37a9ae[_0xaa39('0x57')](_0xa6b5c5,_0x382613=>{_0x39c145[_0xaa39('0x55')]['change'](_0x2c746a=>{_0x382613();const _0x2ac2f5='left'===_0x4293ca[_0xaa39('0x71')],_0x2e49fc=_0x55a169[_0xaa39('0x50')](_0x5e1cd4),_0x45c348=_0x55a169[_0xaa39('0x4b')](_0x2e49fc),_0xdfae09=_0x2ac2f5?_0x45c348[_0xaa39('0x6a')]-0x1:_0x45c348[_0xaa39('0x58')]+0x1,_0x3b5d45=_0x2e49fc[0x0][_0xaa39('0x7d')](_0xaa39('0x37')),_0x5399cc=_0x55a169[_0xaa39('0x4a')](_0x3b5d45,{'startRow':0x0,'column':_0xdfae09,'includeAllSlots':!0x1}),_0x13c917=Array['from'](_0x5399cc)[_0xaa39('0x43')](_0x349d35=>_0x2c746a['createRangeOn'](_0x349d35[_0xaa39('0x3d')]));_0x37a9ae[_0xaa39('0xb')](_0x13c917,_0xaa39('0x53'));});});}for(const _0x3afe0f of[_0xaa39('0x30'),'removeTableColumn']){const _0xabbca3=_0x3afe0f['substr'](0xb),_0x1c3bad=_0xabbca3['toLowerCase'](),_0x37d5f2=_0x1c3bad['substr'](0x0,0x3)+_0xaa39('0x61'),_0x5c6ce4=_0xaa39('0x37')+_0xabbca3,_0x17e049=_0xaa39('0x62')+_0xabbca3,_0x498d25='max'+_0xabbca3;_0x37a9ae[_0xaa39('0x57')](_0x3afe0f,()=>{_0x39c145[_0xaa39('0x55')][_0xaa39('0x28')](_0x3ca109=>{const _0xb23be4=_0x55a169['getSelectionAffectedTableCells'](_0x5e1cd4),_0x2be996=_0xb23be4[0x0]['findAncestor']('table');let _0x40649c;if(_0xaa39('0x30')==_0x3afe0f){const _0x5e8e90=_0x55a169[_0xaa39('0x42')](_0xb23be4);_0x40649c={'startRow':_0x5e8e90['first'],'endRow':_0x5e8e90['last'],'includeAllSlots':!0x0};}else{const _0x456238=_0x55a169[_0xaa39('0x4b')](_0xb23be4);_0x40649c={'startColumn':_0x456238['first'],'endColumn':_0x456238[_0xaa39('0x58')],'includeAllSlots':!0x0};}const _0x207b0e=_0x55a169[_0xaa39('0x4a')](_0x2be996,_0x40649c),_0x507722=Array['from'](_0x207b0e)[_0xaa39('0x43')](({cell:_0x2d1065})=>_0x2d1065),_0x26e68c=se(_0x507722['filter'](_0x40871b=>_0x40871b[_0xaa39('0x3e')](_0x37d5f2))),_0x252248=se(_0x507722[_0xaa39('0xc')](_0x288d60=>!_0x288d60[_0xaa39('0x3e')](_0x37d5f2)))[_0xaa39('0x43')](_0x4a52db=>_0x3ca109[_0xaa39('0xa')](_0x4a52db)),_0x38eeed=_0x37a9ae[_0xaa39('0x7a')](_0x252248,_0x5c6ce4);if(_0x38eeed&&(_0xaa39('0x2f')==_0x38eeed['subType']||_0xaa39('0x53')==_0x38eeed[_0xaa39('0x29')])){const _0xd46cab=this[_0xaa39('0xd')](_0x38eeed);for(const _0x11740f of _0x26e68c){const _0x495288=_0x3ca109[_0xaa39('0xa')](_0x11740f),_0x3299fd=_0x55a169[_0xaa39('0x12')](_0x11740f),_0x58c0d0=_0x11740f['getAttribute'](_0x37d5f2)-0x1,_0x1a9b3f=_0xd46cab[_0x17e049],_0xdd3d6=_0xd46cab[_0x498d25];_0x1a9b3f<=_0x3299fd[_0x1c3bad]&&_0x3299fd[_0x1c3bad]+_0x58c0d0<=_0xdd3d6&&_0x38eeed['addRange'](_0x495288);}}});});}function _0x565619(_0x30abe9){const _0x27b73d=Array[_0xaa39('0x1c')](_0x5e1cd4[_0xaa39('0x9')]())[_0xaa39('0x43')](_0x16e3b2=>_0xb8c4f2[_0xaa39('0x5')](_0x16e3b2));_0x39c145[_0xaa39('0x55')][_0xaa39('0x28')](_0x4191d7=>{const _0x18467a=_0x4191d7['batch'];_0x30abe9=_0x30abe9[_0xaa39('0xc')](_0x5557d8=>_0xaa39('0x78')!=_0x5557d8[_0xaa39('0x6e')][_0xaa39('0x80')]),_0x4191d7['setSelection'](_0x30abe9),_0x39c145[_0xaa39('0x5d')][_0xaa39('0x4f')]('removeTableRow')['refresh'](),_0x39c145['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x39c145['model'][_0xaa39('0x69')](()=>{_0x39c145[_0xaa39('0x55')][_0xaa39('0x69')](_0x18467a,_0x3348a0=>{const _0x3e497d=_0x27b73d[_0xaa39('0xc')](_0x211b28=>_0xaa39('0x78')!=_0x211b28[_0xaa39('0x6e')][_0xaa39('0x80')]);_0x3e497d['length']>0x0&&_0x3348a0[_0xaa39('0x39')](_0x3e497d);for(const _0x4c976c of _0x27b73d)_0x4c976c[_0xaa39('0x6d')]();});});});}function _0x13fc03(_0xb5b20c){_0x39c145[_0xaa39('0x55')][_0xaa39('0x28')](_0x17153a=>{const _0x5b6a5f=Array[_0xaa39('0x1c')](_0x5e1cd4[_0xaa39('0x9')]())[_0xaa39('0x43')](_0x3d1096=>_0xb8c4f2[_0xaa39('0x5')](_0x3d1096)),_0x42fcb0=[];for(const _0xda7090 of _0xb5b20c)for(const _0x11e438 of _0xda7090[_0xaa39('0x6')]({'shallow':!0x0}))_0x42fcb0[_0xaa39('0x3f')](_0x11e438);for(const _0x5e1851 of _0x42fcb0)_0xaa39('0x78')!=_0x5e1851[_0xaa39('0x6e')][_0xaa39('0x80')]&&(_0x17153a[_0xaa39('0x39')](_0x17153a[_0xaa39('0x66')](_0x5e1851,0x0)),_0x39c145[_0xaa39('0x5d')][_0xaa39('0x4f')](_0xaa39('0x4c'))[_0xaa39('0x5a')](),_0x39c145['execute'](_0xaa39('0x4c'),{'forceDefaultExecution':!0x0}));const _0x4189c5=_0x5b6a5f['filter'](_0x1038db=>_0xaa39('0x78')!=_0x1038db[_0xaa39('0x6e')][_0xaa39('0x80')]);_0x4189c5['length']>0x0&&_0x17153a['setSelection'](_0x4189c5);for(const _0x40dca5 of _0x5b6a5f)_0x40dca5[_0xaa39('0x6d')]();});}function _0x140291(_0x254bf6,_0x308fd1){return _0x308fd1['every'](_0x5f13c4=>_0x254bf6[_0xaa39('0x7b')](_0x721782=>_0x721782[_0xaa39('0x51')][_0xaa39('0x4d')](_0x5f13c4[_0xaa39('0x52')])||_0x5f13c4[_0xaa39('0x51')][_0xaa39('0x4d')](_0x721782[_0xaa39('0x52')])));}function _0x43098c(_0x3b0e4a,_0x432ffc){return _0x3b0e4a['some'](_0x10fceb=>_0x432ffc['some'](_0x32043b=>_0x10fceb[_0xaa39('0x51')][_0xaa39('0x38')](_0x32043b['start'])));}_0x39c145['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x291796,_0x159227,_0xa59194)=>{if(!_0xa59194[_0xaa39('0x7')][_0xaa39('0x20')])return;const _0x3b6ced=_0x159227['item'];if(!_0x3b6ced)return;const _0x2c67df=_0xa59194[_0xaa39('0x3b')]['toViewElement'](_0x3b6ced);function _0x127cab(_0x378e65){return Array[_0xaa39('0x56')](_0x378e65)?_0x378e65:[_0x378e65];}_0x2c67df&&_0xaa39('0x41')===_0x3b6ced[_0xaa39('0x2c')]&&_0x45e3f2(_0x2c67df,_0xa59194[_0xaa39('0x1e')],(_0x113f93,_0x36d442,_0x3ad5e1)=>_0x3ad5e1[_0xaa39('0x76')](_0x127cab(_0x36d442[_0xaa39('0x2d')]),_0x113f93),(_0x577e8d,_0x42078d,_0x51bb9d)=>_0x51bb9d[_0xaa39('0x11')](_0x127cab(_0x42078d['classes']),_0x577e8d));},{'priority':_0xaa39('0x2b')}),_0x37a9ae['_descriptionFactory'][_0xaa39('0x2e')](_0x549c8a=>{if(_0xaa39('0x21')!=_0x549c8a[_0xaa39('0x31')]&&_0xaa39('0x6c')!=_0x549c8a[_0xaa39('0x31')])return;const _0x49a00c=_0x549c8a[_0xaa39('0x3a')]();if(null!=_0x49a00c&&_0x49a00c['is'](_0xaa39('0x46'),_0xaa39('0x37'))){if('insertion'==_0x549c8a[_0xaa39('0x31')]){const _0x16dcc1=_0x549c8a[_0xaa39('0x6')]()[_0xaa39('0xc')](_0x3bc465=>_0x3bc465['is'](_0xaa39('0xf')))[_0xaa39('0x43')](_0x3f7e9a=>_0x3f7e9a['data']);if(_0x16dcc1['length'])return{'type':_0xaa39('0x21'),'content':_0x54f9c9(_0x1f92a3,_0xaa39('0x74'),_0x54f9c9(_0x1f92a3,_0xaa39('0x45'),'\x22'+_0x16dcc1[_0xaa39('0x6f')]('\x20')+'\x22'))};}if(_0xaa39('0x6c')==_0x549c8a[_0xaa39('0x31')]){const _0x6d7d98=_0x549c8a['getItems']()[_0xaa39('0xc')](_0xbe0de=>_0xbe0de['is'](_0xaa39('0xf')))[_0xaa39('0x43')](_0x5b4616=>_0x5b4616[_0xaa39('0x18')]);if(_0x6d7d98['length'])return{'type':_0xaa39('0x6c'),'content':_0x54f9c9(_0x1f92a3,_0xaa39('0x1f'),_0x54f9c9(_0x1f92a3,_0xaa39('0x45'),'\x22'+_0x6d7d98[_0xaa39('0x6f')]('\x20')+'\x22'))};}}}),_0x37a9ae['_descriptionFactory']['registerDescriptionCallback'](_0x250a8b=>{if(_0xaa39('0x2f')==_0x250a8b[_0xaa39('0x29')]){const _0x3115fb=_0x250a8b[_0xaa39('0x6')]()['filter'](_0x37a9eb=>_0x37a9eb['is'](_0xaa39('0xf')))['map'](_0x22ac53=>_0x22ac53[_0xaa39('0x18')]),_0x4bd3a8=this[_0xaa39('0xd')](_0x250a8b),_0x28f757=_0x4bd3a8[_0xaa39('0x4')]-_0x4bd3a8[_0xaa39('0x19')]+0x1;if('insertion'==_0x250a8b[_0xaa39('0x31')])return _0x3115fb[_0xaa39('0x64')]?{'type':_0xaa39('0x21'),'content':_0x54f9c9(_0x1f92a3,_0xaa39('0x74'),_0x54f9c9(_0x1f92a3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x28f757,'\x22'+_0x3115fb[_0xaa39('0x6f')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x54f9c9(_0x1f92a3,_0xaa39('0x74'),_0x54f9c9(_0x1f92a3,_0xaa39('0x60'),_0x28f757))};if('deletion'==_0x250a8b[_0xaa39('0x31')])return _0x3115fb[_0xaa39('0x64')]?{'type':_0xaa39('0x6c'),'content':_0x54f9c9(_0x1f92a3,_0xaa39('0x1f'),_0x54f9c9(_0x1f92a3,_0xaa39('0x75'),[_0x28f757,'\x22'+_0x3115fb[_0xaa39('0x6f')]('\x20')+'\x22']))}:{'type':_0xaa39('0x6c'),'content':_0x54f9c9(_0x1f92a3,_0xaa39('0x1f'),_0x54f9c9(_0x1f92a3,_0xaa39('0x60'),_0x28f757))};}if('tableColumn'==_0x250a8b[_0xaa39('0x29')]){const _0x4f4383=_0x250a8b[_0xaa39('0x6')]()[_0xaa39('0xc')](_0x580fff=>_0x580fff['is'](_0xaa39('0xf')))[_0xaa39('0x43')](_0x554fb1=>_0x554fb1['data']),_0x85f97f=this['_getSuggestionCoords'](_0x250a8b),_0x5bc4ec=_0x85f97f[_0xaa39('0x22')]-_0x85f97f[_0xaa39('0x68')]+0x1;if('insertion'==_0x250a8b[_0xaa39('0x31')])return _0x4f4383[_0xaa39('0x64')]?{'type':_0xaa39('0x21'),'content':_0x54f9c9(_0x1f92a3,'*Insert:*\x20%0',_0x54f9c9(_0x1f92a3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5bc4ec,'\x22'+_0x4f4383[_0xaa39('0x6f')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x54f9c9(_0x1f92a3,_0xaa39('0x74'),_0x54f9c9(_0x1f92a3,'ELEMENT_TABLE_COLUMN',_0x5bc4ec))};if(_0xaa39('0x6c')==_0x250a8b['type'])return _0x4f4383[_0xaa39('0x64')]?{'type':_0xaa39('0x6c'),'content':_0x54f9c9(_0x1f92a3,_0xaa39('0x1f'),_0x54f9c9(_0x1f92a3,_0xaa39('0x2'),[_0x5bc4ec,'\x22'+_0x4f4383['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0x54f9c9(_0x1f92a3,_0xaa39('0x1f'),_0x54f9c9(_0x1f92a3,'ELEMENT_TABLE_COLUMN',_0x5bc4ec))};}}),_0x37a9ae['_suggestionFactory'][_0xaa39('0x48')](_0xaa39('0x21'),_0xaa39('0x2f'),_0xaa39('0x1d'),_0x565619),_0x37a9ae[_0xaa39('0x3')][_0xaa39('0x48')](_0xaa39('0x6c'),_0xaa39('0x2f'),'accept',_0x565619),_0x37a9ae[_0xaa39('0x3')]['registerCustomCallback'](_0xaa39('0x21'),'tableColumn',_0xaa39('0x1d'),_0x13fc03),_0x37a9ae[_0xaa39('0x3')]['registerCustomCallback']('deletion',_0xaa39('0x53'),_0xaa39('0x47'),_0x13fc03),_0x37a9ae['_suggestionFactory'][_0xaa39('0x48')]('insertion','tableColumn','join',_0x140291),_0x37a9ae['_suggestionFactory'][_0xaa39('0x48')](_0xaa39('0x6c'),_0xaa39('0x53'),_0xaa39('0x6f'),_0x140291),_0x37a9ae[_0xaa39('0x3')][_0xaa39('0x48')]('insertion',_0xaa39('0x2f'),'join',_0x43098c),_0x37a9ae[_0xaa39('0x3')]['registerCustomCallback'](_0xaa39('0x6c'),_0xaa39('0x2f'),_0xaa39('0x6f'),_0x43098c);}[_0xaa39('0x16')](){const _0x1248c2=this[_0xaa39('0x33')],_0x57bf51=_0x1248c2[_0xaa39('0x55')][_0xaa39('0x77')][_0xaa39('0x63')];return(_0x183426,_0x75a057)=>{_0x1248c2[_0xaa39('0x55')][_0xaa39('0x28')](_0x2bd453=>{const {commandName:_0x29e31b,commandParams:_0x314513}=_0x75a057;let _0x1d9534=_0x183426[0x0][_0xaa39('0x51')][_0xaa39('0x1')];_0x314513&&_0x314513[0x0]&&!0x1===_0x314513[0x0][_0xaa39('0x44')]&&(_0x1d9534=_0x183426[0x0]['start']['nodeAfter']);const _0x19804e=_0x2bd453[_0xaa39('0x79')](_0x1d9534);if('$graveyard'==_0x19804e['root']['rootName'])return;const _0x25d0dc=Array[_0xaa39('0x1c')](_0x57bf51[_0xaa39('0x9')]())[_0xaa39('0x43')](_0x19f1bd=>_0xb8c4f2[_0xaa39('0x5')](_0x19f1bd));_0x2bd453['setSelection'](_0x19804e),_0x1248c2[_0xaa39('0x5d')][_0xaa39('0x4f')](_0x29e31b)[_0xaa39('0x5a')](),_0x314513['push']({'forceDefaultExecution':!0x0}),_0x1248c2[_0xaa39('0x8')](_0x29e31b,..._0x314513);const _0x8b9dc9=_0x25d0dc[_0xaa39('0xc')](_0x542c34=>'$graveyard'!=_0x542c34[_0xaa39('0x6e')][_0xaa39('0x80')]);_0x8b9dc9[_0xaa39('0x64')]>0x0&&_0x2bd453[_0xaa39('0x39')](_0x8b9dc9);for(const _0x2022cf of _0x25d0dc)_0x2022cf[_0xaa39('0x6d')]();});};}[_0xaa39('0x5c')](_0x4c4c24){const _0x348253=this['editor']['plugins']['get']('TableUtils');let _0x3d52c0=Number['MAX_SAFE_INTEGER'],_0x3786b2=Number['MIN_SAFE_INTEGER'],_0x4c97a9=Number[_0xaa39('0x14')],_0x5c191f=Number[_0xaa39('0x67')];for(const _0x337758 of _0x4c4c24){if(_0xaa39('0x78')==_0x337758['root'][_0xaa39('0x80')])continue;const {row:_0x311494,column:_0x69cbd2}=_0x348253[_0xaa39('0x12')](_0x337758),_0x3406a5=_0x337758[_0xaa39('0x3e')](_0xaa39('0x7f'))?_0x337758[_0xaa39('0xe')](_0xaa39('0x7f'))-0x1:0x0,_0x4a89b5=_0x337758[_0xaa39('0x3e')](_0xaa39('0x13'))?_0x337758['getAttribute'](_0xaa39('0x13'))-0x1:0x0;_0x3d52c0=_0x311494<_0x3d52c0?_0x311494:_0x3d52c0,_0x3786b2=_0x311494+_0x3406a5>_0x3786b2?_0x311494+_0x3406a5:_0x3786b2,_0x4c97a9=_0x69cbd2<_0x4c97a9?_0x69cbd2:_0x4c97a9,_0x5c191f=_0x69cbd2+_0x4a89b5>_0x5c191f?_0x69cbd2+_0x4a89b5:_0x5c191f;}return{'minRow':_0x3d52c0,'maxRow':_0x3786b2,'minColumn':_0x4c97a9,'maxColumn':_0x5c191f};}[_0xaa39('0x1b')](){const _0x56b331=this['editor'],_0x5aef67=_0x56b331[_0xaa39('0x17')][_0xaa39('0x4f')]('TrackChangesEditing'),_0x340512=_0x56b331[_0xaa39('0x17')]['get']('TableUtils');_0x56b331[_0xaa39('0x55')][_0xaa39('0x77')]['on'](_0xaa39('0x23'),()=>{const _0x31ef92=Array[_0xaa39('0x1c')](_0x56b331['model'][_0xaa39('0x77')][_0xaa39('0x65')][_0xaa39('0x35')]());for(const {name:_0x563544,data:_0x12a7d}of _0x31ef92){const {group:_0x3ee3e0,id:_0x58b85c,subType:_0x418066}=_0x5aef67['_splitMarkerName'](_0x563544);if(_0xaa39('0x5f')!=_0x3ee3e0)continue;if(null!=_0x12a7d['oldRange'])continue;const _0x3e6db4=_0x5aef67[_0xaa39('0x7c')](_0x58b85c);this[_0xaa39('0x5e')]['includes'](_0x418066)&&this[_0xaa39('0x72')][_0xaa39('0x27')](_0x3e6db4);}},{'priority':_0xaa39('0x5b')});const _0x1395a8=(_0xd6a9f1,_0x31e4cf)=>{let _0x345c0c=!0x1;const _0x458f70=_0x31e4cf['createRangeOn'](_0xd6a9f1),_0x5857e3=_0xd6a9f1[_0xaa39('0x7d')](_0xaa39('0x37')),_0x581097=_0x340512[_0xaa39('0x12')](_0xd6a9f1);for(const _0x1440c9 of this[_0xaa39('0x72')]){const _0x235872=_0x1440c9['subType'],_0x527a89=_0x235872[_0xaa39('0x7e')](_0xaa39('0x25')),_0x4904bc=_0x235872[_0xaa39('0x4e')](_0x527a89?0xa:0x5),_0x4322c2=_0x4904bc[_0xaa39('0x2a')](),_0x196ff0=_0x4322c2[_0xaa39('0x4e')](0x0,0x3)+_0xaa39('0x61'),_0x47a570='min'+_0x4904bc,_0x111587=_0xaa39('0x24')+_0x4904bc;if(!_0x1440c9['isInContent'])continue;if(_0x5857e3!=_0x1440c9['getFirstRange']()[_0xaa39('0x52')][_0xaa39('0x7d')]('table'))continue;if(_0x1440c9[_0xaa39('0x15')](_0x458f70))continue;const _0x4133cb=_0xd6a9f1[_0xaa39('0x3e')](_0x196ff0)?_0xd6a9f1[_0xaa39('0xe')](_0x196ff0)-0x1:0x0,_0x5eb8f5=this[_0xaa39('0xd')](_0x1440c9),_0x372f00=_0x5eb8f5[_0x47a570],_0x3dc499=_0x5eb8f5[_0x111587];_0x372f00<=_0x581097[_0x4322c2]&&_0x581097[_0x4322c2]+_0x4133cb<=_0x3dc499&&(_0x1440c9[_0xaa39('0x54')](_0x458f70),_0x345c0c=!0x0);}return _0x345c0c;};_0x56b331[_0xaa39('0x55')]['document'][_0xaa39('0x3c')](_0x2c8f07=>{let _0x410b69=!0x1;for(const _0x55691c of _0x56b331[_0xaa39('0x55')]['document'][_0xaa39('0x65')][_0xaa39('0x73')]())if('insert'==_0x55691c[_0xaa39('0x31')]){if(_0xaa39('0x2f')==_0x55691c[_0xaa39('0x2c')])for(const _0x39021e of _0x55691c['position'][_0xaa39('0x1a')]['getChildren']())_0x410b69=_0x410b69||_0x1395a8(_0x39021e,_0x2c8f07);else _0xaa39('0x41')==_0x55691c[_0xaa39('0x2c')]&&(_0x410b69=_0x410b69||_0x1395a8(_0x55691c[_0xaa39('0x34')]['nodeAfter'],_0x2c8f07));}return _0x410b69;});}[_0xaa39('0xd')](_0x21ed6c){return this[_0xaa39('0x5c')](_0x21ed6c[_0xaa39('0x9')]()[_0xaa39('0x43')](_0x2a4296=>_0x2a4296[_0xaa39('0x52')]['nodeAfter']));}}function se(_0x511320){return Array[_0xaa39('0x1c')](new Set(_0x511320)[_0xaa39('0x26')]());}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/tablecaption
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:table/table~Table table feature} caption.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesTableCaption extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
static get requires(): PluginDependencies;
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4fd0=['get','requires','TrackChangesEditing','TableCaptionEditing','enableCommand','editor','plugins'];(function(_0x347b95,_0x4fd004){const _0x4de3e7=function(_0x3618ee){while(--_0x3618ee){_0x347b95['push'](_0x347b95['shift']());}};_0x4de3e7(++_0x4fd004);}(_0x4fd0,0x140));const _0x4de3=function(_0x347b95,_0x4fd004){_0x347b95=_0x347b95-0x0;let _0x4de3e7=_0x4fd0[_0x347b95];return _0x4de3e7;};import{Plugin as _0xcf8824}from'ckeditor5/src/core';import _0x33d4d5 from'./table';export default class bt extends _0xcf8824{static get[_0x4de3('0x3')](){return[_0x33d4d5];}['afterInit'](){const _0x2d6dfe=this[_0x4de3('0x0')];if(!_0x2d6dfe[_0x4de3('0x1')]['has'](_0x4de3('0x5')))return;_0x2d6dfe['plugins'][_0x4de3('0x2')](_0x4de3('0x4'))[_0x4de3('0x6')]('toggleTableCaption');}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/tableclipboard
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:table/tableclipboard~TableClipboard table clipboard feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesTableClipboard extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
static get requires(): PluginDependencies;
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|