@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231004.0 → 0.0.0-nightly-20231005.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/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x563b=['tablePasteCell','start','unwrap','table','nodeAfter','tableCellHorizontalAlignment','findAncestor','showSuggestionHighlights','suggestionUnloaded','isEqual','attributes','dataDowncast','TableUtils','entries','getColumns','rowInsertionIndexes','_suggestionFactory','getSuggestionCallback','register','ck-suggestion-marker-insertion','tableCell','author','endRow','registerCustomCallback','tableCellPadding','cells','locale','previous','position','markerToHighlight','fromEntries','hasSuggestion','last','getRange','fill','element','requires','view','getChanges','name','tableCellSuggestion','accept','move','tablePasteChainId','endColumn','markerAttributes','tableCellBorderColor','forceDefaultExecution','some','oldRange','document','getChangedMarkers','push','editing','change','elementToElement','low','getSuggestions','createRangeIn','setAttribute','redo','previousSibling','getRanges','_getCoordsForCells','getContainedElement','getItems','nextSibling','getAllAdjacentSuggestions','TrackChangesEditing','containsRange','subType','insertion','removeMarkers','startsWith','map','tableCellBackgroundColor','conversion','isInContent','deletion','rootName','commands','set','markerName','suggestion','insertContent','suggestion:formatBlock:tablePasteCell','insertColumns','formatBlock','_isForcedDefaultExecutionBlock','newRange','createRange','has','clipboardOutput','add','stop','first','batch','get','columnInsertionRanges','createPositionBefore','plugins','trackChanges','differ','ck-suggestion-marker--active','suggestionLoaded','getShiftedBy','deletionRanges','tablePaste','registerDescriptionCallback','getTableIfOnlyTableInContent','createTableWalker','getChildren','documentSelection','_splitMarkerName','value','columnInsertionIndexes','_replaceTableSlotCell','TableClipboard','columns','every','ck-suggestion-marker','getMarkers','keys','insert','editor','rows','updateMarker','filter','selection','discard','setAttributes','return','reduce','markMultiRangeInsertion','suggestion-td','createElement','registerPostFixer','rowInsertionRanges','from','find','remove','getColumnIndexes','getAttributes','type','column','high','join','getRows','createRangeOn','for','isEmpty','Users','_descriptionFactory','getSelectionAffectedTableCells','tablePasteColumn','_tablePostFixingSubtypes','model','listenTo','markMultiRangeDeletion','*Replace\x20table\x20cells*','end','paragraph','getChild','markers','insertRows','tableCellBorderWidth','activeMarkers','includes','options','length','next','tableCellVerticalAlignment'];(function(_0xd782c8,_0x563b43){const _0x58f1be=function(_0x41f76b){while(--_0x41f76b){_0xd782c8['push'](_0xd782c8['shift']());}};_0x58f1be(++_0x563b43);}(_0x563b,0x9c));const _0x58f1=function(_0xd782c8,_0x563b43){_0xd782c8=_0xd782c8-0x0;let _0x58f1be=_0x563b[_0xd782c8];return _0x58f1be;};import{getTranslation as _0x7a919e}from'../utils/common-translations';import{Plugin as _0x31b16b}from'ckeditor5/src/core';import{uid as _0x28570d,priorities as _0x1db3a1}from'ckeditor5/src/utils';import _0xb5a7dd from'./table';const le=[_0x58f1('0x9'),_0x58f1('0x3e'),'tableCellBorderStyle',_0x58f1('0x15'),_0x58f1('0xf'),_0x58f1('0x5b'),_0x58f1('0x28')],ae=Object['fromEntries'](le[_0x58f1('0x5a')](_0x2a199a=>[_0x2a199a,null]));export default class wt extends _0x31b16b{static get[_0x58f1('0x34')](){return[_0xb5a7dd];}['afterInit'](){const _0x228a66=this[_0x58f1('0x8c')];if(!_0x228a66['plugins']['has'](_0x58f1('0x85')))return;const _0x650062=_0x228a66['plugins'][_0x58f1('0x71')](_0x58f1('0x54')),_0x348665=_0x228a66[_0x58f1('0x74')][_0x58f1('0x71')](_0x58f1('0x1c')),_0x2db19=_0x228a66['plugins'][_0x58f1('0x71')](_0xb5a7dd),_0x49c287=_0x228a66[_0x58f1('0x74')][_0x58f1('0x71')](_0x58f1('0x85'));_0x2db19[_0x58f1('0xab')][_0x58f1('0x44')]('tablePasteRow',_0x58f1('0xaa')),_0x228a66[_0x58f1('0x0')]['schema'][_0x58f1('0x22')](_0x58f1('0x38'),{'allowIn':'tableCell','allowContentOf':_0x58f1('0x24'),'isLimit':!0x0}),_0x228a66['conversion'][_0x58f1('0x47')]({'model':_0x58f1('0x38'),'view':_0x58f1('0x96')});let _0x2478ad=null;_0x228a66['model']['on'](_0x58f1('0x64'),(_0x419445,_0x5551b9)=>{const [_0x450db4,_0x2b6ca5]=_0x5551b9,_0x447c0e=_0x5551b9[_0x5551b9[_0x58f1('0xd')]-0x1];_0x447c0e&&_0x447c0e[_0x58f1('0x3f')]||_0x650062[_0x58f1('0x68')]||this[_0x58f1('0x8c')][_0x58f1('0x60')][_0x58f1('0x71')](_0x58f1('0x75'))[_0x58f1('0x82')]&&function(_0x3e8a5c,_0x1a28de,_0x597979,_0xef7b81,_0x33804b){if(_0x1a28de&&!_0x1a28de['is'](_0x58f1('0x80')))return!0x1;const _0x42733c=_0x33804b[_0x58f1('0x7d')](_0x3e8a5c,_0x597979);if(!_0x42733c||!fe(_0x42733c,void 0x0,_0xef7b81))return!0x1;const _0x3ce0f7=_0xef7b81[_0x58f1('0xa9')](_0x597979[_0x58f1('0x42')][_0x58f1('0x90')]);if(!_0x3ce0f7[_0x58f1('0xd')])return!0x1;const _0x34c19e=_0x3ce0f7[0x0][_0x58f1('0x16')](_0x58f1('0x13')),_0x473cf5=_0xef7b81['getRowIndexes'](_0x3ce0f7),_0x2395a6=_0xef7b81[_0x58f1('0x9d')](_0x3ce0f7),_0x2b27be={'startRow':_0x473cf5[_0x58f1('0x6f')],'endRow':_0x473cf5[_0x58f1('0x30')],'startColumn':_0x2395a6['first'],'endColumn':_0x2395a6[_0x58f1('0x30')]};return 0x1==_0x3ce0f7['length']&&(_0x2b27be[_0x58f1('0x26')]+=_0xef7b81[_0x58f1('0xa3')](_0x42733c)-0x1,_0x2b27be[_0x58f1('0x3c')]+=_0xef7b81[_0x58f1('0x1e')](_0x42733c)-0x1),fe(_0x34c19e,_0x2b27be,_0xef7b81);}(_0x450db4,_0x2b6ca5,_0x228a66[_0x58f1('0x0')],_0x348665,_0x49c287)&&(_0x419445[_0x58f1('0x6e')](),_0x2478ad={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x228a66[_0x58f1('0x0')][_0x58f1('0x46')](()=>{_0x228a66[_0x58f1('0x0')][_0x58f1('0x64')](_0x5551b9[0x0],_0x5551b9[0x1],_0x5551b9[0x2],{'forceDefaultExecution':!0x0});const _0xb8cbe8=_0x28570d(),{rowInsertionRanges:_0x330b93,columnInsertionRanges:_0x505dad,insertionRanges:_0xf5e747,deletionRanges:_0x2e5fd6,cells:_0x55a53b}=_0x2478ad;_0x330b93[_0x58f1('0xd')]&&_0x650062[_0x58f1('0x95')](_0x330b93,'tablePasteRow',{'tablePasteChainId':_0xb8cbe8}),_0x505dad[_0x58f1('0xd')]&&_0x650062[_0x58f1('0x95')](_0x505dad,_0x58f1('0xaa'),{'tablePasteChainId':_0xb8cbe8}),_0xf5e747['length']&&_0x650062[_0x58f1('0x95')](_0xf5e747,_0x58f1('0x7b'),{'tablePasteChainId':_0xb8cbe8,'skipNestingCheck':!0x0}),_0x2e5fd6[_0x58f1('0xd')]&&_0x650062[_0x58f1('0x2')](_0x2e5fd6,_0x58f1('0x7b'),{'tablePasteChainId':_0xb8cbe8,'skipNestingCheck':!0x0});const _0x381533=_0x650062['markMultiRangeBlockFormat'](_0x55a53b[_0x58f1('0x5a')](({element:_0x3fb0b2})=>_0x3fb0b2),{'formatGroupId':_0x28570d()},[],'tablePasteCell',{'tablePasteChainId':_0xb8cbe8});if(_0x381533){const _0x4ccd17=_0x381533[_0x58f1('0x89')](),_0x42208a=[];for(const {element:_0x294a58,attributes:_0x4609a2}of _0x55a53b){if(!_0x4609a2)continue;const _0x27ec6a=_0x228a66[_0x58f1('0x0')][_0x58f1('0xa4')](_0x294a58),_0x253b22=_0x4ccd17[_0x58f1('0x9b')](_0x377075=>_0x377075[_0x58f1('0x31')]()[_0x58f1('0x19')](_0x27ec6a));_0x253b22&&_0x42208a[_0x58f1('0x44')]([_0x253b22[_0x58f1('0x37')],_0x4609a2]);}_0x42208a['length']&&_0x381533[_0x58f1('0x4b')](_0x58f1('0x3d'),Object[_0x58f1('0x2e')](_0x42208a));}_0x2478ad=null;}));},{'priority':_0x1db3a1[_0x58f1('0xa1')]+0xa}),_0x228a66['plugins']['get'](_0x58f1('0x85'))['on'](_0x58f1('0x84'),(_0x55754c,_0x5c3089)=>{const [_0x1b883f,_0x296396,,_0x2016d5]=_0x5c3089;if(!_0x2478ad)return;_0x55754c[_0x58f1('0x6e')]();const _0x1d7b64=_0x1b883f['cell'],_0x552623=_0x296396,_0x4e0cb2=ce(_0x1d7b64),_0xb1740=ce(_0x552623);_0x55754c[_0x58f1('0x93')]=_0x1d7b64;let _0x4e86cb=null,_0x596011=null;if(_0xb1740||_0x4e0cb2){if(_0x4e0cb2&&!_0xb1740){_0x2016d5[_0x58f1('0x9c')](_0x1d7b64['getChild'](0x0));for(const _0x4e73b of Array[_0x58f1('0x9a')](_0x552623[_0x58f1('0x7f')]()))_0x2016d5[_0x58f1('0x8b')](_0x4e73b,_0x1d7b64,_0x58f1('0x4'));const _0x144ea3=_0x2478ad[_0x58f1('0x1f')][_0x58f1('0xb')](_0x1b883f['row']),_0x4cf29d=_0x2478ad['columnInsertionIndexes'][_0x58f1('0xb')](_0x1b883f[_0x58f1('0xa0')]);_0x144ea3||_0x4cf29d||(_0x4e86cb=_0x2016d5[_0x58f1('0x4a')](_0x1d7b64));}else _0xb1740&&!_0x4e0cb2&&(_0x596011=_0x2016d5[_0x58f1('0x4a')](_0x1d7b64));}else{const _0x232046=_0x2016d5[_0x58f1('0x97')](_0x58f1('0x38')),_0x1acfc8=_0x2016d5[_0x58f1('0x97')]('tableCellSuggestion');_0x2016d5['wrap'](_0x2016d5[_0x58f1('0x4a')](_0x1d7b64),_0x1acfc8),_0x2016d5['insert'](_0x232046,_0x1d7b64,0x0);for(const _0x1de2b6 of Array['from'](_0x552623[_0x58f1('0x7f')]()))_0x2016d5[_0x58f1('0x8b')](_0x1de2b6,_0x232046,_0x58f1('0x4'));_0x4e86cb=_0x2016d5[_0x58f1('0xa4')](_0x232046),_0x596011=_0x2016d5['createRangeOn'](_0x1acfc8);}const _0x291ad0=Array['from'](_0x552623[_0x58f1('0x9e')]())[_0x58f1('0x8f')](([_0x42ae01])=>le[_0x58f1('0xb')](_0x42ae01));_0x2478ad[_0x58f1('0x29')][_0x58f1('0x44')]({'element':_0x1d7b64,'attributes':_0x291ad0['length']?Object[_0x58f1('0x2e')](_0x291ad0):null}),_0x4e86cb&&_0x2478ad['insertionRanges'][_0x58f1('0x44')](_0x4e86cb),_0x596011&&_0x2478ad[_0x58f1('0x7a')]['push'](_0x596011);},{'priority':'high'}),_0x348665['on'](_0x58f1('0x66'),(_0xec58cf,_0x3d97c1)=>{const [_0x2a6259,_0x2f82aa={}]=_0x3d97c1;if(!_0x2478ad)return;const _0x342420=_0x2f82aa['at']||0x0,_0x4599f5=_0x2f82aa[_0x58f1('0x86')]||0x1;_0x2478ad[_0x58f1('0x83')]=new Array(_0x4599f5)[_0x58f1('0x32')](_0x342420)[_0x58f1('0x5a')]((_0xa199b0,_0x401016)=>_0xa199b0+_0x401016);for(const {cell:_0x54b805}of _0x348665[_0x58f1('0x7e')](_0x2a6259,{'startColumn':_0x342420,'endColumn':_0x342420+_0x4599f5-0x1}))_0x2478ad[_0x58f1('0x72')][_0x58f1('0x44')](_0x228a66[_0x58f1('0x0')]['createRangeOn'](_0x54b805));},{'priority':_0x58f1('0x48')}),_0x348665['on'](_0x58f1('0x8'),(_0x5663b4,_0xeaed2b)=>{const [_0x96ba05,_0x8492d={}]=_0xeaed2b;if(!_0x2478ad)return;const _0x152693=_0x8492d['at']||0x0,_0x2af731=_0x8492d[_0x58f1('0x8d')]||0x1;_0x2478ad[_0x58f1('0x1f')]=new Array(_0x2af731)[_0x58f1('0x32')](_0x152693)[_0x58f1('0x5a')]((_0x4e03e5,_0x2dcb77)=>_0x4e03e5+_0x2dcb77);for(const {cell:_0x1ee629}of _0x348665[_0x58f1('0x7e')](_0x96ba05,{'startRow':_0x152693,'endRow':_0x152693+_0x2af731-0x1}))_0x2478ad[_0x58f1('0x99')][_0x58f1('0x44')](_0x228a66['model']['createRangeOn'](_0x1ee629));},{'priority':'low'}),_0x650062[_0x58f1('0xa8')][_0x58f1('0x7c')](_0x3219f4=>{if(_0x3219f4[_0x58f1('0x56')]&&_0x3219f4[_0x58f1('0x56')][_0x58f1('0x59')]('tablePaste'))return _0x3219f4[_0x58f1('0x2b')]?{}:{'type':_0x58f1('0x57'),'content':_0x7a919e(_0x228a66[_0x58f1('0x2a')],_0x58f1('0x3'))};});const _0x452c03=()=>!0x1;for(const _0x53fbbd of[_0x58f1('0x7b'),_0x58f1('0xaa'),'tablePasteRow',_0x58f1('0x10')])_0x650062[_0x58f1('0x20')]['registerCustomCallback'](_0x58f1('0x57'),_0x53fbbd,_0x58f1('0xa2'),_0x452c03),_0x650062[_0x58f1('0x20')][_0x58f1('0x27')](_0x58f1('0x5e'),_0x53fbbd,_0x58f1('0xa2'),_0x452c03),_0x650062[_0x58f1('0x20')]['registerCustomCallback'](_0x58f1('0x67'),_0x53fbbd,_0x58f1('0xa2'),_0x452c03);_0x650062[_0x58f1('0x20')][_0x58f1('0x27')]('formatBlock',_0x58f1('0x10'),'discard',_0x452c03),_0x650062[_0x58f1('0x20')][_0x58f1('0x27')]('formatBlock',_0x58f1('0x10'),_0x58f1('0x39'),(_0x33d51d,_0xb795f0,_0x464983)=>{const _0x5de911=_0x33d51d['map'](_0xde033b=>_0xde033b[_0x58f1('0x50')]())[_0x58f1('0x8f')](_0x5c4dbc=>_0x5c4dbc),_0x4160fb=new Map(_0x5de911[_0x58f1('0x5a')](_0x3b575b=>[_0x3b575b,null]));if(_0x2478ad)for(const {element:_0xabe282,attributes:_0x10f1b2}of _0x2478ad[_0x58f1('0x29')])_0x10f1b2&&_0x4160fb[_0x58f1('0x61')](_0xabe282,_0x10f1b2);else{if(_0x464983&&_0x464983[_0x58f1('0x3d')])for(const [_0x460b80,_0x89a693]of Object[_0x58f1('0x1d')](_0x464983[_0x58f1('0x3d')])){const _0x4a3144=_0x228a66[_0x58f1('0x0')][_0x58f1('0x7')]['get'](_0x460b80),_0x299107=_0x4a3144?_0x4a3144['getRange']()[_0x58f1('0x50')]():null;_0x299107&&_0x4160fb[_0x58f1('0x61')](_0x299107,_0x89a693);}}_0x228a66[_0x58f1('0x0')][_0x58f1('0x46')](_0x27a2fe=>{for(const [_0x6abd9d,_0x127913]of _0x4160fb)_0x27a2fe[_0x58f1('0x92')]({...ae,..._0x127913},_0x6abd9d);});});const _0x1d9573=(_0x49f93f,_0x5e50bc)=>{_0x650062[_0x58f1('0x20')][_0x58f1('0x27')](_0x49f93f,_0x58f1('0x7b'),_0x5e50bc,(_0xec9cce,_0x4e0481,_0x33ebca)=>{_0x228a66[_0x58f1('0x0')][_0x58f1('0x46')](_0x377210=>{const _0x1f09fa=[];for(const _0x2fd66a of _0xec9cce){const _0x249a58=_0x2fd66a[_0x58f1('0x11')][_0x58f1('0x14')];_0x249a58['is']('element',_0x58f1('0x38'))&&_0x1f09fa['push'](_0x249a58);}_0x650062[_0x58f1('0x20')][_0x58f1('0x21')](_0x49f93f,null,_0x5e50bc)(_0xec9cce,_0x4e0481,_0x33ebca);for(const _0x172521 of _0x1f09fa)'$graveyard'!=_0x172521['root'][_0x58f1('0x5f')]&&_0x377210[_0x58f1('0x12')](_0x172521);});});};_0x1d9573('insertion',_0x58f1('0x39')),_0x1d9573('insertion',_0x58f1('0x91')),_0x1d9573(_0x58f1('0x5e'),_0x58f1('0x39')),_0x1d9573(_0x58f1('0x5e'),_0x58f1('0x91')),_0x650062['_suggestionFactory'][_0x58f1('0x27')](_0x58f1('0x57'),'tablePasteRow',_0x58f1('0x91'),_0x12a2e7=>{const _0x5089ec=_0x12a2e7['map'](_0x52c80b=>_0x52c80b['getContainedElement']()),_0x57fd08=_0x5089ec[0x0][_0x58f1('0x16')]('table'),{minRow:_0x1cc9e9,maxRow:_0xb53d75}=_0x2db19[_0x58f1('0x4f')](_0x5089ec);_0x348665['removeRows'](_0x57fd08,{'at':_0x1cc9e9,'rows':_0xb53d75-_0x1cc9e9+0x1});}),_0x650062[_0x58f1('0x20')][_0x58f1('0x27')](_0x58f1('0x57'),_0x58f1('0xaa'),_0x58f1('0x91'),_0x1c2baf=>{const _0x487ca0=_0x1c2baf['map'](_0x59d2af=>_0x59d2af['getContainedElement']()),_0x5e4750=_0x487ca0[0x0][_0x58f1('0x16')](_0x58f1('0x13')),{minColumn:_0x4ab242,maxColumn:_0x43ff13}=_0x2db19['_getCoordsForCells'](_0x487ca0);_0x348665['removeColumns'](_0x5e4750,{'at':_0x4ab242,'columns':_0x43ff13-_0x4ab242+0x1});});const _0x126b1a=(_0x17dd7f,_0x1edd86)=>{if(!_0x1edd86[_0x58f1('0x56')]||!_0x1edd86[_0x58f1('0x56')][_0x58f1('0x59')](_0x58f1('0x7b')))return;const _0x32cb6a=_0x1edd86['attributes']['tablePasteChainId'],_0xbd89ac=_0x650062['getSuggestions']()[_0x58f1('0x8f')](_0x4976b4=>_0x4976b4[_0x58f1('0x5d')]&&_0x4976b4[_0x58f1('0x1a')]&&_0x4976b4[_0x58f1('0x1a')][_0x58f1('0x3b')]==_0x32cb6a);_0xbd89ac['length']&&_0x1edd86['getAllAdjacentSuggestions']()[_0x58f1('0xd')]!=_0xbd89ac[_0x58f1('0xd')]&&_0xbd89ac[_0x58f1('0x94')]((_0x5c09cd,_0x523863)=>(_0x5c09cd[_0x58f1('0xe')]=_0x523863,_0x523863[_0x58f1('0x2b')]=_0x5c09cd,_0x523863));};function _0x546b47(_0x70ba51,_0x343e70=!0x0){const {id:_0x34d706}=_0x650062[_0x58f1('0x81')](_0x70ba51[_0x58f1('0x62')]),_0xcdd596=[_0x58f1('0x88'),_0x58f1('0x23')],_0x4e883e=_0x650062[_0x58f1('0xa')][_0x58f1('0xb')](_0x70ba51[_0x58f1('0x62')]);return _0x4e883e&&_0xcdd596['push'](_0x58f1('0x77')),{'classes':_0xcdd596,'attributes':{'data-suggestion':_0x34d706},'priority':_0x4e883e&&_0x343e70?0xbc2:0xbb8};}_0x650062['on'](_0x58f1('0x78'),_0x126b1a,{'priority':_0x58f1('0xa1')}),_0x650062['on'](_0x58f1('0x18'),_0x126b1a,{'priority':'high'}),_0x228a66[_0x58f1('0x0')][_0x58f1('0x42')][_0x58f1('0x98')](()=>{let _0x26e87f=!0x1;const _0x196bc9=Array[_0x58f1('0x9a')](_0x228a66[_0x58f1('0x0')][_0x58f1('0x42')][_0x58f1('0x76')][_0x58f1('0x43')]());for(const {name:_0x56d9a0,data:_0x1585cb}of _0x196bc9){const {group:_0xdc1878,type:_0x3d3c68,id:_0x127a3a}=_0x650062[_0x58f1('0x81')](_0x56d9a0);if(_0x58f1('0x63')!=_0xdc1878||'deletion'!=_0x3d3c68||_0x1585cb[_0x58f1('0x41')])continue;if(!_0x650062[_0x58f1('0x2f')](_0x127a3a))continue;const _0x49f949=_0x650062['getSuggestion'](_0x127a3a)[_0x58f1('0x4e')](),_0x2fc79d=_0x228a66['plugins']['get']('Users')['me'];for(const _0xc5553e of _0x650062[_0x58f1('0x49')]()){if(!_0xc5553e['isInContent']||_0xc5553e[_0x58f1('0x25')]!=_0x2fc79d)continue;if(_0x58f1('0x67')!=_0xc5553e['type']||'tablePasteCell'!=_0xc5553e[_0x58f1('0x56')])continue;if(_0xc5553e['getRanges']()[_0x58f1('0x87')](_0xbc2299=>_0x49f949[_0x58f1('0x40')](_0x105496=>_0x105496[_0x58f1('0x55')](_0xbc2299,!0x0))))for(const _0x396c70 of _0xc5553e[_0x58f1('0x53')]())_0x396c70[_0x58f1('0x5d')]&&(_0x396c70[_0x58f1('0x91')](),_0x26e87f=!0x0);}}return _0x26e87f;}),_0x228a66[_0x58f1('0x0')][_0x58f1('0x42')][_0x58f1('0x98')](_0x14a0b9=>{const _0x29e7c6=_0x228a66[_0x58f1('0x60')][_0x58f1('0x71')](_0x58f1('0x4c'));if(!_0x29e7c6||!_0x29e7c6['_createdBatches']['has'](_0x14a0b9[_0x58f1('0x70')]))return!0x1;let _0x1c388f=!0x1;const _0x336234=_0x228a66[_0x58f1('0x74')][_0x58f1('0x71')](_0x58f1('0xa7'))['me'],_0x957fed=_0x228a66['model'][_0x58f1('0x42')][_0x58f1('0x76')][_0x58f1('0x36')](),_0x295d8f=Array[_0x58f1('0x9a')](_0x228a66[_0x58f1('0x0')][_0x58f1('0x42')][_0x58f1('0x76')]['getChangedMarkers']())[_0x58f1('0x8f')](({name:_0x3e5f34,data:_0x2bacba})=>{const {group:_0x52f1e1,subType:_0x528116,authorId:_0x26d05a}=_0x650062[_0x58f1('0x81')](_0x3e5f34);return _0x58f1('0x63')==_0x52f1e1&&'tablePaste'==_0x528116&&_0x26d05a==_0x336234['id']&&!_0x2bacba[_0x58f1('0x41')];});for(const _0x1eb770 of _0x957fed){if('insert'!=_0x1eb770[_0x58f1('0x9f')]||_0x58f1('0x38')!=_0x1eb770[_0x58f1('0x37')]||0x1!=_0x1eb770[_0x58f1('0xd')])continue;const _0x504a0d=_0x14a0b9[_0x58f1('0x6a')](_0x1eb770[_0x58f1('0x2c')],_0x1eb770[_0x58f1('0x2c')][_0x58f1('0x79')](0x1));if(!_0x295d8f['find'](({data:_0x4614b5})=>_0x4614b5[_0x58f1('0x69')][_0x58f1('0x19')](_0x504a0d)))for(const {name:_0x34281e,data:_0x5f313f}of _0x295d8f)if(_0x504a0d[_0x58f1('0x55')](_0x5f313f['newRange'])){_0x14a0b9[_0x58f1('0x8e')](_0x34281e,{'range':_0x504a0d}),_0x1c388f=!0x0;break;}}return _0x1c388f;}),_0x228a66[_0x58f1('0x0')][_0x58f1('0x42')]['registerPostFixer'](_0x581c96=>{let _0x1f0716=!0x1;const _0x7eb710=_0x228a66[_0x58f1('0x74')][_0x58f1('0x71')](_0x58f1('0xa7'))['me'],_0x55e8e1=_0x650062[_0x58f1('0x49')]()[_0x58f1('0x8f')](_0x316f87=>_0x316f87[_0x58f1('0x5d')]&&_0x316f87[_0x58f1('0x25')]==_0x7eb710),_0x5a72d2=new Set(),_0x5e10c8=new Set();for(const _0x5e69c3 of _0x55e8e1)if(_0x58f1('0x7b')==_0x5e69c3['subType'])for(const _0x57542d of _0x5e69c3[_0x58f1('0x89')]()){const _0x2aebfa=_0x57542d['getRange']()[_0x58f1('0x50')]();if(_0x2aebfa){if(_0x2aebfa['is'](_0x58f1('0x33'),'tableCellSuggestion')&&ce(_0x2aebfa)){_0x5e69c3['removeMarker'](_0x57542d[_0x58f1('0x37')]),_0x5a72d2[_0x58f1('0x6d')](_0x2aebfa),_0x1f0716=!0x0;const _0x4be3c7=_0x2aebfa[_0x58f1('0x52')],_0x15b20b=_0x2aebfa[_0x58f1('0x4d')],_0x5c333a=_0x4be3c7&&_0x4be3c7['is'](_0x58f1('0x33'),_0x58f1('0x38')),_0x3d20ac=_0x15b20b&&_0x15b20b['is'](_0x58f1('0x33'),_0x58f1('0x38'));_0x5c333a&&!_0x5a72d2['has'](_0x4be3c7)&&_0x5e10c8[_0x58f1('0x6d')](_0x4be3c7),_0x3d20ac&&!_0x5a72d2[_0x58f1('0x6b')](_0x15b20b)&&_0x5e10c8[_0x58f1('0x6d')](_0x15b20b);}else _0x2aebfa['is']('element',_0x58f1('0x5'))&&_0x2aebfa['isEmpty']&&(_0x5e69c3['removeMarker'](_0x57542d[_0x58f1('0x37')]),_0x1f0716=!0x0);}}else{if('tablePasteCell'==_0x5e69c3['subType']){if(!_0x5e69c3['attributes']||!_0x5e69c3[_0x58f1('0x1a')][_0x58f1('0x3b')])continue;const _0x372ab1=_0x5e69c3[_0x58f1('0x1a')]['markerAttributes'];if(_0x372ab1&&Object[_0x58f1('0x8a')](_0x372ab1)['length'])continue;const _0x3ccbfe=_0x5e69c3[_0x58f1('0x1a')][_0x58f1('0x3b')];let _0x5148eb=!0x0,_0x3f0ad3=!0x0;for(const _0x10c254 of _0x55e8e1)if(_0x10c254['subType']&&_0x10c254[_0x58f1('0x56')][_0x58f1('0x59')](_0x58f1('0x7b'))){if(!_0x10c254['attributes'][_0x58f1('0x3b')]){_0x3f0ad3=!0x1;break;}if(_0x10c254['id']!=_0x5e69c3['id']&&_0x10c254[_0x58f1('0x1a')][_0x58f1('0x3b')]==_0x3ccbfe){_0x5148eb=!0x1;break;}}_0x3f0ad3&&_0x5148eb&&(_0x5e69c3[_0x58f1('0x58')](),_0x1f0716=!0x0);}}for(const _0x1866f4 of _0x5a72d2)_0x581c96[_0x58f1('0x9c')](_0x1866f4);for(const _0x21da33 of _0x5e10c8)_0x581c96[_0x58f1('0x12')](_0x21da33);return _0x1f0716;}),_0x228a66['conversion'][_0x58f1('0xa5')]('editingDowncast')[_0x58f1('0x2d')]({'model':_0x58f1('0x65'),'view':(_0x473f40,_0x2b4ad4)=>_0x546b47(_0x473f40),'converterPriority':_0x58f1('0xa1')}),_0x228a66[_0x58f1('0x5c')][_0x58f1('0xa5')](_0x58f1('0x1b'))[_0x58f1('0x2d')]({'model':_0x58f1('0x65'),'view':(_0x5b6f38,_0x15d97a)=>_0x15d97a[_0x58f1('0xc')][_0x58f1('0x17')]?_0x546b47(_0x5b6f38,!0x1):null,'converterPriority':_0x58f1('0xa1')});const _0x20d6d6=_0x228a66[_0x58f1('0x45')][_0x58f1('0x35')];this[_0x58f1('0x1')](_0x20d6d6[_0x58f1('0x42')],_0x58f1('0x6c'),(_0x59ba30,_0x44ab7c)=>{const _0x20aeb9=[];for(const _0x435e8f of _0x20d6d6['createRangeIn'](_0x44ab7c['content'])[_0x58f1('0x51')]())_0x435e8f['is'](_0x58f1('0x33'),_0x58f1('0x96'))&&_0x20aeb9[_0x58f1('0x44')](_0x435e8f);_0x20d6d6[_0x58f1('0x46')](_0x28fa91=>{for(const _0x3c64c4 of _0x20aeb9)_0x28fa91[_0x58f1('0x3a')](_0x28fa91[_0x58f1('0x4a')](_0x3c64c4),_0x28fa91[_0x58f1('0x73')](_0x3c64c4)),_0x28fa91[_0x58f1('0x9c')](_0x3c64c4);});});}}function ce(_0x34394e){if(_0x34394e[_0x58f1('0xa6')])return!0x0;const _0x27976e=_0x34394e[_0x58f1('0x6')](0x0);return _0x27976e['is'](_0x58f1('0x33'),_0x58f1('0x5'))&&_0x27976e[_0x58f1('0xa6')];}function fe(_0x49e90a,_0x4d6f28={},_0x2deaee){for(const {isAnchor:_0x5d2e04,cellHeight:_0x1ef6e3,cellWidth:_0x2d0a98}of _0x2deaee[_0x58f1('0x7e')](_0x49e90a,{'includeAllSlots':!0x0,..._0x4d6f28}))if(!_0x5d2e04||0x1!=_0x1ef6e3||0x1!=_0x2d0a98)return!0x1;return!0x0;}
|
|
23
|
+
const _0x47a6=['getRows','oldRange','elementToElement','document','suggestion','insertRows','formatBlock','tableCellHorizontalAlignment','getChangedMarkers','tableCellVerticalAlignment','filter','author','value','position','fromEntries','markerToHighlight','name','startsWith','forceDefaultExecution','add','cell','find','suggestionLoaded','tablePasteColumn','markerAttributes','_createdBatches','previous','activeMarkers','tablePasteRow','getMarkers','tableCellSuggestion','rows','type','end','createElement','TableClipboard','ck-suggestion-marker-insertion','unwrap','deletionRanges','move','map','tablePasteChainId','getTableIfOnlyTableInContent','nextSibling','registerPostFixer','plugins','stop','getSelectionAffectedTableCells','remove','isEmpty','push','accept','get','every','_getCoordsForCells','_tablePostFixingSubtypes','options','endRow','isEqual','insertion','discard','removeMarker','getColumns','register','requires','has','createPositionBefore','includes','_descriptionFactory','change','redo','$graveyard','editor','createRange','clipboardOutput','columnInsertionIndexes','updateMarker','content','rootName','locale','findAncestor','model','some','low','tableCell','deletion','commands','newRange','ck-suggestion-marker','next','documentSelection','suggestionUnloaded','high','first','_isForcedDefaultExecutionBlock','for','isInContent','getAllAdjacentSuggestions','ck-suggestion-marker--active','tablePaste','tableCellBorderStyle','_suggestionFactory','*Replace\x20table\x20cells*','column','getShiftedBy','view','root','tablePasteCell','createRangeOn','Users','setAttributes','getContainedElement','start','editingDowncast','conversion','registerDescriptionCallback','batch','nodeAfter','markMultiRangeInsertion','element','from','length','registerCustomCallback','fill','cells','createRangeIn','_replaceTableSlotCell','columns','entries','subType','columnInsertionRanges','rowInsertionRanges','insertContent','TrackChangesEditing','insert','row','dataDowncast','paragraph','tableCellPadding','table','selection','markerName','suggestion-td','getSuggestions','differ','suggestion:formatBlock:tablePasteCell','join','reduce','getSuggestion','TableUtils','attributes','last','keys','removeColumns','getChanges','rowInsertionIndexes','getRanges','hasSuggestion','getChildren','getRange','endColumn','wrap','set','createTableWalker'];(function(_0x1ed4c5,_0x47a6ac){const _0x447499=function(_0x30a298){while(--_0x30a298){_0x1ed4c5['push'](_0x1ed4c5['shift']());}};_0x447499(++_0x47a6ac);}(_0x47a6,0xe5));const _0x4474=function(_0x1ed4c5,_0x47a6ac){_0x1ed4c5=_0x1ed4c5-0x0;let _0x447499=_0x47a6[_0x1ed4c5];return _0x447499;};import{getTranslation as _0x5845e2}from'../utils/common-translations';import{Plugin as _0x4a28fe}from'ckeditor5/src/core';import{uid as _0x5a41c2,priorities as _0x18f1bf}from'ckeditor5/src/utils';import _0x1dab94 from'./table';const le=['tableCellBorderWidth','tableCellBorderColor',_0x4474('0x23'),_0x4474('0x6a'),_0x4474('0x6c'),'tableCellBackgroundColor',_0x4474('0x49')],ae=Object[_0x4474('0x71')](le[_0x4474('0x8b')](_0x527a4f=>[_0x527a4f,null]));export default class wt extends _0x4a28fe{static get[_0x4474('0xa3')](){return[_0x1dab94];}['afterInit'](){const _0x1d16ee=this[_0x4474('0x7')];if(!_0x1d16ee[_0x4474('0x90')][_0x4474('0x0')](_0x4474('0x86')))return;const _0x566433=_0x1d16ee[_0x4474('0x90')]['get'](_0x4474('0x44')),_0x22bc4e=_0x1d16ee['plugins']['get'](_0x4474('0x54')),_0x1482d9=_0x1d16ee[_0x4474('0x90')][_0x4474('0x97')](_0x1dab94),_0x52800f=_0x1d16ee[_0x4474('0x90')]['get'](_0x4474('0x86'));_0x1482d9[_0x4474('0x9a')][_0x4474('0x95')](_0x4474('0x7f'),_0x4474('0x7a')),_0x1d16ee[_0x4474('0x10')]['schema'][_0x4474('0xa2')](_0x4474('0x81'),{'allowIn':_0x4474('0x13'),'allowContentOf':_0x4474('0x13'),'isLimit':!0x0}),_0x1d16ee[_0x4474('0x31')][_0x4474('0x65')]({'model':_0x4474('0x81'),'view':_0x4474('0x4d')});let _0x3f9541=null;_0x1d16ee['model']['on'](_0x4474('0x43'),(_0x57bbbe,_0x53aac5)=>{const [_0x428746,_0x222766]=_0x53aac5,_0x3b79fb=_0x53aac5[_0x53aac5['length']-0x1];_0x3b79fb&&_0x3b79fb[_0x4474('0x75')]||_0x566433[_0x4474('0x1d')]||this[_0x4474('0x7')][_0x4474('0x15')][_0x4474('0x97')]('trackChanges')[_0x4474('0x6f')]&&function(_0x593f0a,_0x14db10,_0x421810,_0x44fa6b,_0x2b23e1){if(_0x14db10&&!_0x14db10['is'](_0x4474('0x19')))return!0x1;const _0x2bf0be=_0x2b23e1[_0x4474('0x8d')](_0x593f0a,_0x421810);if(!_0x2bf0be||!fe(_0x2bf0be,void 0x0,_0x44fa6b))return!0x1;const _0x487865=_0x44fa6b[_0x4474('0x92')](_0x421810[_0x4474('0x66')][_0x4474('0x4b')]);if(!_0x487865[_0x4474('0x38')])return!0x1;const _0x5518a7=_0x487865[0x0]['findAncestor']('table'),_0x250a62=_0x44fa6b['getRowIndexes'](_0x487865),_0x9b88f1=_0x44fa6b['getColumnIndexes'](_0x487865),_0x526eda={'startRow':_0x250a62[_0x4474('0x1c')],'endRow':_0x250a62[_0x4474('0x56')],'startColumn':_0x9b88f1[_0x4474('0x1c')],'endColumn':_0x9b88f1[_0x4474('0x56')]};return 0x1==_0x487865[_0x4474('0x38')]&&(_0x526eda[_0x4474('0x9c')]+=_0x44fa6b[_0x4474('0x63')](_0x2bf0be)-0x1,_0x526eda[_0x4474('0x5f')]+=_0x44fa6b[_0x4474('0xa1')](_0x2bf0be)-0x1),fe(_0x5518a7,_0x526eda,_0x44fa6b);}(_0x428746,_0x222766,_0x1d16ee[_0x4474('0x10')],_0x22bc4e,_0x52800f)&&(_0x57bbbe[_0x4474('0x91')](),_0x3f9541={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1d16ee[_0x4474('0x10')]['change'](()=>{_0x1d16ee[_0x4474('0x10')][_0x4474('0x43')](_0x53aac5[0x0],_0x53aac5[0x1],_0x53aac5[0x2],{'forceDefaultExecution':!0x0});const _0x5e63c2=_0x5a41c2(),{rowInsertionRanges:_0x3e5791,columnInsertionRanges:_0x5191d7,insertionRanges:_0x3c6b31,deletionRanges:_0x243d9e,cells:_0x3f98b1}=_0x3f9541;_0x3e5791[_0x4474('0x38')]&&_0x566433[_0x4474('0x35')](_0x3e5791,_0x4474('0x7f'),{'tablePasteChainId':_0x5e63c2}),_0x5191d7[_0x4474('0x38')]&&_0x566433[_0x4474('0x35')](_0x5191d7,_0x4474('0x7a'),{'tablePasteChainId':_0x5e63c2}),_0x3c6b31['length']&&_0x566433[_0x4474('0x35')](_0x3c6b31,_0x4474('0x22'),{'tablePasteChainId':_0x5e63c2,'skipNestingCheck':!0x0}),_0x243d9e['length']&&_0x566433['markMultiRangeDeletion'](_0x243d9e,'tablePaste',{'tablePasteChainId':_0x5e63c2,'skipNestingCheck':!0x0});const _0x1612d3=_0x566433['markMultiRangeBlockFormat'](_0x3f98b1['map'](({element:_0x381be5})=>_0x381be5),{'formatGroupId':_0x5a41c2()},[],_0x4474('0x2a'),{'tablePasteChainId':_0x5e63c2});if(_0x1612d3){const _0x32b103=_0x1612d3[_0x4474('0x80')](),_0xdf90a=[];for(const {element:_0x1347be,attributes:_0x5bdb7b}of _0x3f98b1){if(!_0x5bdb7b)continue;const _0x2df4f0=_0x1d16ee[_0x4474('0x10')]['createRangeOn'](_0x1347be),_0x43a696=_0x32b103[_0x4474('0x78')](_0x576f7c=>_0x576f7c[_0x4474('0x5e')]()[_0x4474('0x9d')](_0x2df4f0));_0x43a696&&_0xdf90a[_0x4474('0x95')]([_0x43a696['name'],_0x5bdb7b]);}_0xdf90a[_0x4474('0x38')]&&_0x1612d3['setAttribute']('markerAttributes',Object[_0x4474('0x71')](_0xdf90a));}_0x3f9541=null;}));},{'priority':_0x18f1bf[_0x4474('0x1b')]+0xa}),_0x1d16ee[_0x4474('0x90')][_0x4474('0x97')](_0x4474('0x86'))['on'](_0x4474('0x3d'),(_0x4790bb,_0x2701a2)=>{const [_0x3c96a7,_0x420ec3,,_0x3db879]=_0x2701a2;if(!_0x3f9541)return;_0x4790bb[_0x4474('0x91')]();const _0x305e45=_0x3c96a7[_0x4474('0x77')],_0x350d4a=_0x420ec3,_0x33772e=ce(_0x305e45),_0x5be97d=ce(_0x350d4a);_0x4790bb['return']=_0x305e45;let _0x2f9e89=null,_0x493702=null;if(_0x5be97d||_0x33772e){if(_0x33772e&&!_0x5be97d){_0x3db879[_0x4474('0x93')](_0x305e45['getChild'](0x0));for(const _0xf0581a of Array[_0x4474('0x37')](_0x350d4a[_0x4474('0x5d')]()))_0x3db879['insert'](_0xf0581a,_0x305e45,_0x4474('0x84'));const _0x1b937a=_0x3f9541[_0x4474('0x5a')][_0x4474('0x2')](_0x3c96a7[_0x4474('0x46')]),_0x5fe36e=_0x3f9541[_0x4474('0xa')][_0x4474('0x2')](_0x3c96a7[_0x4474('0x26')]);_0x1b937a||_0x5fe36e||(_0x2f9e89=_0x3db879['createRangeIn'](_0x305e45));}else _0x5be97d&&!_0x33772e&&(_0x493702=_0x3db879[_0x4474('0x3c')](_0x305e45));}else{const _0x534e0e=_0x3db879[_0x4474('0x85')](_0x4474('0x81')),_0x169869=_0x3db879['createElement'](_0x4474('0x81'));_0x3db879[_0x4474('0x60')](_0x3db879['createRangeIn'](_0x305e45),_0x169869),_0x3db879[_0x4474('0x45')](_0x534e0e,_0x305e45,0x0);for(const _0x5f004c of Array[_0x4474('0x37')](_0x350d4a[_0x4474('0x5d')]()))_0x3db879[_0x4474('0x45')](_0x5f004c,_0x534e0e,_0x4474('0x84'));_0x2f9e89=_0x3db879[_0x4474('0x2b')](_0x534e0e),_0x493702=_0x3db879[_0x4474('0x2b')](_0x169869);}const _0x158f37=Array[_0x4474('0x37')](_0x350d4a['getAttributes']())[_0x4474('0x6d')](([_0x56e309])=>le[_0x4474('0x2')](_0x56e309));_0x3f9541[_0x4474('0x3b')]['push']({'element':_0x305e45,'attributes':_0x158f37[_0x4474('0x38')]?Object['fromEntries'](_0x158f37):null}),_0x2f9e89&&_0x3f9541['insertionRanges'][_0x4474('0x95')](_0x2f9e89),_0x493702&&_0x3f9541[_0x4474('0x89')][_0x4474('0x95')](_0x493702);},{'priority':_0x4474('0x1b')}),_0x22bc4e['on']('insertColumns',(_0x121784,_0xb230f8)=>{const [_0x440f74,_0x3dbdf4={}]=_0xb230f8;if(!_0x3f9541)return;const _0x39a97b=_0x3dbdf4['at']||0x0,_0xb41e4d=_0x3dbdf4[_0x4474('0x3e')]||0x1;_0x3f9541[_0x4474('0xa')]=new Array(_0xb41e4d)['fill'](_0x39a97b)['map']((_0xc5ef03,_0xfca082)=>_0xc5ef03+_0xfca082);for(const {cell:_0x5a594e}of _0x22bc4e[_0x4474('0x62')](_0x440f74,{'startColumn':_0x39a97b,'endColumn':_0x39a97b+_0xb41e4d-0x1}))_0x3f9541[_0x4474('0x41')]['push'](_0x1d16ee[_0x4474('0x10')][_0x4474('0x2b')](_0x5a594e));},{'priority':_0x4474('0x12')}),_0x22bc4e['on'](_0x4474('0x68'),(_0x41f362,_0x55f9ed)=>{const [_0x37e24e,_0x44524b={}]=_0x55f9ed;if(!_0x3f9541)return;const _0x3025b9=_0x44524b['at']||0x0,_0x2f7e1d=_0x44524b[_0x4474('0x82')]||0x1;_0x3f9541[_0x4474('0x5a')]=new Array(_0x2f7e1d)[_0x4474('0x3a')](_0x3025b9)['map']((_0x3e130b,_0x1528f6)=>_0x3e130b+_0x1528f6);for(const {cell:_0x3b84b6}of _0x22bc4e[_0x4474('0x62')](_0x37e24e,{'startRow':_0x3025b9,'endRow':_0x3025b9+_0x2f7e1d-0x1}))_0x3f9541[_0x4474('0x42')]['push'](_0x1d16ee['model'][_0x4474('0x2b')](_0x3b84b6));},{'priority':'low'}),_0x566433[_0x4474('0x3')][_0x4474('0x32')](_0x4016c0=>{if(_0x4016c0[_0x4474('0x40')]&&_0x4016c0[_0x4474('0x40')][_0x4474('0x74')](_0x4474('0x22')))return _0x4016c0[_0x4474('0x7d')]?{}:{'type':_0x4474('0x9e'),'content':_0x5845e2(_0x1d16ee[_0x4474('0xe')],_0x4474('0x25'))};});const _0x1a0a4a=()=>!0x1;for(const _0x20fca6 of[_0x4474('0x22'),_0x4474('0x7a'),'tablePasteRow','tablePasteCell'])_0x566433[_0x4474('0x24')][_0x4474('0x39')]('insertion',_0x20fca6,'join',_0x1a0a4a),_0x566433[_0x4474('0x24')][_0x4474('0x39')](_0x4474('0x14'),_0x20fca6,_0x4474('0x51'),_0x1a0a4a),_0x566433[_0x4474('0x24')][_0x4474('0x39')](_0x4474('0x69'),_0x20fca6,'join',_0x1a0a4a);_0x566433['_suggestionFactory'][_0x4474('0x39')]('formatBlock',_0x4474('0x2a'),'discard',_0x1a0a4a),_0x566433[_0x4474('0x24')][_0x4474('0x39')](_0x4474('0x69'),_0x4474('0x2a'),_0x4474('0x96'),(_0x11ec7e,_0x3b10c7,_0x2f9f11)=>{const _0x3a8b41=_0x11ec7e['map'](_0x570d20=>_0x570d20[_0x4474('0x2e')]())[_0x4474('0x6d')](_0x27995c=>_0x27995c),_0x39dd41=new Map(_0x3a8b41[_0x4474('0x8b')](_0x19bcf4=>[_0x19bcf4,null]));if(_0x3f9541)for(const {element:_0x118cce,attributes:_0xb8023}of _0x3f9541[_0x4474('0x3b')])_0xb8023&&_0x39dd41[_0x4474('0x61')](_0x118cce,_0xb8023);else{if(_0x2f9f11&&_0x2f9f11[_0x4474('0x7b')])for(const [_0x5538e4,_0x5de479]of Object[_0x4474('0x3f')](_0x2f9f11['markerAttributes'])){const _0x348d37=_0x1d16ee['model']['markers']['get'](_0x5538e4),_0x13b401=_0x348d37?_0x348d37[_0x4474('0x5e')]()[_0x4474('0x2e')]():null;_0x13b401&&_0x39dd41[_0x4474('0x61')](_0x13b401,_0x5de479);}}_0x1d16ee['model']['change'](_0x256624=>{for(const [_0x2558ca,_0x52a047]of _0x39dd41)_0x256624[_0x4474('0x2d')]({...ae,..._0x52a047},_0x2558ca);});});const _0x2b2348=(_0x38b059,_0x59662c)=>{_0x566433[_0x4474('0x24')][_0x4474('0x39')](_0x38b059,_0x4474('0x22'),_0x59662c,(_0x21465f,_0x278a97,_0x57b631)=>{_0x1d16ee[_0x4474('0x10')]['change'](_0x4a00ca=>{const _0x4ced2c=[];for(const _0x138f36 of _0x21465f){const _0x33dc6f=_0x138f36[_0x4474('0x2f')][_0x4474('0x34')];_0x33dc6f['is'](_0x4474('0x36'),_0x4474('0x81'))&&_0x4ced2c[_0x4474('0x95')](_0x33dc6f);}_0x566433[_0x4474('0x24')]['getSuggestionCallback'](_0x38b059,null,_0x59662c)(_0x21465f,_0x278a97,_0x57b631);for(const _0xcd2b36 of _0x4ced2c)_0x4474('0x6')!=_0xcd2b36[_0x4474('0x29')][_0x4474('0xd')]&&_0x4a00ca['unwrap'](_0xcd2b36);});});};_0x2b2348(_0x4474('0x9e'),'accept'),_0x2b2348(_0x4474('0x9e'),_0x4474('0x9f')),_0x2b2348(_0x4474('0x14'),'accept'),_0x2b2348(_0x4474('0x14'),_0x4474('0x9f')),_0x566433[_0x4474('0x24')][_0x4474('0x39')](_0x4474('0x9e'),_0x4474('0x7f'),_0x4474('0x9f'),_0x4a8ed5=>{const _0x3f0b5f=_0x4a8ed5[_0x4474('0x8b')](_0x1d63ed=>_0x1d63ed[_0x4474('0x2e')]()),_0x56eca3=_0x3f0b5f[0x0][_0x4474('0xf')](_0x4474('0x4a')),{minRow:_0x4104fc,maxRow:_0x3a2d05}=_0x1482d9[_0x4474('0x99')](_0x3f0b5f);_0x22bc4e['removeRows'](_0x56eca3,{'at':_0x4104fc,'rows':_0x3a2d05-_0x4104fc+0x1});}),_0x566433[_0x4474('0x24')]['registerCustomCallback'](_0x4474('0x9e'),_0x4474('0x7a'),_0x4474('0x9f'),_0x1505e8=>{const _0x122166=_0x1505e8[_0x4474('0x8b')](_0x4c0892=>_0x4c0892[_0x4474('0x2e')]()),_0x59680c=_0x122166[0x0][_0x4474('0xf')](_0x4474('0x4a')),{minColumn:_0xf734bf,maxColumn:_0x58b2d2}=_0x1482d9[_0x4474('0x99')](_0x122166);_0x22bc4e[_0x4474('0x58')](_0x59680c,{'at':_0xf734bf,'columns':_0x58b2d2-_0xf734bf+0x1});});const _0x1d4e77=(_0x507793,_0x4af876)=>{if(!_0x4af876[_0x4474('0x40')]||!_0x4af876['subType'][_0x4474('0x74')](_0x4474('0x22')))return;const _0x306f41=_0x4af876[_0x4474('0x55')][_0x4474('0x8c')],_0xf06d2=_0x566433['getSuggestions']()['filter'](_0x2be674=>_0x2be674[_0x4474('0x1f')]&&_0x2be674['attributes']&&_0x2be674[_0x4474('0x55')]['tablePasteChainId']==_0x306f41);_0xf06d2[_0x4474('0x38')]&&_0x4af876[_0x4474('0x20')]()['length']!=_0xf06d2[_0x4474('0x38')]&&_0xf06d2[_0x4474('0x52')]((_0x294252,_0xace61e)=>(_0x294252[_0x4474('0x18')]=_0xace61e,_0xace61e[_0x4474('0x7d')]=_0x294252,_0xace61e));};function _0x30063b(_0x1315f4,_0x5ac7f3=!0x0){const {id:_0x592d8f}=_0x566433['_splitMarkerName'](_0x1315f4[_0x4474('0x4c')]),_0x2cf3e4=[_0x4474('0x17'),_0x4474('0x87')],_0x44ebf1=_0x566433[_0x4474('0x7e')]['includes'](_0x1315f4[_0x4474('0x4c')]);return _0x44ebf1&&_0x2cf3e4[_0x4474('0x95')](_0x4474('0x21')),{'classes':_0x2cf3e4,'attributes':{'data-suggestion':_0x592d8f},'priority':_0x44ebf1&&_0x5ac7f3?0xbc2:0xbb8};}_0x566433['on'](_0x4474('0x79'),_0x1d4e77,{'priority':_0x4474('0x1b')}),_0x566433['on'](_0x4474('0x1a'),_0x1d4e77,{'priority':_0x4474('0x1b')}),_0x1d16ee[_0x4474('0x10')][_0x4474('0x66')][_0x4474('0x8f')](()=>{let _0x5abc04=!0x1;const _0x4c37d9=Array[_0x4474('0x37')](_0x1d16ee[_0x4474('0x10')]['document'][_0x4474('0x4f')][_0x4474('0x6b')]());for(const {name:_0x86ff92,data:_0x68cea}of _0x4c37d9){const {group:_0x21256a,type:_0x3787e8,id:_0x2e9c1c}=_0x566433['_splitMarkerName'](_0x86ff92);if('suggestion'!=_0x21256a||'deletion'!=_0x3787e8||_0x68cea[_0x4474('0x64')])continue;if(!_0x566433[_0x4474('0x5c')](_0x2e9c1c))continue;const _0x283f72=_0x566433[_0x4474('0x53')](_0x2e9c1c)[_0x4474('0x5b')](),_0x3a8b97=_0x1d16ee[_0x4474('0x90')][_0x4474('0x97')](_0x4474('0x2c'))['me'];for(const _0x2ac853 of _0x566433[_0x4474('0x4e')]()){if(!_0x2ac853[_0x4474('0x1f')]||_0x2ac853['author']!=_0x3a8b97)continue;if(_0x4474('0x69')!=_0x2ac853['type']||_0x4474('0x2a')!=_0x2ac853[_0x4474('0x40')])continue;if(_0x2ac853[_0x4474('0x5b')]()[_0x4474('0x98')](_0x571dc2=>_0x283f72[_0x4474('0x11')](_0x948c97=>_0x948c97['containsRange'](_0x571dc2,!0x0))))for(const _0x256238 of _0x2ac853[_0x4474('0x20')]())_0x256238[_0x4474('0x1f')]&&(_0x256238[_0x4474('0x9f')](),_0x5abc04=!0x0);}}return _0x5abc04;}),_0x1d16ee[_0x4474('0x10')][_0x4474('0x66')][_0x4474('0x8f')](_0x4e24fc=>{const _0x3909c7=_0x1d16ee[_0x4474('0x15')]['get'](_0x4474('0x5'));if(!_0x3909c7||!_0x3909c7[_0x4474('0x7c')][_0x4474('0x0')](_0x4e24fc[_0x4474('0x33')]))return!0x1;let _0x4db1d3=!0x1;const _0x5efe31=_0x1d16ee['plugins'][_0x4474('0x97')](_0x4474('0x2c'))['me'],_0x464c15=_0x1d16ee['model'][_0x4474('0x66')][_0x4474('0x4f')][_0x4474('0x59')](),_0x1a2517=Array[_0x4474('0x37')](_0x1d16ee[_0x4474('0x10')][_0x4474('0x66')][_0x4474('0x4f')][_0x4474('0x6b')]())['filter'](({name:_0x4c31db,data:_0x210466})=>{const {group:_0x4b9a9c,subType:_0x340803,authorId:_0x19bf59}=_0x566433['_splitMarkerName'](_0x4c31db);return _0x4474('0x67')==_0x4b9a9c&&_0x4474('0x22')==_0x340803&&_0x19bf59==_0x5efe31['id']&&!_0x210466[_0x4474('0x64')];});for(const _0x414e54 of _0x464c15){if('insert'!=_0x414e54[_0x4474('0x83')]||_0x4474('0x81')!=_0x414e54[_0x4474('0x73')]||0x1!=_0x414e54[_0x4474('0x38')])continue;const _0x1eb926=_0x4e24fc[_0x4474('0x8')](_0x414e54[_0x4474('0x70')],_0x414e54[_0x4474('0x70')][_0x4474('0x27')](0x1));if(!_0x1a2517[_0x4474('0x78')](({data:_0x11dcfd})=>_0x11dcfd[_0x4474('0x16')][_0x4474('0x9d')](_0x1eb926)))for(const {name:_0x4f7434,data:_0x470347}of _0x1a2517)if(_0x1eb926['containsRange'](_0x470347[_0x4474('0x16')])){_0x4e24fc[_0x4474('0xb')](_0x4f7434,{'range':_0x1eb926}),_0x4db1d3=!0x0;break;}}return _0x4db1d3;}),_0x1d16ee[_0x4474('0x10')][_0x4474('0x66')]['registerPostFixer'](_0x5dc87f=>{let _0x35086f=!0x1;const _0x4ae77d=_0x1d16ee['plugins'][_0x4474('0x97')](_0x4474('0x2c'))['me'],_0x159bf2=_0x566433[_0x4474('0x4e')]()[_0x4474('0x6d')](_0x5d95b1=>_0x5d95b1['isInContent']&&_0x5d95b1[_0x4474('0x6e')]==_0x4ae77d),_0x2adefc=new Set(),_0x45ed40=new Set();for(const _0x29cc89 of _0x159bf2)if(_0x4474('0x22')==_0x29cc89[_0x4474('0x40')])for(const _0xc88192 of _0x29cc89[_0x4474('0x80')]()){const _0x41cfe6=_0xc88192['getRange']()[_0x4474('0x2e')]();if(_0x41cfe6){if(_0x41cfe6['is'](_0x4474('0x36'),_0x4474('0x81'))&&ce(_0x41cfe6)){_0x29cc89[_0x4474('0xa0')](_0xc88192[_0x4474('0x73')]),_0x2adefc['add'](_0x41cfe6),_0x35086f=!0x0;const _0x46bf92=_0x41cfe6[_0x4474('0x8e')],_0x6a73f=_0x41cfe6['previousSibling'],_0x481390=_0x46bf92&&_0x46bf92['is']('element',_0x4474('0x81')),_0x45b57c=_0x6a73f&&_0x6a73f['is'](_0x4474('0x36'),_0x4474('0x81'));_0x481390&&!_0x2adefc[_0x4474('0x0')](_0x46bf92)&&_0x45ed40[_0x4474('0x76')](_0x46bf92),_0x45b57c&&!_0x2adefc['has'](_0x6a73f)&&_0x45ed40[_0x4474('0x76')](_0x6a73f);}else _0x41cfe6['is']('element',_0x4474('0x48'))&&_0x41cfe6[_0x4474('0x94')]&&(_0x29cc89[_0x4474('0xa0')](_0xc88192[_0x4474('0x73')]),_0x35086f=!0x0);}}else{if('tablePasteCell'==_0x29cc89['subType']){if(!_0x29cc89[_0x4474('0x55')]||!_0x29cc89[_0x4474('0x55')][_0x4474('0x8c')])continue;const _0x3280fc=_0x29cc89[_0x4474('0x55')][_0x4474('0x7b')];if(_0x3280fc&&Object[_0x4474('0x57')](_0x3280fc)[_0x4474('0x38')])continue;const _0x1c05de=_0x29cc89['attributes']['tablePasteChainId'];let _0x394621=!0x0,_0x19bf08=!0x0;for(const _0x2246b1 of _0x159bf2)if(_0x2246b1[_0x4474('0x40')]&&_0x2246b1[_0x4474('0x40')][_0x4474('0x74')](_0x4474('0x22'))){if(!_0x2246b1[_0x4474('0x55')]['tablePasteChainId']){_0x19bf08=!0x1;break;}if(_0x2246b1['id']!=_0x29cc89['id']&&_0x2246b1[_0x4474('0x55')][_0x4474('0x8c')]==_0x1c05de){_0x394621=!0x1;break;}}_0x19bf08&&_0x394621&&(_0x29cc89['removeMarkers'](),_0x35086f=!0x0);}}for(const _0x4d7c98 of _0x2adefc)_0x5dc87f['remove'](_0x4d7c98);for(const _0x2fc73f of _0x45ed40)_0x5dc87f[_0x4474('0x88')](_0x2fc73f);return _0x35086f;}),_0x1d16ee['conversion'][_0x4474('0x1e')](_0x4474('0x30'))['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2e7684,_0x5e2092)=>_0x30063b(_0x2e7684),'converterPriority':_0x4474('0x1b')}),_0x1d16ee[_0x4474('0x31')][_0x4474('0x1e')](_0x4474('0x47'))[_0x4474('0x72')]({'model':_0x4474('0x50'),'view':(_0x3b7a9a,_0x257221)=>_0x257221[_0x4474('0x9b')]['showSuggestionHighlights']?_0x30063b(_0x3b7a9a,!0x1):null,'converterPriority':_0x4474('0x1b')});const _0x4b924c=_0x1d16ee['editing'][_0x4474('0x28')];this['listenTo'](_0x4b924c[_0x4474('0x66')],_0x4474('0x9'),(_0x430d75,_0x1d0744)=>{const _0x2e0dea=[];for(const _0x5ba776 of _0x4b924c[_0x4474('0x3c')](_0x1d0744[_0x4474('0xc')])['getItems']())_0x5ba776['is']('element',_0x4474('0x4d'))&&_0x2e0dea[_0x4474('0x95')](_0x5ba776);_0x4b924c[_0x4474('0x4')](_0x835fac=>{for(const _0x147ed6 of _0x2e0dea)_0x835fac[_0x4474('0x8a')](_0x835fac['createRangeIn'](_0x147ed6),_0x835fac[_0x4474('0x1')](_0x147ed6)),_0x835fac[_0x4474('0x93')](_0x147ed6);});});}}function ce(_0x392979){if(_0x392979['isEmpty'])return!0x0;const _0x1e5cfb=_0x392979['getChild'](0x0);return _0x1e5cfb['is'](_0x4474('0x36'),_0x4474('0x48'))&&_0x1e5cfb[_0x4474('0x94')];}function fe(_0xb0d74,_0x1a2073={},_0x5d4ed7){for(const {isAnchor:_0x4e6a3b,cellHeight:_0x34a28f,cellWidth:_0xc0364c}of _0x5d4ed7[_0x4474('0x62')](_0xb0d74,{'includeAllSlots':!0x0,..._0x1a2073}))if(!_0x4e6a3b||0x1!=_0x34a28f||0x1!=_0xc0364c)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x79ce=['selection','handleSuggestionDescription','handleResizeTableWidthCommand','get','commandParams','TableColumnResizeEditing','data','getSuggestions','columnWidths','resizeColumnWidths','formatBlock','bind','_suggestionFactory','discard','enableCommand','locale','TrackChangesEditing','change','getSelectedElement','tableWidth','editor','has','author','resizeTable','getContainedElement','plugins','getAttribute','formatGroupId','getColumnGroupElement','model','resizeTableWidth','afterInit','registerDescriptionCallback','document','subType'];(function(_0x3fe684,_0x79ce6e){const _0x4303fe=function(_0x38690a){while(--_0x38690a){_0x3fe684['push'](_0x3fe684['shift']());}};_0x4303fe(++_0x79ce6e);}(_0x79ce,0x74));const _0x4303=function(_0x3fe684,_0x79ce6e){_0x3fe684=_0x3fe684-0x0;let _0x4303fe=_0x79ce[_0x3fe684];return _0x4303fe;};import{Plugin as _0x51dfe9}from'ckeditor5/src/core';import{getTranslation as _0x31f51c}from'../utils/common-translations';export default class yt extends _0x51dfe9{[_0x4303('0x14')](){if(!this['editor']['plugins'][_0x4303('0xa')](_0x4303('0x1d')))return;const _0x1c0eb7=this[_0x4303('0x9')]['plugins']['get'](_0x4303('0x5'));_0x1c0eb7[_0x4303('0x3')]('resizeTableWidth',this[_0x4303('0x1a')]['bind'](this)),_0x1c0eb7['enableCommand'](_0x4303('0x21'),this['handleResizeTableWidthCommand'][_0x4303('0x0')](this)),_0x1c0eb7[_0x4303('0x1')]['registerCustomCallback'](_0x4303('0x22'),_0x4303('0xc'),'accept',_0x1c0eb7[_0x4303('0x1')]['getSuggestionCallback'](_0x4303('0x22'),null,_0x4303('0x2'))),_0x1c0eb7['_suggestionFactory']['registerCustomCallback'](_0x4303('0x22'),'resizeTable','discard',_0x1c0eb7[_0x4303('0x1')]['getSuggestionCallback']('formatBlock',null,'accept')),_0x1c0eb7['_descriptionFactory'][_0x4303('0x15')](this[_0x4303('0x19')][_0x4303('0x0')](this));}[_0x4303('0x1a')](_0x4ce62c,_0x5235bc){const _0x29934c=this[_0x4303('0x9')][_0x4303('0xe')][_0x4303('0x1b')](_0x4303('0x5')),_0x3241e3=this['editor'][_0x4303('0xe')][_0x4303('0x1b')](_0x4303('0x1d')),_0x547e70=_0x5235bc['table']||this[_0x4303('0x9')][_0x4303('0x12')][_0x4303('0x16')][_0x4303('0x18')][_0x4303('0x7')]();this['editor'][_0x4303('0x12')][_0x4303('0x6')](()=>{const _0x304d22=_0x3241e3[_0x4303('0x11')](_0x547e70);let _0x15f427=_0x304d22?_0x3241e3['getTableColumnsWidths'](_0x304d22):null,_0x59a2a3=_0x547e70[_0x4303('0xf')](_0x4303('0x8'))||null;const _0x1f126a=_0x5235bc['tableWidth']||_0x59a2a3,_0x5c85aa=_0x5235bc[_0x4303('0x20')]||_0x15f427,_0x5aca88=this['editor'][_0x4303('0xe')][_0x4303('0x1b')]('Users')['me'];for(const _0x523368 of _0x29934c[_0x4303('0x1f')]()){const _0x521bbb=_0x523368[_0x4303('0xd')]();if('resizeTable'===_0x523368[_0x4303('0x17')]&&_0x521bbb===_0x547e70){_0x523368[_0x4303('0xb')]!==_0x5aca88&&_0x523368[_0x4303('0x2')]();const _0xd59449=_0x523368[_0x4303('0x1e')][_0x4303('0x1c')];_0x59a2a3=_0xd59449[0x0][_0x4303('0x8')],_0x15f427=_0xd59449[0x0][_0x4303('0x20')];break;}}_0x4ce62c({'table':_0x547e70,'tableWidth':_0x1f126a,'columnWidths':_0x5c85aa}),_0x29934c['markBlockFormat'](_0x547e70,{'commandName':_0x4303('0x13'),'commandParams':[{'tableWidth':_0x59a2a3,'columnWidths':_0x15f427}],'formatGroupId':_0x4303('0xc')},[],_0x4303('0xc'));});}['handleSuggestionDescription'](_0x121dc4){const {data:_0x9f2af7}=_0x121dc4;if(_0x9f2af7&&_0x4303('0xc')===_0x9f2af7[_0x4303('0x10')]){const _0x15c779='*Format:*\x20resize\x20table';return{'type':'format','content':_0x31f51c(this[_0x4303('0x9')][_0x4303('0x4')],_0x15c779)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d17=['highest','last','consume','cell','_descriptionFactory','registerCustomCallback','commands','showSuggestionHighlights','removeAttribute','registerDescriptionCallback','getRowIndexes','index','getAttribute','removeMarker:suggestion','setAttribute','formatBlock','_splitMarkerName','item','addClass','setTableRowHeader','first','FORMAT_HEADER_ROW','enableCommand','headingColumns','requires','selection','childCount','getChild','commandName','afterInit','document','isBefore','nodeBefore','toViewElement','get','setTableColumnHeader','editing','downcastDispatcher','createPositionAfter','unbindElementFromMarkerName','FORMAT_REGULAR_ROW','markBlockFormat','parent','ck-suggestion-marker--active','getSelectionAffectedTableCells','markerName','model','_acceptFormatSuggestionCallbackFactory','mapper','consumable','TableUtils','_suggestionFactory','markerRange','data','createRange','accept','removeClass','commandParams','value','headingRows','locale','getColumnIndexes','createPositionBefore','findAncestor','writer','activeMarkers','getSuggestion','start','getCellLocation','markerNameToElements','table','forceValue','data-suggestion','plugins','editor','stop','*Format:*\x20%0','ck-suggestion-marker-','nodeAfter','from'];(function(_0x236058,_0x1d17f3){const _0x21cd7e=function(_0x2598f7){while(--_0x2598f7){_0x236058['push'](_0x236058['shift']());}};_0x21cd7e(++_0x1d17f3);}(_0x1d17,0x6d));const _0x21cd=function(_0x236058,_0x1d17f3){_0x236058=_0x236058-0x0;let _0x21cd7e=_0x1d17[_0x236058];return _0x21cd7e;};import{Plugin as _0x544ebb}from'ckeditor5/src/core';import _0x569346 from'./table';import{getTranslation as _0xc87818}from'../utils/common-translations';export default class kt extends _0x544ebb{static get[_0x21cd('0x4b')](){return[_0x569346];}[_0x21cd('0x0')](){const _0x520253=this[_0x21cd('0x2d')];if(!_0x520253['plugins']['has']('TableEditing'))return;const _0x1a3b8e=_0x520253[_0x21cd('0x1f')],_0xb93fda=_0x520253['plugins'][_0x21cd('0x5')]('TrackChangesEditing'),_0x4394e2=_0x520253['plugins'][_0x21cd('0x5')](_0x21cd('0x15')),_0x7969a6=_0x520253[_0x21cd('0x2c')][_0x21cd('0x5')](_0x569346);function _0x1a4aed({showActiveMarker:_0x2d37c9=!0x0,setDataAttribute:_0x513767=!0x0}={}){return(_0x2baf8a,_0x32a909,_0x126f4e)=>{const {type:_0x4767a9,id:_0x316367}=_0xb93fda[_0x21cd('0x43')](_0x32a909[_0x21cd('0x10')]),_0x32998b=_0xb93fda[_0x21cd('0x25')](_0x316367);if(!_0x32998b['data']||_0x21cd('0x6')!=_0x32998b[_0x21cd('0x18')][_0x21cd('0x4f')])return;if(_0x32a909[_0x21cd('0x44')])return void _0x2baf8a[_0x21cd('0x2e')]();if(!_0x126f4e[_0x21cd('0x14')][_0x21cd('0x35')](_0x32a909[_0x21cd('0x17')],_0x2baf8a['name']))return;const _0x1d6440=_0x32a909[_0x21cd('0x17')][_0x21cd('0x26')][_0x21cd('0x31')],_0xbfe399=_0x32a909[_0x21cd('0x17')]['end'][_0x21cd('0x3')],_0x1d9ec4=_0x1d6440[_0x21cd('0xd')]['parent'],{column:_0x2415e0}=_0x4394e2[_0x21cd('0x27')](_0x1d6440),{column:_0x54e54d}=_0x4394e2[_0x21cd('0x27')](_0xbfe399);for(let _0x3f7f38=_0x2415e0;_0x3f7f38<=_0x54e54d;_0x3f7f38++){const _0x24de97=_0x4394e2['createTableWalker'](_0x1d9ec4,{'column':_0x3f7f38,'includeAllSlots':!0x1});for(const _0x112739 of _0x24de97){const _0x15b7ae=_0x112739[_0x21cd('0x36')],_0x2d8edc=_0x126f4e[_0x21cd('0x13')][_0x21cd('0x4')](_0x15b7ae);_0x126f4e['writer'][_0x21cd('0x45')](_0x21cd('0x30')+_0x4767a9,_0x2d8edc),_0x513767&&_0x126f4e[_0x21cd('0x23')][_0x21cd('0x41')](_0x21cd('0x2b'),_0x316367,_0x2d8edc),_0x126f4e[_0x21cd('0x13')]['bindElementToMarker'](_0x2d8edc,_0x32a909['markerName']),_0x2d37c9&&(_0xb93fda[_0x21cd('0x24')]['includes'](_0x32a909[_0x21cd('0x10')])?_0x126f4e[_0x21cd('0x23')]['addClass'](_0x21cd('0xe'),_0x2d8edc):_0x126f4e[_0x21cd('0x23')][_0x21cd('0x1b')]('ck-suggestion-marker--active',_0x2d8edc));}}};}_0xb93fda[_0x21cd('0x49')](_0x21cd('0x46'),(_0xfd86ca,_0x5b18a9)=>{const _0x282586=_0x4394e2[_0x21cd('0xf')](_0x520253[_0x21cd('0x11')][_0x21cd('0x1')][_0x21cd('0x4c')]),_0x4481f5=_0x4394e2[_0x21cd('0x3d')](_0x282586),_0x5868fc=_0x282586[0x0][_0x21cd('0x22')](_0x21cd('0x29')),_0x4533ca=_0x5868fc[_0x21cd('0x3f')](_0x21cd('0x1e'))||0x0,_0x427481=_0x5b18a9&&null!==_0x5b18a9[_0x21cd('0x2a')]?_0x5b18a9[_0x21cd('0x2a')]:!_0x520253['commands'][_0x21cd('0x5')](_0x21cd('0x46'))[_0x21cd('0x1d')],_0x582b58=_0x427481?_0x4481f5[_0x21cd('0x34')]:_0x4481f5[_0x21cd('0x47')],_0x466c51=_0x5868fc['getChild'](_0x582b58);let _0x4c2909;if(_0x427481){const _0x418946=_0x5868fc[_0x21cd('0x4e')](_0x4533ca);if(_0x466c51['index']<_0x418946[_0x21cd('0x3e')])return;_0x4c2909=_0x520253['model'][_0x21cd('0x19')](_0x520253[_0x21cd('0x11')][_0x21cd('0x21')](_0x418946[_0x21cd('0x4e')](0x0)),_0x520253[_0x21cd('0x11')][_0x21cd('0x9')](_0x466c51[_0x21cd('0x4e')](_0x466c51[_0x21cd('0x4d')]-0x1)));}else{const _0x43bbf9=_0x5868fc[_0x21cd('0x4e')](_0x4533ca-0x1);if(!_0x43bbf9)return;_0x4c2909=_0x520253[_0x21cd('0x11')][_0x21cd('0x19')](_0x520253[_0x21cd('0x11')]['createPositionBefore'](_0x466c51[_0x21cd('0x4e')](0x0)),_0x520253[_0x21cd('0x11')]['createPositionAfter'](_0x43bbf9[_0x21cd('0x4e')](_0x43bbf9['childCount']-0x1)));}_0x520253[_0x21cd('0x11')]['change'](()=>{_0xb93fda[_0x21cd('0xc')](_0x4c2909,{'commandName':_0x21cd('0x46'),'commandParams':[{'forceValue':_0x427481}]},[],_0x21cd('0x46'));});}),_0xb93fda['enableCommand'](_0x21cd('0x6'),(_0x334cf1,_0x4f50b9)=>{const _0x485093=_0x520253[_0x21cd('0x2c')][_0x21cd('0x5')](_0x21cd('0x15')),_0x5abd3f=_0x485093[_0x21cd('0xf')](_0x520253[_0x21cd('0x11')]['document'][_0x21cd('0x4c')]),_0x5c2aad=_0x485093[_0x21cd('0x20')](_0x5abd3f),_0x5239f0=_0x5abd3f[0x0][_0x21cd('0x22')](_0x21cd('0x29')),_0x1ca72d=_0x5239f0[_0x21cd('0x3f')](_0x21cd('0x4a'))||0x0,_0x130213=_0x4f50b9&&null!==_0x4f50b9[_0x21cd('0x2a')]?_0x4f50b9[_0x21cd('0x2a')]:!_0x520253[_0x21cd('0x39')][_0x21cd('0x5')](_0x21cd('0x6'))['value'];let _0x466fab;const _0x5217db=_0x5239f0['getChild'](0x0),_0x26b191=_0x130213?_0x5c2aad[_0x21cd('0x34')]:_0x5c2aad[_0x21cd('0x47')],_0x1134b4=_0x485093['createTableWalker'](_0x5239f0,{'startRow':0x0,'column':_0x26b191,'includeAllSlots':!0x1}),_0x19fae0=Array[_0x21cd('0x32')](_0x1134b4)[0x0][_0x21cd('0x36')];if(_0x130213){const _0x59cfa2=_0x5217db['getChild'](_0x1ca72d);if(_0x19fae0[_0x21cd('0x2')](_0x59cfa2))return;_0x466fab=_0x520253[_0x21cd('0x11')][_0x21cd('0x19')](_0x520253[_0x21cd('0x11')][_0x21cd('0x21')](_0x59cfa2),_0x520253[_0x21cd('0x11')][_0x21cd('0x9')](_0x19fae0));}else{const _0xea744=_0x5217db[_0x21cd('0x4e')](_0x1ca72d-0x1);if(!_0xea744)return;_0x466fab=_0x520253['model']['createRange'](_0x520253[_0x21cd('0x11')][_0x21cd('0x21')](_0x19fae0),_0x520253[_0x21cd('0x11')][_0x21cd('0x9')](_0xea744));}_0x520253[_0x21cd('0x11')]['change'](()=>{_0xb93fda[_0x21cd('0xc')](_0x466fab,{'commandName':_0x21cd('0x6'),'commandParams':[{'forceValue':_0x130213}]},[],'setTableColumnHeader');});}),_0x520253[_0x21cd('0x7')][_0x21cd('0x8')]['on']('addMarker:suggestion',_0x1a4aed(),{'priority':_0x21cd('0x33')}),_0x520253['data'][_0x21cd('0x8')]['on']('addMarker:suggestion',(_0x8e361d,_0x4b9b06,_0x54009c)=>{_0x54009c['options'][_0x21cd('0x3a')]&&_0x1a4aed({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x8e361d,_0x4b9b06,_0x54009c);},{'priority':_0x21cd('0x33')}),_0x520253['editing']['downcastDispatcher']['on'](_0x21cd('0x40'),(_0x36b1aa,_0x38f300,_0x48f7c7)=>{const {type:_0x16f266,id:_0x1cd443}=_0xb93fda[_0x21cd('0x43')](_0x38f300[_0x21cd('0x10')]),_0x910abe=_0xb93fda[_0x21cd('0x25')](_0x1cd443);if(!_0x910abe[_0x21cd('0x18')]||'setTableColumnHeader'!=_0x910abe[_0x21cd('0x18')]['commandName'])return;const _0x46b585=_0x48f7c7[_0x21cd('0x13')][_0x21cd('0x28')](_0x38f300['markerName']);if(_0x46b585)for(const _0x33e76d of _0x46b585)_0x48f7c7[_0x21cd('0x23')]['removeClass']('ck-suggestion-marker-'+_0x16f266,_0x33e76d),_0x48f7c7[_0x21cd('0x23')]['removeClass'](_0x21cd('0xe'),_0x33e76d),_0x48f7c7[_0x21cd('0x23')][_0x21cd('0x3b')](_0x21cd('0x2b'),_0x33e76d),_0x48f7c7[_0x21cd('0x13')][_0x21cd('0xa')](_0x33e76d,_0x38f300[_0x21cd('0x10')]);},{'priority':'highest'}),_0xb93fda[_0x21cd('0x37')][_0x21cd('0x3c')](_0xd96529=>{const {data:_0x5569e1}=_0xd96529;if(_0x5569e1){if('setTableRowHeader'==_0x5569e1[_0x21cd('0x4f')]){const _0x1554e9=_0x5569e1['commandParams'][0x0]['forceValue'];return _0xf19c98(_0xc87818(_0x1a3b8e,_0x1554e9?_0x21cd('0x48'):_0x21cd('0xb')));}if(_0x21cd('0x6')==_0x5569e1['commandName']){const _0x3528be=_0x5569e1[_0x21cd('0x1c')][0x0][_0x21cd('0x2a')];return _0xf19c98(_0xc87818(_0x1a3b8e,_0x3528be?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}function _0xf19c98(_0x1ddeb3){return{'type':'format','content':_0xc87818(_0x1a3b8e,_0x21cd('0x2f'),_0x1ddeb3)};}});const _0x586ba4=_0x7969a6[_0x21cd('0x12')]();_0xb93fda[_0x21cd('0x16')]['registerCustomCallback'](_0x21cd('0x42'),_0x21cd('0x46'),_0x21cd('0x1a'),_0x586ba4),_0xb93fda[_0x21cd('0x16')][_0x21cd('0x38')]('formatBlock','setTableColumnHeader',_0x21cd('0x1a'),_0x586ba4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x446a=['*Merge\x20cells*','size','commandName','mergeTableCellDown','_areSelectedCellsMergable','registerCustomCallback','_areMergableCells','formatBlock','type','execute','splitTableCellHorizontally','splitTableCellVertically','push','format','model','getFirstPosition','enableCommand','containsRange','createRangeOn','cell','TableEditing','isEnabled','createTableWalker','document','deletion','findAncestor','add','forceDefaultExecution','markMultiRangeBlockFormat','registerDescriptionCallback','_suggestionFactory','change','filter','detach','commands','plugins','stop','has','low','getAncestors','getCellLocation','tableCell','_descriptionFactory','editor','accept','mergeTableCells','value','length','getRanges','trackChanges','TableUtils','mergeTableCellUp','getSelectionAffectedTableCells','setSelection','insertion','isInContent','horizontally','element','fromRange','refresh','selection','mergeTableCellLeft','_tablePostFixingSubtypes','direction','map','author','mergeTableCellRight','getSuggestions','TrackChangesEditing','*Split\x20cell:*\x20horizontally','get','from','$graveyard','set:isEnabled','_acceptFormatSuggestionCallbackFactory'];(function(_0x8be984,_0x446aa0){const _0x23d55e=function(_0x2d4fee){while(--_0x2d4fee){_0x8be984['push'](_0x8be984['shift']());}};_0x23d55e(++_0x446aa0);}(_0x446a,0x88));const _0x23d5=function(_0x8be984,_0x446aa0){_0x8be984=_0x8be984-0x0;let _0x23d55e=_0x446a[_0x8be984];return _0x23d55e;};import{Plugin as _0x4122e6}from'ckeditor5/src/core';import _0x4d7f90 from'./table';import{LiveRange as _0x23125b}from'ckeditor5/src/engine';import{getTranslation as _0x44bacb}from'../utils/common-translations';export default class pt extends _0x4122e6{static get['requires'](){return[_0x4d7f90];}['afterInit'](){const _0x4e803c=this[_0x23d5('0x39')],_0x520b08=_0x4e803c[_0x23d5('0x1c')]['document'][_0x23d5('0x4a')],_0x1cbccb=_0x4e803c['locale'];if(!_0x4e803c[_0x23d5('0x31')][_0x23d5('0x33')](_0x23d5('0x22')))return;const _0x1d4952=_0x4e803c[_0x23d5('0x31')][_0x23d5('0x9')](_0x23d5('0x7')),_0x7ff31=_0x4e803c['plugins']['get'](_0x23d5('0x40')),_0x333b6c=_0x4e803c['plugins']['get'](_0x4d7f90);_0x333b6c[_0x23d5('0x1')][_0x23d5('0x1a')](_0x23d5('0x3b')),_0x1d4952[_0x23d5('0x1e')]('mergeTableCells',()=>{const _0x1f3e22=_0x7ff31['getSelectionAffectedTableCells'](_0x4e803c[_0x23d5('0x1c')][_0x23d5('0x25')][_0x23d5('0x4a')]);_0x4e803c[_0x23d5('0x1c')][_0x23d5('0x2d')](()=>{_0x1d4952[_0x23d5('0x2a')](_0x1f3e22,{'commandName':_0x23d5('0x3b'),'commandParams':[]},[],_0x23d5('0x3b'));});}),_0x4e803c[_0x23d5('0x30')][_0x23d5('0x9')](_0x23d5('0x3b'))['on'](_0x23d5('0x17'),(_0x243a1f,_0x30a7e1)=>{_0x4e803c[_0x23d5('0x30')][_0x23d5('0x9')](_0x23d5('0x3f'))[_0x23d5('0x3c')]&&(_0x30a7e1[_0x23d5('0x3d')]>0x0&&_0x30a7e1[_0x30a7e1[_0x23d5('0x3d')]-0x1]&&_0x30a7e1[_0x30a7e1[_0x23d5('0x3d')]-0x1][_0x23d5('0x29')]||_0x1d4952['_isForcedDefaultExecutionBlock']||this[_0x23d5('0x12')]()||_0x243a1f[_0x23d5('0x32')]());},{'priority':'highest'});for(const _0x40abf9 of[_0x23d5('0x41'),'mergeTableCellRight',_0x23d5('0x11'),_0x23d5('0x0')]){const _0x49562a=_0x4e803c[_0x23d5('0x30')][_0x23d5('0x9')](_0x40abf9);_0x1d4952['enableCommand'](_0x40abf9,()=>{const _0x56787b=_0x4e803c['model'][_0x23d5('0x25')][_0x23d5('0x4a')][_0x23d5('0x1d')]()[_0x23d5('0x35')]()['find'](_0x491938=>_0x491938['is'](_0x23d5('0x47'),_0x23d5('0x37'))),_0x6f0321=_0x49562a[_0x23d5('0x3c')];_0x4e803c['model'][_0x23d5('0x2d')](()=>{_0x1d4952[_0x23d5('0x2a')]([_0x56787b,_0x6f0321],{'commandName':_0x23d5('0x3b'),'commandParams':[]},[],_0x23d5('0x3b'));});});}for(const _0x5c7b7a of['splitTableCellVertically',_0x23d5('0x18')]){const _0x1e851b=_0x4e803c['commands'][_0x23d5('0x9')](_0x5c7b7a);_0x1d4952[_0x23d5('0x1e')](_0x5c7b7a,()=>{const _0xce4192=_0x7ff31[_0x23d5('0x42')](_0x4e803c[_0x23d5('0x1c')][_0x23d5('0x25')][_0x23d5('0x4a')])[0x0],_0x246138=_0xce4192[_0x23d5('0x27')]('table'),{column:_0x2dcc2e,row:_0x39675f}=_0x7ff31[_0x23d5('0x36')](_0xce4192);let _0x3015e4=[];if(_0x23d5('0x46')==_0x1e851b[_0x23d5('0x2')]){const _0x2a28d1=_0x7ff31[_0x23d5('0x24')](_0x246138,{'startRow':_0x39675f,'endRow':_0x39675f,'includeAllSlots':!0x0});_0x3015e4=Array[_0x23d5('0xa')](_0x2a28d1)[_0x23d5('0x3')](_0x67bec7=>_0x67bec7[_0x23d5('0x21')]);}else{const _0x55659e=_0x7ff31[_0x23d5('0x24')](_0x246138,{'column':_0x2dcc2e,'includeAllSlots':!0x0});_0x3015e4=Array[_0x23d5('0xa')](_0x55659e)[_0x23d5('0x3')](_0x591485=>_0x591485[_0x23d5('0x21')]);}_0x4e803c[_0x23d5('0x1c')][_0x23d5('0x2d')](_0x7dae2a=>{_0x1d4952['markBlockFormat'](_0x7dae2a[_0x23d5('0x20')](_0xce4192),{'commandName':_0x5c7b7a,'commandParams':[]},_0x3015e4,_0x5c7b7a);});});}_0x1d4952[_0x23d5('0x38')][_0x23d5('0x2b')](_0x2be5de=>{const {data:_0x1086e2}=_0x2be5de;if(_0x1086e2)return _0x23d5('0x3b')==_0x1086e2[_0x23d5('0x10')]?{'type':'format','content':_0x44bacb(_0x1cbccb,_0x23d5('0xe'))}:void 0x0;}),_0x1d4952[_0x23d5('0x38')]['registerDescriptionCallback'](_0x1668a1=>{const {data:_0x586734}=_0x1668a1;if(_0x586734)return _0x23d5('0x19')==_0x586734['commandName']?{'type':_0x23d5('0x1b'),'content':_0x44bacb(_0x1cbccb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x586734[_0x23d5('0x10')]?{'type':_0x23d5('0x1b'),'content':_0x44bacb(_0x1cbccb,_0x23d5('0x8'))}:void 0x0;});const _0x2b4fbc=_0x333b6c[_0x23d5('0xd')]();for(const _0x7d700a of[_0x23d5('0x41'),_0x23d5('0x5'),'mergeTableCellDown',_0x23d5('0x0')])_0x1d4952[_0x23d5('0x2c')][_0x23d5('0x13')](_0x23d5('0x15'),_0x7d700a,'accept',_0x2b4fbc);for(const _0x2fe8c0 of[_0x23d5('0x19'),_0x23d5('0x18')])_0x1d4952[_0x23d5('0x2c')][_0x23d5('0x13')](_0x23d5('0x15'),_0x2fe8c0,_0x23d5('0x3a'),_0x2b4fbc);_0x1d4952[_0x23d5('0x2c')][_0x23d5('0x13')](_0x23d5('0x15'),'mergeTableCells','accept',_0x56aee0=>{_0x4e803c[_0x23d5('0x1c')][_0x23d5('0x2d')](_0x10dd3b=>{const _0x33bbd8=Array[_0x23d5('0xa')](_0x520b08[_0x23d5('0x3e')]())[_0x23d5('0x3')](_0x7249ae=>_0x23125b[_0x23d5('0x48')](_0x7249ae));_0x10dd3b[_0x23d5('0x43')](_0x56aee0),_0x4e803c['commands']['get'](_0x23d5('0x3b'))[_0x23d5('0x49')](),_0x4e803c[_0x23d5('0x17')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x24e65c=_0x33bbd8[_0x23d5('0x2e')](_0x1f8512=>_0x23d5('0xb')!=_0x1f8512['root']['rootName']);_0x24e65c[_0x23d5('0x3d')]>0x0&&_0x10dd3b['setSelection'](_0x24e65c);for(const _0x430968 of _0x33bbd8)_0x430968[_0x23d5('0x2f')]();});});for(const _0xef4cd3 of['mergeTableCellUp',_0x23d5('0x11'),_0x23d5('0x0'),_0x23d5('0x5')]){const _0xd35e8d=_0x4e803c[_0x23d5('0x30')][_0x23d5('0x9')](_0xef4cd3);_0xd35e8d['on'](_0x23d5('0xc'),(_0x1e0949,_0x585a7a,_0x4003c7)=>{if(_0x4003c7){const _0x281d08=_0x4e803c[_0x23d5('0x1c')][_0x23d5('0x25')][_0x23d5('0x4a')]['getFirstPosition']()[_0x23d5('0x35')]()['find'](_0x44ef81=>_0x44ef81['is'](_0x23d5('0x47'),_0x23d5('0x37')));this[_0x23d5('0x14')](_0xd35e8d['value'],_0x281d08)||(_0x1e0949['return']=!0x1,_0x1e0949['stop']());}},{'priority':_0x23d5('0x34')});}}[_0x23d5('0x12')](){const _0x152293=this['editor'][_0x23d5('0x30')][_0x23d5('0x9')](_0x23d5('0x3b')),_0x3b861f=this[_0x23d5('0x39')][_0x23d5('0x31')][_0x23d5('0x9')]('TableUtils');if(!_0x152293[_0x23d5('0x23')])return!0x1;const _0x53a166=_0x3b861f[_0x23d5('0x42')](this[_0x23d5('0x39')][_0x23d5('0x1c')][_0x23d5('0x25')]['selection']);for(const _0x17b7c2 of _0x53a166)for(const _0xd27ab5 of _0x53a166)if(_0x17b7c2!=_0xd27ab5&&!this[_0x23d5('0x14')](_0x17b7c2,_0xd27ab5))return!0x1;return!0x0;}[_0x23d5('0x14')](_0x12f533,_0x4a4c9b){const _0x2125b6=this[_0x23d5('0x39')][_0x23d5('0x31')][_0x23d5('0x9')](_0x23d5('0x7')),_0x1e489e=this[_0x23d5('0x39')][_0x23d5('0x1c')]['createRangeOn'](_0x12f533),_0x1e96e8=this[_0x23d5('0x39')][_0x23d5('0x1c')][_0x23d5('0x20')](_0x4a4c9b),_0x5445ac=new Set(),_0x589c3a=new Set();for(const _0x4cb7fb of _0x2125b6[_0x23d5('0x6')]())if((_0x23d5('0x44')==_0x4cb7fb['type']||_0x23d5('0x26')==_0x4cb7fb[_0x23d5('0x16')]||_0x23d5('0x3b')==_0x4cb7fb['subType'])&&_0x4cb7fb[_0x23d5('0x45')])for(const _0x212c95 of _0x4cb7fb['getRanges']())_0x212c95[_0x23d5('0x1f')](_0x1e489e,!0x0)&&_0x5445ac[_0x23d5('0x28')](_0x4cb7fb['type']+':'+_0x4cb7fb['author']['id']),_0x212c95[_0x23d5('0x1f')](_0x1e96e8,!0x0)&&_0x589c3a[_0x23d5('0x28')](_0x4cb7fb['type']+':'+_0x4cb7fb[_0x23d5('0x4')]['id']);if(_0x5445ac[_0x23d5('0xf')]!=_0x589c3a[_0x23d5('0xf')])return!0x1;for(const _0x388bc0 of _0x5445ac)if(!_0x589c3a['has'](_0x388bc0))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3da3=['get','enableCommand','tableOfContents','ELEMENT_TABLE_OF_CONTENTS','_descriptionFactory','locale','insertTableOfContents','afterInit','plugins','TrackChangesEditing','commands'];(function(_0x266c6b,_0x3da393){const _0x1c2596=function(_0x48e51d){while(--_0x48e51d){_0x266c6b['push'](_0x266c6b['shift']());}};_0x1c2596(++_0x3da393);}(_0x3da3,0x105));const _0x1c25=function(_0x266c6b,_0x3da393){_0x266c6b=_0x266c6b-0x0;let _0x1c2596=_0x3da3[_0x266c6b];return _0x1c2596;};import{Plugin as _0x11ba8f}from'ckeditor5/src/core';import{getTranslation as _0x342a84}from'../utils/common-translations';export default class St extends _0x11ba8f{[_0x1c25('0xa')](){const _0x50c67f=this['editor'];if(!_0x50c67f[_0x1c25('0x2')][_0x1c25('0x3')](_0x1c25('0x9')))return;_0x50c67f[_0x1c25('0x0')]['get'](_0x1c25('0x1'))[_0x1c25('0x4')](_0x1c25('0x9'));const _0x3120a4=_0x50c67f[_0x1c25('0x0')][_0x1c25('0x3')](_0x1c25('0x1')),_0x25050f=_0x50c67f[_0x1c25('0x8')];_0x3120a4[_0x1c25('0x7')]['registerElementLabel'](_0x1c25('0x5'),_0x4e5717=>_0x342a84(_0x25050f,_0x1c25('0x6'),_0x4e5717));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49ad=['start','tableBackgroundColor','tableCellBorderStyle','registerCustomCallback','accept','change','_getSuggestion','getFirstPosition','data','document','handleSuggestionDescription','format','_suggestionFactory','formatBlock','commandParams','tableCellBorderColor','tableHeight','model','_handlePropertyChange','enqueueChange','tableCellBackgroundColor','pluginName','getSuggestions','tableBorderColor','tableCellBorderWidth','markBlockFormat','tableCellPadding','getContainedElement','*Format:*\x20change\x20table\x20properties','TablePropertiesEditing','selection','join','tableAlignment','batch','enableCommand','plugins','nodeAfter','has','afterInit','tableCellProperties','locale','editor','getSuggestionCallback','tableProperties','*Format:*\x20change\x20table\x20cell\x20properties','table','registerDescriptionCallback','tableBorderWidth','tableCellWidth','tableWidth','tableCellVerticalAlignment','discard','findAncestor','removeAttribute','tableCellHeight','get','subType','TrackChangesEditing','handleDiscardAction'];(function(_0x147808,_0x49ad06){const _0x50cac2=function(_0x26e9d7){while(--_0x26e9d7){_0x147808['push'](_0x147808['shift']());}};_0x50cac2(++_0x49ad06);}(_0x49ad,0xba));const _0x50ca=function(_0x147808,_0x49ad06){_0x147808=_0x147808-0x0;let _0x50cac2=_0x49ad[_0x147808];return _0x50cac2;};import{Plugin as _0x356455}from'ckeditor5/src/core';import{getTranslation as _0x1f88ee}from'../utils/common-translations';export default class Dt extends _0x356455{constructor(_0x41dbda){super(_0x41dbda),this[_0x50ca('0x22')]=[_0x50ca('0xe'),'tableBorderStyle',_0x50ca('0x26'),_0x50ca('0x17'),_0x50ca('0x28'),_0x50ca('0x7'),_0x50ca('0x33')],this[_0x50ca('0x1e')]=[_0x50ca('0x6'),_0x50ca('0x34'),_0x50ca('0xf'),_0x50ca('0x11'),_0x50ca('0x27'),_0x50ca('0x2d'),_0x50ca('0xb'),'tableCellHorizontalAlignment',_0x50ca('0x29')];}static get[_0x50ca('0xc')](){return'TrackChangesTableProperties';}[_0x50ca('0x1d')](){const _0x51909f=this['editor'][_0x50ca('0x1a')]['get'](_0x50ca('0x30'));if(this[_0x50ca('0x20')][_0x50ca('0x1a')]['has'](_0x50ca('0x14'))){for(const _0x2578b7 of this[_0x50ca('0x22')])_0x51909f[_0x50ca('0x19')](_0x2578b7,(_0x530b6c,_0x3c2ca8)=>{const _0x33f3b6=this[_0x50ca('0x20')]['model'][_0x50ca('0x0')][_0x50ca('0x15')][_0x50ca('0x39')]()[_0x50ca('0x2b')](_0x50ca('0x24'));this['_handlePropertyChange'](_0x2578b7,[_0x33f3b6],this[_0x50ca('0x22')],_0x50ca('0x22'),_0x530b6c,_0x3c2ca8);});_0x51909f[_0x50ca('0x3')][_0x50ca('0x35')](_0x50ca('0x4'),_0x50ca('0x22'),'accept',_0x51909f['_suggestionFactory'][_0x50ca('0x21')](_0x50ca('0x4'),null,'discard')),_0x51909f['_suggestionFactory'][_0x50ca('0x35')]('formatBlock',_0x50ca('0x22'),_0x50ca('0x2a'),(_0x23b879,_0x23fe11)=>this[_0x50ca('0x31')](this[_0x50ca('0x22')],_0x23b879,_0x23fe11)),_0x51909f[_0x50ca('0x3')][_0x50ca('0x35')](_0x50ca('0x4'),_0x50ca('0x22'),_0x50ca('0x16'),()=>!0x1);}if(this['editor'][_0x50ca('0x1a')][_0x50ca('0x1c')]('TableCellPropertiesEditing')){for(const _0x4fc5dc of this[_0x50ca('0x1e')])_0x51909f[_0x50ca('0x19')](_0x4fc5dc,(_0xc46f63,_0xa014db)=>{const _0x33a4d4=this[_0x50ca('0x20')][_0x50ca('0x1a')][_0x50ca('0x2e')]('TableUtils')['getSelectionAffectedTableCells'](this[_0x50ca('0x20')][_0x50ca('0x8')][_0x50ca('0x0')]['selection']);this[_0x50ca('0x9')](_0x4fc5dc,_0x33a4d4,this[_0x50ca('0x1e')],_0x50ca('0x1e'),_0xc46f63,_0xa014db);});_0x51909f['_suggestionFactory'][_0x50ca('0x35')](_0x50ca('0x4'),_0x50ca('0x1e'),_0x50ca('0x36'),_0x51909f[_0x50ca('0x3')]['getSuggestionCallback'](_0x50ca('0x4'),null,'discard')),_0x51909f[_0x50ca('0x3')][_0x50ca('0x35')]('formatBlock',_0x50ca('0x1e'),_0x50ca('0x2a'),(_0x511816,_0x10a406)=>this[_0x50ca('0x31')](this[_0x50ca('0x1e')],_0x511816,_0x10a406)),_0x51909f[_0x50ca('0x3')][_0x50ca('0x35')]('formatBlock','tableCellProperties','join',()=>!0x1);}_0x51909f['_descriptionFactory'][_0x50ca('0x25')](_0x5e6e80=>this['handleSuggestionDescription'](_0x5e6e80));}[_0x50ca('0x9')](_0x3cb52b,_0x4e594b,_0x5a2933,_0x14770a,_0x579ed9,_0x37ae9d){const _0x2ff160=this[_0x50ca('0x20')][_0x50ca('0x1a')][_0x50ca('0x2e')](_0x50ca('0x30'));this[_0x50ca('0x20')][_0x50ca('0x8')][_0x50ca('0xa')](_0x37ae9d[_0x50ca('0x18')],()=>{for(const _0x1eb8cb of _0x4e594b){if(this[_0x50ca('0x38')](_0x1eb8cb,_0x14770a))_0x579ed9(_0x37ae9d);else{const _0x3538ea={};for(const _0x5618ac of _0x5a2933){const _0x528d7a=_0x1eb8cb['getAttribute'](_0x5618ac);void 0x0!==_0x528d7a&&(_0x3538ea[_0x5618ac]=_0x528d7a);}_0x579ed9(_0x37ae9d),_0x2ff160[_0x50ca('0x10')](_0x1eb8cb,{'commandParams':[_0x3538ea]},[],_0x14770a);}}});}[_0x50ca('0x31')](_0x1ed3cd,_0x13c720,_0x2cbaa6){const _0x2bb61e=_0x13c720[0x0][_0x50ca('0x32')][_0x50ca('0x1b')],_0x637559=_0x2cbaa6[_0x50ca('0x5')][0x0];this[_0x50ca('0x20')][_0x50ca('0x8')][_0x50ca('0x37')](_0x1df2cc=>{for(const _0x100a43 of _0x1ed3cd)void 0x0!==_0x637559[_0x100a43]?_0x1df2cc['setAttribute'](_0x100a43,_0x637559[_0x100a43],_0x2bb61e):_0x1df2cc[_0x50ca('0x2c')](_0x100a43,_0x2bb61e);});}[_0x50ca('0x1')](_0x5953c4){if(_0x5953c4[_0x50ca('0x3a')])switch(_0x5953c4[_0x50ca('0x2f')]){case'tableProperties':return{'type':'format','content':_0x1f88ee(this['editor'][_0x50ca('0x1f')],_0x50ca('0x13'))};case _0x50ca('0x1e'):return{'type':_0x50ca('0x2'),'content':_0x1f88ee(this['editor']['locale'],_0x50ca('0x23'))};}}[_0x50ca('0x38')](_0x1973dd,_0x7dc35){const _0x435abb=this[_0x50ca('0x20')]['plugins']['get']('TrackChangesEditing');for(const _0x337f5b of _0x435abb[_0x50ca('0xd')]({'skipNotAttached':!0x0})){const _0x3bface=_0x337f5b[_0x50ca('0x12')]();if(_0x337f5b['subType']===_0x7dc35&&_0x3bface===_0x1973dd)return _0x337f5b;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4754=['plugins','get','has','enableCommand','editor','Template'];(function(_0x2d56d6,_0x475408){const _0x17a723=function(_0x1760e0){while(--_0x1760e0){_0x2d56d6['push'](_0x2d56d6['shift']());}};_0x17a723(++_0x475408);}(_0x4754,0x122));const _0x17a7=function(_0x2d56d6,_0x475408){_0x2d56d6=_0x2d56d6-0x0;let _0x17a723=_0x4754[_0x2d56d6];return _0x17a723;};import{Plugin as _0x564951}from'ckeditor5/src/core';export default class bt extends _0x564951{['afterInit'](){const _0x45a71a=this[_0x17a7('0x2')];_0x45a71a['plugins'][_0x17a7('0x0')](_0x17a7('0x3'))&&_0x45a71a[_0x17a7('0x4')][_0x17a7('0x5')]('TrackChangesEditing')[_0x17a7('0x1')]('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a7b=['plugins','has','createRange','document','ELEMENT_TITLE','schema','start','Title','TrackChangesEditing','model','isCollapsed','nodeBefore','removeMarker','_splitMarkerName','_descriptionFactory','end','element','title-content','suggestion','registerPostFixer','locale','isEqual','updateMarker','newRange'];(function(_0x599367,_0x2a7bb7){const _0x59d600=function(_0x5aa415){while(--_0x5aa415){_0x599367['push'](_0x599367['shift']());}};_0x59d600(++_0x2a7bb7);}(_0x2a7b,0x1dc));const _0x59d6=function(_0x599367,_0x2a7bb7){_0x599367=_0x599367-0x0;let _0x59d600=_0x2a7b[_0x599367];return _0x59d600;};import{Plugin as _0x593f54}from'ckeditor5/src/core';import{getTranslation as _0x33a197}from'../utils/common-translations';export default class It extends _0x593f54{['afterInit'](){const _0xfad708=this['editor'];if(!_0xfad708[_0x59d6('0x4')][_0x59d6('0x5')](_0x59d6('0xb')))return;const _0x42d2e6=_0xfad708[_0x59d6('0x4')]['get'](_0x59d6('0xc'));_0x42d2e6[_0x59d6('0x12')]['registerElementLabel'](_0x59d6('0x15'),()=>_0x33a197(_0xfad708[_0x59d6('0x0')],_0x59d6('0x8'))),_0xfad708[_0x59d6('0xd')][_0x59d6('0x7')][_0x59d6('0x17')](_0x4362c9=>{let _0x533b24=!0x1;const _0xae8b4f=Array['from'](_0xfad708['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d678b,data:_0x52b844}of _0xae8b4f){const {group:_0x39de76}=_0x42d2e6[_0x59d6('0x11')](_0x5d678b);if(_0x59d6('0x16')!==_0x39de76||!_0x52b844['newRange'])continue;const _0x3a0bed=_0x52b844[_0x59d6('0x3')],_0x2fc0c9=_0x3a0bed['end'][_0x59d6('0xf')];if(!_0x2fc0c9||!_0x2fc0c9['is'](_0x59d6('0x14'),_0x59d6('0x15')))continue;if(!_0x3a0bed[_0x59d6('0xa')]['isTouching'](_0x3a0bed[_0x59d6('0x13')]))continue;const _0x2c1949=_0xfad708['model'][_0x59d6('0x9')]['getNearestSelectionRange'](_0x3a0bed[_0x59d6('0x13')],'forward');if(_0x2c1949&&_0x2c1949[_0x59d6('0xe')]){const _0x308ca6=_0x4362c9[_0x59d6('0x6')](_0x3a0bed[_0x59d6('0xa')],_0x2c1949[_0x59d6('0xa')]);_0x308ca6[_0x59d6('0x1')](_0x3a0bed)||(_0x4362c9[_0x59d6('0x2')](_0x5d678b,{'range':_0x308ca6}),_0x533b24=!0x0);}_0x533b24||(_0x4362c9[_0x59d6('0x10')](_0x5d678b),_0x533b24=!0x0);}return _0x533b24;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1000=['afterInit','redo','UndoEditing','has','get','editor','TrackChangesEditing','undo','enableCommand','plugins'];(function(_0x751cac,_0x100083){const _0x2788e4=function(_0x48a1ab){while(--_0x48a1ab){_0x751cac['push'](_0x751cac['shift']());}};_0x2788e4(++_0x100083);}(_0x1000,0x82));const _0x2788=function(_0x751cac,_0x100083){_0x751cac=_0x751cac-0x0;let _0x2788e4=_0x1000[_0x751cac];return _0x2788e4;};import{Plugin as _0x126241}from'ckeditor5/src/core';export default class vt extends _0x126241{[_0x2788('0x0')](){const _0x659ab=this[_0x2788('0x5')],_0x891d3e=_0x659ab[_0x2788('0x9')][_0x2788('0x4')](_0x2788('0x6'));_0x659ab['plugins'][_0x2788('0x3')](_0x2788('0x2'))&&(_0x891d3e['enableCommand'](_0x2788('0x7')),_0x891d3e[_0x2788('0x8')](_0x2788('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b98=['isBlock','parent','insert','isAtEnd','ck-suggestion-marker-','toViewElement','markerName','item','plugins','createRangeOn','previousPosition','listItem','createUIElement','schema','listIndent','addHighlight','activeMarkers','element','markerRange','ck-suggestion-marker--active','hasAttribute','push','bindElementToMarker','get','writer','mapper','toViewPosition','isContent','name','model','start','addClass','nextSibling','TrackChangesEditing','getCustomProperty'];(function(_0x55237c,_0x3b98e0){const _0x3ffc9c=function(_0x3615b3){while(--_0x3615b3){_0x55237c['push'](_0x55237c['shift']());}};_0x3ffc9c(++_0x3b98e0);}(_0x3b98,0x7a));const _0x3ffc=function(_0x55237c,_0x3b98e0){_0x55237c=_0x55237c-0x0;let _0x3ffc9c=_0x3b98[_0x55237c];return _0x3ffc9c;};export function getRangesWithAttribute(_0x2ab884,_0x22b065,_0xe978e3){const _0x1c106b=[];for(const _0x411186 of _0x22b065['getItems']())_0x411186[_0x3ffc('0x3')](_0x2ab884)&&_0x1c106b[_0x3ffc('0x4')](_0xe978e3[_0x3ffc('0x1b')](_0x411186));return _0x1c106b;}export function getElementsAffectedByListItemRename(_0x35a82f){const _0x5a4b48=[];if(_0x35a82f['is'](_0x3ffc('0x0'),_0x3ffc('0x1d'))){let _0x49d0ba=_0x35a82f[_0x3ffc('0xf')];for(;_0x49d0ba&&_0x49d0ba['is'](_0x3ffc('0x0'),_0x3ffc('0x1d'))&&_0x49d0ba['getAttribute'](_0x3ffc('0x20'))>0x0;)_0x5a4b48['push'](_0x49d0ba),_0x49d0ba=_0x49d0ba[_0x3ffc('0xf')];}return _0x5a4b48;}export function downcastSplitMergeMarker(_0x385ecf,_0x3f00d0,{showActiveMarker:_0xb853c9=!0x0}={}){const _0x27b8ab=_0x385ecf[_0x3ffc('0x1a')][_0x3ffc('0x6')](_0x3ffc('0x10'));return(_0xcea62e,_0x195057,_0x49bd93)=>{if(!_0x49bd93['consumable']['test'](_0x195057[_0x3ffc('0x1')],_0xcea62e[_0x3ffc('0xb')]))return;const _0x1004ac=_0x195057[_0x3ffc('0x1')]['getWalker'](),_0x44a292=_0x195057[_0x3ffc('0x1')][_0x3ffc('0xd')],_0xa56ef5=_0x385ecf[_0x3ffc('0xc')][_0x3ffc('0x1f')];let _0x31fc10=null,_0x2bc863=null,_0x1e24d1=!0x1,_0x3609b4=!0x1;for(const _0x30c341 of _0x1004ac){const _0x380142=_0x30c341[_0x3ffc('0x19')];_0x1e24d1=_0x1e24d1||_0xa56ef5[_0x3ffc('0xa')](_0x380142);const _0x104e47=_0x49bd93['mapper'][_0x3ffc('0x17')](_0x380142);if(_0x104e47&&_0x104e47[_0x3ffc('0x11')](_0x3ffc('0x21')))return;'elementEnd'==_0x30c341['type']&&(_0xa56ef5[_0x3ffc('0x12')](_0x380142)&&!_0xa56ef5['isLimit'](_0x380142)&&(_0x380142[_0x3ffc('0xf')]||_0x44a292[_0x3ffc('0x15')]?_0x31fc10&&_0x31fc10[_0x3ffc('0x13')]==_0x380142||(_0x31fc10=_0x380142,_0x33beba(_0x30c341[_0x3ffc('0x1c')]),_0x3609b4=!0x0):_0x2bc863=_0x2bc863||_0x30c341['previousPosition']));}function _0x33beba(_0x316e1e){const _0x4e7ead=_0x49bd93[_0x3ffc('0x7')][_0x3ffc('0x1e')]('span',{'class':_0x3ffc('0x16')+_0x3f00d0}),_0x16c481=_0x49bd93[_0x3ffc('0x8')][_0x3ffc('0x9')](_0x316e1e);_0xb853c9&&_0x27b8ab[_0x3ffc('0x22')]['includes'](_0x195057[_0x3ffc('0x18')])&&_0x49bd93['writer'][_0x3ffc('0xe')](_0x3ffc('0x2'),_0x4e7ead),_0x49bd93[_0x3ffc('0x7')][_0x3ffc('0x14')](_0x16c481,_0x4e7ead),_0x49bd93['mapper'][_0x3ffc('0x5')](_0x4e7ead,_0x195057['markerName']);}_0x1e24d1||_0x3609b4||!_0x2bc863||_0x33beba(_0x2bc863);};}
|