@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231127.0 → 0.0.0-nightly-20231129.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/imagestyle.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 _0x4c69=['forceDefaultExecution','cells','deletionRanges','get','isEmpty','editingDowncast','markMultiRangeInsertion','insert','tableCell','some','insertion','elementToElement','suggestionLoaded','markerToHighlight','columnInsertionIndexes','markerName','filter','suggestion','activeMarkers','dataDowncast','getAttributes','attributes','push','getColumnIndexes','columns','createRangeIn','getSuggestion','from','registerCustomCallback','_createdBatches','keys','for','batch','last','first','removeMarkers','remove','tableCellSuggestion','next','markMultiRangeDeletion','conversion','tablePaste','type','high','Users','start','setAttributes','paragraph','discard','isInContent','commands','markers','TrackChangesEditing','insertColumns','registerPostFixer','find','deletion','position','value','column','length','table','end','fill','getChild','model','nextSibling','getSuggestionCallback','includes','_suggestionFactory','rowInsertionIndexes','register','_isForcedDefaultExecutionBlock','element','tablePasteRow','set','redo','getChangedMarkers','schema','tableCellVerticalAlignment','updateMarker','tableCellHorizontalAlignment','showSuggestionHighlights','wrap','entries','return','document','tablePasteCell','TableClipboard','documentSelection','getMarkers','oldRange','change','nodeAfter','selection','stop','low','tableCellBorderColor','getAllAdjacentSuggestions','_replaceTableSlotCell','root','getContainedElement','containsRange','getSuggestions','map','view','$graveyard','registerDescriptionCallback','previous','getChanges','afterInit','previousSibling','plugins','join','removeRows','options','ck-suggestion-marker--active','tableCellPadding','suggestion-td','getRows','createTableWalker','content','rows','markMultiRangeBlockFormat','listenTo','newRange','getChildren','editing','removeColumns','requires','_getCoordsForCells','createRangeOn','TableUtils','suggestionUnloaded','reduce','tablePasteChainId','getRange','every','cell','markerAttributes','setAttribute','add','has','getRanges','author','differ','*Replace\x20table\x20cells*','columnInsertionRanges','fromEntries','getSelectionAffectedTableCells','getTableIfOnlyTableInContent','getColumns','insertRows','insertContent','rowInsertionRanges','findAncestor','suggestion:formatBlock:tablePasteCell','endRow','isEqual','locale','formatBlock','endColumn','accept','createElement','move','_tablePostFixingSubtypes','name','subType','startsWith','tablePasteColumn','editor'];(function(_0x8a5474,_0x4c6937){const _0x4f9912=function(_0x77c3a8){while(--_0x77c3a8){_0x8a5474['push'](_0x8a5474['shift']());}};_0x4f9912(++_0x4c6937);}(_0x4c69,0x88));const _0x4f99=function(_0x8a5474,_0x4c6937){_0x8a5474=_0x8a5474-0x0;let _0x4f9912=_0x4c69[_0x8a5474];return _0x4f9912;};import{getTranslation as _0x4d2670}from'../utils/common-translations';import{Plugin as _0x1620c4}from'ckeditor5/src/core';import{uid as _0x512848,priorities as _0x166a5d}from'ckeditor5/src/utils';import _0x59f70a from'./table';const le=['tableCellBorderWidth',_0x4f99('0x84'),'tableCellBorderStyle',_0x4f99('0x74'),_0x4f99('0x72'),'tableCellBackgroundColor',_0x4f99('0x98')],ae=Object[_0x4f99('0xc')](le[_0x4f99('0x8b')](_0x4ccb0a=>[_0x4ccb0a,null]));export default class At extends _0x1620c4{static get[_0x4f99('0xa4')](){return[_0x59f70a];}[_0x4f99('0x91')](){const _0xa1f1f1=this[_0x4f99('0x22')];if(!_0xa1f1f1['plugins'][_0x4f99('0x6')]('TableClipboard'))return;const _0xd25c8=_0xa1f1f1[_0x4f99('0x93')][_0x4f99('0x26')](_0x4f99('0x57')),_0x57fafb=_0xa1f1f1['plugins'][_0x4f99('0x26')](_0x4f99('0xa7')),_0x1f03cf=_0xa1f1f1[_0x4f99('0x93')]['get'](_0x59f70a),_0x39288d=_0xa1f1f1[_0x4f99('0x93')][_0x4f99('0x26')]('TableClipboard');_0x1f03cf[_0x4f99('0x1d')][_0x4f99('0x39')](_0x4f99('0x6d'),_0x4f99('0x21')),_0xa1f1f1['model'][_0x4f99('0x71')][_0x4f99('0x6a')](_0x4f99('0x48'),{'allowIn':_0x4f99('0x2b'),'allowContentOf':_0x4f99('0x2b'),'isLimit':!0x0}),_0xa1f1f1[_0x4f99('0x4b')][_0x4f99('0x2e')]({'model':_0x4f99('0x48'),'view':'suggestion-td'});let _0x4f1d9e=null;_0xa1f1f1[_0x4f99('0x64')]['on'](_0x4f99('0x11'),(_0x17d297,_0xcba97f)=>{const [_0x33e2e9,_0x2225f7]=_0xcba97f,_0x4c1a93=_0xcba97f[_0xcba97f['length']-0x1];_0x4c1a93&&_0x4c1a93[_0x4f99('0x23')]||_0xd25c8[_0x4f99('0x6b')]||this[_0x4f99('0x22')][_0x4f99('0x55')][_0x4f99('0x26')]('trackChanges')[_0x4f99('0x5d')]&&function(_0x5447e6,_0x1bb5e0,_0x433549,_0x25d341,_0x4b7944){if(_0x1bb5e0&&!_0x1bb5e0['is'](_0x4f99('0x7c')))return!0x1;const _0x55bd33=_0x4b7944[_0x4f99('0xe')](_0x5447e6,_0x433549);if(!_0x55bd33||!fe(_0x55bd33,void 0x0,_0x25d341))return!0x1;const _0x482522=_0x25d341[_0x4f99('0xd')](_0x433549['document'][_0x4f99('0x81')]);if(!_0x482522[_0x4f99('0x5f')])return!0x1;const _0x123a88=_0x482522[0x0]['findAncestor']('table'),_0x466d1f=_0x25d341['getRowIndexes'](_0x482522),_0x4d4840=_0x25d341[_0x4f99('0x3a')](_0x482522),_0x38cf16={'startRow':_0x466d1f[_0x4f99('0x45')],'endRow':_0x466d1f[_0x4f99('0x44')],'startColumn':_0x4d4840[_0x4f99('0x45')],'endColumn':_0x4d4840[_0x4f99('0x44')]};return 0x1==_0x482522[_0x4f99('0x5f')]&&(_0x38cf16[_0x4f99('0x15')]+=_0x25d341[_0x4f99('0x9a')](_0x55bd33)-0x1,_0x38cf16[_0x4f99('0x19')]+=_0x25d341[_0x4f99('0xf')](_0x55bd33)-0x1),fe(_0x123a88,_0x38cf16,_0x25d341);}(_0x33e2e9,_0x2225f7,_0xa1f1f1['model'],_0x57fafb,_0x39288d)&&(_0x17d297[_0x4f99('0x82')](),_0x4f1d9e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x7f')](()=>{_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x11')](_0xcba97f[0x0],_0xcba97f[0x1],_0xcba97f[0x2],{'forceDefaultExecution':!0x0});const _0x323e6f=_0x512848(),{rowInsertionRanges:_0x5832cb,columnInsertionRanges:_0x5a1fec,insertionRanges:_0xef8f52,deletionRanges:_0x2630df,cells:_0x4e8e65}=_0x4f1d9e;_0x5832cb['length']&&_0xd25c8[_0x4f99('0x29')](_0x5832cb,_0x4f99('0x6d'),{'tablePasteChainId':_0x323e6f}),_0x5a1fec[_0x4f99('0x5f')]&&_0xd25c8['markMultiRangeInsertion'](_0x5a1fec,_0x4f99('0x21'),{'tablePasteChainId':_0x323e6f}),_0xef8f52[_0x4f99('0x5f')]&&_0xd25c8['markMultiRangeInsertion'](_0xef8f52,'tablePaste',{'tablePasteChainId':_0x323e6f,'skipNestingCheck':!0x0}),_0x2630df[_0x4f99('0x5f')]&&_0xd25c8[_0x4f99('0x4a')](_0x2630df,'tablePaste',{'tablePasteChainId':_0x323e6f,'skipNestingCheck':!0x0});const _0x65a75b=_0xd25c8[_0x4f99('0x9e')](_0x4e8e65[_0x4f99('0x8b')](({element:_0x1ba09e})=>_0x1ba09e),{'formatGroupId':_0x512848()},[],'tablePasteCell',{'tablePasteChainId':_0x323e6f});if(_0x65a75b){const _0x34bb9b=_0x65a75b[_0x4f99('0x7d')](),_0x4c68e2=[];for(const {element:_0x2b88e7,attributes:_0x15654f}of _0x4e8e65){if(!_0x15654f)continue;const _0xb33373=_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0xa6')](_0x2b88e7),_0x4ea5ed=_0x34bb9b[_0x4f99('0x5a')](_0xe67f70=>_0xe67f70['getRange']()[_0x4f99('0x16')](_0xb33373));_0x4ea5ed&&_0x4c68e2[_0x4f99('0x39')]([_0x4ea5ed[_0x4f99('0x1e')],_0x15654f]);}_0x4c68e2[_0x4f99('0x5f')]&&_0x65a75b[_0x4f99('0x4')](_0x4f99('0x3'),Object['fromEntries'](_0x4c68e2));}_0x4f1d9e=null;}));},{'priority':_0x166a5d[_0x4f99('0x4e')]+0xa}),_0xa1f1f1[_0x4f99('0x93')][_0x4f99('0x26')](_0x4f99('0x7b'))['on'](_0x4f99('0x86'),(_0x5c5009,_0x3aa0ac)=>{const [_0x30a08c,_0x2ff3e5,,_0x51c233]=_0x3aa0ac;if(!_0x4f1d9e)return;_0x5c5009['stop']();const _0x3b374e=_0x30a08c[_0x4f99('0x2')],_0x236ca=_0x2ff3e5,_0x2a4c94=ce(_0x3b374e),_0x1a4845=ce(_0x236ca);_0x5c5009[_0x4f99('0x78')]=_0x3b374e;let _0x11855b=null,_0x4a43fd=null;if(_0x1a4845||_0x2a4c94){if(_0x2a4c94&&!_0x1a4845){_0x51c233[_0x4f99('0x47')](_0x3b374e[_0x4f99('0x63')](0x0));for(const _0xd0c8c9 of Array[_0x4f99('0x3e')](_0x236ca[_0x4f99('0xa1')]()))_0x51c233[_0x4f99('0x2a')](_0xd0c8c9,_0x3b374e,_0x4f99('0x61'));const _0x3fd893=_0x4f1d9e['rowInsertionIndexes']['includes'](_0x30a08c['row']),_0x1d4291=_0x4f1d9e[_0x4f99('0x31')][_0x4f99('0x67')](_0x30a08c[_0x4f99('0x5e')]);_0x3fd893||_0x1d4291||(_0x11855b=_0x51c233[_0x4f99('0x3c')](_0x3b374e));}else _0x1a4845&&!_0x2a4c94&&(_0x4a43fd=_0x51c233['createRangeIn'](_0x3b374e));}else{const _0x2cae53=_0x51c233['createElement']('tableCellSuggestion'),_0x58a82e=_0x51c233[_0x4f99('0x1b')](_0x4f99('0x48'));_0x51c233[_0x4f99('0x76')](_0x51c233[_0x4f99('0x3c')](_0x3b374e),_0x58a82e),_0x51c233['insert'](_0x2cae53,_0x3b374e,0x0);for(const _0x55c9ec of Array[_0x4f99('0x3e')](_0x236ca[_0x4f99('0xa1')]()))_0x51c233[_0x4f99('0x2a')](_0x55c9ec,_0x2cae53,'end');_0x11855b=_0x51c233[_0x4f99('0xa6')](_0x2cae53),_0x4a43fd=_0x51c233[_0x4f99('0xa6')](_0x58a82e);}const _0x10932b=Array[_0x4f99('0x3e')](_0x236ca[_0x4f99('0x37')]())['filter'](([_0x3a23b7])=>le[_0x4f99('0x67')](_0x3a23b7));_0x4f1d9e[_0x4f99('0x24')][_0x4f99('0x39')]({'element':_0x3b374e,'attributes':_0x10932b[_0x4f99('0x5f')]?Object['fromEntries'](_0x10932b):null}),_0x11855b&&_0x4f1d9e['insertionRanges'][_0x4f99('0x39')](_0x11855b),_0x4a43fd&&_0x4f1d9e[_0x4f99('0x25')]['push'](_0x4a43fd);},{'priority':'high'}),_0x57fafb['on'](_0x4f99('0x58'),(_0x19ebb6,_0x4aa01b)=>{const [_0x555c79,_0x52193b={}]=_0x4aa01b;if(!_0x4f1d9e)return;const _0x9f2633=_0x52193b['at']||0x0,_0x4fb3d0=_0x52193b[_0x4f99('0x3b')]||0x1;_0x4f1d9e[_0x4f99('0x31')]=new Array(_0x4fb3d0)['fill'](_0x9f2633)[_0x4f99('0x8b')]((_0x31cce7,_0x48f8d4)=>_0x31cce7+_0x48f8d4);for(const {cell:_0x42235e}of _0x57fafb['createTableWalker'](_0x555c79,{'startColumn':_0x9f2633,'endColumn':_0x9f2633+_0x4fb3d0-0x1}))_0x4f1d9e[_0x4f99('0xb')][_0x4f99('0x39')](_0xa1f1f1[_0x4f99('0x64')]['createRangeOn'](_0x42235e));},{'priority':_0x4f99('0x83')}),_0x57fafb['on'](_0x4f99('0x10'),(_0x3ee51f,_0x12074)=>{const [_0x204e59,_0x24410b={}]=_0x12074;if(!_0x4f1d9e)return;const _0x2d0524=_0x24410b['at']||0x0,_0x4564f7=_0x24410b[_0x4f99('0x9d')]||0x1;_0x4f1d9e[_0x4f99('0x69')]=new Array(_0x4564f7)[_0x4f99('0x62')](_0x2d0524)[_0x4f99('0x8b')]((_0x23615,_0x2a5b7d)=>_0x23615+_0x2a5b7d);for(const {cell:_0x35cdde}of _0x57fafb[_0x4f99('0x9b')](_0x204e59,{'startRow':_0x2d0524,'endRow':_0x2d0524+_0x4564f7-0x1}))_0x4f1d9e[_0x4f99('0x12')]['push'](_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0xa6')](_0x35cdde));},{'priority':'low'}),_0xd25c8['_descriptionFactory'][_0x4f99('0x8e')](_0x120b62=>{if(_0x120b62[_0x4f99('0x1f')]&&_0x120b62[_0x4f99('0x1f')][_0x4f99('0x20')](_0x4f99('0x4c')))return _0x120b62[_0x4f99('0x8f')]?{}:{'type':_0x4f99('0x2d'),'content':_0x4d2670(_0xa1f1f1[_0x4f99('0x17')],_0x4f99('0xa'))};});const _0x39b92f=()=>!0x1;for(const _0x3f468a of[_0x4f99('0x4c'),_0x4f99('0x21'),_0x4f99('0x6d'),_0x4f99('0x7a')])_0xd25c8['_suggestionFactory']['registerCustomCallback']('insertion',_0x3f468a,_0x4f99('0x94'),_0x39b92f),_0xd25c8[_0x4f99('0x68')][_0x4f99('0x3f')](_0x4f99('0x5b'),_0x3f468a,_0x4f99('0x94'),_0x39b92f),_0xd25c8[_0x4f99('0x68')][_0x4f99('0x3f')]('formatBlock',_0x3f468a,_0x4f99('0x94'),_0x39b92f);_0xd25c8[_0x4f99('0x68')][_0x4f99('0x3f')](_0x4f99('0x18'),_0x4f99('0x7a'),_0x4f99('0x53'),_0x39b92f),_0xd25c8['_suggestionFactory'][_0x4f99('0x3f')](_0x4f99('0x18'),_0x4f99('0x7a'),'accept',(_0x40fc4c,_0x533d4d,_0x540fb6)=>{const _0x100de4=_0x40fc4c[_0x4f99('0x8b')](_0x48675a=>_0x48675a[_0x4f99('0x88')]())[_0x4f99('0x33')](_0x29664f=>_0x29664f),_0x43aa8e=new Map(_0x100de4['map'](_0x3eefea=>[_0x3eefea,null]));if(_0x4f1d9e)for(const {element:_0x145fb2,attributes:_0x337220}of _0x4f1d9e[_0x4f99('0x24')])_0x337220&&_0x43aa8e[_0x4f99('0x6e')](_0x145fb2,_0x337220);else{if(_0x540fb6&&_0x540fb6['markerAttributes'])for(const [_0x45b4f9,_0x522d14]of Object[_0x4f99('0x77')](_0x540fb6['markerAttributes'])){const _0x4113cf=_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x56')]['get'](_0x45b4f9),_0x17a299=_0x4113cf?_0x4113cf[_0x4f99('0x0')]()['getContainedElement']():null;_0x17a299&&_0x43aa8e[_0x4f99('0x6e')](_0x17a299,_0x522d14);}}_0xa1f1f1['model']['change'](_0x18e1d5=>{for(const [_0x3520b3,_0x360a9f]of _0x43aa8e)_0x18e1d5[_0x4f99('0x51')]({...ae,..._0x360a9f},_0x3520b3);});});const _0x32421e=(_0x2f45c0,_0xf2078f)=>{_0xd25c8[_0x4f99('0x68')][_0x4f99('0x3f')](_0x2f45c0,_0x4f99('0x4c'),_0xf2078f,(_0x3a3c54,_0x28b864,_0x258871)=>{_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x7f')](_0x1bc6ba=>{const _0x2add97=[];for(const _0x3f36ab of _0x3a3c54){const _0x216d38=_0x3f36ab[_0x4f99('0x50')][_0x4f99('0x80')];_0x216d38['is']('element',_0x4f99('0x48'))&&_0x2add97[_0x4f99('0x39')](_0x216d38);}_0xd25c8[_0x4f99('0x68')][_0x4f99('0x66')](_0x2f45c0,null,_0xf2078f)(_0x3a3c54,_0x28b864,_0x258871);for(const _0x1fd7cc of _0x2add97)_0x4f99('0x8d')!=_0x1fd7cc[_0x4f99('0x87')]['rootName']&&_0x1bc6ba['unwrap'](_0x1fd7cc);});});};_0x32421e(_0x4f99('0x2d'),_0x4f99('0x1a')),_0x32421e(_0x4f99('0x2d'),_0x4f99('0x53')),_0x32421e(_0x4f99('0x5b'),'accept'),_0x32421e(_0x4f99('0x5b'),_0x4f99('0x53')),_0xd25c8[_0x4f99('0x68')]['registerCustomCallback'](_0x4f99('0x2d'),_0x4f99('0x6d'),_0x4f99('0x53'),_0x32de24=>{const _0x509b05=_0x32de24[_0x4f99('0x8b')](_0x5054c8=>_0x5054c8[_0x4f99('0x88')]()),_0x3c32dd=_0x509b05[0x0][_0x4f99('0x13')](_0x4f99('0x60')),{minRow:_0x532477,maxRow:_0x43f22a}=_0x1f03cf[_0x4f99('0xa5')](_0x509b05);_0x57fafb[_0x4f99('0x95')](_0x3c32dd,{'at':_0x532477,'rows':_0x43f22a-_0x532477+0x1});}),_0xd25c8[_0x4f99('0x68')][_0x4f99('0x3f')](_0x4f99('0x2d'),_0x4f99('0x21'),_0x4f99('0x53'),_0x2d1a29=>{const _0x168a9d=_0x2d1a29[_0x4f99('0x8b')](_0x39ec09=>_0x39ec09[_0x4f99('0x88')]()),_0x2e14ad=_0x168a9d[0x0]['findAncestor'](_0x4f99('0x60')),{minColumn:_0x2dce6d,maxColumn:_0xd310b2}=_0x1f03cf[_0x4f99('0xa5')](_0x168a9d);_0x57fafb[_0x4f99('0xa3')](_0x2e14ad,{'at':_0x2dce6d,'columns':_0xd310b2-_0x2dce6d+0x1});});const _0x4c5d2a=(_0x42a23e,_0x4c8f63)=>{if(!_0x4c8f63[_0x4f99('0x1f')]||!_0x4c8f63['subType']['startsWith']('tablePaste'))return;const _0x4fc890=_0x4c8f63[_0x4f99('0x38')]['tablePasteChainId'],_0x3d0608=_0xd25c8[_0x4f99('0x8a')]()[_0x4f99('0x33')](_0x28a021=>_0x28a021[_0x4f99('0x54')]&&_0x28a021[_0x4f99('0x38')]&&_0x28a021[_0x4f99('0x38')][_0x4f99('0xaa')]==_0x4fc890);_0x3d0608['length']&&_0x4c8f63[_0x4f99('0x85')]()['length']!=_0x3d0608[_0x4f99('0x5f')]&&_0x3d0608[_0x4f99('0xa9')]((_0xb65b0f,_0x5e2c0f)=>(_0xb65b0f[_0x4f99('0x49')]=_0x5e2c0f,_0x5e2c0f[_0x4f99('0x8f')]=_0xb65b0f,_0x5e2c0f));};function _0x998cbe(_0x249994,_0x28d5e7=!0x0){const {id:_0x2474e7}=_0xd25c8['_splitMarkerName'](_0x249994[_0x4f99('0x32')]),_0x504da3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5f5230=_0xd25c8[_0x4f99('0x35')][_0x4f99('0x67')](_0x249994[_0x4f99('0x32')]);return _0x5f5230&&_0x504da3[_0x4f99('0x39')](_0x4f99('0x97')),{'classes':_0x504da3,'attributes':{'data-suggestion':_0x2474e7},'priority':_0x5f5230&&_0x28d5e7?0xbc2:0xbb8};}_0xd25c8['on'](_0x4f99('0x2f'),_0x4c5d2a,{'priority':_0x4f99('0x4e')}),_0xd25c8['on'](_0x4f99('0xa8'),_0x4c5d2a,{'priority':_0x4f99('0x4e')}),_0xa1f1f1['model'][_0x4f99('0x79')][_0x4f99('0x59')](()=>{let _0x1b7b63=!0x1;const _0x3948d1=Array[_0x4f99('0x3e')](_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x79')]['differ'][_0x4f99('0x70')]());for(const {name:_0x209206,data:_0x3b67b1}of _0x3948d1){const {group:_0x431d22,type:_0x797235,id:_0x3e2236}=_0xd25c8['_splitMarkerName'](_0x209206);if(_0x4f99('0x34')!=_0x431d22||_0x4f99('0x5b')!=_0x797235||_0x3b67b1[_0x4f99('0x7e')])continue;if(!_0xd25c8['hasSuggestion'](_0x3e2236))continue;const _0x18df34=_0xd25c8[_0x4f99('0x3d')](_0x3e2236)[_0x4f99('0x7')](),_0x456b84=_0xa1f1f1[_0x4f99('0x93')][_0x4f99('0x26')](_0x4f99('0x4f'))['me'];for(const _0x96f06b of _0xd25c8[_0x4f99('0x8a')]()){if(!_0x96f06b[_0x4f99('0x54')]||_0x96f06b[_0x4f99('0x8')]!=_0x456b84)continue;if(_0x4f99('0x18')!=_0x96f06b[_0x4f99('0x4d')]||_0x4f99('0x7a')!=_0x96f06b[_0x4f99('0x1f')])continue;if(_0x96f06b[_0x4f99('0x7')]()[_0x4f99('0x1')](_0xcf47b6=>_0x18df34[_0x4f99('0x2c')](_0x5d615e=>_0x5d615e[_0x4f99('0x89')](_0xcf47b6,!0x0))))for(const _0x27ce09 of _0x96f06b[_0x4f99('0x85')]())_0x27ce09[_0x4f99('0x54')]&&(_0x27ce09[_0x4f99('0x53')](),_0x1b7b63=!0x0);}}return _0x1b7b63;}),_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x79')]['registerPostFixer'](_0xdb295c=>{const _0x2560d6=_0xa1f1f1[_0x4f99('0x55')][_0x4f99('0x26')](_0x4f99('0x6f'));if(!_0x2560d6||!_0x2560d6[_0x4f99('0x40')][_0x4f99('0x6')](_0xdb295c[_0x4f99('0x43')]))return!0x1;let _0x1e0662=!0x1;const _0x463ac6=_0xa1f1f1[_0x4f99('0x93')][_0x4f99('0x26')](_0x4f99('0x4f'))['me'],_0x4fea66=_0xa1f1f1['model']['document'][_0x4f99('0x9')][_0x4f99('0x90')](),_0x260dcd=Array[_0x4f99('0x3e')](_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x79')][_0x4f99('0x9')][_0x4f99('0x70')]())['filter'](({name:_0x3ad1a5,data:_0x2b242a})=>{const {group:_0x59db0f,subType:_0x2ea739,authorId:_0x3470f7}=_0xd25c8['_splitMarkerName'](_0x3ad1a5);return _0x4f99('0x34')==_0x59db0f&&_0x4f99('0x4c')==_0x2ea739&&_0x3470f7==_0x463ac6['id']&&!_0x2b242a['oldRange'];});for(const _0x1ebdc6 of _0x4fea66){if(_0x4f99('0x2a')!=_0x1ebdc6['type']||_0x4f99('0x48')!=_0x1ebdc6[_0x4f99('0x1e')]||0x1!=_0x1ebdc6[_0x4f99('0x5f')])continue;const _0x3dc0b4=_0xdb295c['createRange'](_0x1ebdc6[_0x4f99('0x5c')],_0x1ebdc6[_0x4f99('0x5c')]['getShiftedBy'](0x1));if(!_0x260dcd[_0x4f99('0x5a')](({data:_0x1b240f})=>_0x1b240f[_0x4f99('0xa0')][_0x4f99('0x16')](_0x3dc0b4)))for(const {name:_0xc781e7,data:_0x29a2b5}of _0x260dcd)if(_0x3dc0b4['containsRange'](_0x29a2b5[_0x4f99('0xa0')])){_0xdb295c[_0x4f99('0x73')](_0xc781e7,{'range':_0x3dc0b4}),_0x1e0662=!0x0;break;}}return _0x1e0662;}),_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x79')][_0x4f99('0x59')](_0x23f611=>{let _0x2aceec=!0x1;const _0x28bb4f=_0xa1f1f1['plugins'][_0x4f99('0x26')](_0x4f99('0x4f'))['me'],_0x5f3742=_0xd25c8[_0x4f99('0x8a')]()[_0x4f99('0x33')](_0x23dc35=>_0x23dc35[_0x4f99('0x54')]&&_0x23dc35['author']==_0x28bb4f),_0x5b42e8=new Set(),_0x38d924=new Set();for(const _0x25c49c of _0x5f3742)if('tablePaste'==_0x25c49c[_0x4f99('0x1f')])for(const _0x43f912 of _0x25c49c[_0x4f99('0x7d')]()){const _0x6d5ac8=_0x43f912[_0x4f99('0x0')]()['getContainedElement']();if(_0x6d5ac8){if(_0x6d5ac8['is'](_0x4f99('0x6c'),_0x4f99('0x48'))&&ce(_0x6d5ac8)){_0x25c49c['removeMarker'](_0x43f912[_0x4f99('0x1e')]),_0x5b42e8['add'](_0x6d5ac8),_0x2aceec=!0x0;const _0x2249ef=_0x6d5ac8[_0x4f99('0x65')],_0x152bf3=_0x6d5ac8[_0x4f99('0x92')],_0x2a03df=_0x2249ef&&_0x2249ef['is'](_0x4f99('0x6c'),_0x4f99('0x48')),_0x5e949f=_0x152bf3&&_0x152bf3['is'](_0x4f99('0x6c'),_0x4f99('0x48'));_0x2a03df&&!_0x5b42e8[_0x4f99('0x6')](_0x2249ef)&&_0x38d924[_0x4f99('0x5')](_0x2249ef),_0x5e949f&&!_0x5b42e8['has'](_0x152bf3)&&_0x38d924[_0x4f99('0x5')](_0x152bf3);}else _0x6d5ac8['is']('element',_0x4f99('0x52'))&&_0x6d5ac8[_0x4f99('0x27')]&&(_0x25c49c['removeMarker'](_0x43f912[_0x4f99('0x1e')]),_0x2aceec=!0x0);}}else{if(_0x4f99('0x7a')==_0x25c49c[_0x4f99('0x1f')]){if(!_0x25c49c[_0x4f99('0x38')]||!_0x25c49c[_0x4f99('0x38')][_0x4f99('0xaa')])continue;const _0xf413b8=_0x25c49c[_0x4f99('0x38')][_0x4f99('0x3')];if(_0xf413b8&&Object[_0x4f99('0x41')](_0xf413b8)['length'])continue;const _0x304391=_0x25c49c[_0x4f99('0x38')][_0x4f99('0xaa')];let _0x2c22a4=!0x0,_0x379fc3=!0x0;for(const _0x58e180 of _0x5f3742)if(_0x58e180['subType']&&_0x58e180[_0x4f99('0x1f')][_0x4f99('0x20')](_0x4f99('0x4c'))){if(!_0x58e180['attributes'][_0x4f99('0xaa')]){_0x379fc3=!0x1;break;}if(_0x58e180['id']!=_0x25c49c['id']&&_0x58e180['attributes']['tablePasteChainId']==_0x304391){_0x2c22a4=!0x1;break;}}_0x379fc3&&_0x2c22a4&&(_0x25c49c[_0x4f99('0x46')](),_0x2aceec=!0x0);}}for(const _0x474c57 of _0x5b42e8)_0x23f611[_0x4f99('0x47')](_0x474c57);for(const _0x22b7a1 of _0x38d924)_0x23f611['unwrap'](_0x22b7a1);return _0x2aceec;}),_0xa1f1f1[_0x4f99('0x4b')]['for'](_0x4f99('0x28'))[_0x4f99('0x30')]({'model':_0x4f99('0x14'),'view':(_0x1cba60,_0x1e2528)=>_0x998cbe(_0x1cba60),'converterPriority':'high'}),_0xa1f1f1[_0x4f99('0x4b')][_0x4f99('0x42')](_0x4f99('0x36'))[_0x4f99('0x30')]({'model':_0x4f99('0x14'),'view':(_0x24852d,_0xabb78a)=>_0xabb78a[_0x4f99('0x96')][_0x4f99('0x75')]?_0x998cbe(_0x24852d,!0x1):null,'converterPriority':_0x4f99('0x4e')});const _0x170794=_0xa1f1f1[_0x4f99('0xa2')][_0x4f99('0x8c')];this[_0x4f99('0x9f')](_0x170794['document'],'clipboardOutput',(_0xdc3193,_0x2a378c)=>{const _0x57926e=[];for(const _0x7d66 of _0x170794[_0x4f99('0x3c')](_0x2a378c[_0x4f99('0x9c')])['getItems']())_0x7d66['is'](_0x4f99('0x6c'),_0x4f99('0x99'))&&_0x57926e['push'](_0x7d66);_0x170794[_0x4f99('0x7f')](_0x1b12f8=>{for(const _0x172130 of _0x57926e)_0x1b12f8[_0x4f99('0x1c')](_0x1b12f8[_0x4f99('0x3c')](_0x172130),_0x1b12f8['createPositionBefore'](_0x172130)),_0x1b12f8['remove'](_0x172130);});});}}function ce(_0x2a60c6){if(_0x2a60c6[_0x4f99('0x27')])return!0x0;const _0x4e6371=_0x2a60c6[_0x4f99('0x63')](0x0);return _0x4e6371['is'](_0x4f99('0x6c'),_0x4f99('0x52'))&&_0x4e6371[_0x4f99('0x27')];}function fe(_0xba22c7,_0x2b2571={},_0x2c4317){for(const {isAnchor:_0x538644,cellHeight:_0x367b84,cellWidth:_0x3cd1c0}of _0x2c4317[_0x4f99('0x9b')](_0xba22c7,{'includeAllSlots':!0x0,..._0x2b2571}))if(!_0x538644||0x1!=_0x367b84||0x1!=_0x3cd1c0)return!0x1;return!0x0;}
|
|
23
|
+
const _0x4036=['author','add','setAttributes','discard','getRows','getItems','type','TableClipboard','registerDescriptionCallback','cell','ck-suggestion-marker--active','paragraph','isEqual','*Replace\x20table\x20cells*','createRangeIn','markerAttributes','registerCustomCallback','forceDefaultExecution','tableCellSuggestion','fill','previous','subType','createRange','nodeAfter','_tablePostFixingSubtypes','tablePaste','getAllAdjacentSuggestions','return','map','Users','documentSelection','tableCellBackgroundColor','_suggestionFactory','newRange','from','markMultiRangeInsertion','deletionRanges','TrackChangesEditing','schema','suggestionUnloaded','requires','rows','_getCoordsForCells','getRanges','tableCell','editor','getColumns','tablePasteCell','removeMarkers','attributes','join','getColumnIndexes','value','afterInit','some','filter','tableCellBorderStyle','low','keys','for','tablePasteChainId','getSelectionAffectedTableCells','last','end','batch','isInContent','startsWith','remove','unwrap','oldRange','trackChanges','tablePasteRow','_createdBatches','getSuggestionCallback','move','stop','_splitMarkerName','differ','markMultiRangeDeletion','getChangedMarkers','tablePasteColumn','view','conversion','ck-suggestion-marker-insertion','insertContent','start','cells','insertRows','position','createRangeOn','insertion','get','columns','getAttributes','getContainedElement','getRange','getTableIfOnlyTableInContent','rootName','insert','find','getChild','includes','removeRows','getMarkers','document','register','high','fromEntries','columnInsertionIndexes','element','createTableWalker','createElement','first','deletion','locale','row','model','removeMarker','has','column','table','formatBlock','$graveyard','length','markerName','markerToHighlight','commands','elementToElement','ck-suggestion-marker','removeColumns','next','change','editing','suggestion-td','entries','getChanges','registerPostFixer','suggestion:formatBlock:tablePasteCell','clipboardOutput','isEmpty','markers','containsRange','suggestion','plugins','endColumn','name','findAncestor','accept','getSuggestions','push','markMultiRangeBlockFormat','getChildren'];(function(_0x5e07e8,_0x40366b){const _0x482ed2=function(_0x531d8a){while(--_0x531d8a){_0x5e07e8['push'](_0x5e07e8['shift']());}};_0x482ed2(++_0x40366b);}(_0x4036,0x1ef));const _0x482e=function(_0x5e07e8,_0x40366b){_0x5e07e8=_0x5e07e8-0x0;let _0x482ed2=_0x4036[_0x5e07e8];return _0x482ed2;};import{getTranslation as _0x32d509}from'../utils/common-translations';import{Plugin as _0x56a1a1}from'ckeditor5/src/core';import{uid as _0x160968,priorities as _0x51ed32}from'ckeditor5/src/utils';import _0x33fb1e from'./table';const le=['tableCellBorderWidth','tableCellBorderColor',_0x482e('0x11'),'tableCellHorizontalAlignment','tableCellVerticalAlignment',_0x482e('0x90'),'tableCellPadding'],ae=Object[_0x482e('0x44')](le[_0x482e('0x8d')](_0x536a23=>[_0x536a23,null]));export default class At extends _0x56a1a1{static get[_0x482e('0x1')](){return[_0x33fb1e];}[_0x482e('0xe')](){const _0x9286c4=this[_0x482e('0x6')];if(!_0x9286c4[_0x482e('0x68')][_0x482e('0x4f')](_0x482e('0x78')))return;const _0x40201c=_0x9286c4['plugins'][_0x482e('0x34')](_0x482e('0x96')),_0x9cc208=_0x9286c4['plugins'][_0x482e('0x34')]('TableUtils'),_0x14ab4b=_0x9286c4[_0x482e('0x68')][_0x482e('0x34')](_0x33fb1e),_0x4389ee=_0x9286c4['plugins'][_0x482e('0x34')](_0x482e('0x78'));_0x14ab4b[_0x482e('0x89')][_0x482e('0x6e')]('tablePasteRow','tablePasteColumn'),_0x9286c4[_0x482e('0x4d')][_0x482e('0x97')][_0x482e('0x42')](_0x482e('0x83'),{'allowIn':_0x482e('0x5'),'allowContentOf':_0x482e('0x5'),'isLimit':!0x0}),_0x9286c4[_0x482e('0x2b')][_0x482e('0x58')]({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x191931=null;_0x9286c4['model']['on'](_0x482e('0x2d'),(_0x199174,_0x5b1ca2)=>{const [_0x551384,_0xe5f8f0]=_0x5b1ca2,_0x650ce9=_0x5b1ca2[_0x5b1ca2[_0x482e('0x54')]-0x1];_0x650ce9&&_0x650ce9[_0x482e('0x82')]||_0x40201c['_isForcedDefaultExecutionBlock']||this[_0x482e('0x6')][_0x482e('0x57')][_0x482e('0x34')](_0x482e('0x1f'))[_0x482e('0xd')]&&function(_0x14ba55,_0x350266,_0x1bb1b2,_0x34a596,_0x1aca8b){if(_0x350266&&!_0x350266['is'](_0x482e('0x8f')))return!0x1;const _0x22570f=_0x1aca8b[_0x482e('0x39')](_0x14ba55,_0x1bb1b2);if(!_0x22570f||!fe(_0x22570f,void 0x0,_0x34a596))return!0x1;const _0x451620=_0x34a596[_0x482e('0x16')](_0x1bb1b2[_0x482e('0x41')]['selection']);if(!_0x451620['length'])return!0x1;const _0x4ddb11=_0x451620[0x0][_0x482e('0x6b')](_0x482e('0x51')),_0x5c2e39=_0x34a596['getRowIndexes'](_0x451620),_0x584f0c=_0x34a596[_0x482e('0xc')](_0x451620),_0x4f6933={'startRow':_0x5c2e39[_0x482e('0x49')],'endRow':_0x5c2e39[_0x482e('0x17')],'startColumn':_0x584f0c[_0x482e('0x49')],'endColumn':_0x584f0c[_0x482e('0x17')]};return 0x1==_0x451620[_0x482e('0x54')]&&(_0x4f6933['endRow']+=_0x34a596[_0x482e('0x75')](_0x22570f)-0x1,_0x4f6933[_0x482e('0x69')]+=_0x34a596[_0x482e('0x7')](_0x22570f)-0x1),fe(_0x4ddb11,_0x4f6933,_0x34a596);}(_0x551384,_0xe5f8f0,_0x9286c4['model'],_0x9cc208,_0x4389ee)&&(_0x199174[_0x482e('0x24')](),_0x191931={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x9286c4[_0x482e('0x4d')][_0x482e('0x5c')](()=>{_0x9286c4[_0x482e('0x4d')][_0x482e('0x2d')](_0x5b1ca2[0x0],_0x5b1ca2[0x1],_0x5b1ca2[0x2],{'forceDefaultExecution':!0x0});const _0x41cc1d=_0x160968(),{rowInsertionRanges:_0x44da5b,columnInsertionRanges:_0x25ca39,insertionRanges:_0x1061a9,deletionRanges:_0x166916,cells:_0x51a12c}=_0x191931;_0x44da5b[_0x482e('0x54')]&&_0x40201c[_0x482e('0x94')](_0x44da5b,_0x482e('0x20'),{'tablePasteChainId':_0x41cc1d}),_0x25ca39[_0x482e('0x54')]&&_0x40201c['markMultiRangeInsertion'](_0x25ca39,_0x482e('0x29'),{'tablePasteChainId':_0x41cc1d}),_0x1061a9[_0x482e('0x54')]&&_0x40201c[_0x482e('0x94')](_0x1061a9,'tablePaste',{'tablePasteChainId':_0x41cc1d,'skipNestingCheck':!0x0}),_0x166916[_0x482e('0x54')]&&_0x40201c[_0x482e('0x27')](_0x166916,_0x482e('0x8a'),{'tablePasteChainId':_0x41cc1d,'skipNestingCheck':!0x0});const _0x35b4e0=_0x40201c[_0x482e('0x6f')](_0x51a12c[_0x482e('0x8d')](({element:_0xff7b6e})=>_0xff7b6e),{'formatGroupId':_0x160968()},[],_0x482e('0x8'),{'tablePasteChainId':_0x41cc1d});if(_0x35b4e0){const _0x20b1da=_0x35b4e0[_0x482e('0x40')](),_0x11241e=[];for(const {element:_0x2047fc,attributes:_0x51cf52}of _0x51a12c){if(!_0x51cf52)continue;const _0x1012a4=_0x9286c4[_0x482e('0x4d')]['createRangeOn'](_0x2047fc),_0x345ffe=_0x20b1da[_0x482e('0x3c')](_0x5ecc29=>_0x5ecc29['getRange']()['isEqual'](_0x1012a4));_0x345ffe&&_0x11241e[_0x482e('0x6e')]([_0x345ffe[_0x482e('0x6a')],_0x51cf52]);}_0x11241e[_0x482e('0x54')]&&_0x35b4e0['setAttribute'](_0x482e('0x80'),Object[_0x482e('0x44')](_0x11241e));}_0x191931=null;}));},{'priority':_0x51ed32[_0x482e('0x43')]+0xa}),_0x9286c4[_0x482e('0x68')][_0x482e('0x34')](_0x482e('0x78'))['on']('_replaceTableSlotCell',(_0xb7cef7,_0x359eb9)=>{const [_0x262fca,_0x29f015,,_0xcea234]=_0x359eb9;if(!_0x191931)return;_0xb7cef7[_0x482e('0x24')]();const _0x3c8a16=_0x262fca[_0x482e('0x7a')],_0x52c340=_0x29f015,_0x25803c=ce(_0x3c8a16),_0x25132b=ce(_0x52c340);_0xb7cef7[_0x482e('0x8c')]=_0x3c8a16;let _0x1811a4=null,_0x3627d1=null;if(_0x25132b||_0x25803c){if(_0x25803c&&!_0x25132b){_0xcea234[_0x482e('0x1c')](_0x3c8a16['getChild'](0x0));for(const _0x1c31a6 of Array['from'](_0x52c340[_0x482e('0x70')]()))_0xcea234[_0x482e('0x3b')](_0x1c31a6,_0x3c8a16,'end');const _0x18f504=_0x191931['rowInsertionIndexes'][_0x482e('0x3e')](_0x262fca[_0x482e('0x4c')]),_0x4f70cf=_0x191931[_0x482e('0x45')][_0x482e('0x3e')](_0x262fca[_0x482e('0x50')]);_0x18f504||_0x4f70cf||(_0x1811a4=_0xcea234[_0x482e('0x7f')](_0x3c8a16));}else _0x25132b&&!_0x25803c&&(_0x3627d1=_0xcea234['createRangeIn'](_0x3c8a16));}else{const _0x90da8d=_0xcea234[_0x482e('0x48')](_0x482e('0x83')),_0x463104=_0xcea234[_0x482e('0x48')](_0x482e('0x83'));_0xcea234['wrap'](_0xcea234[_0x482e('0x7f')](_0x3c8a16),_0x463104),_0xcea234[_0x482e('0x3b')](_0x90da8d,_0x3c8a16,0x0);for(const _0x181d0e of Array[_0x482e('0x93')](_0x52c340[_0x482e('0x70')]()))_0xcea234[_0x482e('0x3b')](_0x181d0e,_0x90da8d,_0x482e('0x18'));_0x1811a4=_0xcea234[_0x482e('0x32')](_0x90da8d),_0x3627d1=_0xcea234[_0x482e('0x32')](_0x463104);}const _0x1c0078=Array[_0x482e('0x93')](_0x52c340[_0x482e('0x36')]())[_0x482e('0x10')](([_0x31250e])=>le['includes'](_0x31250e));_0x191931[_0x482e('0x2f')]['push']({'element':_0x3c8a16,'attributes':_0x1c0078['length']?Object['fromEntries'](_0x1c0078):null}),_0x1811a4&&_0x191931['insertionRanges'][_0x482e('0x6e')](_0x1811a4),_0x3627d1&&_0x191931[_0x482e('0x95')]['push'](_0x3627d1);},{'priority':_0x482e('0x43')}),_0x9cc208['on']('insertColumns',(_0x28c78b,_0x13cccc)=>{const [_0x26d908,_0x32660c={}]=_0x13cccc;if(!_0x191931)return;const _0x4a92dd=_0x32660c['at']||0x0,_0x4feda0=_0x32660c[_0x482e('0x35')]||0x1;_0x191931[_0x482e('0x45')]=new Array(_0x4feda0)['fill'](_0x4a92dd)[_0x482e('0x8d')]((_0x56193d,_0x4b7030)=>_0x56193d+_0x4b7030);for(const {cell:_0x1c6e91}of _0x9cc208[_0x482e('0x47')](_0x26d908,{'startColumn':_0x4a92dd,'endColumn':_0x4a92dd+_0x4feda0-0x1}))_0x191931['columnInsertionRanges']['push'](_0x9286c4[_0x482e('0x4d')][_0x482e('0x32')](_0x1c6e91));},{'priority':_0x482e('0x12')}),_0x9cc208['on'](_0x482e('0x30'),(_0x2a2bf7,_0x1355bc)=>{const [_0x524108,_0x15a61e={}]=_0x1355bc;if(!_0x191931)return;const _0x88957e=_0x15a61e['at']||0x0,_0x22d66e=_0x15a61e[_0x482e('0x2')]||0x1;_0x191931['rowInsertionIndexes']=new Array(_0x22d66e)[_0x482e('0x84')](_0x88957e)[_0x482e('0x8d')]((_0x5e1c86,_0x41bb06)=>_0x5e1c86+_0x41bb06);for(const {cell:_0x1eb858}of _0x9cc208['createTableWalker'](_0x524108,{'startRow':_0x88957e,'endRow':_0x88957e+_0x22d66e-0x1}))_0x191931['rowInsertionRanges']['push'](_0x9286c4[_0x482e('0x4d')]['createRangeOn'](_0x1eb858));},{'priority':_0x482e('0x12')}),_0x40201c['_descriptionFactory'][_0x482e('0x79')](_0x5b4aac=>{if(_0x5b4aac[_0x482e('0x86')]&&_0x5b4aac[_0x482e('0x86')][_0x482e('0x1b')]('tablePaste'))return _0x5b4aac[_0x482e('0x85')]?{}:{'type':_0x482e('0x33'),'content':_0x32d509(_0x9286c4[_0x482e('0x4b')],_0x482e('0x7e'))};});const _0x1a519c=()=>!0x1;for(const _0x4be70c of['tablePaste','tablePasteColumn',_0x482e('0x20'),_0x482e('0x8')])_0x40201c[_0x482e('0x91')]['registerCustomCallback'](_0x482e('0x33'),_0x4be70c,_0x482e('0xb'),_0x1a519c),_0x40201c['_suggestionFactory'][_0x482e('0x81')](_0x482e('0x4a'),_0x4be70c,_0x482e('0xb'),_0x1a519c),_0x40201c['_suggestionFactory']['registerCustomCallback'](_0x482e('0x52'),_0x4be70c,_0x482e('0xb'),_0x1a519c);_0x40201c[_0x482e('0x91')][_0x482e('0x81')](_0x482e('0x52'),_0x482e('0x8'),_0x482e('0x74'),_0x1a519c),_0x40201c[_0x482e('0x91')]['registerCustomCallback'](_0x482e('0x52'),'tablePasteCell','accept',(_0x3bf10c,_0x28ccd5,_0x4dddab)=>{const _0x4bb3d1=_0x3bf10c['map'](_0xf312c1=>_0xf312c1[_0x482e('0x37')]())[_0x482e('0x10')](_0x5dde9a=>_0x5dde9a),_0x519b8d=new Map(_0x4bb3d1[_0x482e('0x8d')](_0x281c8a=>[_0x281c8a,null]));if(_0x191931)for(const {element:_0x46490d,attributes:_0x15a6a1}of _0x191931[_0x482e('0x2f')])_0x15a6a1&&_0x519b8d['set'](_0x46490d,_0x15a6a1);else{if(_0x4dddab&&_0x4dddab[_0x482e('0x80')])for(const [_0x49d96b,_0x5769e9]of Object[_0x482e('0x5f')](_0x4dddab[_0x482e('0x80')])){const _0x43dde1=_0x9286c4['model'][_0x482e('0x65')][_0x482e('0x34')](_0x49d96b),_0x26ce16=_0x43dde1?_0x43dde1[_0x482e('0x38')]()[_0x482e('0x37')]():null;_0x26ce16&&_0x519b8d['set'](_0x26ce16,_0x5769e9);}}_0x9286c4['model']['change'](_0x56c11e=>{for(const [_0x4e787b,_0x44eeb8]of _0x519b8d)_0x56c11e[_0x482e('0x73')]({...ae,..._0x44eeb8},_0x4e787b);});});const _0x2adbe0=(_0x2d92db,_0x11869c)=>{_0x40201c[_0x482e('0x91')]['registerCustomCallback'](_0x2d92db,'tablePaste',_0x11869c,(_0x444992,_0x2098f8,_0x155914)=>{_0x9286c4['model'][_0x482e('0x5c')](_0x2e8fe3=>{const _0x5f209d=[];for(const _0x4d3ab5 of _0x444992){const _0x5f2c3f=_0x4d3ab5[_0x482e('0x2e')][_0x482e('0x88')];_0x5f2c3f['is'](_0x482e('0x46'),_0x482e('0x83'))&&_0x5f209d[_0x482e('0x6e')](_0x5f2c3f);}_0x40201c[_0x482e('0x91')][_0x482e('0x22')](_0x2d92db,null,_0x11869c)(_0x444992,_0x2098f8,_0x155914);for(const _0x2ff10e of _0x5f209d)_0x482e('0x53')!=_0x2ff10e['root'][_0x482e('0x3a')]&&_0x2e8fe3[_0x482e('0x1d')](_0x2ff10e);});});};_0x2adbe0(_0x482e('0x33'),_0x482e('0x6c')),_0x2adbe0(_0x482e('0x33'),'discard'),_0x2adbe0(_0x482e('0x4a'),_0x482e('0x6c')),_0x2adbe0(_0x482e('0x4a'),_0x482e('0x74')),_0x40201c[_0x482e('0x91')]['registerCustomCallback'](_0x482e('0x33'),'tablePasteRow',_0x482e('0x74'),_0x5dfd80=>{const _0x3e7645=_0x5dfd80[_0x482e('0x8d')](_0x26e408=>_0x26e408['getContainedElement']()),_0xd6683d=_0x3e7645[0x0][_0x482e('0x6b')](_0x482e('0x51')),{minRow:_0x2eda37,maxRow:_0x555cee}=_0x14ab4b['_getCoordsForCells'](_0x3e7645);_0x9cc208[_0x482e('0x3f')](_0xd6683d,{'at':_0x2eda37,'rows':_0x555cee-_0x2eda37+0x1});}),_0x40201c[_0x482e('0x91')][_0x482e('0x81')]('insertion','tablePasteColumn',_0x482e('0x74'),_0x12a04e=>{const _0x43a8ea=_0x12a04e['map'](_0x5f42c0=>_0x5f42c0[_0x482e('0x37')]()),_0x159ecd=_0x43a8ea[0x0][_0x482e('0x6b')](_0x482e('0x51')),{minColumn:_0x9a6835,maxColumn:_0x42a4a0}=_0x14ab4b[_0x482e('0x3')](_0x43a8ea);_0x9cc208[_0x482e('0x5a')](_0x159ecd,{'at':_0x9a6835,'columns':_0x42a4a0-_0x9a6835+0x1});});const _0x24eb72=(_0x34caad,_0xe9a31b)=>{if(!_0xe9a31b['subType']||!_0xe9a31b[_0x482e('0x86')][_0x482e('0x1b')]('tablePaste'))return;const _0x78e9f5=_0xe9a31b['attributes'][_0x482e('0x15')],_0x431a2b=_0x40201c['getSuggestions']()[_0x482e('0x10')](_0x21fa3d=>_0x21fa3d['isInContent']&&_0x21fa3d['attributes']&&_0x21fa3d[_0x482e('0xa')][_0x482e('0x15')]==_0x78e9f5);_0x431a2b[_0x482e('0x54')]&&_0xe9a31b[_0x482e('0x8b')]()[_0x482e('0x54')]!=_0x431a2b[_0x482e('0x54')]&&_0x431a2b['reduce']((_0x595569,_0x5c6780)=>(_0x595569[_0x482e('0x5b')]=_0x5c6780,_0x5c6780[_0x482e('0x85')]=_0x595569,_0x5c6780));};function _0x594ccb(_0x4fba10,_0x421078=!0x0){const {id:_0x238f9d}=_0x40201c[_0x482e('0x25')](_0x4fba10[_0x482e('0x55')]),_0x59de93=[_0x482e('0x59'),_0x482e('0x2c')],_0x4236b2=_0x40201c['activeMarkers'][_0x482e('0x3e')](_0x4fba10[_0x482e('0x55')]);return _0x4236b2&&_0x59de93[_0x482e('0x6e')](_0x482e('0x7b')),{'classes':_0x59de93,'attributes':{'data-suggestion':_0x238f9d},'priority':_0x4236b2&&_0x421078?0xbc2:0xbb8};}_0x40201c['on']('suggestionLoaded',_0x24eb72,{'priority':_0x482e('0x43')}),_0x40201c['on'](_0x482e('0x0'),_0x24eb72,{'priority':_0x482e('0x43')}),_0x9286c4[_0x482e('0x4d')]['document']['registerPostFixer'](()=>{let _0x548e01=!0x1;const _0x61bfd2=Array['from'](_0x9286c4[_0x482e('0x4d')]['document'][_0x482e('0x26')][_0x482e('0x28')]());for(const {name:_0x2a6c82,data:_0x211b70}of _0x61bfd2){const {group:_0x3ee054,type:_0x2c77cd,id:_0x5359af}=_0x40201c[_0x482e('0x25')](_0x2a6c82);if(_0x482e('0x67')!=_0x3ee054||_0x482e('0x4a')!=_0x2c77cd||_0x211b70[_0x482e('0x1e')])continue;if(!_0x40201c['hasSuggestion'](_0x5359af))continue;const _0x180532=_0x40201c['getSuggestion'](_0x5359af)[_0x482e('0x4')](),_0x93f208=_0x9286c4[_0x482e('0x68')][_0x482e('0x34')](_0x482e('0x8e'))['me'];for(const _0x5c4e05 of _0x40201c[_0x482e('0x6d')]()){if(!_0x5c4e05[_0x482e('0x1a')]||_0x5c4e05[_0x482e('0x71')]!=_0x93f208)continue;if(_0x482e('0x52')!=_0x5c4e05['type']||_0x482e('0x8')!=_0x5c4e05['subType'])continue;if(_0x5c4e05[_0x482e('0x4')]()['every'](_0x1c8bf4=>_0x180532[_0x482e('0xf')](_0x2afeac=>_0x2afeac[_0x482e('0x66')](_0x1c8bf4,!0x0))))for(const _0x241cfc of _0x5c4e05['getAllAdjacentSuggestions']())_0x241cfc['isInContent']&&(_0x241cfc[_0x482e('0x74')](),_0x548e01=!0x0);}}return _0x548e01;}),_0x9286c4[_0x482e('0x4d')]['document']['registerPostFixer'](_0x299b67=>{const _0x4af57e=_0x9286c4[_0x482e('0x57')]['get']('redo');if(!_0x4af57e||!_0x4af57e[_0x482e('0x21')][_0x482e('0x4f')](_0x299b67[_0x482e('0x19')]))return!0x1;let _0x133291=!0x1;const _0x438b81=_0x9286c4[_0x482e('0x68')][_0x482e('0x34')](_0x482e('0x8e'))['me'],_0x35f96d=_0x9286c4['model'][_0x482e('0x41')]['differ'][_0x482e('0x60')](),_0x38cf54=Array['from'](_0x9286c4[_0x482e('0x4d')][_0x482e('0x41')][_0x482e('0x26')][_0x482e('0x28')]())[_0x482e('0x10')](({name:_0x2a7bcd,data:_0x9caeca})=>{const {group:_0x4a001f,subType:_0x7853fb,authorId:_0x1bc89f}=_0x40201c[_0x482e('0x25')](_0x2a7bcd);return _0x482e('0x67')==_0x4a001f&&_0x482e('0x8a')==_0x7853fb&&_0x1bc89f==_0x438b81['id']&&!_0x9caeca[_0x482e('0x1e')];});for(const _0x5b49d4 of _0x35f96d){if(_0x482e('0x3b')!=_0x5b49d4[_0x482e('0x77')]||_0x482e('0x83')!=_0x5b49d4['name']||0x1!=_0x5b49d4[_0x482e('0x54')])continue;const _0x7e9986=_0x299b67[_0x482e('0x87')](_0x5b49d4[_0x482e('0x31')],_0x5b49d4[_0x482e('0x31')]['getShiftedBy'](0x1));if(!_0x38cf54['find'](({data:_0x3a8582})=>_0x3a8582[_0x482e('0x92')][_0x482e('0x7d')](_0x7e9986)))for(const {name:_0x3ad39d,data:_0x50caef}of _0x38cf54)if(_0x7e9986['containsRange'](_0x50caef[_0x482e('0x92')])){_0x299b67['updateMarker'](_0x3ad39d,{'range':_0x7e9986}),_0x133291=!0x0;break;}}return _0x133291;}),_0x9286c4[_0x482e('0x4d')]['document'][_0x482e('0x61')](_0x23c548=>{let _0x2796d9=!0x1;const _0x13e1b5=_0x9286c4[_0x482e('0x68')]['get']('Users')['me'],_0x35c535=_0x40201c[_0x482e('0x6d')]()['filter'](_0x236b67=>_0x236b67[_0x482e('0x1a')]&&_0x236b67[_0x482e('0x71')]==_0x13e1b5),_0x4de513=new Set(),_0x4f01d9=new Set();for(const _0xc97a5d of _0x35c535)if(_0x482e('0x8a')==_0xc97a5d[_0x482e('0x86')])for(const _0x3968c1 of _0xc97a5d[_0x482e('0x40')]()){const _0x47e32d=_0x3968c1[_0x482e('0x38')]()['getContainedElement']();if(_0x47e32d){if(_0x47e32d['is'](_0x482e('0x46'),_0x482e('0x83'))&&ce(_0x47e32d)){_0xc97a5d[_0x482e('0x4e')](_0x3968c1[_0x482e('0x6a')]),_0x4de513[_0x482e('0x72')](_0x47e32d),_0x2796d9=!0x0;const _0x4c6a54=_0x47e32d['nextSibling'],_0x1f7fb0=_0x47e32d['previousSibling'],_0x27a6e4=_0x4c6a54&&_0x4c6a54['is'](_0x482e('0x46'),_0x482e('0x83')),_0x4cd230=_0x1f7fb0&&_0x1f7fb0['is']('element',_0x482e('0x83'));_0x27a6e4&&!_0x4de513[_0x482e('0x4f')](_0x4c6a54)&&_0x4f01d9[_0x482e('0x72')](_0x4c6a54),_0x4cd230&&!_0x4de513[_0x482e('0x4f')](_0x1f7fb0)&&_0x4f01d9[_0x482e('0x72')](_0x1f7fb0);}else _0x47e32d['is'](_0x482e('0x46'),_0x482e('0x7c'))&&_0x47e32d[_0x482e('0x64')]&&(_0xc97a5d[_0x482e('0x4e')](_0x3968c1['name']),_0x2796d9=!0x0);}}else{if(_0x482e('0x8')==_0xc97a5d[_0x482e('0x86')]){if(!_0xc97a5d[_0x482e('0xa')]||!_0xc97a5d[_0x482e('0xa')][_0x482e('0x15')])continue;const _0x1768ec=_0xc97a5d[_0x482e('0xa')]['markerAttributes'];if(_0x1768ec&&Object[_0x482e('0x13')](_0x1768ec)[_0x482e('0x54')])continue;const _0xdeec8c=_0xc97a5d[_0x482e('0xa')][_0x482e('0x15')];let _0xa7670c=!0x0,_0x5ba65e=!0x0;for(const _0x14d795 of _0x35c535)if(_0x14d795[_0x482e('0x86')]&&_0x14d795['subType'][_0x482e('0x1b')](_0x482e('0x8a'))){if(!_0x14d795['attributes'][_0x482e('0x15')]){_0x5ba65e=!0x1;break;}if(_0x14d795['id']!=_0xc97a5d['id']&&_0x14d795[_0x482e('0xa')]['tablePasteChainId']==_0xdeec8c){_0xa7670c=!0x1;break;}}_0x5ba65e&&_0xa7670c&&(_0xc97a5d[_0x482e('0x9')](),_0x2796d9=!0x0);}}for(const _0x128e60 of _0x4de513)_0x23c548[_0x482e('0x1c')](_0x128e60);for(const _0x41aa8b of _0x4f01d9)_0x23c548[_0x482e('0x1d')](_0x41aa8b);return _0x2796d9;}),_0x9286c4['conversion'][_0x482e('0x14')]('editingDowncast')[_0x482e('0x56')]({'model':_0x482e('0x62'),'view':(_0x1c1a7d,_0x30557d)=>_0x594ccb(_0x1c1a7d),'converterPriority':_0x482e('0x43')}),_0x9286c4[_0x482e('0x2b')][_0x482e('0x14')]('dataDowncast')[_0x482e('0x56')]({'model':_0x482e('0x62'),'view':(_0x4aa888,_0x481992)=>_0x481992['options']['showSuggestionHighlights']?_0x594ccb(_0x4aa888,!0x1):null,'converterPriority':_0x482e('0x43')});const _0x1c605e=_0x9286c4[_0x482e('0x5d')][_0x482e('0x2a')];this['listenTo'](_0x1c605e['document'],_0x482e('0x63'),(_0xdc72a7,_0x36bd7e)=>{const _0x559879=[];for(const _0x5d3b2f of _0x1c605e[_0x482e('0x7f')](_0x36bd7e['content'])[_0x482e('0x76')]())_0x5d3b2f['is'](_0x482e('0x46'),_0x482e('0x5e'))&&_0x559879[_0x482e('0x6e')](_0x5d3b2f);_0x1c605e['change'](_0x498b2e=>{for(const _0x296a28 of _0x559879)_0x498b2e[_0x482e('0x23')](_0x498b2e[_0x482e('0x7f')](_0x296a28),_0x498b2e['createPositionBefore'](_0x296a28)),_0x498b2e[_0x482e('0x1c')](_0x296a28);});});}}function ce(_0x27256c){if(_0x27256c['isEmpty'])return!0x0;const _0x5dedf6=_0x27256c[_0x482e('0x3d')](0x0);return _0x5dedf6['is'](_0x482e('0x46'),'paragraph')&&_0x5dedf6[_0x482e('0x64')];}function fe(_0x4bb178,_0x14d16c={},_0x33c190){for(const {isAnchor:_0x361882,cellHeight:_0x160952,cellWidth:_0x4e9813}of _0x33c190[_0x482e('0x47')](_0x4bb178,{'includeAllSlots':!0x0,..._0x14d16c}))if(!_0x361882||0x1!=_0x160952||0x1!=_0x4e9813)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cc4=['table','_suggestionFactory','tableWidth','subType','Users','TableColumnResizeEditing','commandParams','getColumnGroupElement','selection','markBlockFormat','resizeTable','formatGroupId','format','has','TrackChangesEditing','handleResizeTableWidthCommand','editor','get','registerCustomCallback','bind','getSelectedElement','getTableColumnsWidths','document','formatBlock','*Format:*\x20resize\x20table','handleSuggestionDescription','resizeTableWidth','accept','getSuggestions','getSuggestionCallback','model','change','formatInline','data','discard','type','afterInit','plugins'];(function(_0xdd34ed,_0x4cc453){const _0x3c33a2=function(_0x2977b4){while(--_0x2977b4){_0xdd34ed['push'](_0xdd34ed['shift']());}};_0x3c33a2(++_0x4cc453);}(_0x4cc4,0x9e));const _0x3c33=function(_0xdd34ed,_0x4cc453){_0xdd34ed=_0xdd34ed-0x0;let _0x3c33a2=_0x4cc4[_0xdd34ed];return _0x3c33a2;};import{Plugin as _0x5e8f93}from'ckeditor5/src/core';import{getTranslation as _0x49cb27}from'../utils/common-translations';export default class It extends _0x5e8f93{[_0x3c33('0x1e')](){if(!this[_0x3c33('0xa')]['plugins'][_0x3c33('0x7')](_0x3c33('0x25')))return;const _0x320fbc=this[_0x3c33('0xa')][_0x3c33('0x1f')][_0x3c33('0xb')](_0x3c33('0x8'));_0x320fbc['enableCommand'](_0x3c33('0x14'),this[_0x3c33('0x9')][_0x3c33('0xd')](this)),_0x320fbc[_0x3c33('0x21')][_0x3c33('0xc')]('formatBlock',_0x3c33('0x4'),_0x3c33('0x15'),_0x320fbc[_0x3c33('0x21')][_0x3c33('0x17')](_0x3c33('0x11'),null,'discard')),_0x320fbc['_suggestionFactory'][_0x3c33('0xc')]('formatBlock','resizeTable',_0x3c33('0x1c'),_0x320fbc[_0x3c33('0x21')][_0x3c33('0x17')]('formatBlock',null,_0x3c33('0x15'))),_0x320fbc['_descriptionFactory']['registerDescriptionCallback'](this[_0x3c33('0x13')][_0x3c33('0xd')](this));}[_0x3c33('0x9')](_0x158bd5,_0x34ef34){const _0x6f000e=this['editor'][_0x3c33('0x1f')]['get'](_0x3c33('0x8')),_0x2fd46a=this['editor']['plugins'][_0x3c33('0xb')](_0x3c33('0x25')),_0x521bff=_0x34ef34[_0x3c33('0x20')]||this[_0x3c33('0xa')]['model'][_0x3c33('0x10')][_0x3c33('0x2')][_0x3c33('0xe')]();this[_0x3c33('0xa')][_0x3c33('0x18')][_0x3c33('0x19')](()=>{const _0x36f60c=_0x2fd46a[_0x3c33('0x1')](_0x521bff);let _0x50b435=_0x36f60c?_0x2fd46a[_0x3c33('0xf')](_0x36f60c):null,_0x3da4a8=_0x521bff['getAttribute'](_0x3c33('0x22'))||null;const _0x3784ab=_0x34ef34['tableWidth']||_0x3da4a8,_0x8c9910=_0x34ef34['columnWidths']||_0x50b435,_0xa34f6b=this['editor']['plugins'][_0x3c33('0xb')](_0x3c33('0x24'))['me'];for(const _0x12b7a4 of _0x6f000e[_0x3c33('0x16')]()){const _0x1311c4=_0x12b7a4['getContainedElement']();if(_0x3c33('0x4')===_0x12b7a4[_0x3c33('0x23')]&&_0x1311c4===_0x521bff){_0x12b7a4['author']!==_0xa34f6b&&_0x12b7a4[_0x3c33('0x1c')]();const _0x1f7340=_0x12b7a4[_0x3c33('0x1b')][_0x3c33('0x0')];_0x3da4a8=_0x1f7340[0x0]['tableWidth'],_0x50b435=_0x1f7340[0x0]['columnWidths'];break;}}_0x158bd5({'table':_0x521bff,'tableWidth':_0x3784ab,'columnWidths':_0x8c9910}),_0x6f000e[_0x3c33('0x3')](_0x521bff,{'commandName':_0x3c33('0x14'),'commandParams':[{'tableWidth':_0x3da4a8,'columnWidths':_0x50b435}],'formatGroupId':_0x3c33('0x4')},[],_0x3c33('0x4'));});}['handleSuggestionDescription'](_0x2a2dca){if(_0x3c33('0x11')!=_0x2a2dca['type']&&_0x3c33('0x1a')!=_0x2a2dca[_0x3c33('0x1d')])return;const {data:_0x483bf3}=_0x2a2dca;if(_0x483bf3&&'resizeTable'===_0x483bf3[_0x3c33('0x5')]){const _0x3f6da1=_0x3c33('0x12');return{'type':_0x3c33('0x6'),'content':_0x49cb27(this['editor']['locale'],_0x3f6da1)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x71c3=['data','_enableDefaultAttributesIntegration','activeMarkers','setAttribute','mapper','setTableRowHeader','data-suggestion','writer','parent','setTableColumnHeader','_acceptFormatSuggestionCallbackFactory','removeAttribute','consumable','includes','cell','showSuggestionHighlights','forceValue','createTableWalker','FORMAT_HEADER_COLUMN','downcastDispatcher','type','unbindElementFromMarkerName','plugins','FORMAT_HEADER_ROW','toViewElement','_handleLegacySuggestions','editor','item','nodeBefore','end','markerRange','options','TrackChangesEditing','FORMAT_REGULAR_COLUMN','editing','commandName','accept','_registerLegacyDescription','ck-suggestion-marker-','ck-suggestion-marker--active','format','headingColumns','getSuggestion','nodeAfter','registerAttributeLabel','bindElementToMarker','stop','markerNameToElements','commandParams','formatBlock','markerName','consume','addClass','_descriptionFactory','name','_splitMarkerName','start','addMarker:suggestion','locale','_suggestionFactory','registerCustomCallback','requires','FORMAT_REGULAR_ROW','removeClass','highest','*Format:*\x20%0','get'];(function(_0x1f7926,_0x71c37a){const _0x48e1ae=function(_0x529646){while(--_0x529646){_0x1f7926['push'](_0x1f7926['shift']());}};_0x48e1ae(++_0x71c37a);}(_0x71c3,0x6c));const _0x48e1=function(_0x1f7926,_0x71c37a){_0x1f7926=_0x1f7926-0x0;let _0x48e1ae=_0x71c3[_0x1f7926];return _0x48e1ae;};import{Plugin as _0x54a305}from'ckeditor5/src/core';import _0x3e5919 from'./table';import{getTranslation as _0x119b48}from'../utils/common-translations';export default class St extends _0x54a305{static get[_0x48e1('0x14')](){return[_0x3e5919];}['afterInit'](){const _0x397c5b=this['editor'];if(!_0x397c5b[_0x48e1('0x30')]['has']('TableEditing'))return;const _0x214ff1=_0x397c5b[_0x48e1('0x11')],_0x255935=_0x397c5b[_0x48e1('0x30')][_0x48e1('0x19')](_0x48e1('0x3a'));_0x255935[_0x48e1('0x1b')](_0x48e1('0x1f'),[],['headingRows']),_0x255935[_0x48e1('0x1b')](_0x48e1('0x23'),[],[_0x48e1('0x0')]),_0x255935[_0x48e1('0xc')]['registerAttributeLabel']('headingRows',_0x119b48(_0x214ff1,_0x48e1('0x31'))),_0x255935[_0x48e1('0xc')][_0x48e1('0x3')](_0x48e1('0x0'),_0x119b48(_0x214ff1,_0x48e1('0x2c'))),this[_0x48e1('0x33')]();}[_0x48e1('0x33')](){const _0x1dc324=this[_0x48e1('0x34')][_0x48e1('0x30')][_0x48e1('0x19')](_0x48e1('0x3a')),_0x12e6c2=this[_0x48e1('0x34')][_0x48e1('0x30')][_0x48e1('0x19')]('TableUtils'),_0x274b5a=this['editor'][_0x48e1('0x30')]['get'](_0x3e5919)[_0x48e1('0x24')]();function _0x19d5b5({showActiveMarker:_0x864fe5=!0x0,setDataAttribute:_0x596b80=!0x0}={}){return(_0x3b3fc2,_0x591edb,_0x8f048d)=>{const {type:_0x527086,id:_0x4fc25a}=_0x1dc324[_0x48e1('0xe')](_0x591edb[_0x48e1('0x9')]),_0x581b4e=_0x1dc324['getSuggestion'](_0x4fc25a),_0x298866=_0x581b4e['data'];if(_0x48e1('0x8')!=_0x581b4e[_0x48e1('0x2e')]||!_0x298866||_0x48e1('0x23')!=_0x298866[_0x48e1('0x3d')])return;if(_0x591edb[_0x48e1('0x35')])return void _0x3b3fc2[_0x48e1('0x5')]();if(!_0x8f048d[_0x48e1('0x26')][_0x48e1('0xa')](_0x591edb[_0x48e1('0x38')],_0x3b3fc2[_0x48e1('0xd')]))return;const _0x1b10ae=_0x591edb[_0x48e1('0x38')][_0x48e1('0xf')][_0x48e1('0x2')],_0x464963=_0x591edb[_0x48e1('0x38')][_0x48e1('0x37')][_0x48e1('0x36')],_0x2d7bf1=_0x1b10ae[_0x48e1('0x22')][_0x48e1('0x22')],{column:_0x35d25a}=_0x12e6c2['getCellLocation'](_0x1b10ae),{column:_0x59d17b}=_0x12e6c2['getCellLocation'](_0x464963);for(let _0x4f4748=_0x35d25a;_0x4f4748<=_0x59d17b;_0x4f4748++){const _0x249de5=_0x12e6c2[_0x48e1('0x2b')](_0x2d7bf1,{'column':_0x4f4748,'includeAllSlots':!0x1});for(const _0x64978f of _0x249de5){const _0x1b1543=_0x64978f[_0x48e1('0x28')],_0xbea763=_0x8f048d[_0x48e1('0x1e')][_0x48e1('0x32')](_0x1b1543);_0x8f048d[_0x48e1('0x21')][_0x48e1('0xb')](_0x48e1('0x40')+_0x527086,_0xbea763),_0x596b80&&_0x8f048d[_0x48e1('0x21')][_0x48e1('0x1d')](_0x48e1('0x20'),_0x4fc25a,_0xbea763),_0x8f048d[_0x48e1('0x1e')][_0x48e1('0x4')](_0xbea763,_0x591edb[_0x48e1('0x9')]),_0x864fe5&&(_0x1dc324[_0x48e1('0x1c')][_0x48e1('0x27')](_0x591edb[_0x48e1('0x9')])?_0x8f048d['writer']['addClass']('ck-suggestion-marker--active',_0xbea763):_0x8f048d[_0x48e1('0x21')]['removeClass'](_0x48e1('0x41'),_0xbea763));}}};}_0x1dc324[_0x48e1('0x12')]['registerCustomCallback'](_0x48e1('0x8'),_0x48e1('0x1f'),_0x48e1('0x3e'),_0x274b5a),_0x1dc324['_suggestionFactory'][_0x48e1('0x13')](_0x48e1('0x8'),_0x48e1('0x23'),_0x48e1('0x3e'),_0x274b5a),this[_0x48e1('0x34')][_0x48e1('0x3c')][_0x48e1('0x2d')]['on']('addMarker:suggestion',_0x19d5b5(),{'priority':_0x48e1('0x17')}),this[_0x48e1('0x34')][_0x48e1('0x1a')][_0x48e1('0x2d')]['on'](_0x48e1('0x10'),(_0x2f12ea,_0x1f1bbf,_0xb32521)=>{_0xb32521[_0x48e1('0x39')][_0x48e1('0x29')]&&_0x19d5b5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2f12ea,_0x1f1bbf,_0xb32521);},{'priority':_0x48e1('0x17')}),this[_0x48e1('0x34')]['editing'][_0x48e1('0x2d')]['on']('removeMarker:suggestion',(_0x57d7f3,_0xfd6c8b,_0x1cd648)=>{const {type:_0x2ffe0d,id:_0x1dfdc7}=_0x1dc324['_splitMarkerName'](_0xfd6c8b['markerName']),_0x5008a6=_0x1dc324[_0x48e1('0x1')](_0x1dfdc7),_0x33f46f=_0x5008a6[_0x48e1('0x1a')];if(_0x48e1('0x8')!=_0x5008a6[_0x48e1('0x2e')]||!_0x33f46f||_0x48e1('0x23')!=_0x33f46f[_0x48e1('0x3d')])return;const _0x218890=_0x1cd648[_0x48e1('0x1e')][_0x48e1('0x6')](_0xfd6c8b[_0x48e1('0x9')]);if(_0x218890)for(const _0x4929e7 of _0x218890)_0x1cd648['writer'][_0x48e1('0x16')](_0x48e1('0x40')+_0x2ffe0d,_0x4929e7),_0x1cd648[_0x48e1('0x21')]['removeClass'](_0x48e1('0x41'),_0x4929e7),_0x1cd648[_0x48e1('0x21')][_0x48e1('0x25')]('data-suggestion',_0x4929e7),_0x1cd648['mapper'][_0x48e1('0x2f')](_0x4929e7,_0xfd6c8b['markerName']);},{'priority':'highest'}),this[_0x48e1('0x3f')]();}[_0x48e1('0x3f')](){const _0x1013ad=this[_0x48e1('0x34')],_0x580497=_0x1013ad[_0x48e1('0x11')];function _0x2255f1(_0x262c8b){return{'type':_0x48e1('0x42'),'content':_0x119b48(_0x580497,_0x48e1('0x18'),_0x262c8b)};}_0x1013ad['plugins'][_0x48e1('0x19')]('TrackChangesEditing')[_0x48e1('0xc')]['registerDescriptionCallback'](_0x21056e=>{if(_0x48e1('0x8')!=_0x21056e[_0x48e1('0x2e')])return;const {data:_0x5b631c}=_0x21056e;if(_0x5b631c){if(_0x48e1('0x1f')==_0x5b631c['commandName']){const _0x573fbd=_0x5b631c[_0x48e1('0x7')][0x0][_0x48e1('0x2a')];return _0x2255f1(_0x119b48(_0x580497,_0x573fbd?_0x48e1('0x31'):_0x48e1('0x15')));}if(_0x48e1('0x23')==_0x5b631c[_0x48e1('0x3d')]){const _0x24a486=_0x5b631c['commandParams'][0x0]['forceValue'];return _0x2255f1(_0x119b48(_0x580497,_0x24a486?_0x48e1('0x2c'):_0x48e1('0x3b')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c75=['findAncestor','set:isEnabled','formatBlock','low','editor','getRanges','get','requires','document','containsRange','commandName','plugins','model','TrackChangesEditing','execute','*Merge\x20cells*','createRangeOn','cell','enableCommand','isInContent','TableEditing','change','push','mergeTableCellDown','_isForcedDefaultExecutionBlock','mergeTableCellRight','size','registerCustomCallback','splitTableCellHorizontally','fromRange','subType','mergeTableCells','_areMergableCells','*Split\x20cell:*\x20vertically','refresh','has','isEnabled','mergeTableCellUp','setSelection','mergeTableCellLeft','getCellLocation','from','markMultiRangeBlockFormat','getAncestors','*Split\x20cell:*\x20horizontally','table','selection','trackChanges','commands','length','locale','map','find','filter','$graveyard','horizontally','accept','splitTableCellVertically','_areSelectedCellsMergable','format','createTableWalker','TableUtils','value','add','forceDefaultExecution','author','direction','root','_suggestionFactory','_descriptionFactory','type','getSelectionAffectedTableCells','registerDescriptionCallback','insertion','stop','getFirstPosition','tableCell','element','highest'];(function(_0x3abc12,_0x2c7551){const _0x42206b=function(_0x487f4f){while(--_0x487f4f){_0x3abc12['push'](_0x3abc12['shift']());}};_0x42206b(++_0x2c7551);}(_0x2c75,0x15a));const _0x4220=function(_0x3abc12,_0x2c7551){_0x3abc12=_0x3abc12-0x0;let _0x42206b=_0x2c75[_0x3abc12];return _0x42206b;};import{Plugin as _0x4fe27f}from'ckeditor5/src/core';import _0x2239ae from'./table';import{LiveRange as _0x5c1c4f}from'ckeditor5/src/engine';import{getTranslation as _0x5b6bcf}from'../utils/common-translations';export default class yt extends _0x4fe27f{static get[_0x4220('0x38')](){return[_0x2239ae];}['afterInit'](){const _0x28040f=this[_0x4220('0x35')],_0x419275=_0x28040f[_0x4220('0x3d')][_0x4220('0x39')][_0x4220('0x10')],_0x4f1735=_0x28040f[_0x4220('0x14')];if(!_0x28040f[_0x4220('0x3c')][_0x4220('0x5')](_0x4220('0x45')))return;const _0x3bee50=_0x28040f[_0x4220('0x3c')]['get'](_0x4220('0x3e')),_0x458944=_0x28040f[_0x4220('0x3c')]['get']('TableUtils'),_0x50efa1=_0x28040f[_0x4220('0x3c')][_0x4220('0x37')](_0x2239ae);_0x50efa1['_tablePostFixingSubtypes'][_0x4220('0x47')](_0x4220('0x1')),_0x3bee50[_0x4220('0x43')](_0x4220('0x1'),()=>{const _0x32d734=_0x458944['getSelectionAffectedTableCells'](_0x28040f['model'][_0x4220('0x39')][_0x4220('0x10')]);_0x28040f[_0x4220('0x3d')][_0x4220('0x46')](()=>{_0x3bee50[_0x4220('0xc')](_0x32d734,{'commandName':_0x4220('0x1'),'commandParams':[]},[],_0x4220('0x1'));});}),_0x28040f[_0x4220('0x12')][_0x4220('0x37')](_0x4220('0x1'))['on'](_0x4220('0x3f'),(_0x533266,_0x28726d)=>{_0x28040f[_0x4220('0x12')][_0x4220('0x37')](_0x4220('0x11'))[_0x4220('0x20')]&&(_0x28726d[_0x4220('0x13')]>0x0&&_0x28726d[_0x28726d[_0x4220('0x13')]-0x1]&&_0x28726d[_0x28726d['length']-0x1][_0x4220('0x22')]||_0x3bee50[_0x4220('0x49')]||this['_areSelectedCellsMergable']()||_0x533266['stop']());},{'priority':_0x4220('0x30')});for(const _0x4de529 of[_0x4220('0x7'),'mergeTableCellRight',_0x4220('0x48'),_0x4220('0x9')]){const _0x5658a9=_0x28040f[_0x4220('0x12')][_0x4220('0x37')](_0x4de529);_0x3bee50['enableCommand'](_0x4de529,()=>{const _0x172669=_0x28040f[_0x4220('0x3d')][_0x4220('0x39')]['selection'][_0x4220('0x2d')]()[_0x4220('0xd')]()[_0x4220('0x16')](_0x43a25d=>_0x43a25d['is'](_0x4220('0x2f'),_0x4220('0x2e'))),_0x28225f=_0x5658a9['value'];_0x28040f[_0x4220('0x3d')][_0x4220('0x46')](()=>{_0x3bee50[_0x4220('0xc')]([_0x172669,_0x28225f],{'commandName':'mergeTableCells','commandParams':[]},[],_0x4220('0x1'));});});}for(const _0x5d92bd of[_0x4220('0x1b'),_0x4220('0x4d')]){const _0x479ce7=_0x28040f[_0x4220('0x12')][_0x4220('0x37')](_0x5d92bd);_0x3bee50[_0x4220('0x43')](_0x5d92bd,()=>{const _0x1fd3a6=_0x458944[_0x4220('0x29')](_0x28040f[_0x4220('0x3d')]['document'][_0x4220('0x10')])[0x0],_0xbefe95=_0x1fd3a6[_0x4220('0x31')](_0x4220('0xf')),{column:_0x3b3b31,row:_0x354738}=_0x458944[_0x4220('0xa')](_0x1fd3a6);let _0x73482=[];if(_0x4220('0x19')==_0x479ce7[_0x4220('0x24')]){const _0x206df6=_0x458944[_0x4220('0x1e')](_0xbefe95,{'startRow':_0x354738,'endRow':_0x354738,'includeAllSlots':!0x0});_0x73482=Array[_0x4220('0xb')](_0x206df6)['map'](_0x507d33=>_0x507d33[_0x4220('0x42')]);}else{const _0x283d15=_0x458944[_0x4220('0x1e')](_0xbefe95,{'column':_0x3b3b31,'includeAllSlots':!0x0});_0x73482=Array[_0x4220('0xb')](_0x283d15)[_0x4220('0x15')](_0x3aa70a=>_0x3aa70a[_0x4220('0x42')]);}_0x28040f[_0x4220('0x3d')][_0x4220('0x46')](_0x212576=>{_0x3bee50['markBlockFormat'](_0x212576[_0x4220('0x41')](_0x1fd3a6),{'commandName':_0x5d92bd,'commandParams':[]},_0x73482,_0x5d92bd);});});}_0x3bee50[_0x4220('0x27')]['registerDescriptionCallback'](_0x5aa29e=>{if('formatBlock'!=_0x5aa29e['type']&&'formatInline'!=_0x5aa29e[_0x4220('0x28')])return;const {data:_0x4d38ae}=_0x5aa29e;return _0x4d38ae&&_0x4220('0x1')==_0x4d38ae[_0x4220('0x3b')]?{'type':_0x4220('0x1d'),'content':_0x5b6bcf(_0x4f1735,_0x4220('0x40'))}:void 0x0;}),_0x3bee50['_descriptionFactory'][_0x4220('0x2a')](_0x121c2f=>{if('formatBlock'!=_0x121c2f[_0x4220('0x28')]&&'formatInline'!=_0x121c2f[_0x4220('0x28')])return;const {data:_0x1902bf}=_0x121c2f;return _0x1902bf?'splitTableCellVertically'==_0x1902bf[_0x4220('0x3b')]?{'type':'format','content':_0x5b6bcf(_0x4f1735,_0x4220('0x3'))}:_0x4220('0x4d')==_0x1902bf[_0x4220('0x3b')]?{'type':_0x4220('0x1d'),'content':_0x5b6bcf(_0x4f1735,_0x4220('0xe'))}:void 0x0:void 0x0;});const _0x3d6b10=_0x50efa1['_acceptFormatSuggestionCallbackFactory']();for(const _0x1a5e20 of[_0x4220('0x7'),_0x4220('0x4a'),'mergeTableCellDown','mergeTableCellLeft'])_0x3bee50[_0x4220('0x26')][_0x4220('0x4c')](_0x4220('0x33'),_0x1a5e20,'accept',_0x3d6b10);for(const _0x3ea0ff of[_0x4220('0x1b'),_0x4220('0x4d')])_0x3bee50[_0x4220('0x26')][_0x4220('0x4c')](_0x4220('0x33'),_0x3ea0ff,'accept',_0x3d6b10);_0x3bee50[_0x4220('0x26')][_0x4220('0x4c')]('formatBlock','mergeTableCells',_0x4220('0x1a'),_0x4a3aaf=>{_0x28040f['model']['change'](_0x12d8e0=>{const _0x3148c7=Array['from'](_0x419275[_0x4220('0x36')]())[_0x4220('0x15')](_0x2030c9=>_0x5c1c4f[_0x4220('0x4e')](_0x2030c9));_0x12d8e0[_0x4220('0x8')](_0x4a3aaf),_0x28040f[_0x4220('0x12')][_0x4220('0x37')]('mergeTableCells')[_0x4220('0x4')](),_0x28040f['execute'](_0x4220('0x1'),{'forceDefaultExecution':!0x0});const _0xd36370=_0x3148c7[_0x4220('0x17')](_0x241d61=>_0x4220('0x18')!=_0x241d61[_0x4220('0x25')]['rootName']);_0xd36370[_0x4220('0x13')]>0x0&&_0x12d8e0['setSelection'](_0xd36370);for(const _0xa9d31c of _0x3148c7)_0xa9d31c['detach']();});});for(const _0x3ebb6f of[_0x4220('0x7'),_0x4220('0x48'),_0x4220('0x9'),'mergeTableCellRight']){const _0x4becae=_0x28040f['commands']['get'](_0x3ebb6f);_0x4becae['on'](_0x4220('0x32'),(_0x41b4b1,_0x56e8e9,_0xa5002f)=>{if(_0xa5002f){const _0xfd9c26=_0x28040f[_0x4220('0x3d')]['document'][_0x4220('0x10')]['getFirstPosition']()[_0x4220('0xd')]()['find'](_0x44924e=>_0x44924e['is'](_0x4220('0x2f'),_0x4220('0x2e')));this[_0x4220('0x2')](_0x4becae[_0x4220('0x20')],_0xfd9c26)||(_0x41b4b1['return']=!0x1,_0x41b4b1[_0x4220('0x2c')]());}},{'priority':_0x4220('0x34')});}}[_0x4220('0x1c')](){const _0x482b02=this['editor'][_0x4220('0x12')][_0x4220('0x37')](_0x4220('0x1')),_0x471b34=this[_0x4220('0x35')]['plugins'][_0x4220('0x37')](_0x4220('0x1f'));if(!_0x482b02[_0x4220('0x6')])return!0x1;const _0x5b4327=_0x471b34['getSelectionAffectedTableCells'](this[_0x4220('0x35')][_0x4220('0x3d')][_0x4220('0x39')]['selection']);for(const _0x1420cd of _0x5b4327)for(const _0x5166ae of _0x5b4327)if(_0x1420cd!=_0x5166ae&&!this[_0x4220('0x2')](_0x1420cd,_0x5166ae))return!0x1;return!0x0;}[_0x4220('0x2')](_0x2baca9,_0x234521){const _0xa5c43f=this[_0x4220('0x35')][_0x4220('0x3c')][_0x4220('0x37')]('TrackChangesEditing'),_0x53a376=this[_0x4220('0x35')]['model']['createRangeOn'](_0x2baca9),_0x396221=this[_0x4220('0x35')][_0x4220('0x3d')][_0x4220('0x41')](_0x234521),_0x1beaca=new Set(),_0x136967=new Set();for(const _0x226223 of _0xa5c43f['getSuggestions']())if((_0x4220('0x2b')==_0x226223['type']||'deletion'==_0x226223[_0x4220('0x28')]||_0x4220('0x1')==_0x226223[_0x4220('0x0')])&&_0x226223[_0x4220('0x44')])for(const _0x30ce16 of _0x226223[_0x4220('0x36')]())_0x30ce16[_0x4220('0x3a')](_0x53a376,!0x0)&&_0x1beaca[_0x4220('0x21')](_0x226223['type']+':'+_0x226223[_0x4220('0x23')]['id']),_0x30ce16[_0x4220('0x3a')](_0x396221,!0x0)&&_0x136967[_0x4220('0x21')](_0x226223[_0x4220('0x28')]+':'+_0x226223[_0x4220('0x23')]['id']);if(_0x1beaca[_0x4220('0x4b')]!=_0x136967[_0x4220('0x4b')])return!0x1;for(const _0x2b4164 of _0x1beaca)if(!_0x136967[_0x4220('0x5')](_0x2b4164))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5851=['commands','tableOfContents','ELEMENT_TABLE_OF_CONTENTS','get','enableCommand','plugins','editor','TrackChangesEditing','locale','afterInit','insertTableOfContents'];(function(_0x56e9d9,_0x585109){const _0x18ed7c=function(_0x2272b1){while(--_0x2272b1){_0x56e9d9['push'](_0x56e9d9['shift']());}};_0x18ed7c(++_0x585109);}(_0x5851,0x1d1));const _0x18ed=function(_0x56e9d9,_0x585109){_0x56e9d9=_0x56e9d9-0x0;let _0x18ed7c=_0x5851[_0x56e9d9];return _0x18ed7c;};import{Plugin as _0x426da0}from'ckeditor5/src/core';import{getTranslation as _0x40fa98}from'../utils/common-translations';export default class _t extends _0x426da0{[_0x18ed('0x6')](){const _0x5c339c=this[_0x18ed('0x3')];if(!_0x5c339c[_0x18ed('0x8')]['get'](_0x18ed('0x7')))return;_0x5c339c[_0x18ed('0x2')][_0x18ed('0x0')]('TrackChangesEditing')[_0x18ed('0x1')]('insertTableOfContents');const _0x564a76=_0x5c339c['plugins'][_0x18ed('0x0')](_0x18ed('0x4')),_0x4dbbaa=_0x5c339c[_0x18ed('0x5')];_0x564a76['_descriptionFactory']['registerElementLabel'](_0x18ed('0x9'),_0x5237d3=>_0x40fa98(_0x4dbbaa,_0x18ed('0xa'),_0x5237d3));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xafab=['has','tableCellHeight','tableCellBackgroundColor','join','data','editor','registerDescriptionCallback','TrackChangesTableProperties','tableProperties','accept','locale','tableBackgroundColor','tableBorderColor','getAttribute','formatBlock','registerCustomCallback','handleDiscardAction','start','tableBorderStyle','tableAlignment','TableCellPropertiesEditing','tableCellPadding','get','removeAttribute','change','table','tableCellProperties','tableWidth','tableCellVerticalAlignment','_getSuggestion','tableCellWidth','tableBorderWidth','batch','findAncestor','pluginName','tableCellBorderWidth','tableHeight','_suggestionFactory','format','*Format:*\x20change\x20table\x20cell\x20properties','handleSuggestionDescription','model','getSuggestionCallback','_descriptionFactory','TrackChangesEditing','selection','discard','_handlePropertyChange','nodeAfter','plugins','subType','tableCellHorizontalAlignment','enqueueChange','enableCommand','document'];(function(_0x5cc543,_0xafabe6){const _0x50b605=function(_0x16c715){while(--_0x16c715){_0x5cc543['push'](_0x5cc543['shift']());}};_0x50b605(++_0xafabe6);}(_0xafab,0x1ea));const _0x50b6=function(_0x5cc543,_0xafabe6){_0x5cc543=_0x5cc543-0x0;let _0x50b605=_0xafab[_0x5cc543];return _0x50b605;};import{Plugin as _0x413448}from'ckeditor5/src/core';import{getTranslation as _0x4ca49d}from'../utils/common-translations';export default class Mt extends _0x413448{constructor(_0x1bcd76){super(_0x1bcd76),this[_0x50b6('0xd')]=[_0x50b6('0x11'),_0x50b6('0x17'),_0x50b6('0x24'),_0x50b6('0x18'),_0x50b6('0x20'),_0x50b6('0x29'),_0x50b6('0x10')],this[_0x50b6('0x1f')]=['tableCellBorderColor','tableCellBorderStyle',_0x50b6('0x28'),_0x50b6('0x1a'),_0x50b6('0x23'),_0x50b6('0x6'),_0x50b6('0x7'),_0x50b6('0x1'),_0x50b6('0x21')];}static get[_0x50b6('0x27')](){return _0x50b6('0xc');}['afterInit'](){const _0x178d6b=this[_0x50b6('0xa')]['plugins'][_0x50b6('0x1b')](_0x50b6('0x31'));if(this[_0x50b6('0xa')][_0x50b6('0x36')][_0x50b6('0x5')]('TablePropertiesEditing')){for(const _0x368d20 of this[_0x50b6('0xd')])_0x178d6b[_0x50b6('0x3')](_0x368d20,(_0x2bbfc4,_0x28f9e7)=>{const _0x59a475=this[_0x50b6('0xa')][_0x50b6('0x2e')][_0x50b6('0x4')]['selection']['getFirstPosition']()[_0x50b6('0x26')](_0x50b6('0x1e'));this[_0x50b6('0x34')](_0x368d20,[_0x59a475],this[_0x50b6('0xd')],'tableProperties',_0x2bbfc4,_0x28f9e7);});_0x178d6b[_0x50b6('0x2a')]['registerCustomCallback'](_0x50b6('0x13'),_0x50b6('0xd'),_0x50b6('0xe'),_0x178d6b[_0x50b6('0x2a')][_0x50b6('0x2f')](_0x50b6('0x13'),null,'discard')),_0x178d6b['_suggestionFactory'][_0x50b6('0x14')](_0x50b6('0x13'),'tableProperties',_0x50b6('0x33'),(_0x1bfab2,_0x27def3)=>this[_0x50b6('0x15')](this['tableProperties'],_0x1bfab2,_0x27def3)),_0x178d6b[_0x50b6('0x2a')]['registerCustomCallback'](_0x50b6('0x13'),_0x50b6('0xd'),_0x50b6('0x8'),()=>!0x1);}if(this[_0x50b6('0xa')]['plugins']['has'](_0x50b6('0x19'))){for(const _0x2a51d6 of this[_0x50b6('0x1f')])_0x178d6b[_0x50b6('0x3')](_0x2a51d6,(_0x378a42,_0x4d7cdb)=>{const _0x144443=this[_0x50b6('0xa')]['plugins'][_0x50b6('0x1b')]('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model'][_0x50b6('0x4')][_0x50b6('0x32')]);this[_0x50b6('0x34')](_0x2a51d6,_0x144443,this[_0x50b6('0x1f')],_0x50b6('0x1f'),_0x378a42,_0x4d7cdb);});_0x178d6b['_suggestionFactory'][_0x50b6('0x14')](_0x50b6('0x13'),'tableCellProperties',_0x50b6('0xe'),_0x178d6b[_0x50b6('0x2a')][_0x50b6('0x2f')](_0x50b6('0x13'),null,_0x50b6('0x33'))),_0x178d6b[_0x50b6('0x2a')][_0x50b6('0x14')](_0x50b6('0x13'),'tableCellProperties',_0x50b6('0x33'),(_0x32b17b,_0x4b7b13)=>this['handleDiscardAction'](this[_0x50b6('0x1f')],_0x32b17b,_0x4b7b13)),_0x178d6b['_suggestionFactory'][_0x50b6('0x14')](_0x50b6('0x13'),_0x50b6('0x1f'),'join',()=>!0x1);}_0x178d6b[_0x50b6('0x30')][_0x50b6('0xb')](_0x2ca218=>this['handleSuggestionDescription'](_0x2ca218));}[_0x50b6('0x34')](_0x499c0d,_0x13e2d6,_0xa9f4f0,_0x55c5e4,_0x53515a,_0x5d5613){const _0x472532=this['editor']['plugins']['get'](_0x50b6('0x31'));this[_0x50b6('0xa')][_0x50b6('0x2e')][_0x50b6('0x2')](_0x5d5613[_0x50b6('0x25')],()=>{for(const _0xfbe6a7 of _0x13e2d6){if(this[_0x50b6('0x22')](_0xfbe6a7,_0x55c5e4))_0x53515a(_0x5d5613);else{const _0x1cdcb7={};for(const _0x35d586 of _0xa9f4f0){const _0x25d002=_0xfbe6a7[_0x50b6('0x12')](_0x35d586);void 0x0!==_0x25d002&&(_0x1cdcb7[_0x35d586]=_0x25d002);}_0x53515a(_0x5d5613),_0x472532['markBlockFormat'](_0xfbe6a7,{'commandParams':[_0x1cdcb7]},[],_0x55c5e4);}}});}['handleDiscardAction'](_0x3cdbc9,_0x505b3,_0x3cccd1){const _0x2e3847=_0x505b3[0x0][_0x50b6('0x16')][_0x50b6('0x35')],_0x4abb54=_0x3cccd1['commandParams'][0x0];this[_0x50b6('0xa')][_0x50b6('0x2e')][_0x50b6('0x1d')](_0x30e5d2=>{for(const _0x3e517d of _0x3cdbc9)void 0x0!==_0x4abb54[_0x3e517d]?_0x30e5d2['setAttribute'](_0x3e517d,_0x4abb54[_0x3e517d],_0x2e3847):_0x30e5d2[_0x50b6('0x1c')](_0x3e517d,_0x2e3847);});}[_0x50b6('0x2d')](_0x3d423a){if(_0x3d423a[_0x50b6('0x9')])switch(_0x3d423a[_0x50b6('0x0')]){case _0x50b6('0xd'):return{'type':_0x50b6('0x2b'),'content':_0x4ca49d(this[_0x50b6('0xa')][_0x50b6('0xf')],'*Format:*\x20change\x20table\x20properties')};case _0x50b6('0x1f'):return{'type':_0x50b6('0x2b'),'content':_0x4ca49d(this[_0x50b6('0xa')][_0x50b6('0xf')],_0x50b6('0x2c'))};}}[_0x50b6('0x22')](_0x244478,_0x12ffba){const _0x307019=this[_0x50b6('0xa')]['plugins'][_0x50b6('0x1b')]('TrackChangesEditing');for(const _0x590e44 of _0x307019['getSuggestions']({'skipNotAttached':!0x0})){const _0x5ebec7=_0x590e44['getContainedElement']();if(_0x590e44[_0x50b6('0x0')]===_0x12ffba&&_0x5ebec7===_0x244478)return _0x590e44;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f55=['Template','plugins','has','enableCommand','editor','afterInit','get'];(function(_0x83a6df,_0x2f55af){const _0x305ede=function(_0x2515b9){while(--_0x2515b9){_0x83a6df['push'](_0x83a6df['shift']());}};_0x305ede(++_0x2f55af);}(_0x2f55,0x86));const _0x305e=function(_0x83a6df,_0x2f55af){_0x83a6df=_0x83a6df-0x0;let _0x305ede=_0x2f55[_0x83a6df];return _0x305ede;};import{Plugin as _0x3d7809}from'ckeditor5/src/core';export default class vt extends _0x3d7809{[_0x305e('0x4')](){const _0x39e9bb=this[_0x305e('0x3')];_0x39e9bb['plugins'][_0x305e('0x1')](_0x305e('0x6'))&&_0x39e9bb[_0x305e('0x0')][_0x305e('0x5')]('TrackChangesEditing')[_0x305e('0x2')]('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1904=['getChangedMarkers','model','title-content','editor','document','has','schema','element','end','registerPostFixer','getNearestSelectionRange','forward','_descriptionFactory','removeMarker','isCollapsed','locale','afterInit','isTouching','plugins','updateMarker','createRange','start','newRange','suggestion','TrackChangesEditing','registerElementLabel','from'];(function(_0x132590,_0x19044d){const _0x1a1ac8=function(_0xa7493d){while(--_0xa7493d){_0x132590['push'](_0x132590['shift']());}};_0x1a1ac8(++_0x19044d);}(_0x1904,0xb4));const _0x1a1a=function(_0x132590,_0x19044d){_0x132590=_0x132590-0x0;let _0x1a1ac8=_0x1904[_0x132590];return _0x1a1ac8;};import{Plugin as _0x4805bf}from'ckeditor5/src/core';import{getTranslation as _0x4343b5}from'../utils/common-translations';export default class Ct extends _0x4805bf{[_0x1a1a('0x19')](){const _0x2c746b=this[_0x1a1a('0xc')];if(!_0x2c746b[_0x1a1a('0x0')][_0x1a1a('0xe')]('Title'))return;const _0x35789f=_0x2c746b[_0x1a1a('0x0')]['get'](_0x1a1a('0x6'));_0x35789f[_0x1a1a('0x15')][_0x1a1a('0x7')](_0x1a1a('0xb'),()=>_0x4343b5(_0x2c746b[_0x1a1a('0x18')],'ELEMENT_TITLE')),_0x2c746b[_0x1a1a('0xa')][_0x1a1a('0xd')][_0x1a1a('0x12')](_0x5aa857=>{let _0x1c2bf2=!0x1;const _0x363481=Array[_0x1a1a('0x8')](_0x2c746b['model'][_0x1a1a('0xd')]['differ'][_0x1a1a('0x9')]());for(const {name:_0x2d5d45,data:_0x568205}of _0x363481){const {group:_0x26a5f9}=_0x35789f['_splitMarkerName'](_0x2d5d45);if(_0x1a1a('0x5')!==_0x26a5f9||!_0x568205['newRange'])continue;const _0x1819ac=_0x568205[_0x1a1a('0x4')],_0x58c4d3=_0x1819ac['end']['nodeBefore'];if(!_0x58c4d3||!_0x58c4d3['is'](_0x1a1a('0x10'),_0x1a1a('0xb')))continue;if(!_0x1819ac[_0x1a1a('0x3')][_0x1a1a('0x1a')](_0x1819ac['end']))continue;const _0x1a7969=_0x2c746b[_0x1a1a('0xa')][_0x1a1a('0xf')][_0x1a1a('0x13')](_0x1819ac[_0x1a1a('0x11')],_0x1a1a('0x14'));if(_0x1a7969&&_0x1a7969[_0x1a1a('0x17')]){const _0x1107ab=_0x5aa857[_0x1a1a('0x2')](_0x1819ac[_0x1a1a('0x3')],_0x1a7969[_0x1a1a('0x3')]);_0x1107ab['isEqual'](_0x1819ac)||(_0x5aa857[_0x1a1a('0x1')](_0x2d5d45,{'range':_0x1107ab}),_0x1c2bf2=!0x0);}_0x1c2bf2||(_0x5aa857[_0x1a1a('0x16')](_0x2d5d45),_0x1c2bf2=!0x0);}return _0x1c2bf2;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16ce=['UndoEditing','editor','has','afterInit','plugins','enableCommand','redo','TrackChangesEditing'];(function(_0x50d7b2,_0x16cecf){const _0x5072d4=function(_0x1bf8b4){while(--_0x1bf8b4){_0x50d7b2['push'](_0x50d7b2['shift']());}};_0x5072d4(++_0x16cecf);}(_0x16ce,0x1b7));const _0x5072=function(_0x50d7b2,_0x16cecf){_0x50d7b2=_0x50d7b2-0x0;let _0x5072d4=_0x16ce[_0x50d7b2];return _0x5072d4;};import{Plugin as _0x1c22e2}from'ckeditor5/src/core';export default class Dt extends _0x1c22e2{[_0x5072('0x4')](){const _0x3069ca=this[_0x5072('0x2')],_0x2130d3=_0x3069ca[_0x5072('0x5')]['get'](_0x5072('0x0'));_0x3069ca[_0x5072('0x5')][_0x5072('0x3')](_0x5072('0x1'))&&(_0x2130d3[_0x5072('0x6')]('undo'),_0x2130d3[_0x5072('0x6')](_0x5072('0x7')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46cb=['getAttribute','bindElementToMarker','getCustomProperty','parent','schema','hasAttribute','get','element','listIndent','push','start','previousPosition','getWalker','isBlock','elementEnd','listItem','addHighlight','addClass','isContent','type','toViewElement','mapper','consumable','ck-suggestion-marker-','createRangeOn','markerName','writer','name','markerRange','TrackChangesEditing','ck-suggestion-marker--active','includes','model'];(function(_0x22139e,_0x46cba9){const _0x2d9d43=function(_0x118306){while(--_0x118306){_0x22139e['push'](_0x22139e['shift']());}};_0x2d9d43(++_0x46cba9);}(_0x46cb,0xf3));const _0x2d9d=function(_0x22139e,_0x46cba9){_0x22139e=_0x22139e-0x0;let _0x2d9d43=_0x46cb[_0x22139e];return _0x2d9d43;};export function getRangesWithAttribute(_0xb6866a,_0x5bad4b,_0xfa2091){const _0x19dcd7=[];for(const _0x33c4f8 of _0x5bad4b['getItems']())_0x33c4f8[_0x2d9d('0x1a')](_0xb6866a)&&_0x19dcd7['push'](_0xfa2091[_0x2d9d('0xc')](_0x33c4f8));return _0x19dcd7;}export function getElementsAffectedByListItemRename(_0x424311){const _0x28b56f=[];if(_0x424311['is'](_0x2d9d('0x1c'),_0x2d9d('0x3'))){let _0x5287bb=_0x424311['nextSibling'];for(;_0x5287bb&&_0x5287bb['is'](_0x2d9d('0x1c'),'listItem')&&_0x5287bb[_0x2d9d('0x15')](_0x2d9d('0x1d'))>0x0;)_0x28b56f[_0x2d9d('0x1e')](_0x5287bb),_0x5287bb=_0x5287bb['nextSibling'];}return _0x28b56f;}export function downcastSplitMergeMarker(_0x81af50,_0x14cc61,{showActiveMarker:_0x35a266=!0x0}={}){const _0x54be60=_0x81af50['plugins'][_0x2d9d('0x1b')](_0x2d9d('0x11'));return(_0xa379e9,_0xedc5f8,_0x52f2be)=>{if(!_0x52f2be[_0x2d9d('0xa')]['test'](_0xedc5f8['markerRange'],_0xa379e9[_0x2d9d('0xf')]))return;const _0x4502ab=_0xedc5f8[_0x2d9d('0x10')][_0x2d9d('0x0')](),_0x5f4d4a=_0xedc5f8[_0x2d9d('0x10')][_0x2d9d('0x1f')],_0x11121b=_0x81af50[_0x2d9d('0x14')][_0x2d9d('0x19')];let _0x374d4b=null,_0x13f855=null,_0x4f577c=!0x1,_0x136c39=!0x1;for(const _0x1adb7e of _0x4502ab){const _0x5af5fc=_0x1adb7e['item'];_0x4f577c=_0x4f577c||_0x11121b[_0x2d9d('0x6')](_0x5af5fc);const _0x4966b6=_0x52f2be['mapper'][_0x2d9d('0x8')](_0x5af5fc);if(_0x4966b6&&_0x4966b6[_0x2d9d('0x17')](_0x2d9d('0x4')))return;_0x2d9d('0x2')==_0x1adb7e[_0x2d9d('0x7')]&&(_0x11121b[_0x2d9d('0x1')](_0x5af5fc)&&!_0x11121b['isLimit'](_0x5af5fc)&&(_0x5af5fc['nextSibling']||_0x5f4d4a['isAtEnd']?_0x374d4b&&_0x374d4b[_0x2d9d('0x18')]==_0x5af5fc||(_0x374d4b=_0x5af5fc,_0x3e12f6(_0x1adb7e[_0x2d9d('0x20')]),_0x136c39=!0x0):_0x13f855=_0x13f855||_0x1adb7e[_0x2d9d('0x20')]));}function _0x3e12f6(_0x3e1b97){const _0x302f4e=_0x52f2be[_0x2d9d('0xe')]['createUIElement']('span',{'class':_0x2d9d('0xb')+_0x14cc61}),_0x1b8423=_0x52f2be[_0x2d9d('0x9')]['toViewPosition'](_0x3e1b97);_0x35a266&&_0x54be60['activeMarkers'][_0x2d9d('0x13')](_0xedc5f8['markerName'])&&_0x52f2be[_0x2d9d('0xe')][_0x2d9d('0x5')](_0x2d9d('0x12'),_0x302f4e),_0x52f2be['writer']['insert'](_0x1b8423,_0x302f4e),_0x52f2be[_0x2d9d('0x9')][_0x2d9d('0x16')](_0x302f4e,_0xedc5f8[_0x2d9d('0xd')]);}_0x4f577c||_0x136c39||!_0x13f855||_0x3e12f6(_0x13f855);};}
|