@ckeditor/ckeditor5-track-changes 36.0.1 → 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 +20 -5
- 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 _0x27d4=['end','colspan','afterInit','mapper','push','ELEMENT_TABLE_WITH_TEXT','insertTable','isEqual','_acceptFormatSuggestionCallbackFactory','editor','detach','markMultiRangeInsertion','highest','get','nodeBefore','markMultiRangeDeletion','refresh','plugins','createTableWalker','document','ELEMENT_TABLE_COLUMN','values','_setupColumnsRowsFixing','hasAttribute','position','above','options','first','length','TableUtils','some','model','$graveyard','getSelectionAffectedTableCells','fromRange','classes','*Insert:*\x20%0','getContainedElement','getChanges','findAncestor','substr','ELEMENT_TABLE_ROW_WITH_TEXT','includes','getChangedMarkers','setSelection','_getSuggestionCoords','max','deletion','showSuggestionHighlights','root','selection','createPositionAt','_descriptionFactory','discard','differ','locale','minColumn','getChildren','removeClass','_tableSuggestions','filter','registerDescriptionCallback','map','insertTableRowBelow','order','enableCommand','execute','getColumnIndexes','createRangeIn','type','span','insertTableColumnLeft','tableColumn','accept','TrackChangesEditing','rootName','from','forceValue','nodeAfter','minRow','rowspan','oldRange','getFirstRange','insert','enqueueChange','addClass','tableCell','addRange','insertTableRowAbove','data','commands','_getCoordsForCells','name','ELEMENT_TABLE','registerCustomCallback','isInContent','change','last','textProxy','startsWith','maxColumn','getItems','add','removeTableRow','_suggestionFactory','element','tablePaste','tableRow','ELEMENT_TABLE_COLUMN_WITH_TEXT','getRowIndexes','getRanges','MIN_SAFE_INTEGER','table','TableEditing','has','registerElementLabel','registerPostFixer','min','getAttribute','cell','item','createRangeOn','_tablePostFixingSubtypes','MAX_SAFE_INTEGER','start','left','subType','*Remove:*\x20%0','toLowerCase','isTouching','join','getCellLocation','insertion','selectTableColumn','removeTableColumn'];(function(_0x2f4ca1,_0x27d4e6){const _0x598831=function(_0x1218e9){while(--_0x1218e9){_0x2f4ca1['push'](_0x2f4ca1['shift']());}};_0x598831(++_0x27d4e6);}(_0x27d4,0x12a));const _0x5988=function(_0x2f4ca1,_0x27d4e6){_0x2f4ca1=_0x2f4ca1-0x0;let _0x598831=_0x27d4[_0x2f4ca1];return _0x598831;};import{Plugin as _0x2f832b}from'ckeditor5/src/core';import{LiveRange as _0x40b883}from'ckeditor5/src/engine';import{setHighlightHandling as _0x13f7fa}from'ckeditor5/src/widget';import{getTranslation as _0x576c85}from'../utils/common-translations';export default class dt extends _0x2f832b{constructor(_0x5195e8){super(_0x5195e8),this[_0x5988('0x5e')]=[_0x5988('0x4f'),'tableColumn'];}[_0x5988('0x6d')](){const _0x3cc866=this[_0x5988('0x74')],_0x8fe794=_0x3cc866[_0x5988('0x3')][_0x5988('0x7e')][_0x5988('0x16')];if(!_0x3cc866[_0x5988('0x7c')][_0x5988('0x56')](_0x5988('0x55')))return;const _0x4e3e4c=_0x3cc866[_0x5988('0x1b')],_0x23a788=_0x3cc866[_0x5988('0x7c')]['get'](_0x5988('0x2e')),_0xef7949=_0x3cc866[_0x5988('0x7c')][_0x5988('0x78')](_0x5988('0x1'));_0x23a788[_0x5988('0x18')][_0x5988('0x57')](_0x5988('0x54'),_0xec3ffc=>_0x576c85(_0x4e3e4c,_0x5988('0x41'),_0xec3ffc)),this[_0x5988('0x81')](),_0x23a788[_0x5988('0x25')](_0x5988('0x71')),_0x23a788[_0x5988('0x25')]('selectTableRow'),_0x23a788[_0x5988('0x25')](_0x5988('0x69'));for(const _0x5ab85f of[_0x5988('0x3c'),_0x5988('0x23')]){const _0x364873=_0x3cc866[_0x5988('0x3e')]['get'](_0x5ab85f);_0x23a788[_0x5988('0x25')](_0x5ab85f,_0x1d942b=>{_0x3cc866['model'][_0x5988('0x44')](_0xfcb217=>{_0x1d942b();const _0x556433=_0x5988('0x84')===_0x364873[_0x5988('0x24')],_0x38917d=_0xef7949[_0x5988('0x5')](_0x8fe794),_0x2839ed=_0xef7949['getRowIndexes'](_0x38917d),_0x81d42c=_0x556433?_0x2839ed['first']-0x1:_0x2839ed['last']+0x1,_0x7dd5c3=_0x38917d[0x0][_0x5988('0xb')](_0x5988('0x54')),_0x59c775=_0xef7949[_0x5988('0x7d')](_0x7dd5c3,{'startRow':_0x81d42c,'endRow':_0x81d42c}),_0xdbd52b=Array[_0x5988('0x30')](_0x59c775)[_0x5988('0x22')](_0x3ba11a=>_0xfcb217[_0x5988('0x5d')](_0x3ba11a['cell']));_0x23a788[_0x5988('0x76')](_0xdbd52b,_0x5988('0x4f'));});});}for(const _0x38b0e0 of[_0x5988('0x2b'),'insertTableColumnRight']){const _0x437a72=_0x3cc866[_0x5988('0x3e')][_0x5988('0x78')](_0x38b0e0);_0x23a788[_0x5988('0x25')](_0x38b0e0,_0x5b5cc4=>{_0x3cc866[_0x5988('0x3')]['change'](_0x466894=>{_0x5b5cc4();const _0x306279=_0x5988('0x61')===_0x437a72[_0x5988('0x24')],_0x11ff0f=_0xef7949[_0x5988('0x5')](_0x8fe794),_0x4faca0=_0xef7949[_0x5988('0x27')](_0x11ff0f),_0x40fba2=_0x306279?_0x4faca0[_0x5988('0x86')]-0x1:_0x4faca0[_0x5988('0x45')]+0x1,_0x288694=_0x11ff0f[0x0]['findAncestor']('table'),_0x14fa15=_0xef7949[_0x5988('0x7d')](_0x288694,{'startRow':0x0,'column':_0x40fba2,'includeAllSlots':!0x1}),_0x2d4601=Array['from'](_0x14fa15)[_0x5988('0x22')](_0x4e5f03=>_0x466894[_0x5988('0x5d')](_0x4e5f03[_0x5988('0x5b')]));_0x23a788[_0x5988('0x76')](_0x2d4601,'tableColumn');});});}for(const _0x2878be of[_0x5988('0x4b'),_0x5988('0x6a')]){const _0x5eeab8=_0x2878be[_0x5988('0xc')](0xb),_0x3ef6cb=_0x5eeab8[_0x5988('0x64')](),_0x41040f=_0x3ef6cb[_0x5988('0xc')](0x0,0x3)+'span',_0x2c2e67=_0x5988('0x54')+_0x5eeab8,_0x34cbbc=_0x5988('0x59')+_0x5eeab8,_0x3fae05=_0x5988('0x12')+_0x5eeab8;_0x23a788[_0x5988('0x25')](_0x2878be,()=>{_0x3cc866[_0x5988('0x3')][_0x5988('0x44')](_0x1a07e0=>{const _0x4ebf23=_0xef7949[_0x5988('0x5')](_0x8fe794),_0x57fc3d=_0x4ebf23[0x0][_0x5988('0xb')](_0x5988('0x54'));let _0x29e710;if(_0x5988('0x4b')==_0x2878be){const _0x365705=_0xef7949[_0x5988('0x51')](_0x4ebf23);_0x29e710={'startRow':_0x365705[_0x5988('0x86')],'endRow':_0x365705['last'],'includeAllSlots':!0x0};}else{const _0xad6073=_0xef7949[_0x5988('0x27')](_0x4ebf23);_0x29e710={'startColumn':_0xad6073[_0x5988('0x86')],'endColumn':_0xad6073[_0x5988('0x45')],'includeAllSlots':!0x0};}const _0x344ef6=_0xef7949[_0x5988('0x7d')](_0x57fc3d,_0x29e710),_0x17570e=Array[_0x5988('0x30')](_0x344ef6)['map'](({cell:_0x28155e})=>_0x28155e),_0x11a24a=le(_0x17570e[_0x5988('0x20')](_0x50de58=>_0x50de58[_0x5988('0x82')](_0x41040f))),_0x11bbc3=le(_0x17570e[_0x5988('0x20')](_0x3d6826=>!_0x3d6826[_0x5988('0x82')](_0x41040f)))['map'](_0x93b4ae=>_0x1a07e0['createRangeOn'](_0x93b4ae)),_0x229ca3=_0x23a788[_0x5988('0x7a')](_0x11bbc3,_0x2c2e67);if(_0x229ca3&&(_0x5988('0x4f')==_0x229ca3[_0x5988('0x62')]||_0x5988('0x2c')==_0x229ca3[_0x5988('0x62')])){const _0x405b5a=this[_0x5988('0x11')](_0x229ca3);for(const _0xef2507 of _0x11a24a){const _0x91edc1=_0x1a07e0[_0x5988('0x5d')](_0xef2507),_0x25e1d5=_0xef7949[_0x5988('0x67')](_0xef2507),_0x25c929=_0xef2507['getAttribute'](_0x41040f)-0x1,_0x4c2891=_0x405b5a[_0x34cbbc],_0x4c54cb=_0x405b5a[_0x3fae05];_0x4c2891<=_0x25e1d5[_0x3ef6cb]&&_0x25e1d5[_0x3ef6cb]+_0x25c929<=_0x4c54cb&&_0x229ca3[_0x5988('0x3b')](_0x91edc1);}}});});}function _0x41ddd0(_0x4d3766){const _0x3ed30c=Array[_0x5988('0x30')](_0x8fe794[_0x5988('0x52')]())[_0x5988('0x22')](_0x5e478f=>_0x40b883[_0x5988('0x6')](_0x5e478f));_0x3cc866[_0x5988('0x3')]['change'](_0x4dd19b=>{const _0x57cd3a=_0x4dd19b['batch'];_0x4d3766=_0x4d3766[_0x5988('0x20')](_0x502ac1=>_0x5988('0x4')!=_0x502ac1[_0x5988('0x15')]['rootName']),_0x4dd19b[_0x5988('0x10')](_0x4d3766),_0x3cc866[_0x5988('0x3e')][_0x5988('0x78')](_0x5988('0x4b'))[_0x5988('0x7b')](),_0x3cc866['execute'](_0x5988('0x4b'),{'forceDefaultExecution':!0x0}),_0x3cc866[_0x5988('0x3')][_0x5988('0x38')](()=>{_0x3cc866[_0x5988('0x3')][_0x5988('0x38')](_0x57cd3a,_0x523183=>{const _0x359144=_0x3ed30c[_0x5988('0x20')](_0x4865bf=>_0x5988('0x4')!=_0x4865bf[_0x5988('0x15')][_0x5988('0x2f')]);_0x359144[_0x5988('0x0')]>0x0&&_0x523183[_0x5988('0x10')](_0x359144);for(const _0x51dbd4 of _0x3ed30c)_0x51dbd4[_0x5988('0x75')]();});});});}function _0xcdafd9(_0x1d3919){_0x3cc866[_0x5988('0x3')][_0x5988('0x44')](_0x40d2c6=>{const _0x4488c6=Array[_0x5988('0x30')](_0x8fe794[_0x5988('0x52')]())['map'](_0x1db25f=>_0x40b883[_0x5988('0x6')](_0x1db25f)),_0x7ad5ed=[];for(const _0x418e69 of _0x1d3919)for(const _0x436fd1 of _0x418e69[_0x5988('0x49')]({'shallow':!0x0}))_0x7ad5ed[_0x5988('0x6f')](_0x436fd1);for(const _0x2a93c4 of _0x7ad5ed)_0x5988('0x4')!=_0x2a93c4[_0x5988('0x15')][_0x5988('0x2f')]&&(_0x40d2c6['setSelection'](_0x40d2c6[_0x5988('0x17')](_0x2a93c4,0x0)),_0x3cc866[_0x5988('0x3e')][_0x5988('0x78')]('removeTableColumn')['refresh'](),_0x3cc866[_0x5988('0x26')](_0x5988('0x6a'),{'forceDefaultExecution':!0x0}));const _0x3b1fdd=_0x4488c6[_0x5988('0x20')](_0x3e7e68=>_0x5988('0x4')!=_0x3e7e68[_0x5988('0x15')]['rootName']);_0x3b1fdd[_0x5988('0x0')]>0x0&&_0x40d2c6[_0x5988('0x10')](_0x3b1fdd);for(const _0x29c168 of _0x4488c6)_0x29c168[_0x5988('0x75')]();});}function _0x5cdb3f(_0xf32e9e,_0x3a8651){return _0x3a8651['every'](_0x37817c=>_0xf32e9e[_0x5988('0x2')](_0x3ebbe4=>_0x3ebbe4[_0x5988('0x6b')][_0x5988('0x72')](_0x37817c['start'])||_0x37817c['end']['isEqual'](_0x3ebbe4['start'])));}function _0x349d3a(_0x575d2,_0x426a1b){return _0x575d2[_0x5988('0x2')](_0x354649=>_0x426a1b['some'](_0x413d48=>_0x354649[_0x5988('0x6b')][_0x5988('0x65')](_0x413d48[_0x5988('0x60')])));}_0x3cc866[_0x5988('0x3d')]['downcastDispatcher']['on']('addMarker:suggestion',(_0x4fd939,_0x359572,_0x512ffc)=>{if(!_0x512ffc[_0x5988('0x85')][_0x5988('0x14')])return;const _0x45ea72=_0x359572[_0x5988('0x5c')];if(!_0x45ea72)return;const _0x1997af=_0x512ffc[_0x5988('0x6e')]['toViewElement'](_0x45ea72);function _0x1f3fbf(_0x10caea){return Array['isArray'](_0x10caea)?_0x10caea:[_0x10caea];}_0x1997af&&'tableCell'===_0x45ea72[_0x5988('0x40')]&&_0x13f7fa(_0x1997af,_0x512ffc['writer'],(_0x2dde63,_0x2a2dcf,_0x5df9e3)=>_0x5df9e3[_0x5988('0x39')](_0x1f3fbf(_0x2a2dcf[_0x5988('0x7')]),_0x2dde63),(_0x5d100f,_0x2cfdcc,_0x5208c8)=>_0x5208c8[_0x5988('0x1e')](_0x1f3fbf(_0x2cfdcc[_0x5988('0x7')]),_0x5d100f));},{'priority':_0x5988('0x77')}),_0x23a788[_0x5988('0x18')][_0x5988('0x21')](_0x1f63e9=>{if(_0x5988('0x68')!=_0x1f63e9['type']&&_0x5988('0x13')!=_0x1f63e9[_0x5988('0x29')])return;const _0x439ab5=_0x1f63e9[_0x5988('0x9')]();if(null!=_0x439ab5&&_0x439ab5['is'](_0x5988('0x4d'),_0x5988('0x54'))){if(_0x5988('0x68')==_0x1f63e9[_0x5988('0x29')]){const _0x1a1c41=_0x1f63e9[_0x5988('0x49')]()[_0x5988('0x20')](_0x146cc2=>_0x146cc2['is'](_0x5988('0x46')))[_0x5988('0x22')](_0xa5f7ba=>_0xa5f7ba[_0x5988('0x3d')]);if(_0x1a1c41[_0x5988('0x0')])return{'type':'insertion','content':_0x576c85(_0x4e3e4c,_0x5988('0x8'),_0x576c85(_0x4e3e4c,_0x5988('0x70'),'\x22'+_0x1a1c41[_0x5988('0x66')]('\x20')+'\x22'))};}if('deletion'==_0x1f63e9['type']){const _0x57e4f9=_0x1f63e9[_0x5988('0x49')]()[_0x5988('0x20')](_0x22d065=>_0x22d065['is'](_0x5988('0x46')))['map'](_0x5cbe47=>_0x5cbe47['data']);if(_0x57e4f9[_0x5988('0x0')])return{'type':'deletion','content':_0x576c85(_0x4e3e4c,'*Remove:*\x20%0',_0x576c85(_0x4e3e4c,_0x5988('0x70'),'\x22'+_0x57e4f9[_0x5988('0x66')]('\x20')+'\x22'))};}}}),_0x23a788['_descriptionFactory']['registerDescriptionCallback'](_0x96e463=>{if('tableRow'==_0x96e463['subType']){const _0x33f04d=_0x96e463[_0x5988('0x49')]()[_0x5988('0x20')](_0x23688e=>_0x23688e['is']('textProxy'))[_0x5988('0x22')](_0x341d3e=>_0x341d3e['data']),_0x594c80=this[_0x5988('0x11')](_0x96e463),_0x275f46=_0x594c80['maxRow']-_0x594c80[_0x5988('0x33')]+0x1;if(_0x5988('0x68')==_0x96e463['type'])return _0x33f04d[_0x5988('0x0')]?{'type':_0x5988('0x68'),'content':_0x576c85(_0x4e3e4c,_0x5988('0x8'),_0x576c85(_0x4e3e4c,_0x5988('0xd'),[_0x275f46,'\x22'+_0x33f04d[_0x5988('0x66')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x576c85(_0x4e3e4c,_0x5988('0x8'),_0x576c85(_0x4e3e4c,'ELEMENT_TABLE_ROW',_0x275f46))};if(_0x5988('0x13')==_0x96e463['type'])return _0x33f04d['length']?{'type':_0x5988('0x13'),'content':_0x576c85(_0x4e3e4c,_0x5988('0x63'),_0x576c85(_0x4e3e4c,_0x5988('0xd'),[_0x275f46,'\x22'+_0x33f04d[_0x5988('0x66')]('\x20')+'\x22']))}:{'type':_0x5988('0x13'),'content':_0x576c85(_0x4e3e4c,'*Remove:*\x20%0',_0x576c85(_0x4e3e4c,'ELEMENT_TABLE_ROW',_0x275f46))};}if(_0x5988('0x2c')==_0x96e463[_0x5988('0x62')]){const _0x336f24=_0x96e463['getItems']()[_0x5988('0x20')](_0x5636f9=>_0x5636f9['is']('textProxy'))[_0x5988('0x22')](_0x410cb5=>_0x410cb5[_0x5988('0x3d')]),_0x264d5b=this[_0x5988('0x11')](_0x96e463),_0x2d2af1=_0x264d5b[_0x5988('0x48')]-_0x264d5b[_0x5988('0x1c')]+0x1;if(_0x5988('0x68')==_0x96e463[_0x5988('0x29')])return _0x336f24[_0x5988('0x0')]?{'type':_0x5988('0x68'),'content':_0x576c85(_0x4e3e4c,'*Insert:*\x20%0',_0x576c85(_0x4e3e4c,_0x5988('0x50'),[_0x2d2af1,'\x22'+_0x336f24[_0x5988('0x66')]('\x20')+'\x22']))}:{'type':_0x5988('0x68'),'content':_0x576c85(_0x4e3e4c,_0x5988('0x8'),_0x576c85(_0x4e3e4c,_0x5988('0x7f'),_0x2d2af1))};if('deletion'==_0x96e463['type'])return _0x336f24[_0x5988('0x0')]?{'type':_0x5988('0x13'),'content':_0x576c85(_0x4e3e4c,_0x5988('0x63'),_0x576c85(_0x4e3e4c,_0x5988('0x50'),[_0x2d2af1,'\x22'+_0x336f24[_0x5988('0x66')]('\x20')+'\x22']))}:{'type':_0x5988('0x13'),'content':_0x576c85(_0x4e3e4c,_0x5988('0x63'),_0x576c85(_0x4e3e4c,_0x5988('0x7f'),_0x2d2af1))};}}),_0x23a788['_suggestionFactory']['registerCustomCallback']('insertion',_0x5988('0x4f'),_0x5988('0x19'),_0x41ddd0),_0x23a788[_0x5988('0x4c')][_0x5988('0x42')]('deletion','tableRow','accept',_0x41ddd0),_0x23a788[_0x5988('0x4c')][_0x5988('0x42')](_0x5988('0x68'),'tableColumn',_0x5988('0x19'),_0xcdafd9),_0x23a788[_0x5988('0x4c')]['registerCustomCallback']('deletion',_0x5988('0x2c'),_0x5988('0x2d'),_0xcdafd9),_0x23a788[_0x5988('0x4c')]['registerCustomCallback']('insertion',_0x5988('0x2c'),_0x5988('0x66'),_0x5cdb3f),_0x23a788[_0x5988('0x4c')][_0x5988('0x42')](_0x5988('0x13'),_0x5988('0x2c'),'join',_0x5cdb3f),_0x23a788['_suggestionFactory'][_0x5988('0x42')](_0x5988('0x68'),_0x5988('0x4f'),'join',_0x349d3a),_0x23a788[_0x5988('0x4c')]['registerCustomCallback']('deletion',_0x5988('0x4f'),_0x5988('0x66'),_0x349d3a);}[_0x5988('0x73')](){const _0x138a55=this[_0x5988('0x74')],_0x3444fb=_0x138a55[_0x5988('0x3')][_0x5988('0x7e')][_0x5988('0x16')];return(_0x1f155e,_0x27c246)=>{_0x138a55[_0x5988('0x3')][_0x5988('0x44')](_0x498d2c=>{const {commandName:_0x14529e,commandParams:_0x2d10c5}=_0x27c246;let _0x373a08=_0x1f155e[0x0][_0x5988('0x6b')][_0x5988('0x79')];_0x2d10c5&&_0x2d10c5[0x0]&&!0x1===_0x2d10c5[0x0][_0x5988('0x31')]&&(_0x373a08=_0x1f155e[0x0]['start'][_0x5988('0x32')]);const _0x228add=_0x498d2c[_0x5988('0x28')](_0x373a08);if(_0x5988('0x4')==_0x228add[_0x5988('0x15')]['rootName'])return;const _0x168dd5=Array[_0x5988('0x30')](_0x3444fb['getRanges']())['map'](_0x45b054=>_0x40b883[_0x5988('0x6')](_0x45b054));_0x498d2c[_0x5988('0x10')](_0x228add),_0x138a55[_0x5988('0x3e')]['get'](_0x14529e)[_0x5988('0x7b')](),_0x2d10c5[_0x5988('0x6f')]({'forceDefaultExecution':!0x0}),_0x138a55[_0x5988('0x26')](_0x14529e,..._0x2d10c5);const _0xa70b5c=_0x168dd5[_0x5988('0x20')](_0x1a53d4=>_0x5988('0x4')!=_0x1a53d4[_0x5988('0x15')][_0x5988('0x2f')]);_0xa70b5c[_0x5988('0x0')]>0x0&&_0x498d2c[_0x5988('0x10')](_0xa70b5c);for(const _0x9148d2 of _0x168dd5)_0x9148d2[_0x5988('0x75')]();});};}[_0x5988('0x3f')](_0x2e1866){const _0x31be49=this[_0x5988('0x74')][_0x5988('0x7c')][_0x5988('0x78')](_0x5988('0x1'));let _0x1532aa=Number['MAX_SAFE_INTEGER'],_0x457fc8=Number[_0x5988('0x53')],_0x32519f=Number[_0x5988('0x5f')],_0x101aba=Number[_0x5988('0x53')];for(const _0x117011 of _0x2e1866){if(_0x5988('0x4')==_0x117011[_0x5988('0x15')][_0x5988('0x2f')])continue;const {row:_0x57e155,column:_0x35bc5e}=_0x31be49['getCellLocation'](_0x117011),_0x2ee11a=_0x117011[_0x5988('0x82')]('rowspan')?_0x117011[_0x5988('0x5a')](_0x5988('0x34'))-0x1:0x0,_0x518c04=_0x117011[_0x5988('0x82')](_0x5988('0x6c'))?_0x117011[_0x5988('0x5a')](_0x5988('0x6c'))-0x1:0x0;_0x1532aa=_0x57e155<_0x1532aa?_0x57e155:_0x1532aa,_0x457fc8=_0x57e155+_0x2ee11a>_0x457fc8?_0x57e155+_0x2ee11a:_0x457fc8,_0x32519f=_0x35bc5e<_0x32519f?_0x35bc5e:_0x32519f,_0x101aba=_0x35bc5e+_0x518c04>_0x101aba?_0x35bc5e+_0x518c04:_0x101aba;}return{'minRow':_0x1532aa,'maxRow':_0x457fc8,'minColumn':_0x32519f,'maxColumn':_0x101aba};}[_0x5988('0x81')](){const _0x33e7f0=this[_0x5988('0x74')],_0x20dbdf=_0x33e7f0[_0x5988('0x7c')][_0x5988('0x78')]('TrackChangesEditing'),_0x27fa3c=_0x33e7f0[_0x5988('0x7c')][_0x5988('0x78')](_0x5988('0x1'));this['_tableSuggestions']=new Set(),_0x33e7f0[_0x5988('0x3')][_0x5988('0x7e')]['on']('change:data',()=>{const _0x5e09b7=Array[_0x5988('0x30')](_0x33e7f0[_0x5988('0x3')][_0x5988('0x7e')][_0x5988('0x1a')][_0x5988('0xf')]());for(const {name:_0x23883c,data:_0x27d7a7}of _0x5e09b7){const {group:_0x2bc0b6,id:_0x6c61d8,subType:_0x52186c}=_0x20dbdf['_splitMarkerName'](_0x23883c);if('suggestion'!=_0x2bc0b6)continue;if(null!=_0x27d7a7[_0x5988('0x35')])continue;const _0x1a2733=_0x20dbdf['getSuggestion'](_0x6c61d8);this[_0x5988('0x5e')][_0x5988('0xe')](_0x52186c)&&this[_0x5988('0x1f')][_0x5988('0x4a')](_0x1a2733);}},{'priority':'low'});const _0x22e349=(_0x3ceedc,_0x6e9913)=>{let _0x1d227d=!0x1;const _0x5da54f=_0x6e9913[_0x5988('0x5d')](_0x3ceedc),_0x150656=_0x3ceedc[_0x5988('0xb')]('table'),_0x1e853d=_0x27fa3c[_0x5988('0x67')](_0x3ceedc);for(const _0x283cf1 of this['_tableSuggestions']){const _0x58b881=_0x283cf1[_0x5988('0x62')],_0x425452=_0x58b881[_0x5988('0x47')](_0x5988('0x4e')),_0x4baedb=_0x58b881[_0x5988('0xc')](_0x425452?0xa:0x5),_0x34f825=_0x4baedb[_0x5988('0x64')](),_0xb6db91=_0x34f825['substr'](0x0,0x3)+_0x5988('0x2a'),_0x268b33='min'+_0x4baedb,_0x41d33e='max'+_0x4baedb;if(!_0x283cf1[_0x5988('0x43')])continue;if(_0x150656!=_0x283cf1[_0x5988('0x36')]()[_0x5988('0x60')][_0x5988('0xb')](_0x5988('0x54')))continue;if(_0x283cf1['isIntersectingWithRange'](_0x5da54f))continue;const _0x82e995=_0x3ceedc[_0x5988('0x82')](_0xb6db91)?_0x3ceedc[_0x5988('0x5a')](_0xb6db91)-0x1:0x0,_0x1e1847=this[_0x5988('0x11')](_0x283cf1),_0x5149ee=_0x1e1847[_0x268b33],_0x5519e4=_0x1e1847[_0x41d33e];_0x5149ee<=_0x1e853d[_0x34f825]&&_0x1e853d[_0x34f825]+_0x82e995<=_0x5519e4&&(_0x283cf1[_0x5988('0x3b')](_0x5da54f),_0x1d227d=!0x0);}return _0x1d227d;};_0x33e7f0['model'][_0x5988('0x7e')][_0x5988('0x58')](_0xde19ba=>{let _0x45cdad=!0x1;for(const _0x55d79b of _0x33e7f0[_0x5988('0x3')][_0x5988('0x7e')]['differ'][_0x5988('0xa')]())if(_0x5988('0x37')==_0x55d79b[_0x5988('0x29')]){if('tableRow'==_0x55d79b[_0x5988('0x40')])for(const _0x4146a7 of _0x55d79b[_0x5988('0x83')]['nodeAfter'][_0x5988('0x1d')]())_0x45cdad=_0x45cdad||_0x22e349(_0x4146a7,_0xde19ba);else _0x5988('0x3a')==_0x55d79b[_0x5988('0x40')]&&(_0x45cdad=_0x45cdad||_0x22e349(_0x55d79b[_0x5988('0x83')]['nodeAfter'],_0xde19ba));}return _0x45cdad;});}[_0x5988('0x11')](_0x3eb705){return this['_getCoordsForCells'](_0x3eb705[_0x5988('0x52')]()[_0x5988('0x22')](_0x27e218=>_0x27e218[_0x5988('0x60')][_0x5988('0x32')]));}}function le(_0x3c9284){return Array['from'](new Set(_0x3c9284)[_0x5988('0x80')]());}
|
|
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
|
+
}
|