@ckeditor/ckeditor5-track-changes 36.0.1 → 37.0.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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x349d=['model','markMultiRangeBlockFormat','end','nodeAfter','fromEntries','getContainedElement','high','table','find','Users','getSelectionAffectedTableCells','_tablePostFixingSubtypes','tablePasteCell','getColumnIndexes','getSuggestion','suggestion','has','wrap','insertionRanges','add','subType','selection','setAttribute','previousSibling','element','name','forceDefaultExecution','tableCellBorderWidth','removeMarkers','tableCellPadding','rows','ck-suggestion-marker-insertion','change','for','getSuggestions','_isForcedDefaultExecutionBlock','findAncestor','suggestionLoaded','markMultiRangeInsertion','suggestion-td','createPositionBefore','trackChanges','createElement','markMultiRangeDeletion','markers','commands','markerAttributes','attributes','next','formatBlock','move','author','unwrap','keys','removeRows','rowInsertionIndexes','schema','_getCoordsForCells','tableCellBackgroundColor','differ','endRow','_splitMarkerName','activeMarkers','nextSibling','registerPostFixer','cell','push','previous','markerToHighlight','isInContent','column','removeMarker','afterInit','tableCellVerticalAlignment','endColumn','suggestion:formatBlock:tablePasteCell','root','rootName','remove','editor','TableClipboard','length','start','clipboardOutput','getTableIfOnlyTableInContent','getColumns','dataDowncast','from','startsWith','set','view','columns','createRange','markerName','updateMarker','registerDescriptionCallback','createRangeIn','createTableWalker','content','isEmpty','low','getRanges','getChildren','columnInsertionIndexes','tablePasteColumn','redo','$graveyard','batch','stop','insert','some','every','ck-suggestion-marker','tablePasteRow','document','_createdBatches','getRows','isEqual','insertRows','get','register','columnInsertionRanges','includes','removeColumns','accept','type','listenTo','last','editingDowncast','requires','filter','registerCustomCallback','showSuggestionHighlights','createRangeOn','getItems','cells','fill','_replaceTableSlotCell','suggestionUnloaded','join','tablePasteChainId','getAllAdjacentSuggestions','getSuggestionCallback','tablePaste','_suggestionFactory','tableCellSuggestion','deletion','map','oldRange','insertion','row','reduce','getRowIndexes','paragraph','elementToElement','plugins','setAttributes','options','discard','conversion','getRange','tableCellBorderStyle','newRange','getChild','getChanges','tableCell','getMarkers','containsRange','position','tableCellBorderColor','entries','getChangedMarkers','first'];(function(_0x49a9fe,_0x349dc3){const _0x43691e=function(_0x2d6952){while(--_0x2d6952){_0x49a9fe['push'](_0x49a9fe['shift']());}};_0x43691e(++_0x349dc3);}(_0x349d,0x199));const _0x4369=function(_0x49a9fe,_0x349dc3){_0x49a9fe=_0x49a9fe-0x0;let _0x43691e=_0x349d[_0x49a9fe];return _0x43691e;};import{getTranslation as _0x48a25c}from'../utils/common-translations';import{Plugin as _0x1f5731}from'ckeditor5/src/core';import _0x5615a7 from'./table';import{uid as _0x37e22f,priorities as _0x3f4cbc}from'ckeditor5/src/utils';const ae=[_0x4369('0x89'),_0x4369('0x6a'),_0x4369('0x62'),'tableCellHorizontalAlignment',_0x4369('0xa'),_0x4369('0xa8'),_0x4369('0x8b')],ce=Object[_0x4369('0x72')](ae[_0x4369('0x54')](_0x6a111e=>[_0x6a111e,null]));export default class wt extends _0x1f5731{static get[_0x4369('0x42')](){return[_0x5615a7];}[_0x4369('0x9')](){const _0x21ebb5=this[_0x4369('0x10')];if(!_0x21ebb5[_0x4369('0x5c')]['has'](_0x4369('0x11')))return;const _0x3f9d7d=_0x21ebb5[_0x4369('0x5c')]['get']('TrackChangesEditing'),_0xfc873=_0x21ebb5[_0x4369('0x5c')][_0x4369('0x38')]('TableUtils'),_0x3c5dd1=_0x21ebb5[_0x4369('0x5c')][_0x4369('0x38')](_0x5615a7),_0x3b7906=_0x21ebb5[_0x4369('0x5c')][_0x4369('0x38')]('TableClipboard');_0x3c5dd1[_0x4369('0x79')][_0x4369('0x3')](_0x4369('0x32'),_0x4369('0x29')),_0x21ebb5[_0x4369('0x6e')][_0x4369('0xa6')][_0x4369('0x39')](_0x4369('0x52'),{'allowIn':'tableCell','allowContentOf':_0x4369('0x66'),'isLimit':!0x0}),_0x21ebb5[_0x4369('0x60')][_0x4369('0x5b')]({'model':_0x4369('0x52'),'view':_0x4369('0x95')});let _0x304b69=null;_0x21ebb5[_0x4369('0x6e')]['on']('insertContent',(_0x2235f8,_0x3c6cb0)=>{const [_0x232b5d,_0x55b419]=_0x3c6cb0,_0x37925a=_0x3c6cb0[_0x3c6cb0[_0x4369('0x12')]-0x1];_0x37925a&&_0x37925a[_0x4369('0x88')]||_0x3f9d7d[_0x4369('0x91')]||this[_0x4369('0x10')][_0x4369('0x9b')][_0x4369('0x38')](_0x4369('0x97'))['value']&&function(_0x50c8a8,_0x18b6a8,_0x3485a4,_0x55c453,_0x4b6c3a){if(_0x18b6a8&&!_0x18b6a8['is']('documentSelection'))return!0x1;const _0x301ed8=_0x4b6c3a[_0x4369('0x15')](_0x50c8a8,_0x3485a4);if(!_0x301ed8||!ue(_0x301ed8,null,_0x55c453))return!0x1;const _0x5eaeeb=_0x55c453[_0x4369('0x78')](_0x3485a4[_0x4369('0x33')][_0x4369('0x83')]);if(!_0x5eaeeb['length'])return!0x1;const _0x486a58=_0x5eaeeb[0x0]['findAncestor']('table'),_0x330ae5=_0x55c453[_0x4369('0x59')](_0x5eaeeb),_0x2221fe=_0x55c453[_0x4369('0x7b')](_0x5eaeeb),_0x2888bd={'startRow':_0x330ae5[_0x4369('0x6d')],'endRow':_0x330ae5[_0x4369('0x40')],'startColumn':_0x2221fe[_0x4369('0x6d')],'endColumn':_0x2221fe[_0x4369('0x40')]};return 0x1==_0x5eaeeb['length']&&(_0x2888bd[_0x4369('0xaa')]+=_0x55c453[_0x4369('0x35')](_0x301ed8)-0x1,_0x2888bd[_0x4369('0xb')]+=_0x55c453[_0x4369('0x16')](_0x301ed8)-0x1),ue(_0x486a58,_0x2888bd,_0x55c453);}(_0x232b5d,_0x55b419,_0x21ebb5[_0x4369('0x6e')],_0xfc873,_0x3b7906)&&(_0x2235f8[_0x4369('0x2d')](),_0x304b69={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x21ebb5['model'][_0x4369('0x8e')](()=>{_0x21ebb5[_0x4369('0x6e')]['insertContent'](_0x3c6cb0[0x0],_0x3c6cb0[0x1],_0x3c6cb0[0x2],_0x3c6cb0[0x3],{'forceDefaultExecution':!0x0});const _0x3a1225=_0x37e22f(),{rowInsertionRanges:_0x11023a,columnInsertionRanges:_0x14de78,insertionRanges:_0x2c6772,deletionRanges:_0x1a514b,cells:_0x57a4f1}=_0x304b69;_0x11023a[_0x4369('0x12')]&&_0x3f9d7d['markMultiRangeInsertion'](_0x11023a,_0x4369('0x32'),{'tablePasteChainId':_0x3a1225}),_0x14de78[_0x4369('0x12')]&&_0x3f9d7d['markMultiRangeInsertion'](_0x14de78,_0x4369('0x29'),{'tablePasteChainId':_0x3a1225}),_0x2c6772[_0x4369('0x12')]&&_0x3f9d7d[_0x4369('0x94')](_0x2c6772,_0x4369('0x50'),{'tablePasteChainId':_0x3a1225,'skipNestingCheck':!0x0}),_0x1a514b[_0x4369('0x12')]&&_0x3f9d7d[_0x4369('0x99')](_0x1a514b,'tablePaste',{'tablePasteChainId':_0x3a1225,'skipNestingCheck':!0x0});const _0x5ee89d=_0x3f9d7d[_0x4369('0x6f')](_0x57a4f1[_0x4369('0x54')](({element:_0x55fe05})=>_0x55fe05),{'formatGroupId':_0x37e22f()},[],_0x4369('0x7a'),{'tablePasteChainId':_0x3a1225});if(_0x5ee89d){const _0x3180ba=_0x5ee89d[_0x4369('0x67')](),_0x2f2a68=[];for(const {element:_0x1f8b25,attributes:_0x1d9ec7}of _0x57a4f1){if(!_0x1d9ec7)continue;const _0x3f6099=_0x21ebb5[_0x4369('0x6e')]['createRangeOn'](_0x1f8b25),_0x408ecc=_0x3180ba['find'](_0x3979d0=>_0x3979d0[_0x4369('0x61')]()['isEqual'](_0x3f6099));_0x408ecc&&_0x2f2a68[_0x4369('0x3')]([_0x408ecc['name'],_0x1d9ec7]);}_0x2f2a68['length']&&_0x5ee89d[_0x4369('0x84')](_0x4369('0x9c'),Object[_0x4369('0x72')](_0x2f2a68));}_0x304b69=null;}));},{'priority':_0x3f4cbc[_0x4369('0x74')]+0xa}),_0x21ebb5[_0x4369('0x5c')][_0x4369('0x38')](_0x4369('0x11'))['on'](_0x4369('0x4a'),(_0x4d44d4,_0x1e81bb)=>{const [_0x1152ca,_0x19f52a,,_0x40d56b]=_0x1e81bb;if(!_0x304b69)return;_0x4d44d4[_0x4369('0x2d')]();const _0x4e66c0=_0x1152ca[_0x4369('0x2')],_0x3875f7=_0x19f52a,_0x4ec789=fe(_0x4e66c0),_0x268caf=fe(_0x3875f7);_0x4d44d4['return']=_0x4e66c0;let _0x1cd2f2=null,_0x1c61d5=null;if(_0x268caf||_0x4ec789){if(_0x4ec789&&!_0x268caf){_0x40d56b[_0x4369('0xf')](_0x4e66c0[_0x4369('0x64')](0x0));for(const _0x46ed9e of Array[_0x4369('0x18')](_0x3875f7[_0x4369('0x27')]()))_0x40d56b[_0x4369('0x2e')](_0x46ed9e,_0x4e66c0,_0x4369('0x70'));const _0x1fcc92=_0x304b69[_0x4369('0xa5')][_0x4369('0x3b')](_0x1152ca[_0x4369('0x57')]),_0x56f8d1=_0x304b69[_0x4369('0x28')]['includes'](_0x1152ca[_0x4369('0x7')]);_0x1fcc92||_0x56f8d1||(_0x1cd2f2=_0x40d56b[_0x4369('0x21')](_0x4e66c0));}else _0x268caf&&!_0x4ec789&&(_0x1c61d5=_0x40d56b[_0x4369('0x21')](_0x4e66c0));}else{const _0x2ed75d=_0x40d56b['createElement']('tableCellSuggestion'),_0x11f91e=_0x40d56b[_0x4369('0x98')](_0x4369('0x52'));_0x40d56b[_0x4369('0x7f')](_0x40d56b[_0x4369('0x21')](_0x4e66c0),_0x11f91e),_0x40d56b[_0x4369('0x2e')](_0x2ed75d,_0x4e66c0,0x0);for(const _0x1c2643 of Array[_0x4369('0x18')](_0x3875f7[_0x4369('0x27')]()))_0x40d56b[_0x4369('0x2e')](_0x1c2643,_0x2ed75d,'end');_0x1cd2f2=_0x40d56b[_0x4369('0x46')](_0x2ed75d),_0x1c61d5=_0x40d56b[_0x4369('0x46')](_0x11f91e);}const _0x1f603a=Array[_0x4369('0x18')](_0x3875f7['getAttributes']())[_0x4369('0x43')](([_0x512f1d])=>ae[_0x4369('0x3b')](_0x512f1d));_0x304b69[_0x4369('0x48')][_0x4369('0x3')]({'element':_0x4e66c0,'attributes':_0x1f603a[_0x4369('0x12')]?Object['fromEntries'](_0x1f603a):null}),_0x1cd2f2&&_0x304b69[_0x4369('0x80')][_0x4369('0x3')](_0x1cd2f2),_0x1c61d5&&_0x304b69['deletionRanges'][_0x4369('0x3')](_0x1c61d5);},{'priority':'high'}),_0xfc873['on']('insertColumns',(_0x225a45,_0x422b29)=>{const [_0x1b1534,_0x29bf46={}]=_0x422b29;if(!_0x304b69)return;const _0x251efd=_0x29bf46['at']||0x0,_0x4c9d63=_0x29bf46[_0x4369('0x1c')]||0x1;_0x304b69[_0x4369('0x28')]=new Array(_0x4c9d63)[_0x4369('0x49')](_0x251efd)[_0x4369('0x54')]((_0x5170bb,_0x35bc51)=>_0x5170bb+_0x35bc51);for(const {cell:_0x2f0acb}of _0xfc873[_0x4369('0x22')](_0x1b1534,{'startColumn':_0x251efd,'endColumn':_0x251efd+_0x4c9d63-0x1}))_0x304b69[_0x4369('0x3a')][_0x4369('0x3')](_0x21ebb5[_0x4369('0x6e')][_0x4369('0x46')](_0x2f0acb));},{'priority':_0x4369('0x25')}),_0xfc873['on'](_0x4369('0x37'),(_0x5566a4,_0x199c73)=>{const [_0x22fcf3,_0x8cff55={}]=_0x199c73;if(!_0x304b69)return;const _0x7afb59=_0x8cff55['at']||0x0,_0x3bda9b=_0x8cff55[_0x4369('0x8c')]||0x1;_0x304b69['rowInsertionIndexes']=new Array(_0x3bda9b)[_0x4369('0x49')](_0x7afb59)[_0x4369('0x54')]((_0xdc7576,_0x4fb91f)=>_0xdc7576+_0x4fb91f);for(const {cell:_0x30a617}of _0xfc873[_0x4369('0x22')](_0x22fcf3,{'startRow':_0x7afb59,'endRow':_0x7afb59+_0x3bda9b-0x1}))_0x304b69['rowInsertionRanges'][_0x4369('0x3')](_0x21ebb5[_0x4369('0x6e')]['createRangeOn'](_0x30a617));},{'priority':_0x4369('0x25')}),_0x3f9d7d['_descriptionFactory'][_0x4369('0x20')](_0x4475ff=>{if(_0x4475ff[_0x4369('0x82')]&&_0x4475ff[_0x4369('0x82')][_0x4369('0x19')]('tablePaste'))return _0x4475ff[_0x4369('0x4')]?{}:{'type':_0x4369('0x56'),'content':_0x48a25c(_0x21ebb5['locale'],'*Replace\x20table\x20cells*')};});const _0x1a7807=()=>{};for(const _0x589178 of[_0x4369('0x50'),_0x4369('0x29'),'tablePasteRow',_0x4369('0x7a')])_0x3f9d7d[_0x4369('0x51')][_0x4369('0x44')]('insertion',_0x589178,'join',_0x1a7807),_0x3f9d7d[_0x4369('0x51')][_0x4369('0x44')](_0x4369('0x53'),_0x589178,_0x4369('0x4c'),_0x1a7807);_0x3f9d7d['_suggestionFactory'][_0x4369('0x44')](_0x4369('0x9f'),_0x4369('0x7a'),_0x4369('0x5f'),_0x1a7807),_0x3f9d7d[_0x4369('0x51')][_0x4369('0x44')]('formatBlock',_0x4369('0x7a'),_0x4369('0x3d'),(_0xdfc2ce,_0x1e0b4a,_0x344b3a)=>{const _0x4136cc=_0xdfc2ce['map'](_0x4e5edc=>_0x4e5edc['getContainedElement']())[_0x4369('0x43')](_0x40df44=>_0x40df44),_0x550cb8=new Map(_0x4136cc[_0x4369('0x54')](_0x2900ae=>[_0x2900ae,null]));if(_0x304b69)for(const {element:_0x5179f3,attributes:_0x161b46}of _0x304b69[_0x4369('0x48')])_0x161b46&&_0x550cb8[_0x4369('0x1a')](_0x5179f3,_0x161b46);else{if(_0x344b3a&&_0x344b3a[_0x4369('0x9c')])for(const [_0x5de1a8,_0x58826e]of Object[_0x4369('0x6b')](_0x344b3a[_0x4369('0x9c')])){const _0x421bda=_0x21ebb5['model'][_0x4369('0x9a')][_0x4369('0x38')](_0x5de1a8),_0x5004da=_0x421bda?_0x421bda[_0x4369('0x61')]()[_0x4369('0x73')]():null;_0x5004da&&_0x550cb8[_0x4369('0x1a')](_0x5004da,_0x58826e);}}_0x21ebb5[_0x4369('0x6e')][_0x4369('0x8e')](_0x1de505=>{for(const [_0x3901c5,_0x18e01f]of _0x550cb8)_0x1de505[_0x4369('0x5d')]({...ce,..._0x18e01f},_0x3901c5);});});const _0x578dfb=(_0x875b53,_0x13c9bb)=>{_0x3f9d7d[_0x4369('0x51')]['registerCustomCallback'](_0x875b53,_0x4369('0x50'),_0x13c9bb,(_0x544d1c,_0x38b84a,_0x4efb37)=>{_0x21ebb5['model']['change'](_0x39983e=>{const _0x20b09e=[];for(const _0x2f695e of _0x544d1c){const _0x1502c2=_0x2f695e[_0x4369('0x13')][_0x4369('0x71')];_0x1502c2['is'](_0x4369('0x86'),_0x4369('0x52'))&&_0x20b09e['push'](_0x1502c2);}_0x3f9d7d[_0x4369('0x51')][_0x4369('0x4f')](_0x875b53,null,_0x13c9bb)(_0x544d1c,_0x38b84a,_0x4efb37);for(const _0x410eb7 of _0x20b09e)_0x4369('0x2b')!=_0x410eb7[_0x4369('0xd')][_0x4369('0xe')]&&_0x39983e['unwrap'](_0x410eb7);});});};_0x578dfb(_0x4369('0x56'),_0x4369('0x3d')),_0x578dfb(_0x4369('0x56'),_0x4369('0x5f')),_0x578dfb(_0x4369('0x53'),_0x4369('0x3d')),_0x578dfb(_0x4369('0x53'),_0x4369('0x5f')),_0x3f9d7d[_0x4369('0x51')][_0x4369('0x44')](_0x4369('0x56'),_0x4369('0x32'),_0x4369('0x5f'),_0x4b264a=>{const _0x77d7d6=_0x4b264a[_0x4369('0x54')](_0x511953=>_0x511953[_0x4369('0x73')]()),_0x31570b=_0x77d7d6[0x0][_0x4369('0x92')](_0x4369('0x75')),{minRow:_0x1399cb,maxRow:_0x575d77}=_0x3c5dd1[_0x4369('0xa7')](_0x77d7d6);_0xfc873[_0x4369('0xa4')](_0x31570b,{'at':_0x1399cb,'rows':_0x575d77-_0x1399cb+0x1});}),_0x3f9d7d[_0x4369('0x51')][_0x4369('0x44')](_0x4369('0x56'),_0x4369('0x29'),_0x4369('0x5f'),_0x519426=>{const _0x52b3a3=_0x519426['map'](_0x1552f3=>_0x1552f3['getContainedElement']()),_0x41fe17=_0x52b3a3[0x0][_0x4369('0x92')]('table'),{minColumn:_0x1fc77f,maxColumn:_0x3b3d01}=_0x3c5dd1[_0x4369('0xa7')](_0x52b3a3);_0xfc873[_0x4369('0x3c')](_0x41fe17,{'at':_0x1fc77f,'columns':_0x3b3d01-_0x1fc77f+0x1});});const _0x20db95=(_0x4630c5,_0x34d382)=>{if(!_0x34d382[_0x4369('0x82')]||!_0x34d382[_0x4369('0x82')][_0x4369('0x19')](_0x4369('0x50')))return;const _0x539f66=_0x34d382[_0x4369('0x9d')][_0x4369('0x4d')],_0x2197c8=_0x3f9d7d[_0x4369('0x90')]()[_0x4369('0x43')](_0x136bd5=>_0x136bd5[_0x4369('0x6')]&&_0x136bd5[_0x4369('0x9d')]&&_0x136bd5[_0x4369('0x9d')][_0x4369('0x4d')]==_0x539f66);_0x2197c8[_0x4369('0x12')]&&_0x34d382[_0x4369('0x4e')]()[_0x4369('0x12')]!=_0x2197c8[_0x4369('0x12')]&&_0x2197c8[_0x4369('0x58')]((_0x8e021e,_0x5dc352)=>(_0x8e021e[_0x4369('0x9e')]=_0x5dc352,_0x5dc352[_0x4369('0x4')]=_0x8e021e,_0x5dc352));};function _0x38427f(_0x23868c,{showActiveMarker:_0x4f5c11=!0x0}={}){const {id:_0x3625ee}=_0x3f9d7d['_splitMarkerName'](_0x23868c[_0x4369('0x1e')]),_0x2355c9=[_0x4369('0x31'),_0x4369('0x8d')],_0x3e942a=_0x3f9d7d[_0x4369('0xac')]['includes'](_0x23868c[_0x4369('0x1e')]);return _0x3e942a&&_0x2355c9[_0x4369('0x3')]('ck-suggestion-marker--active'),{'classes':_0x2355c9,'attributes':{'data-suggestion':_0x3625ee},'priority':_0x3e942a&&_0x4f5c11?0xbc2:0xbb8};}_0x3f9d7d['on'](_0x4369('0x93'),_0x20db95,{'priority':_0x4369('0x74')}),_0x3f9d7d['on'](_0x4369('0x4b'),_0x20db95,{'priority':'high'}),_0x21ebb5[_0x4369('0x6e')][_0x4369('0x33')][_0x4369('0x1')](()=>{let _0x56f0d2=!0x1;const _0x5c98e7=Array['from'](_0x21ebb5[_0x4369('0x6e')][_0x4369('0x33')][_0x4369('0xa9')][_0x4369('0x6c')]());for(const {name:_0x3057e1,data:_0x1a823d}of _0x5c98e7){const {group:_0x1d399c,type:_0x3faa1f,id:_0x279b9e}=_0x3f9d7d[_0x4369('0xab')](_0x3057e1);if(_0x4369('0x7d')!=_0x1d399c||_0x4369('0x53')!=_0x3faa1f||_0x1a823d['oldRange'])continue;if(!_0x3f9d7d['hasSuggestion'](_0x279b9e))continue;const _0x403566=_0x3f9d7d[_0x4369('0x7c')](_0x279b9e)[_0x4369('0x26')](),_0x323a0b=_0x21ebb5[_0x4369('0x5c')][_0x4369('0x38')](_0x4369('0x77'))['me'];for(const _0x3bb249 of _0x3f9d7d[_0x4369('0x90')]()){if(!_0x3bb249[_0x4369('0x6')]||_0x3bb249['author']!=_0x323a0b)continue;if(_0x4369('0x9f')!=_0x3bb249[_0x4369('0x3e')]||'tablePasteCell'!=_0x3bb249[_0x4369('0x82')])continue;if(_0x3bb249[_0x4369('0x26')]()[_0x4369('0x30')](_0x4a01a0=>_0x403566[_0x4369('0x2f')](_0x3af6f8=>_0x3af6f8[_0x4369('0x68')](_0x4a01a0,!0x0))))for(const _0x37953c of _0x3bb249['getAllAdjacentSuggestions']())_0x37953c[_0x4369('0x6')]&&(_0x37953c['discard'](),_0x56f0d2=!0x0);}}return _0x56f0d2;}),_0x21ebb5[_0x4369('0x6e')][_0x4369('0x33')][_0x4369('0x1')](_0x454f56=>{const _0x252427=_0x21ebb5[_0x4369('0x9b')][_0x4369('0x38')](_0x4369('0x2a'));if(!_0x252427||!_0x252427[_0x4369('0x34')][_0x4369('0x7e')](_0x454f56[_0x4369('0x2c')]))return!0x1;let _0x1c3023=!0x1;const _0x10a090=_0x21ebb5[_0x4369('0x5c')][_0x4369('0x38')](_0x4369('0x77'))['me'],_0x12175f=_0x21ebb5[_0x4369('0x6e')][_0x4369('0x33')]['differ'][_0x4369('0x65')](),_0x12c982=Array['from'](_0x21ebb5[_0x4369('0x6e')]['document'][_0x4369('0xa9')][_0x4369('0x6c')]())[_0x4369('0x43')](({name:_0x536a28,data:_0xf67852})=>{const {group:_0x2a58b3,subType:_0x4d6064,authorId:_0x511ee8}=_0x3f9d7d[_0x4369('0xab')](_0x536a28);return _0x4369('0x7d')==_0x2a58b3&&_0x4369('0x50')==_0x4d6064&&_0x511ee8==_0x10a090['id']&&!_0xf67852[_0x4369('0x55')];});for(const _0x42249d of _0x12175f){if(_0x4369('0x2e')!=_0x42249d[_0x4369('0x3e')]||_0x4369('0x52')!=_0x42249d[_0x4369('0x87')]||0x1!=_0x42249d[_0x4369('0x12')])continue;const _0x10e814=_0x454f56[_0x4369('0x1d')](_0x42249d['position'],_0x42249d[_0x4369('0x69')]['getShiftedBy'](0x1));if(!_0x12c982[_0x4369('0x76')](({data:_0x199647})=>_0x199647[_0x4369('0x63')][_0x4369('0x36')](_0x10e814)))for(const {name:_0xa9cde3,data:_0x1a8a89}of _0x12c982)if(_0x10e814[_0x4369('0x68')](_0x1a8a89['newRange'])){_0x454f56[_0x4369('0x1f')](_0xa9cde3,{'range':_0x10e814}),_0x1c3023=!0x0;break;}}return _0x1c3023;}),_0x21ebb5[_0x4369('0x6e')][_0x4369('0x33')]['registerPostFixer'](_0x24d253=>{let _0x38f9b9=!0x1;const _0x21f24a=_0x21ebb5['plugins']['get']('Users')['me'],_0x132520=_0x3f9d7d['getSuggestions']()['filter'](_0x2c3125=>_0x2c3125[_0x4369('0x6')]&&_0x2c3125[_0x4369('0xa1')]==_0x21f24a),_0x31d6e2=new Set(),_0x52c41f=new Set();for(const _0x38f5b1 of _0x132520)if(_0x4369('0x50')==_0x38f5b1[_0x4369('0x82')])for(const _0x2390f1 of _0x38f5b1[_0x4369('0x67')]()){const _0x3ca4f5=_0x2390f1[_0x4369('0x61')]()[_0x4369('0x73')]();if(_0x3ca4f5){if(_0x3ca4f5['is'](_0x4369('0x86'),_0x4369('0x52'))&&fe(_0x3ca4f5)){_0x38f5b1[_0x4369('0x8')](_0x2390f1[_0x4369('0x87')]),_0x31d6e2[_0x4369('0x81')](_0x3ca4f5),_0x38f9b9=!0x0;const _0x88e4a1=_0x3ca4f5[_0x4369('0x0')],_0x2e9fc9=_0x3ca4f5[_0x4369('0x85')],_0x251aa7=_0x88e4a1&&_0x88e4a1['is'](_0x4369('0x86'),_0x4369('0x52')),_0x2b5e52=_0x2e9fc9&&_0x2e9fc9['is'](_0x4369('0x86'),_0x4369('0x52'));_0x251aa7&&!_0x31d6e2['has'](_0x88e4a1)&&_0x52c41f[_0x4369('0x81')](_0x88e4a1),_0x2b5e52&&!_0x31d6e2[_0x4369('0x7e')](_0x2e9fc9)&&_0x52c41f['add'](_0x2e9fc9);}else _0x3ca4f5['is'](_0x4369('0x86'),_0x4369('0x5a'))&&_0x3ca4f5[_0x4369('0x24')]&&(_0x38f5b1[_0x4369('0x8')](_0x2390f1[_0x4369('0x87')]),_0x38f9b9=!0x0);}}else{if(_0x4369('0x7a')==_0x38f5b1[_0x4369('0x82')]){if(!_0x38f5b1[_0x4369('0x9d')]||!_0x38f5b1[_0x4369('0x9d')]['tablePasteChainId'])continue;const _0x26d04f=_0x38f5b1['attributes'][_0x4369('0x9c')];if(_0x26d04f&&Object[_0x4369('0xa3')](_0x26d04f)['length'])continue;const _0x4b7037=_0x38f5b1[_0x4369('0x9d')][_0x4369('0x4d')];let _0x5dd172=!0x0,_0xd48646=!0x0;for(const _0xdd4a97 of _0x132520)if(_0xdd4a97[_0x4369('0x82')]&&_0xdd4a97[_0x4369('0x82')][_0x4369('0x19')](_0x4369('0x50'))){if(!_0xdd4a97[_0x4369('0x9d')]['tablePasteChainId']){_0xd48646=!0x1;break;}if(_0xdd4a97['id']!=_0x38f5b1['id']&&_0xdd4a97['attributes']['tablePasteChainId']==_0x4b7037){_0x5dd172=!0x1;break;}}_0xd48646&&_0x5dd172&&(_0x38f5b1[_0x4369('0x8a')](),_0x38f9b9=!0x0);}}for(const _0x184b78 of _0x31d6e2)_0x24d253[_0x4369('0xf')](_0x184b78);for(const _0x51e4d2 of _0x52c41f)_0x24d253[_0x4369('0xa2')](_0x51e4d2);return _0x38f9b9;}),_0x21ebb5[_0x4369('0x60')]['for'](_0x4369('0x41'))[_0x4369('0x5')]({'model':_0x4369('0xc'),'view':_0x38427f,'converterPriority':_0x4369('0x74')}),_0x21ebb5[_0x4369('0x60')][_0x4369('0x8f')](_0x4369('0x17'))[_0x4369('0x5')]({'model':_0x4369('0xc'),'view':(_0x3b1601,_0x44a752)=>{if(_0x44a752[_0x4369('0x5e')][_0x4369('0x45')])return _0x38427f(_0x3b1601,{'showActiveMarker':!0x1});},'converterPriority':_0x4369('0x74')});const _0x5b72a2=_0x21ebb5['editing'][_0x4369('0x1b')];this[_0x4369('0x3f')](_0x5b72a2[_0x4369('0x33')],_0x4369('0x14'),(_0x1ad0d1,_0x1b980d)=>{const _0x11465d=[];for(const _0x1940ee of _0x5b72a2[_0x4369('0x21')](_0x1b980d[_0x4369('0x23')])[_0x4369('0x47')]())_0x1940ee['is'](_0x4369('0x86'),_0x4369('0x95'))&&_0x11465d[_0x4369('0x3')](_0x1940ee);_0x5b72a2[_0x4369('0x8e')](_0x248276=>{for(const _0x5e22cf of _0x11465d)_0x248276[_0x4369('0xa0')](_0x248276[_0x4369('0x21')](_0x5e22cf),_0x248276[_0x4369('0x96')](_0x5e22cf)),_0x248276[_0x4369('0xf')](_0x5e22cf);});});}}function fe(_0x541f9f){if(_0x541f9f['isEmpty'])return!0x0;const _0x65b79a=_0x541f9f['getChild'](0x0);return _0x65b79a['is'](_0x4369('0x86'),_0x4369('0x5a'))&&_0x65b79a[_0x4369('0x24')];}function ue(_0x38ee07,_0xa43691={},_0x11f85b){for(const {isAnchor:_0x5bc14a,cellHeight:_0xa96f48,cellWidth:_0x4e3d11}of _0x11f85b[_0x4369('0x22')](_0x38ee07,{'includeAllSlots':!0x0,..._0xa43691}))if(!_0x5bc14a||0x1!=_0xa96f48||0x1!=_0x4e3d11)return!0x1;return!0x0;}
|
|
23
|
+
const _0x51dd=['last','findAncestor','next','getChanges','differ','_suggestionFactory','createPositionBefore','previous','endRow','deletionRanges','tableCellBorderStyle','tablePasteCell','options','model','markerToHighlight','content','discard','change','name','editingDowncast','author','getAllAdjacentSuggestions','getChild','includes','insertRows','editing','showSuggestionHighlights','return','insertion','getChangedMarkers','startsWith','markMultiRangeInsertion','insertColumns','some','*Replace\x20table\x20cells*','activeMarkers','nextSibling','registerCustomCallback','clipboardOutput','tablePasteColumn','markMultiRangeBlockFormat','selection','commands','TrackChangesEditing','registerDescriptionCallback','dataDowncast','columnInsertionIndexes','get','column','rowInsertionIndexes','getRanges','conversion','tableCell','insertionRanges','hasSuggestion','endColumn','getChildren','fill','unwrap','$graveyard','insertContent','getColumns','createTableWalker','insert','move','add','batch','tablePasteChainId','cell','from','createRangeOn','attributes','getSuggestion','_splitMarkerName','removeColumns','deletion','suggestion:formatBlock:tablePasteCell','containsRange','length','createRangeIn','type','remove','_isForcedDefaultExecutionBlock','tablePasteRow','isInContent','isEmpty','map','tableCellSuggestion','suggestion-td','plugins','getContainedElement','filter','cells','formatBlock','getSuggestions','trackChanges','listenTo','getSelectionAffectedTableCells','isEqual','_createdBatches','getSuggestionCallback','getMarkers','subType','schema','_descriptionFactory','stop','accept','tableCellHorizontalAlignment','afterInit','tableCellBorderWidth','for','set','markers','table','tablePaste','ck-suggestion-marker-insertion','document','getColumnIndexes','position','view','markMultiRangeDeletion','editor','push','_getCoordsForCells','columnInsertionRanges','element','tableCellBackgroundColor','newRange','forceDefaultExecution','entries','getRows','has','removeMarkers','TableClipboard','find','Users','high','redo','rootName','ck-suggestion-marker','columns','setAttribute','tableCellPadding','nodeAfter','markerAttributes','TableUtils','markerName','first','removeMarker','updateMarker','createElement','elementToElement','tableCellVerticalAlignment','oldRange','paragraph','every','setAttributes','fromEntries','reduce','ck-suggestion-marker--active','tableCellBorderColor','registerPostFixer','rows','documentSelection','low','getShiftedBy','getRange'];(function(_0x46355f,_0x51dd01){const _0x3d8bcc=function(_0x545add){while(--_0x545add){_0x46355f['push'](_0x46355f['shift']());}};_0x3d8bcc(++_0x51dd01);}(_0x51dd,0x18b));const _0x3d8b=function(_0x46355f,_0x51dd01){_0x46355f=_0x46355f-0x0;let _0x3d8bcc=_0x51dd[_0x46355f];return _0x3d8bcc;};import{getTranslation as _0x2b0b56}from'../utils/common-translations';import{Plugin as _0x5321c9}from'ckeditor5/src/core';import{uid as _0x202b12,priorities as _0x54b8ce}from'ckeditor5/src/utils';import _0x44700f from'./table';const le=[_0x3d8b('0x30'),_0x3d8b('0x63'),_0x3d8b('0x74'),_0x3d8b('0x2e'),_0x3d8b('0x5b'),_0x3d8b('0x41'),_0x3d8b('0x51')],ae=Object[_0x3d8b('0x60')](le['map'](_0x4afc5c=>[_0x4afc5c,null]));export default class pt extends _0x5321c9{static get['requires'](){return[_0x44700f];}[_0x3d8b('0x2f')](){const _0x545451=this[_0x3d8b('0x3c')];if(!_0x545451[_0x3d8b('0x1c')][_0x3d8b('0x46')](_0x3d8b('0x48')))return;const _0x1ef158=_0x545451[_0x3d8b('0x1c')][_0x3d8b('0x99')](_0x3d8b('0x95')),_0x5d21af=_0x545451[_0x3d8b('0x1c')][_0x3d8b('0x99')](_0x3d8b('0x54')),_0x3e4d9b=_0x545451['plugins'][_0x3d8b('0x99')](_0x44700f),_0x2dd167=_0x545451[_0x3d8b('0x1c')]['get']('TableClipboard');_0x3e4d9b['_tablePostFixingSubtypes'][_0x3d8b('0x3d')]('tablePasteRow','tablePasteColumn'),_0x545451[_0x3d8b('0x77')][_0x3d8b('0x2a')]['register'](_0x3d8b('0x1a'),{'allowIn':'tableCell','allowContentOf':_0x3d8b('0x9e'),'isLimit':!0x0}),_0x545451[_0x3d8b('0x9d')][_0x3d8b('0x5a')]({'model':_0x3d8b('0x1a'),'view':_0x3d8b('0x1b')});let _0x76d7ba=null;_0x545451[_0x3d8b('0x77')]['on'](_0x3d8b('0xa6'),(_0x1efb4c,_0x5e86e9)=>{const [_0x3258e8,_0x3c292d]=_0x5e86e9,_0x5932f8=_0x5e86e9[_0x5e86e9['length']-0x1];_0x5932f8&&_0x5932f8[_0x3d8b('0x43')]||_0x1ef158[_0x3d8b('0x15')]||this[_0x3d8b('0x3c')][_0x3d8b('0x94')]['get'](_0x3d8b('0x22'))['value']&&function(_0x2f0ada,_0x324989,_0x9d75c1,_0x43cf78,_0x2399c1){if(_0x324989&&!_0x324989['is'](_0x3d8b('0x66')))return!0x1;const _0x3ed80c=_0x2399c1['getTableIfOnlyTableInContent'](_0x2f0ada,_0x9d75c1);if(!_0x3ed80c||!fe(_0x3ed80c,void 0x0,_0x43cf78))return!0x1;const _0x19bfbb=_0x43cf78[_0x3d8b('0x24')](_0x9d75c1[_0x3d8b('0x37')][_0x3d8b('0x93')]);if(!_0x19bfbb[_0x3d8b('0x11')])return!0x1;const _0x13a6ec=_0x19bfbb[0x0]['findAncestor'](_0x3d8b('0x34')),_0x15b1a1=_0x43cf78['getRowIndexes'](_0x19bfbb),_0x4bee34=_0x43cf78[_0x3d8b('0x38')](_0x19bfbb),_0xc89fb1={'startRow':_0x15b1a1[_0x3d8b('0x56')],'endRow':_0x15b1a1[_0x3d8b('0x6a')],'startColumn':_0x4bee34['first'],'endColumn':_0x4bee34[_0x3d8b('0x6a')]};return 0x1==_0x19bfbb[_0x3d8b('0x11')]&&(_0xc89fb1[_0x3d8b('0x72')]+=_0x43cf78[_0x3d8b('0x45')](_0x3ed80c)-0x1,_0xc89fb1[_0x3d8b('0xa1')]+=_0x43cf78[_0x3d8b('0x0')](_0x3ed80c)-0x1),fe(_0x13a6ec,_0xc89fb1,_0x43cf78);}(_0x3258e8,_0x3c292d,_0x545451[_0x3d8b('0x77')],_0x5d21af,_0x2dd167)&&(_0x1efb4c['stop'](),_0x76d7ba={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x545451[_0x3d8b('0x77')][_0x3d8b('0x7b')](()=>{_0x545451[_0x3d8b('0x77')][_0x3d8b('0xa6')](_0x5e86e9[0x0],_0x5e86e9[0x1],_0x5e86e9[0x2],{'forceDefaultExecution':!0x0});const _0x32eee6=_0x202b12(),{rowInsertionRanges:_0x569209,columnInsertionRanges:_0x45eda1,insertionRanges:_0xea10df,deletionRanges:_0xc42e62,cells:_0x3ba6b5}=_0x76d7ba;_0x569209[_0x3d8b('0x11')]&&_0x1ef158[_0x3d8b('0x89')](_0x569209,_0x3d8b('0x16'),{'tablePasteChainId':_0x32eee6}),_0x45eda1[_0x3d8b('0x11')]&&_0x1ef158[_0x3d8b('0x89')](_0x45eda1,'tablePasteColumn',{'tablePasteChainId':_0x32eee6}),_0xea10df[_0x3d8b('0x11')]&&_0x1ef158['markMultiRangeInsertion'](_0xea10df,_0x3d8b('0x35'),{'tablePasteChainId':_0x32eee6,'skipNestingCheck':!0x0}),_0xc42e62[_0x3d8b('0x11')]&&_0x1ef158[_0x3d8b('0x3b')](_0xc42e62,'tablePaste',{'tablePasteChainId':_0x32eee6,'skipNestingCheck':!0x0});const _0x53083d=_0x1ef158[_0x3d8b('0x92')](_0x3ba6b5[_0x3d8b('0x19')](({element:_0x359743})=>_0x359743),{'formatGroupId':_0x202b12()},[],_0x3d8b('0x75'),{'tablePasteChainId':_0x32eee6});if(_0x53083d){const _0x108ea7=_0x53083d[_0x3d8b('0x28')](),_0x3fcaa9=[];for(const {element:_0x1e0d07,attributes:_0x2e6c51}of _0x3ba6b5){if(!_0x2e6c51)continue;const _0x49e39e=_0x545451[_0x3d8b('0x77')][_0x3d8b('0x9')](_0x1e0d07),_0x7a3ad0=_0x108ea7['find'](_0x191dea=>_0x191dea['getRange']()[_0x3d8b('0x25')](_0x49e39e));_0x7a3ad0&&_0x3fcaa9[_0x3d8b('0x3d')]([_0x7a3ad0[_0x3d8b('0x7c')],_0x2e6c51]);}_0x3fcaa9[_0x3d8b('0x11')]&&_0x53083d[_0x3d8b('0x50')](_0x3d8b('0x53'),Object['fromEntries'](_0x3fcaa9));}_0x76d7ba=null;}));},{'priority':_0x54b8ce[_0x3d8b('0x4b')]+0xa}),_0x545451['plugins'][_0x3d8b('0x99')](_0x3d8b('0x48'))['on']('_replaceTableSlotCell',(_0x5c7af0,_0x1da5a8)=>{const [_0x530734,_0x2bd23e,,_0x4486f8]=_0x1da5a8;if(!_0x76d7ba)return;_0x5c7af0[_0x3d8b('0x2c')]();const _0x3b7eb1=_0x530734[_0x3d8b('0x7')],_0xd07c12=_0x2bd23e,_0x2873a3=ce(_0x3b7eb1),_0xa3f698=ce(_0xd07c12);_0x5c7af0[_0x3d8b('0x85')]=_0x3b7eb1;let _0x1015c2=null,_0x726c94=null;if(_0xa3f698||_0x2873a3){if(_0x2873a3&&!_0xa3f698){_0x4486f8['remove'](_0x3b7eb1[_0x3d8b('0x80')](0x0));for(const _0x4b0af5 of Array[_0x3d8b('0x8')](_0xd07c12['getChildren']()))_0x4486f8[_0x3d8b('0x2')](_0x4b0af5,_0x3b7eb1,'end');const _0xcb9178=_0x76d7ba[_0x3d8b('0x9b')][_0x3d8b('0x81')](_0x530734['row']),_0x344fde=_0x76d7ba['columnInsertionIndexes']['includes'](_0x530734[_0x3d8b('0x9a')]);_0xcb9178||_0x344fde||(_0x1015c2=_0x4486f8[_0x3d8b('0x12')](_0x3b7eb1));}else _0xa3f698&&!_0x2873a3&&(_0x726c94=_0x4486f8['createRangeIn'](_0x3b7eb1));}else{const _0x1b2814=_0x4486f8[_0x3d8b('0x59')]('tableCellSuggestion'),_0x4a0eb1=_0x4486f8['createElement']('tableCellSuggestion');_0x4486f8['wrap'](_0x4486f8[_0x3d8b('0x12')](_0x3b7eb1),_0x4a0eb1),_0x4486f8[_0x3d8b('0x2')](_0x1b2814,_0x3b7eb1,0x0);for(const _0x1a4a30 of Array[_0x3d8b('0x8')](_0xd07c12[_0x3d8b('0xa2')]()))_0x4486f8[_0x3d8b('0x2')](_0x1a4a30,_0x1b2814,'end');_0x1015c2=_0x4486f8[_0x3d8b('0x9')](_0x1b2814),_0x726c94=_0x4486f8[_0x3d8b('0x9')](_0x4a0eb1);}const _0xecae24=Array[_0x3d8b('0x8')](_0xd07c12['getAttributes']())['filter'](([_0x333dc1])=>le[_0x3d8b('0x81')](_0x333dc1));_0x76d7ba[_0x3d8b('0x1f')]['push']({'element':_0x3b7eb1,'attributes':_0xecae24[_0x3d8b('0x11')]?Object['fromEntries'](_0xecae24):null}),_0x1015c2&&_0x76d7ba[_0x3d8b('0x9f')]['push'](_0x1015c2),_0x726c94&&_0x76d7ba[_0x3d8b('0x73')][_0x3d8b('0x3d')](_0x726c94);},{'priority':_0x3d8b('0x4b')}),_0x5d21af['on'](_0x3d8b('0x8a'),(_0x3a423e,_0x444e07)=>{const [_0x4d38e6,_0x300bca={}]=_0x444e07;if(!_0x76d7ba)return;const _0x10c04d=_0x300bca['at']||0x0,_0x5e37c9=_0x300bca[_0x3d8b('0x4f')]||0x1;_0x76d7ba[_0x3d8b('0x98')]=new Array(_0x5e37c9)[_0x3d8b('0xa3')](_0x10c04d)[_0x3d8b('0x19')]((_0x50359b,_0x1e3523)=>_0x50359b+_0x1e3523);for(const {cell:_0x513d61}of _0x5d21af['createTableWalker'](_0x4d38e6,{'startColumn':_0x10c04d,'endColumn':_0x10c04d+_0x5e37c9-0x1}))_0x76d7ba[_0x3d8b('0x3f')]['push'](_0x545451['model'][_0x3d8b('0x9')](_0x513d61));},{'priority':_0x3d8b('0x67')}),_0x5d21af['on'](_0x3d8b('0x82'),(_0x2ad09b,_0x30e07e)=>{const [_0x466e95,_0x1a1572={}]=_0x30e07e;if(!_0x76d7ba)return;const _0x41484b=_0x1a1572['at']||0x0,_0xf99f5d=_0x1a1572[_0x3d8b('0x65')]||0x1;_0x76d7ba[_0x3d8b('0x9b')]=new Array(_0xf99f5d)[_0x3d8b('0xa3')](_0x41484b)[_0x3d8b('0x19')]((_0x516fed,_0x18c58e)=>_0x516fed+_0x18c58e);for(const {cell:_0x593362}of _0x5d21af[_0x3d8b('0x1')](_0x466e95,{'startRow':_0x41484b,'endRow':_0x41484b+_0xf99f5d-0x1}))_0x76d7ba['rowInsertionRanges'][_0x3d8b('0x3d')](_0x545451[_0x3d8b('0x77')][_0x3d8b('0x9')](_0x593362));},{'priority':_0x3d8b('0x67')}),_0x1ef158[_0x3d8b('0x2b')][_0x3d8b('0x96')](_0x143e9a=>{if(_0x143e9a[_0x3d8b('0x29')]&&_0x143e9a[_0x3d8b('0x29')][_0x3d8b('0x88')](_0x3d8b('0x35')))return _0x143e9a[_0x3d8b('0x71')]?{}:{'type':_0x3d8b('0x86'),'content':_0x2b0b56(_0x545451['locale'],_0x3d8b('0x8c'))};});const _0x1a72fa=()=>{};for(const _0x1359bd of[_0x3d8b('0x35'),_0x3d8b('0x91'),_0x3d8b('0x16'),_0x3d8b('0x75')])_0x1ef158['_suggestionFactory'][_0x3d8b('0x8f')](_0x3d8b('0x86'),_0x1359bd,'join',_0x1a72fa),_0x1ef158['_suggestionFactory']['registerCustomCallback']('deletion',_0x1359bd,'join',_0x1a72fa);_0x1ef158[_0x3d8b('0x6f')][_0x3d8b('0x8f')](_0x3d8b('0x20'),_0x3d8b('0x75'),'discard',_0x1a72fa),_0x1ef158[_0x3d8b('0x6f')][_0x3d8b('0x8f')](_0x3d8b('0x20'),_0x3d8b('0x75'),_0x3d8b('0x2d'),(_0x3c0d37,_0x17d817,_0x1169a8)=>{const _0x19ba9d=_0x3c0d37[_0x3d8b('0x19')](_0x5e81a0=>_0x5e81a0[_0x3d8b('0x1d')]())[_0x3d8b('0x1e')](_0x2445dd=>_0x2445dd),_0x414bea=new Map(_0x19ba9d[_0x3d8b('0x19')](_0xf55482=>[_0xf55482,null]));if(_0x76d7ba)for(const {element:_0xc56740,attributes:_0x2cfcf4}of _0x76d7ba[_0x3d8b('0x1f')])_0x2cfcf4&&_0x414bea[_0x3d8b('0x32')](_0xc56740,_0x2cfcf4);else{if(_0x1169a8&&_0x1169a8[_0x3d8b('0x53')])for(const [_0x45a317,_0x2e4388]of Object[_0x3d8b('0x44')](_0x1169a8[_0x3d8b('0x53')])){const _0x4a5218=_0x545451[_0x3d8b('0x77')][_0x3d8b('0x33')][_0x3d8b('0x99')](_0x45a317),_0x38f440=_0x4a5218?_0x4a5218[_0x3d8b('0x69')]()[_0x3d8b('0x1d')]():null;_0x38f440&&_0x414bea[_0x3d8b('0x32')](_0x38f440,_0x2e4388);}}_0x545451[_0x3d8b('0x77')][_0x3d8b('0x7b')](_0x41137b=>{for(const [_0x292fa6,_0x1d73bc]of _0x414bea)_0x41137b[_0x3d8b('0x5f')]({...ae,..._0x1d73bc},_0x292fa6);});});const _0x1b27e1=(_0x3a3cbb,_0x1d8df9)=>{_0x1ef158[_0x3d8b('0x6f')]['registerCustomCallback'](_0x3a3cbb,_0x3d8b('0x35'),_0x1d8df9,(_0x524d1a,_0x3681aa,_0x51ccaf)=>{_0x545451[_0x3d8b('0x77')][_0x3d8b('0x7b')](_0x11eeb3=>{const _0x465b24=[];for(const _0x44cf34 of _0x524d1a){const _0x1e4a38=_0x44cf34['start'][_0x3d8b('0x52')];_0x1e4a38['is'](_0x3d8b('0x40'),'tableCellSuggestion')&&_0x465b24[_0x3d8b('0x3d')](_0x1e4a38);}_0x1ef158['_suggestionFactory'][_0x3d8b('0x27')](_0x3a3cbb,null,_0x1d8df9)(_0x524d1a,_0x3681aa,_0x51ccaf);for(const _0x475f0d of _0x465b24)_0x3d8b('0xa5')!=_0x475f0d['root'][_0x3d8b('0x4d')]&&_0x11eeb3[_0x3d8b('0xa4')](_0x475f0d);});});};_0x1b27e1(_0x3d8b('0x86'),'accept'),_0x1b27e1('insertion',_0x3d8b('0x7a')),_0x1b27e1(_0x3d8b('0xe'),_0x3d8b('0x2d')),_0x1b27e1(_0x3d8b('0xe'),'discard'),_0x1ef158[_0x3d8b('0x6f')][_0x3d8b('0x8f')](_0x3d8b('0x86'),_0x3d8b('0x16'),_0x3d8b('0x7a'),_0x31ed24=>{const _0x4cf758=_0x31ed24[_0x3d8b('0x19')](_0x48ec98=>_0x48ec98[_0x3d8b('0x1d')]()),_0x1de6db=_0x4cf758[0x0][_0x3d8b('0x6b')](_0x3d8b('0x34')),{minRow:_0x3477f0,maxRow:_0x45db3a}=_0x3e4d9b[_0x3d8b('0x3e')](_0x4cf758);_0x5d21af['removeRows'](_0x1de6db,{'at':_0x3477f0,'rows':_0x45db3a-_0x3477f0+0x1});}),_0x1ef158['_suggestionFactory'][_0x3d8b('0x8f')](_0x3d8b('0x86'),_0x3d8b('0x91'),_0x3d8b('0x7a'),_0x28429f=>{const _0x51535f=_0x28429f['map'](_0xddf78c=>_0xddf78c[_0x3d8b('0x1d')]()),_0x39e645=_0x51535f[0x0][_0x3d8b('0x6b')](_0x3d8b('0x34')),{minColumn:_0xc8436c,maxColumn:_0x309405}=_0x3e4d9b[_0x3d8b('0x3e')](_0x51535f);_0x5d21af[_0x3d8b('0xd')](_0x39e645,{'at':_0xc8436c,'columns':_0x309405-_0xc8436c+0x1});});const _0x219430=(_0x245e2c,_0x2ded47)=>{if(!_0x2ded47[_0x3d8b('0x29')]||!_0x2ded47[_0x3d8b('0x29')][_0x3d8b('0x88')]('tablePaste'))return;const _0x1757ea=_0x2ded47['attributes'][_0x3d8b('0x6')],_0x52f71c=_0x1ef158[_0x3d8b('0x21')]()[_0x3d8b('0x1e')](_0x2bd2d3=>_0x2bd2d3[_0x3d8b('0x17')]&&_0x2bd2d3[_0x3d8b('0xa')]&&_0x2bd2d3[_0x3d8b('0xa')][_0x3d8b('0x6')]==_0x1757ea);_0x52f71c[_0x3d8b('0x11')]&&_0x2ded47[_0x3d8b('0x7f')]()[_0x3d8b('0x11')]!=_0x52f71c['length']&&_0x52f71c[_0x3d8b('0x61')]((_0x35d8e4,_0x5a3f74)=>(_0x35d8e4[_0x3d8b('0x6c')]=_0x5a3f74,_0x5a3f74[_0x3d8b('0x71')]=_0x35d8e4,_0x5a3f74));};function _0x4d43b6(_0x4dc628,_0xbd21a8=!0x0){const {id:_0x8aa053}=_0x1ef158[_0x3d8b('0xc')](_0x4dc628[_0x3d8b('0x55')]),_0x52df95=[_0x3d8b('0x4e'),_0x3d8b('0x36')],_0x21fe38=_0x1ef158[_0x3d8b('0x8d')][_0x3d8b('0x81')](_0x4dc628['markerName']);return _0x21fe38&&_0x52df95[_0x3d8b('0x3d')](_0x3d8b('0x62')),{'classes':_0x52df95,'attributes':{'data-suggestion':_0x8aa053},'priority':_0x21fe38&&_0xbd21a8?0xbc2:0xbb8};}_0x1ef158['on']('suggestionLoaded',_0x219430,{'priority':'high'}),_0x1ef158['on']('suggestionUnloaded',_0x219430,{'priority':'high'}),_0x545451[_0x3d8b('0x77')][_0x3d8b('0x37')][_0x3d8b('0x64')](()=>{let _0x1a8f80=!0x1;const _0x90db1b=Array[_0x3d8b('0x8')](_0x545451[_0x3d8b('0x77')][_0x3d8b('0x37')][_0x3d8b('0x6e')][_0x3d8b('0x87')]());for(const {name:_0x2aa4c8,data:_0x5de847}of _0x90db1b){const {group:_0x53bfde,type:_0x58dbad,id:_0x5f4c12}=_0x1ef158['_splitMarkerName'](_0x2aa4c8);if('suggestion'!=_0x53bfde||_0x3d8b('0xe')!=_0x58dbad||_0x5de847['oldRange'])continue;if(!_0x1ef158[_0x3d8b('0xa0')](_0x5f4c12))continue;const _0x2b7d13=_0x1ef158[_0x3d8b('0xb')](_0x5f4c12)[_0x3d8b('0x9c')](),_0x1c8c9d=_0x545451[_0x3d8b('0x1c')][_0x3d8b('0x99')]('Users')['me'];for(const _0x3af540 of _0x1ef158['getSuggestions']()){if(!_0x3af540[_0x3d8b('0x17')]||_0x3af540[_0x3d8b('0x7e')]!=_0x1c8c9d)continue;if('formatBlock'!=_0x3af540[_0x3d8b('0x13')]||_0x3d8b('0x75')!=_0x3af540[_0x3d8b('0x29')])continue;if(_0x3af540['getRanges']()[_0x3d8b('0x5e')](_0x4e191c=>_0x2b7d13[_0x3d8b('0x8b')](_0x5157ae=>_0x5157ae['containsRange'](_0x4e191c,!0x0))))for(const _0x1be3f0 of _0x3af540[_0x3d8b('0x7f')]())_0x1be3f0[_0x3d8b('0x17')]&&(_0x1be3f0[_0x3d8b('0x7a')](),_0x1a8f80=!0x0);}}return _0x1a8f80;}),_0x545451[_0x3d8b('0x77')]['document']['registerPostFixer'](_0x266ba9=>{const _0x2f79b5=_0x545451[_0x3d8b('0x94')]['get'](_0x3d8b('0x4c'));if(!_0x2f79b5||!_0x2f79b5[_0x3d8b('0x26')][_0x3d8b('0x46')](_0x266ba9[_0x3d8b('0x5')]))return!0x1;let _0x3e0da0=!0x1;const _0x4c5d4f=_0x545451[_0x3d8b('0x1c')][_0x3d8b('0x99')](_0x3d8b('0x4a'))['me'],_0x136d6c=_0x545451[_0x3d8b('0x77')][_0x3d8b('0x37')][_0x3d8b('0x6e')][_0x3d8b('0x6d')](),_0x5f093c=Array[_0x3d8b('0x8')](_0x545451[_0x3d8b('0x77')][_0x3d8b('0x37')]['differ'][_0x3d8b('0x87')]())['filter'](({name:_0x192650,data:_0x158f1c})=>{const {group:_0x15fcba,subType:_0x445f43,authorId:_0x95b9c8}=_0x1ef158[_0x3d8b('0xc')](_0x192650);return'suggestion'==_0x15fcba&&_0x3d8b('0x35')==_0x445f43&&_0x95b9c8==_0x4c5d4f['id']&&!_0x158f1c[_0x3d8b('0x5c')];});for(const _0x1844d7 of _0x136d6c){if(_0x3d8b('0x2')!=_0x1844d7['type']||_0x3d8b('0x1a')!=_0x1844d7[_0x3d8b('0x7c')]||0x1!=_0x1844d7[_0x3d8b('0x11')])continue;const _0x158c94=_0x266ba9['createRange'](_0x1844d7[_0x3d8b('0x39')],_0x1844d7['position'][_0x3d8b('0x68')](0x1));if(!_0x5f093c[_0x3d8b('0x49')](({data:_0x4c9f8e})=>_0x4c9f8e[_0x3d8b('0x42')]['isEqual'](_0x158c94)))for(const {name:_0x1c5f3c,data:_0x54711b}of _0x5f093c)if(_0x158c94[_0x3d8b('0x10')](_0x54711b['newRange'])){_0x266ba9[_0x3d8b('0x58')](_0x1c5f3c,{'range':_0x158c94}),_0x3e0da0=!0x0;break;}}return _0x3e0da0;}),_0x545451['model'][_0x3d8b('0x37')][_0x3d8b('0x64')](_0x56fbb2=>{let _0x4a8a63=!0x1;const _0x3853a6=_0x545451['plugins']['get']('Users')['me'],_0x21dc82=_0x1ef158[_0x3d8b('0x21')]()[_0x3d8b('0x1e')](_0x4c3fc3=>_0x4c3fc3['isInContent']&&_0x4c3fc3[_0x3d8b('0x7e')]==_0x3853a6),_0x501712=new Set(),_0x310ce8=new Set();for(const _0x313c5f of _0x21dc82)if('tablePaste'==_0x313c5f['subType'])for(const _0x497e2c of _0x313c5f['getMarkers']()){const _0x3cc2d9=_0x497e2c[_0x3d8b('0x69')]()[_0x3d8b('0x1d')]();if(_0x3cc2d9){if(_0x3cc2d9['is']('element',_0x3d8b('0x1a'))&&ce(_0x3cc2d9)){_0x313c5f[_0x3d8b('0x57')](_0x497e2c[_0x3d8b('0x7c')]),_0x501712[_0x3d8b('0x4')](_0x3cc2d9),_0x4a8a63=!0x0;const _0x170be0=_0x3cc2d9[_0x3d8b('0x8e')],_0x59aa05=_0x3cc2d9['previousSibling'],_0x9f6a21=_0x170be0&&_0x170be0['is'](_0x3d8b('0x40'),'tableCellSuggestion'),_0x5bed8f=_0x59aa05&&_0x59aa05['is'](_0x3d8b('0x40'),_0x3d8b('0x1a'));_0x9f6a21&&!_0x501712['has'](_0x170be0)&&_0x310ce8[_0x3d8b('0x4')](_0x170be0),_0x5bed8f&&!_0x501712[_0x3d8b('0x46')](_0x59aa05)&&_0x310ce8['add'](_0x59aa05);}else _0x3cc2d9['is'](_0x3d8b('0x40'),_0x3d8b('0x5d'))&&_0x3cc2d9[_0x3d8b('0x18')]&&(_0x313c5f[_0x3d8b('0x57')](_0x497e2c[_0x3d8b('0x7c')]),_0x4a8a63=!0x0);}}else{if(_0x3d8b('0x75')==_0x313c5f[_0x3d8b('0x29')]){if(!_0x313c5f[_0x3d8b('0xa')]||!_0x313c5f[_0x3d8b('0xa')][_0x3d8b('0x6')])continue;const _0x4b09f3=_0x313c5f['attributes'][_0x3d8b('0x53')];if(_0x4b09f3&&Object['keys'](_0x4b09f3)[_0x3d8b('0x11')])continue;const _0x43d39f=_0x313c5f[_0x3d8b('0xa')][_0x3d8b('0x6')];let _0x7ff15f=!0x0,_0x3767d3=!0x0;for(const _0x1423a5 of _0x21dc82)if(_0x1423a5['subType']&&_0x1423a5[_0x3d8b('0x29')]['startsWith'](_0x3d8b('0x35'))){if(!_0x1423a5[_0x3d8b('0xa')][_0x3d8b('0x6')]){_0x3767d3=!0x1;break;}if(_0x1423a5['id']!=_0x313c5f['id']&&_0x1423a5[_0x3d8b('0xa')][_0x3d8b('0x6')]==_0x43d39f){_0x7ff15f=!0x1;break;}}_0x3767d3&&_0x7ff15f&&(_0x313c5f[_0x3d8b('0x47')](),_0x4a8a63=!0x0);}}for(const _0x37cbb8 of _0x501712)_0x56fbb2[_0x3d8b('0x14')](_0x37cbb8);for(const _0x3d4431 of _0x310ce8)_0x56fbb2[_0x3d8b('0xa4')](_0x3d4431);return _0x4a8a63;}),_0x545451[_0x3d8b('0x9d')][_0x3d8b('0x31')](_0x3d8b('0x7d'))['markerToHighlight']({'model':_0x3d8b('0xf'),'view':(_0xd584f,_0x372a1d)=>_0x4d43b6(_0xd584f),'converterPriority':_0x3d8b('0x4b')}),_0x545451['conversion']['for'](_0x3d8b('0x97'))[_0x3d8b('0x78')]({'model':_0x3d8b('0xf'),'view':(_0x56ba6e,_0x2d82c9)=>_0x2d82c9[_0x3d8b('0x76')][_0x3d8b('0x84')]?_0x4d43b6(_0x56ba6e,!0x1):null,'converterPriority':_0x3d8b('0x4b')});const _0x3f9394=_0x545451[_0x3d8b('0x83')][_0x3d8b('0x3a')];this[_0x3d8b('0x23')](_0x3f9394[_0x3d8b('0x37')],_0x3d8b('0x90'),(_0x5e2af4,_0x4f894f)=>{const _0x434d7f=[];for(const _0x2f7f80 of _0x3f9394[_0x3d8b('0x12')](_0x4f894f[_0x3d8b('0x79')])['getItems']())_0x2f7f80['is'](_0x3d8b('0x40'),_0x3d8b('0x1b'))&&_0x434d7f[_0x3d8b('0x3d')](_0x2f7f80);_0x3f9394[_0x3d8b('0x7b')](_0x2360bd=>{for(const _0x31540d of _0x434d7f)_0x2360bd[_0x3d8b('0x3')](_0x2360bd[_0x3d8b('0x12')](_0x31540d),_0x2360bd[_0x3d8b('0x70')](_0x31540d)),_0x2360bd[_0x3d8b('0x14')](_0x31540d);});});}}function ce(_0x1a2141){if(_0x1a2141[_0x3d8b('0x18')])return!0x0;const _0x4b70fd=_0x1a2141[_0x3d8b('0x80')](0x0);return _0x4b70fd['is']('element',_0x3d8b('0x5d'))&&_0x4b70fd[_0x3d8b('0x18')];}function fe(_0x120dd5,_0x395b23={},_0x337e48){for(const {isAnchor:_0x2f14a1,cellHeight:_0x275e5b,cellWidth:_0x3feee8}of _0x337e48['createTableWalker'](_0x120dd5,{'includeAllSlots':!0x0,..._0x395b23}))if(!_0x2f14a1||0x1!=_0x275e5b||0x1!=_0x3feee8)return!0x1;return!0x0;}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/tablecolumnresize
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
import type { Element } from 'ckeditor5/src/engine';
|
|
6
|
+
import type Suggestion from '../suggestion';
|
|
7
|
+
import type { Description } from '../suggestiondescriptionfactory';
|
|
8
|
+
/**
|
|
9
|
+
* Provides track changes plugin integration for table column resize feature.
|
|
10
|
+
*/
|
|
11
|
+
export default class TrackChangesTableColumnResize extends Plugin {
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
*/
|
|
15
|
+
afterInit(): void;
|
|
16
|
+
handleResizeTableWidthCommand(executeCommand: Function, options: {
|
|
17
|
+
table?: Element;
|
|
18
|
+
tableWidth?: string;
|
|
19
|
+
columnWidths?: string;
|
|
20
|
+
}): void;
|
|
21
|
+
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
22
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5125=['getAttribute','Users','plugins','resizeTableWidth','data','enableCommand','markBlockFormat','getSuggestions','tableWidth','discard','has','formatBlock','columnWidths','registerCustomCallback','getTableColumnsWidths','author','_descriptionFactory','model','getSelectedElement','bind','resizeTable','TrackChangesEditing','getColumnGroupElement','format','getSuggestionCallback','_suggestionFactory','resizeColumnWidths','get','*Format:*\x20resize\x20table','editor','formatGroupId','commandParams','afterInit','handleResizeTableWidthCommand','TableColumnResizeEditing','subType','change','accept'];(function(_0xefe850,_0x51255d){const _0x5a8652=function(_0xae668c){while(--_0xae668c){_0xefe850['push'](_0xefe850['shift']());}};_0x5a8652(++_0x51255d);}(_0x5125,0xa3));const _0x5a86=function(_0xefe850,_0x51255d){_0xefe850=_0xefe850-0x0;let _0x5a8652=_0x5125[_0xefe850];return _0x5a8652;};import{Plugin as _0x79b4fe}from'ckeditor5/src/core';import{getTranslation as _0x27d8d4}from'../utils/common-translations';export default class kt extends _0x79b4fe{[_0x5a86('0x15')](){if(!this[_0x5a86('0x12')][_0x5a86('0x1d')][_0x5a86('0x25')](_0x5a86('0x17')))return;const _0x4f50ef=this[_0x5a86('0x12')][_0x5a86('0x1d')][_0x5a86('0x10')](_0x5a86('0xa'));_0x4f50ef[_0x5a86('0x20')](_0x5a86('0x1e'),this['handleResizeTableWidthCommand']['bind'](this)),_0x4f50ef[_0x5a86('0x20')](_0x5a86('0xf'),this[_0x5a86('0x16')]['bind'](this)),_0x4f50ef[_0x5a86('0xe')][_0x5a86('0x2')](_0x5a86('0x0'),'resizeTable',_0x5a86('0x1a'),_0x4f50ef[_0x5a86('0xe')]['getSuggestionCallback']('formatBlock',null,_0x5a86('0x24'))),_0x4f50ef['_suggestionFactory']['registerCustomCallback'](_0x5a86('0x0'),_0x5a86('0x9'),_0x5a86('0x24'),_0x4f50ef['_suggestionFactory'][_0x5a86('0xd')]('formatBlock',null,_0x5a86('0x1a'))),_0x4f50ef[_0x5a86('0x5')]['registerDescriptionCallback'](this['handleSuggestionDescription'][_0x5a86('0x8')](this));}[_0x5a86('0x16')](_0x42f5d1,_0x27fe9a){const _0x6df87=this[_0x5a86('0x12')][_0x5a86('0x1d')][_0x5a86('0x10')](_0x5a86('0xa')),_0x27ea1b=this['editor'][_0x5a86('0x1d')][_0x5a86('0x10')]('TableColumnResizeEditing'),_0x54866d=_0x27fe9a['table']||this['editor'][_0x5a86('0x6')]['document']['selection'][_0x5a86('0x7')]();this[_0x5a86('0x12')][_0x5a86('0x6')][_0x5a86('0x19')](()=>{const _0x52e660=_0x27ea1b[_0x5a86('0xb')](_0x54866d);let _0x12ea6b=_0x52e660?_0x27ea1b[_0x5a86('0x3')](_0x52e660):null,_0x58b3f8=_0x54866d[_0x5a86('0x1b')](_0x5a86('0x23'))||null;const _0x4b7388=_0x27fe9a[_0x5a86('0x23')]||_0x58b3f8,_0x5be8d5=_0x27fe9a[_0x5a86('0x1')]||_0x12ea6b,_0x112aec=this[_0x5a86('0x12')]['plugins'][_0x5a86('0x10')](_0x5a86('0x1c'))['me'];for(const _0x24d23a of _0x6df87[_0x5a86('0x22')]()){const _0x12a4b4=_0x24d23a['getContainedElement']();if(_0x5a86('0x9')===_0x24d23a[_0x5a86('0x18')]&&_0x12a4b4===_0x54866d){_0x24d23a[_0x5a86('0x4')]!==_0x112aec&&_0x24d23a[_0x5a86('0x24')]();const _0x10d79b=_0x24d23a[_0x5a86('0x1f')][_0x5a86('0x14')];_0x58b3f8=_0x10d79b[0x0][_0x5a86('0x23')],_0x12ea6b=_0x10d79b[0x0][_0x5a86('0x1')];break;}}_0x42f5d1({'table':_0x54866d,'tableWidth':_0x4b7388,'columnWidths':_0x5be8d5}),_0x6df87[_0x5a86('0x21')](_0x54866d,{'commandName':_0x5a86('0x1e'),'commandParams':[{'tableWidth':_0x58b3f8,'columnWidths':_0x12ea6b}],'formatGroupId':_0x5a86('0x9')},[],_0x5a86('0x9'));});}['handleSuggestionDescription'](_0x4d870d){const {data:_0x199652}=_0x4d870d;if(_0x199652&&'resizeTable'===_0x199652[_0x5a86('0x13')]){const _0x565d2b=_0x5a86('0x11');return{'type':_0x5a86('0xc'),'content':_0x27d8d4(this['editor']['locale'],_0x565d2b)};}}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/tableheadings
|
|
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} heading rows/columns.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesTableHeadings 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 _0x53e8=['FORMAT_HEADER_COLUMN','FORMAT_REGULAR_ROW','commandParams','format','downcastDispatcher','document','TableUtils','*Format:*\x20%0','item','forceValue','data','table','getCellLocation','writer','accept','index','createRange','selection','formatBlock','registerDescriptionCallback','ck-suggestion-marker--active','toViewElement','mapper','removeAttribute','includes','has','addMarker:suggestion','afterInit','enableCommand','addClass','start','getAttribute','from','isBefore','setAttribute','_descriptionFactory','getSuggestion','markerName','locale','markBlockFormat','setTableColumnHeader','getRowIndexes','setTableRowHeader','ck-suggestion-marker-','commands','cell','_suggestionFactory','findAncestor','value','createPositionBefore','highest','showSuggestionHighlights','end','first','editing','removeClass','getSelectionAffectedTableCells','markerRange','plugins','FORMAT_REGULAR_COLUMN','markerNameToElements','getChild','nodeBefore','parent','createPositionAfter','commandName','_splitMarkerName','bindElementToMarker','createTableWalker','model','unbindElementFromMarkerName','change','stop','get','options','removeMarker:suggestion','requires','editor','TrackChangesEditing','headingColumns','FORMAT_HEADER_ROW','registerCustomCallback'];(function(_0x464a30,_0x53e8e1){const _0x2fe439=function(_0x74dc39){while(--_0x74dc39){_0x464a30['push'](_0x464a30['shift']());}};_0x2fe439(++_0x53e8e1);}(_0x53e8,0x18b));const _0x2fe4=function(_0x464a30,_0x53e8e1){_0x464a30=_0x464a30-0x0;let _0x2fe439=_0x53e8[_0x464a30];return _0x2fe439;};import{Plugin as _0x4779a1}from'ckeditor5/src/core';import _0x2aac2f from'./table';import{getTranslation as _0x5a444b}from'../utils/common-translations';export default class dt extends _0x4779a1{static get[_0x2fe4('0x9')](){return[_0x2aac2f];}[_0x2fe4('0x2a')](){const _0x4e3137=this[_0x2fe4('0xa')];if(!_0x4e3137[_0x2fe4('0x49')][_0x2fe4('0x28')]('TableEditing'))return;const _0x20fcc5=_0x4e3137[_0x2fe4('0x35')],_0x5c065b=_0x4e3137[_0x2fe4('0x49')][_0x2fe4('0x6')](_0x2fe4('0xb')),_0x187162=_0x4e3137[_0x2fe4('0x49')][_0x2fe4('0x6')](_0x2fe4('0x15')),_0x5f3ad9=_0x4e3137[_0x2fe4('0x49')][_0x2fe4('0x6')](_0x2aac2f);function _0x67d539({showActiveMarker:_0x5282ef=!0x0,setDataAttribute:_0x308b99=!0x0}={}){return(_0x53bf3a,_0x1aac72,_0x34556a)=>{const {type:_0x39b67a,id:_0x13f227}=_0x5c065b[_0x2fe4('0x51')](_0x1aac72[_0x2fe4('0x34')]),_0x579db4=_0x5c065b[_0x2fe4('0x33')](_0x13f227);if(!_0x579db4[_0x2fe4('0x19')]||_0x2fe4('0x37')!=_0x579db4[_0x2fe4('0x19')][_0x2fe4('0x50')])return;if(_0x1aac72[_0x2fe4('0x17')])return void _0x53bf3a[_0x2fe4('0x5')]();if(!_0x34556a['consumable']['consume'](_0x1aac72['markerRange'],_0x53bf3a['name']))return;const _0x32782d=_0x1aac72['markerRange'][_0x2fe4('0x2d')]['nodeAfter'],_0xb1adf8=_0x1aac72[_0x2fe4('0x48')][_0x2fe4('0x43')][_0x2fe4('0x4d')],_0x4253de=_0x32782d[_0x2fe4('0x4e')][_0x2fe4('0x4e')],{column:_0x346e6f}=_0x187162['getCellLocation'](_0x32782d),{column:_0xc5ae20}=_0x187162[_0x2fe4('0x1b')](_0xb1adf8);for(let _0x183de9=_0x346e6f;_0x183de9<=_0xc5ae20;_0x183de9++){const _0x5a84d8=_0x187162[_0x2fe4('0x1')](_0x4253de,{'column':_0x183de9,'includeAllSlots':!0x1});for(const _0x16429e of _0x5a84d8){const _0x381716=_0x16429e['cell'],_0x25917e=_0x34556a[_0x2fe4('0x25')][_0x2fe4('0x24')](_0x381716);_0x34556a[_0x2fe4('0x1c')][_0x2fe4('0x2c')](_0x2fe4('0x3a')+_0x39b67a,_0x25917e),_0x308b99&&_0x34556a['writer'][_0x2fe4('0x31')]('data-suggestion',_0x13f227,_0x25917e),_0x34556a[_0x2fe4('0x25')][_0x2fe4('0x0')](_0x25917e,_0x1aac72[_0x2fe4('0x34')]),_0x5282ef&&(_0x5c065b['activeMarkers'][_0x2fe4('0x27')](_0x1aac72[_0x2fe4('0x34')])?_0x34556a[_0x2fe4('0x1c')][_0x2fe4('0x2c')](_0x2fe4('0x23'),_0x25917e):_0x34556a[_0x2fe4('0x1c')][_0x2fe4('0x46')](_0x2fe4('0x23'),_0x25917e));}}};}_0x5c065b[_0x2fe4('0x2b')]('setTableRowHeader',(_0x21c8aa,_0x44bd8f)=>{const _0xcb2597=_0x187162['getSelectionAffectedTableCells'](_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x14')]['selection']),_0x9cd5fb=_0x187162[_0x2fe4('0x38')](_0xcb2597),_0x42f02e=_0xcb2597[0x0][_0x2fe4('0x3e')](_0x2fe4('0x1a')),_0x118185=_0x42f02e[_0x2fe4('0x2e')]('headingRows')||0x0,_0x669243=_0x44bd8f&&null!==_0x44bd8f[_0x2fe4('0x18')]?_0x44bd8f['forceValue']:!_0x4e3137[_0x2fe4('0x3b')][_0x2fe4('0x6')](_0x2fe4('0x39'))[_0x2fe4('0x3f')],_0x2ec2ea=_0x669243?_0x9cd5fb['last']:_0x9cd5fb[_0x2fe4('0x44')],_0x5704b2=_0x42f02e[_0x2fe4('0x4c')](_0x2ec2ea);let _0x2dd369;if(_0x669243){const _0x2883d7=_0x42f02e[_0x2fe4('0x4c')](_0x118185);if(_0x5704b2[_0x2fe4('0x1e')]<_0x2883d7[_0x2fe4('0x1e')])return;_0x2dd369=_0x4e3137['model']['createRange'](_0x4e3137[_0x2fe4('0x2')]['createPositionBefore'](_0x2883d7[_0x2fe4('0x4c')](0x0)),_0x4e3137['model'][_0x2fe4('0x4f')](_0x5704b2[_0x2fe4('0x4c')](_0x5704b2['childCount']-0x1)));}else{const _0x4d06aa=_0x42f02e[_0x2fe4('0x4c')](_0x118185-0x1);if(!_0x4d06aa)return;_0x2dd369=_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x1f')](_0x4e3137['model'][_0x2fe4('0x40')](_0x5704b2[_0x2fe4('0x4c')](0x0)),_0x4e3137['model'][_0x2fe4('0x4f')](_0x4d06aa[_0x2fe4('0x4c')](_0x4d06aa['childCount']-0x1)));}_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x4')](()=>{_0x5c065b['markBlockFormat'](_0x2dd369,{'commandName':_0x2fe4('0x39'),'commandParams':[{'forceValue':_0x669243}]},[],_0x2fe4('0x39'));});}),_0x5c065b['enableCommand'](_0x2fe4('0x37'),(_0x32e627,_0x380de0)=>{const _0x5bf90d=_0x4e3137[_0x2fe4('0x49')][_0x2fe4('0x6')](_0x2fe4('0x15')),_0x255cc8=_0x5bf90d[_0x2fe4('0x47')](_0x4e3137['model'][_0x2fe4('0x14')][_0x2fe4('0x20')]),_0x3ca8d9=_0x5bf90d['getColumnIndexes'](_0x255cc8),_0x24cd87=_0x255cc8[0x0]['findAncestor'](_0x2fe4('0x1a')),_0x43403e=_0x24cd87[_0x2fe4('0x2e')](_0x2fe4('0xc'))||0x0,_0x312cc3=_0x380de0&&null!==_0x380de0['forceValue']?_0x380de0['forceValue']:!_0x4e3137['commands'][_0x2fe4('0x6')](_0x2fe4('0x37'))[_0x2fe4('0x3f')];let _0x1b440f;const _0x230a00=_0x24cd87[_0x2fe4('0x4c')](0x0),_0x3ceb9b=_0x312cc3?_0x3ca8d9['last']:_0x3ca8d9[_0x2fe4('0x44')],_0x388d97=_0x5bf90d[_0x2fe4('0x1')](_0x24cd87,{'startRow':0x0,'column':_0x3ceb9b,'includeAllSlots':!0x1}),_0x32f00d=Array[_0x2fe4('0x2f')](_0x388d97)[0x0][_0x2fe4('0x3c')];if(_0x312cc3){const _0x493af6=_0x230a00[_0x2fe4('0x4c')](_0x43403e);if(_0x32f00d[_0x2fe4('0x30')](_0x493af6))return;_0x1b440f=_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x1f')](_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x40')](_0x493af6),_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x4f')](_0x32f00d));}else{const _0x2c38fc=_0x230a00[_0x2fe4('0x4c')](_0x43403e-0x1);if(!_0x2c38fc)return;_0x1b440f=_0x4e3137[_0x2fe4('0x2')]['createRange'](_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x40')](_0x32f00d),_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x4f')](_0x2c38fc));}_0x4e3137[_0x2fe4('0x2')]['change'](()=>{_0x5c065b[_0x2fe4('0x36')](_0x1b440f,{'commandName':_0x2fe4('0x37'),'commandParams':[{'forceValue':_0x312cc3}]},[],_0x2fe4('0x37'));});}),_0x4e3137[_0x2fe4('0x45')][_0x2fe4('0x13')]['on'](_0x2fe4('0x29'),_0x67d539(),{'priority':_0x2fe4('0x41')}),_0x4e3137[_0x2fe4('0x19')][_0x2fe4('0x13')]['on'](_0x2fe4('0x29'),(_0x4da3f4,_0x4d1e6b,_0x59d23f)=>{_0x59d23f[_0x2fe4('0x7')][_0x2fe4('0x42')]&&_0x67d539({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4da3f4,_0x4d1e6b,_0x59d23f);},{'priority':'highest'}),_0x4e3137['editing'][_0x2fe4('0x13')]['on'](_0x2fe4('0x8'),(_0x1f11db,_0x2d1c8e,_0x5a60fe)=>{const {type:_0x461884,id:_0x32be13}=_0x5c065b[_0x2fe4('0x51')](_0x2d1c8e[_0x2fe4('0x34')]),_0xc852ce=_0x5c065b[_0x2fe4('0x33')](_0x32be13);if(!_0xc852ce[_0x2fe4('0x19')]||'setTableColumnHeader'!=_0xc852ce[_0x2fe4('0x19')][_0x2fe4('0x50')])return;const _0x43329c=_0x5a60fe['mapper'][_0x2fe4('0x4b')](_0x2d1c8e[_0x2fe4('0x34')]);if(_0x43329c)for(const _0x26db02 of _0x43329c)_0x5a60fe[_0x2fe4('0x1c')][_0x2fe4('0x46')](_0x2fe4('0x3a')+_0x461884,_0x26db02),_0x5a60fe[_0x2fe4('0x1c')][_0x2fe4('0x46')]('ck-suggestion-marker--active',_0x26db02),_0x5a60fe[_0x2fe4('0x1c')][_0x2fe4('0x26')]('data-suggestion',_0x26db02),_0x5a60fe[_0x2fe4('0x25')][_0x2fe4('0x3')](_0x26db02,_0x2d1c8e[_0x2fe4('0x34')]);},{'priority':'highest'}),_0x5c065b[_0x2fe4('0x32')][_0x2fe4('0x22')](_0x3bc7a7=>{const {data:_0x4adb45}=_0x3bc7a7;if(_0x4adb45){if('setTableRowHeader'==_0x4adb45[_0x2fe4('0x50')]){const _0x1f2510=_0x4adb45[_0x2fe4('0x11')][0x0][_0x2fe4('0x18')];return _0xba65f6(_0x5a444b(_0x20fcc5,_0x1f2510?_0x2fe4('0xd'):_0x2fe4('0x10')));}if(_0x2fe4('0x37')==_0x4adb45[_0x2fe4('0x50')]){const _0x480ac5=_0x4adb45[_0x2fe4('0x11')][0x0]['forceValue'];return _0xba65f6(_0x5a444b(_0x20fcc5,_0x480ac5?_0x2fe4('0xf'):_0x2fe4('0x4a')));}}function _0xba65f6(_0x7bfe9c){return{'type':_0x2fe4('0x12'),'content':_0x5a444b(_0x20fcc5,_0x2fe4('0x16'),_0x7bfe9c)};}});const _0x1d0dd9=_0x5f3ad9['_acceptFormatSuggestionCallbackFactory']();_0x5c065b[_0x2fe4('0x3d')][_0x2fe4('0xe')](_0x2fe4('0x21'),'setTableRowHeader','accept',_0x1d0dd9),_0x5c065b[_0x2fe4('0x3d')]['registerCustomCallback'](_0x2fe4('0x21'),_0x2fe4('0x37'),_0x2fe4('0x1d'),_0x1d0dd9);}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/tablemergesplit
|
|
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} merging and splitting cells.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesTableMergeSplit 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 _0x2cd4=['mergeTableCells','refresh','tableCell','mergeTableCellLeft','requires','low','get','model','from','author','$graveyard','horizontally','format','_areSelectedCellsMergable','commands','stop','_isForcedDefaultExecutionBlock','table','registerCustomCallback','_acceptFormatSuggestionCallbackFactory','enableCommand','set:isEnabled','selection','trackChanges','length','detach','formatBlock','type','findAncestor','setSelection','markMultiRangeBlockFormat','find','mergeTableCellRight','getSelectionAffectedTableCells','mergeTableCellDown','filter','_areMergableCells','plugins','TableUtils','has','document','size','getRanges','execute','TrackChangesEditing','getAncestors','value','afterInit','isInContent','element','_suggestionFactory','mergeTableCellUp','add','locale','splitTableCellVertically','deletion','forceDefaultExecution','cell','change','splitTableCellHorizontally','commandName','map','containsRange','editor','TableEditing','getCellLocation','createRangeOn','*Split\x20cell:*\x20horizontally','accept','direction','_tablePostFixingSubtypes','getSuggestions','highest','registerDescriptionCallback','markBlockFormat','*Merge\x20cells*'];(function(_0x138116,_0x2cd42a){const _0xa84b36=function(_0x98c428){while(--_0x98c428){_0x138116['push'](_0x138116['shift']());}};_0xa84b36(++_0x2cd42a);}(_0x2cd4,0xb5));const _0xa84b=function(_0x138116,_0x2cd42a){_0x138116=_0x138116-0x0;let _0xa84b36=_0x2cd4[_0x138116];return _0xa84b36;};import{Plugin as _0x1fbfa7}from'ckeditor5/src/core';import _0x33cf79 from'./table';import{LiveRange as _0x3e0e8a}from'ckeditor5/src/engine';import{getTranslation as _0xca4a54}from'../utils/common-translations';export default class mt extends _0x1fbfa7{static get[_0xa84b('0x33')](){return[_0x33cf79];}[_0xa84b('0x12')](){const _0x22f8b6=this['editor'],_0x405ac9=_0x22f8b6[_0xa84b('0x36')][_0xa84b('0xb')][_0xa84b('0x45')],_0x502688=_0x22f8b6[_0xa84b('0x18')];if(!_0x22f8b6[_0xa84b('0x8')][_0xa84b('0xa')](_0xa84b('0x23')))return;const _0x1fa4e6=_0x22f8b6[_0xa84b('0x8')]['get'](_0xa84b('0xf')),_0x47d724=_0x22f8b6['plugins'][_0xa84b('0x35')](_0xa84b('0x9')),_0x34ce9d=_0x22f8b6[_0xa84b('0x8')]['get'](_0x33cf79);_0x34ce9d[_0xa84b('0x29')]['push'](_0xa84b('0x2f')),_0x1fa4e6['enableCommand'](_0xa84b('0x2f'),()=>{const _0x3f4193=_0x47d724[_0xa84b('0x4')](_0x22f8b6[_0xa84b('0x36')][_0xa84b('0xb')][_0xa84b('0x45')]);_0x22f8b6[_0xa84b('0x36')][_0xa84b('0x1d')](()=>{_0x1fa4e6[_0xa84b('0x1')](_0x3f4193,{'commandName':_0xa84b('0x2f'),'commandParams':[]},[],_0xa84b('0x2f'));});}),_0x22f8b6[_0xa84b('0x3d')][_0xa84b('0x35')](_0xa84b('0x2f'))['on'](_0xa84b('0xe'),(_0x2ebdbc,_0x855622)=>{_0x22f8b6[_0xa84b('0x3d')][_0xa84b('0x35')](_0xa84b('0x46'))[_0xa84b('0x11')]&&(_0x855622['length']>0x0&&_0x855622[_0x855622[_0xa84b('0x47')]-0x1]&&_0x855622[_0x855622[_0xa84b('0x47')]-0x1][_0xa84b('0x1b')]||_0x1fa4e6[_0xa84b('0x3f')]||this[_0xa84b('0x3c')]()||_0x2ebdbc['stop']());},{'priority':_0xa84b('0x2b')});for(const _0x5663da of[_0xa84b('0x16'),_0xa84b('0x3'),'mergeTableCellDown','mergeTableCellLeft']){const _0x21899c=_0x22f8b6[_0xa84b('0x3d')][_0xa84b('0x35')](_0x5663da);_0x1fa4e6[_0xa84b('0x43')](_0x5663da,()=>{const _0x2e88de=_0x22f8b6[_0xa84b('0x36')][_0xa84b('0xb')][_0xa84b('0x45')]['getFirstPosition']()[_0xa84b('0x10')]()['find'](_0x2e4005=>_0x2e4005['is']('element',_0xa84b('0x31'))),_0x33902f=_0x21899c[_0xa84b('0x11')];_0x22f8b6[_0xa84b('0x36')][_0xa84b('0x1d')](()=>{_0x1fa4e6['markMultiRangeBlockFormat']([_0x2e88de,_0x33902f],{'commandName':_0xa84b('0x2f'),'commandParams':[]},[],_0xa84b('0x2f'));});});}for(const _0x5fd2ff of[_0xa84b('0x19'),'splitTableCellHorizontally']){const _0x9b0b79=_0x22f8b6[_0xa84b('0x3d')][_0xa84b('0x35')](_0x5fd2ff);_0x1fa4e6[_0xa84b('0x43')](_0x5fd2ff,()=>{const _0x5f2a62=_0x47d724[_0xa84b('0x4')](_0x22f8b6[_0xa84b('0x36')][_0xa84b('0xb')][_0xa84b('0x45')])[0x0],_0x319612=_0x5f2a62[_0xa84b('0x4b')](_0xa84b('0x40')),{column:_0x477e7c,row:_0x5d9831}=_0x47d724[_0xa84b('0x24')](_0x5f2a62);let _0x446bed=[];if(_0xa84b('0x3a')==_0x9b0b79[_0xa84b('0x28')]){const _0x1696d5=_0x47d724['createTableWalker'](_0x319612,{'startRow':_0x5d9831,'endRow':_0x5d9831,'includeAllSlots':!0x0});_0x446bed=Array[_0xa84b('0x37')](_0x1696d5)[_0xa84b('0x20')](_0x867e50=>_0x867e50[_0xa84b('0x1c')]);}else{const _0xa8d35e=_0x47d724['createTableWalker'](_0x319612,{'column':_0x477e7c,'includeAllSlots':!0x0});_0x446bed=Array[_0xa84b('0x37')](_0xa8d35e)['map'](_0x3b25a0=>_0x3b25a0[_0xa84b('0x1c')]);}_0x22f8b6[_0xa84b('0x36')][_0xa84b('0x1d')](_0x776165=>{_0x1fa4e6[_0xa84b('0x2d')](_0x776165['createRangeOn'](_0x5f2a62),{'commandName':_0x5fd2ff,'commandParams':[]},_0x446bed,_0x5fd2ff);});});}_0x1fa4e6['_descriptionFactory'][_0xa84b('0x2c')](_0x5b51d4=>{const {data:_0x24ccbf}=_0x5b51d4;if(_0x24ccbf)return _0xa84b('0x2f')==_0x24ccbf[_0xa84b('0x1f')]?{'type':_0xa84b('0x3b'),'content':_0xca4a54(_0x502688,_0xa84b('0x2e'))}:void 0x0;}),_0x1fa4e6['_descriptionFactory'][_0xa84b('0x2c')](_0x42e5c4=>{const {data:_0x4269fd}=_0x42e5c4;if(_0x4269fd)return _0xa84b('0x19')==_0x4269fd['commandName']?{'type':'format','content':_0xca4a54(_0x502688,'*Split\x20cell:*\x20vertically')}:_0xa84b('0x1e')==_0x4269fd[_0xa84b('0x1f')]?{'type':_0xa84b('0x3b'),'content':_0xca4a54(_0x502688,_0xa84b('0x26'))}:void 0x0;});const _0x119596=_0x34ce9d[_0xa84b('0x42')]();for(const _0xd53f10 of[_0xa84b('0x16'),_0xa84b('0x3'),_0xa84b('0x5'),_0xa84b('0x32')])_0x1fa4e6[_0xa84b('0x15')][_0xa84b('0x41')](_0xa84b('0x49'),_0xd53f10,_0xa84b('0x27'),_0x119596);for(const _0x1fd1b5 of[_0xa84b('0x19'),_0xa84b('0x1e')])_0x1fa4e6[_0xa84b('0x15')][_0xa84b('0x41')](_0xa84b('0x49'),_0x1fd1b5,_0xa84b('0x27'),_0x119596);_0x1fa4e6['_suggestionFactory'][_0xa84b('0x41')](_0xa84b('0x49'),_0xa84b('0x2f'),_0xa84b('0x27'),_0x3552cb=>{_0x22f8b6[_0xa84b('0x36')][_0xa84b('0x1d')](_0x4ce583=>{const _0x2b54e5=Array[_0xa84b('0x37')](_0x405ac9['getRanges']())['map'](_0xf31fc1=>_0x3e0e8a['fromRange'](_0xf31fc1));_0x4ce583['setSelection'](_0x3552cb),_0x22f8b6[_0xa84b('0x3d')]['get'](_0xa84b('0x2f'))[_0xa84b('0x30')](),_0x22f8b6[_0xa84b('0xe')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x22f70e=_0x2b54e5[_0xa84b('0x6')](_0x347ded=>_0xa84b('0x39')!=_0x347ded['root']['rootName']);_0x22f70e[_0xa84b('0x47')]>0x0&&_0x4ce583[_0xa84b('0x0')](_0x22f70e);for(const _0x21dbf4 of _0x2b54e5)_0x21dbf4[_0xa84b('0x48')]();});});for(const _0x44f205 of[_0xa84b('0x16'),_0xa84b('0x5'),_0xa84b('0x32'),_0xa84b('0x3')]){const _0x1e1b3c=_0x22f8b6[_0xa84b('0x3d')][_0xa84b('0x35')](_0x44f205);_0x1e1b3c['on'](_0xa84b('0x44'),(_0x17a200,_0x55df73,_0x65a93b)=>{if(_0x65a93b){const _0x367449=_0x22f8b6[_0xa84b('0x36')][_0xa84b('0xb')][_0xa84b('0x45')]['getFirstPosition']()[_0xa84b('0x10')]()[_0xa84b('0x2')](_0x59eddf=>_0x59eddf['is'](_0xa84b('0x14'),_0xa84b('0x31')));this[_0xa84b('0x7')](_0x1e1b3c[_0xa84b('0x11')],_0x367449)||(_0x17a200['return']=!0x1,_0x17a200[_0xa84b('0x3e')]());}},{'priority':_0xa84b('0x34')});}}[_0xa84b('0x3c')](){const _0x4a055e=this[_0xa84b('0x22')]['commands'][_0xa84b('0x35')](_0xa84b('0x2f')),_0x2d4933=this['editor'][_0xa84b('0x8')][_0xa84b('0x35')]('TableUtils');if(!_0x4a055e['isEnabled'])return!0x1;const _0x54d189=_0x2d4933[_0xa84b('0x4')](this['editor'][_0xa84b('0x36')]['document'][_0xa84b('0x45')]);for(const _0x52c0ec of _0x54d189)for(const _0x48d0f2 of _0x54d189)if(_0x52c0ec!=_0x48d0f2&&!this[_0xa84b('0x7')](_0x52c0ec,_0x48d0f2))return!0x1;return!0x0;}['_areMergableCells'](_0x4e17b8,_0x390f76){const _0x33e13b=this[_0xa84b('0x22')][_0xa84b('0x8')][_0xa84b('0x35')]('TrackChangesEditing'),_0x2e07ce=this[_0xa84b('0x22')][_0xa84b('0x36')][_0xa84b('0x25')](_0x4e17b8),_0x531de2=this[_0xa84b('0x22')][_0xa84b('0x36')][_0xa84b('0x25')](_0x390f76),_0x5bc7c6=new Set(),_0x5d7858=new Set();for(const _0x4319c7 of _0x33e13b[_0xa84b('0x2a')]())if(('insertion'==_0x4319c7[_0xa84b('0x4a')]||_0xa84b('0x1a')==_0x4319c7[_0xa84b('0x4a')]||_0xa84b('0x2f')==_0x4319c7['subType'])&&_0x4319c7[_0xa84b('0x13')])for(const _0xfcae24 of _0x4319c7[_0xa84b('0xd')]())_0xfcae24[_0xa84b('0x21')](_0x2e07ce,!0x0)&&_0x5bc7c6[_0xa84b('0x17')](_0x4319c7[_0xa84b('0x4a')]+':'+_0x4319c7[_0xa84b('0x38')]['id']),_0xfcae24[_0xa84b('0x21')](_0x531de2,!0x0)&&_0x5d7858[_0xa84b('0x17')](_0x4319c7[_0xa84b('0x4a')]+':'+_0x4319c7[_0xa84b('0x38')]['id']);if(_0x5bc7c6[_0xa84b('0xc')]!=_0x5d7858[_0xa84b('0xc')])return!0x1;for(const _0x145e0b of _0x5bc7c6)if(!_0x5d7858[_0xa84b('0xa')](_0x145e0b))return!0x1;return!0x0;}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/tableproperties
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
5
|
+
import type { Range } from 'ckeditor5/src/engine';
|
|
6
|
+
import type { default as Suggestion } from '../suggestion';
|
|
7
|
+
import type { Description } from '../suggestiondescriptionfactory';
|
|
8
|
+
/**
|
|
9
|
+
* Provides track changes plugin integration for table properties feature.
|
|
10
|
+
*/
|
|
11
|
+
export default class TrackChangesTableProperties extends Plugin {
|
|
12
|
+
constructor(editor: Editor);
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
static get pluginName(): 'TrackChangesTableProperties';
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
afterInit(): void;
|
|
21
|
+
handleDiscardAction(properties: Array<string>, ranges: Array<Range>, data: any): void;
|
|
22
|
+
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
23
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x173a=['tableBorderStyle','tableCellBorderStyle','change','tableCellWidth','document','*Format:*\x20change\x20table\x20cell\x20properties','formatBlock','accept','TablePropertiesEditing','enqueueChange','_suggestionFactory','tableBorderColor','get','getSelectionAffectedTableCells','tableCellVerticalAlignment','nodeAfter','_handlePropertyChange','tableCellPadding','tableCellProperties','model','getFirstPosition','handleDiscardAction','start','discard','tableWidth','*Format:*\x20change\x20table\x20properties','batch','removeAttribute','editor','table','registerCustomCallback','pluginName','tableCellHorizontalAlignment','data','plugins','has','enableCommand','tableCellBackgroundColor','tableProperties','format','TableUtils','TrackChangesTableProperties','getContainedElement','locale','join','tableCellBorderWidth','getSuggestionCallback','handleSuggestionDescription','TrackChangesEditing','subType','markBlockFormat','_descriptionFactory','tableBorderWidth','selection','findAncestor'];(function(_0x51d917,_0x173a5f){const _0x6f63f0=function(_0x48a4c9){while(--_0x48a4c9){_0x51d917['push'](_0x51d917['shift']());}};_0x6f63f0(++_0x173a5f);}(_0x173a,0x1bc));const _0x6f63=function(_0x51d917,_0x173a5f){_0x51d917=_0x51d917-0x0;let _0x6f63f0=_0x173a[_0x51d917];return _0x6f63f0;};import{Plugin as _0x155199}from'ckeditor5/src/core';import{getTranslation as _0x5f480e}from'../utils/common-translations';export default class It extends _0x155199{constructor(_0x4ff662){super(_0x4ff662),this[_0x6f63('0x22')]=[_0x6f63('0x7'),_0x6f63('0x33'),_0x6f63('0x30'),'tableAlignment',_0x6f63('0x14'),'tableHeight','tableBackgroundColor'],this[_0x6f63('0xe')]=['tableCellBorderColor',_0x6f63('0x34'),_0x6f63('0x29'),_0x6f63('0xd'),_0x6f63('0x36'),'tableCellHeight',_0x6f63('0x21'),_0x6f63('0x1c'),_0x6f63('0xa')];}static get[_0x6f63('0x1b')](){return _0x6f63('0x25');}['afterInit'](){const _0x59faaa=this[_0x6f63('0x18')][_0x6f63('0x1e')][_0x6f63('0x8')](_0x6f63('0x2c'));if(this[_0x6f63('0x18')][_0x6f63('0x1e')][_0x6f63('0x1f')](_0x6f63('0x4'))){for(const _0x3f5fc8 of this[_0x6f63('0x22')])_0x59faaa[_0x6f63('0x20')](_0x3f5fc8,(_0x52bf17,_0x3cfa3c)=>{const _0x17ba4b=this[_0x6f63('0x18')][_0x6f63('0xf')][_0x6f63('0x0')][_0x6f63('0x31')][_0x6f63('0x10')]()[_0x6f63('0x32')](_0x6f63('0x19'));this[_0x6f63('0xc')](_0x3f5fc8,[_0x17ba4b],this[_0x6f63('0x22')],_0x6f63('0x22'),_0x52bf17,_0x3cfa3c);});_0x59faaa['_suggestionFactory'][_0x6f63('0x1a')](_0x6f63('0x2'),'tableProperties',_0x6f63('0x3'),_0x59faaa[_0x6f63('0x6')][_0x6f63('0x2a')](_0x6f63('0x2'),null,_0x6f63('0x13'))),_0x59faaa[_0x6f63('0x6')][_0x6f63('0x1a')](_0x6f63('0x2'),'tableProperties','discard',(_0x5f4570,_0x5d33ed)=>this['handleDiscardAction'](this['tableProperties'],_0x5f4570,_0x5d33ed)),_0x59faaa['_suggestionFactory'][_0x6f63('0x1a')](_0x6f63('0x2'),_0x6f63('0x22'),'join',()=>!0x1);}if(this[_0x6f63('0x18')]['plugins']['has']('TableCellPropertiesEditing')){for(const _0x213e80 of this['tableCellProperties'])_0x59faaa[_0x6f63('0x20')](_0x213e80,(_0x19e96d,_0x3d0303)=>{const _0x542006=this['editor'][_0x6f63('0x1e')]['get'](_0x6f63('0x24'))[_0x6f63('0x9')](this['editor'][_0x6f63('0xf')][_0x6f63('0x0')]['selection']);this[_0x6f63('0xc')](_0x213e80,_0x542006,this[_0x6f63('0xe')],'tableCellProperties',_0x19e96d,_0x3d0303);});_0x59faaa[_0x6f63('0x6')][_0x6f63('0x1a')](_0x6f63('0x2'),'tableCellProperties','accept',_0x59faaa['_suggestionFactory'][_0x6f63('0x2a')](_0x6f63('0x2'),null,_0x6f63('0x13'))),_0x59faaa[_0x6f63('0x6')][_0x6f63('0x1a')](_0x6f63('0x2'),_0x6f63('0xe'),_0x6f63('0x13'),(_0xcaa14,_0x349e45)=>this[_0x6f63('0x11')](this[_0x6f63('0xe')],_0xcaa14,_0x349e45)),_0x59faaa[_0x6f63('0x6')][_0x6f63('0x1a')]('formatBlock',_0x6f63('0xe'),_0x6f63('0x28'),()=>!0x1);}_0x59faaa[_0x6f63('0x2f')]['registerDescriptionCallback'](_0x2fb052=>this[_0x6f63('0x2b')](_0x2fb052));}['_handlePropertyChange'](_0x38b943,_0x121378,_0x39b01d,_0x3c215c,_0x20441e,_0x62bc6f){const _0x5f2f92=this[_0x6f63('0x18')][_0x6f63('0x1e')]['get'](_0x6f63('0x2c'));this[_0x6f63('0x18')][_0x6f63('0xf')][_0x6f63('0x5')](_0x62bc6f[_0x6f63('0x16')],()=>{for(const _0x5e29df of _0x121378){if(this['_getSuggestion'](_0x5e29df,_0x3c215c))_0x20441e(_0x62bc6f);else{const _0x45f436={};for(const _0x4bfa9f of _0x39b01d){const _0x3d4c00=_0x5e29df['getAttribute'](_0x4bfa9f);void 0x0!==_0x3d4c00&&(_0x45f436[_0x4bfa9f]=_0x3d4c00);}_0x20441e(_0x62bc6f),_0x5f2f92[_0x6f63('0x2e')](_0x5e29df,{'commandParams':[_0x45f436]},[],_0x3c215c);}}});}[_0x6f63('0x11')](_0x12b79b,_0x11d2a4,_0x1fc79d){const _0x118dd6=_0x11d2a4[0x0][_0x6f63('0x12')][_0x6f63('0xb')],_0x2f222b=_0x1fc79d['commandParams'][0x0];this['editor'][_0x6f63('0xf')][_0x6f63('0x35')](_0x33fecb=>{for(const _0x530e58 of _0x12b79b)void 0x0!==_0x2f222b[_0x530e58]?_0x33fecb['setAttribute'](_0x530e58,_0x2f222b[_0x530e58],_0x118dd6):_0x33fecb[_0x6f63('0x17')](_0x530e58,_0x118dd6);});}[_0x6f63('0x2b')](_0x225a0e){if(_0x225a0e[_0x6f63('0x1d')])switch(_0x225a0e[_0x6f63('0x2d')]){case _0x6f63('0x22'):return{'type':_0x6f63('0x23'),'content':_0x5f480e(this[_0x6f63('0x18')][_0x6f63('0x27')],_0x6f63('0x15'))};case _0x6f63('0xe'):return{'type':_0x6f63('0x23'),'content':_0x5f480e(this[_0x6f63('0x18')][_0x6f63('0x27')],_0x6f63('0x1'))};}}['_getSuggestion'](_0x1500a0,_0x47ba92){const _0x574de8=this[_0x6f63('0x18')][_0x6f63('0x1e')][_0x6f63('0x8')](_0x6f63('0x2c'));for(const _0x211640 of _0x574de8['getSuggestions']({'skipNotAttached':!0x0})){const _0x197089=_0x211640[_0x6f63('0x26')]();if(_0x211640[_0x6f63('0x2d')]===_0x47ba92&&_0x197089===_0x1500a0)return _0x211640;}return null;}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/title
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for title feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesTitle extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4700=['_descriptionFactory','registerPostFixer','afterInit','differ','newRange','title-content','forward','plugins','Title','element','end','removeMarker','registerElementLabel','locale','from','get','isCollapsed','_splitMarkerName','editor','model','isTouching','updateMarker','TrackChangesEditing','schema','has','nodeBefore','start','document','getChangedMarkers'];(function(_0x290e2f,_0x470025){const _0x4ab863=function(_0x2cbf49){while(--_0x2cbf49){_0x290e2f['push'](_0x290e2f['shift']());}};_0x4ab863(++_0x470025);}(_0x4700,0x110));const _0x4ab8=function(_0x290e2f,_0x470025){_0x290e2f=_0x290e2f-0x0;let _0x4ab863=_0x4700[_0x290e2f];return _0x4ab863;};import{Plugin as _0x4a3117}from'ckeditor5/src/core';import{getTranslation as _0x906a7a}from'../utils/common-translations';export default class wt extends _0x4a3117{[_0x4ab8('0x14')](){const _0x51bd88=this[_0x4ab8('0x7')];if(!_0x51bd88[_0x4ab8('0x19')][_0x4ab8('0xd')](_0x4ab8('0x1a')))return;const _0x183c99=_0x51bd88[_0x4ab8('0x19')][_0x4ab8('0x4')](_0x4ab8('0xb'));_0x183c99[_0x4ab8('0x12')][_0x4ab8('0x1')]('title-content',()=>_0x906a7a(_0x51bd88[_0x4ab8('0x2')],'ELEMENT_TITLE')),_0x51bd88['model'][_0x4ab8('0x10')][_0x4ab8('0x13')](_0x12c2d1=>{let _0x3f1809=!0x1;const _0x13326b=Array[_0x4ab8('0x3')](_0x51bd88[_0x4ab8('0x8')][_0x4ab8('0x10')][_0x4ab8('0x15')][_0x4ab8('0x11')]());for(const {name:_0x4ac46d,data:_0x1aa8c0}of _0x13326b){const {group:_0x2bf3bc}=_0x183c99[_0x4ab8('0x6')](_0x4ac46d);if('suggestion'!==_0x2bf3bc||!_0x1aa8c0['newRange'])continue;const _0x21378b=_0x1aa8c0[_0x4ab8('0x16')],_0x37431b=_0x21378b[_0x4ab8('0x1c')][_0x4ab8('0xe')];if(!_0x37431b||!_0x37431b['is'](_0x4ab8('0x1b'),_0x4ab8('0x17')))continue;if(!_0x21378b[_0x4ab8('0xf')][_0x4ab8('0x9')](_0x21378b['end']))continue;const _0x4c1ae7=_0x51bd88[_0x4ab8('0x8')][_0x4ab8('0xc')]['getNearestSelectionRange'](_0x21378b[_0x4ab8('0x1c')],_0x4ab8('0x18'));if(_0x4c1ae7&&_0x4c1ae7[_0x4ab8('0x5')]){const _0xc78683=_0x12c2d1['createRange'](_0x21378b[_0x4ab8('0xf')],_0x4c1ae7[_0x4ab8('0xf')]);_0xc78683['isEqual'](_0x21378b)||(_0x12c2d1[_0x4ab8('0xa')](_0x4ac46d,{'range':_0xc78683}),_0x3f1809=!0x0);}_0x3f1809||(_0x12c2d1[_0x4ab8('0x0')](_0x4ac46d),_0x3f1809=!0x0);}return _0x3f1809;});}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/undo
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:undo/undo~Undo undo feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesUndo extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d59=['UndoEditing','undo','afterInit','redo','enableCommand','get','editor','plugins'];(function(_0x4a8219,_0x5d59ec){const _0x2cdeb0=function(_0x45411d){while(--_0x45411d){_0x4a8219['push'](_0x4a8219['shift']());}};_0x2cdeb0(++_0x5d59ec);}(_0x5d59,0x19d));const _0x2cde=function(_0x4a8219,_0x5d59ec){_0x4a8219=_0x4a8219-0x0;let _0x2cdeb0=_0x5d59[_0x4a8219];return _0x2cdeb0;};import{Plugin as _0x297b58}from'ckeditor5/src/core';export default class yt extends _0x297b58{[_0x2cde('0x5')](){const _0x762e8c=this[_0x2cde('0x1')],_0x36af4e=_0x762e8c[_0x2cde('0x2')][_0x2cde('0x0')]('TrackChangesEditing');_0x762e8c[_0x2cde('0x2')]['has'](_0x2cde('0x3'))&&(_0x36af4e[_0x2cde('0x7')](_0x2cde('0x4')),_0x36af4e[_0x2cde('0x7')](_0x2cde('0x6')));}}
|