@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240124.0 → 0.0.0-nightly-20240125.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/casechange.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/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/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.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 _0x1559=['register','getRanges','suggestion:formatBlock:tablePasteCell','removeRows','name','redo','getSuggestion','locale','Users','model','row','rowInsertionIndexes','suggestion','getColumnIndexes','createRangeOn','getContainedElement','TrackChangesEditing','set','tablePasteRow','discard','nodeAfter','getShiftedBy','isEqual','tableCellBorderColor','TableClipboard','newRange','formatBlock','fill','position','options','_suggestionFactory','requires','markerAttributes','plugins','includes','view','TableUtils','accept','tableCellHorizontalAlignment','for','dataDowncast','tableCellPadding','filter','_splitMarkerName','showSuggestionHighlights','getSelectionAffectedTableCells','getRowIndexes','markerToHighlight','tableCellBackgroundColor','conversion','differ','getTableIfOnlyTableInContent','isEmpty','getAllAdjacentSuggestions','content','keys','document','unwrap','some','attributes','insertContent','createPositionBefore','ck-suggestion-marker--active','clipboardOutput','tableCell','editor','low','change','batch','findAncestor','join','registerPostFixer','isInContent','getRange','tablePaste','getSuggestions','getColumns','getAttributes','trackChanges','documentSelection','add','deletion','selection','*Replace\x20table\x20cells*','move','markerName','markers','remove','getMarkers','start','getChangedMarkers','schema','first','markMultiRangeInsertion','subType','element','find','tableCellBorderStyle','removeMarker','rowInsertionRanges','columns','get','elementToElement','cells','removeMarkers','tablePasteChainId','_tablePostFixingSubtypes','paragraph','fromEntries','commands','stop','table','return','previous','ck-suggestion-marker-insertion','removeColumns','length','endRow','has','column','value','getChildren','forceDefaultExecution','getChild','_createdBatches','columnInsertionIndexes','afterInit','last','startsWith','createRange','activeMarkers','push','insertRows','containsRange','next','ck-suggestion-marker','insertion','author','high','tablePasteCell','endColumn','from','root','tableCellBorderWidth','tablePasteColumn','insertionRanges','map','wrap','getRows','editing','oldRange','registerCustomCallback','createRangeIn','suggestionUnloaded','columnInsertionRanges','cell','suggestion-td','listenTo','_isForcedDefaultExecutionBlock','tableCellSuggestion','type','_getCoordsForCells','createTableWalker','insert','createElement','setAttributes'];(function(_0x28f99a,_0x15598f){const _0x544b75=function(_0x312935){while(--_0x312935){_0x28f99a['push'](_0x28f99a['shift']());}};_0x544b75(++_0x15598f);}(_0x1559,0x110));const _0x544b=function(_0x28f99a,_0x15598f){_0x28f99a=_0x28f99a-0x0;let _0x544b75=_0x1559[_0x28f99a];return _0x544b75;};import{getTranslation as _0x2879e3}from'../utils/common-translations.js';import{Plugin as _0x12b9a6}from'ckeditor5/src/core.js';import{uid as _0x4622f5,priorities as _0x4f34fd}from'ckeditor5/src/utils.js';import _0x4b63f3 from'./table.js';const fe=[_0x544b('0x25'),_0x544b('0x53'),_0x544b('0x9d'),_0x544b('0x62'),'tableCellVerticalAlignment',_0x544b('0x6c'),_0x544b('0x65')],be=Object['fromEntries'](fe[_0x544b('0x28')](_0x15d117=>[_0x15d117,null]));export default class At extends _0x12b9a6{static get[_0x544b('0x5b')](){return[_0x4b63f3];}[_0x544b('0x14')](){const _0x1adb6a=this[_0x544b('0x7d')];if(!_0x1adb6a['plugins'][_0x544b('0xc')]('TableClipboard'))return;const _0xfcb76e=_0x1adb6a[_0x544b('0x5d')][_0x544b('0xa1')](_0x544b('0x4c')),_0x5831d4=_0x1adb6a['plugins']['get'](_0x544b('0x60')),_0x2a89cb=_0x1adb6a[_0x544b('0x5d')]['get'](_0x4b63f3),_0x4da2b1=_0x1adb6a['plugins'][_0x544b('0xa1')]('TableClipboard');_0x2a89cb[_0x544b('0x0')][_0x544b('0x19')]('tablePasteRow',_0x544b('0x26')),_0x1adb6a[_0x544b('0x45')][_0x544b('0x97')][_0x544b('0x3c')](_0x544b('0x35'),{'allowIn':_0x544b('0x7c'),'allowContentOf':_0x544b('0x7c'),'isLimit':!0x0}),_0x1adb6a[_0x544b('0x6d')][_0x544b('0xa2')]({'model':_0x544b('0x35'),'view':_0x544b('0x32')});let _0x256f34=null;_0x1adb6a[_0x544b('0x45')]['on'](_0x544b('0x78'),(_0x401547,_0x1982b5)=>{const [_0x3bc54c,_0xe23e63]=_0x1982b5,_0x413014=_0x1982b5[_0x1982b5[_0x544b('0xa')]-0x1];_0x413014&&_0x413014[_0x544b('0x10')]||_0xfcb76e[_0x544b('0x34')]||this[_0x544b('0x7d')][_0x544b('0x3')][_0x544b('0xa1')](_0x544b('0x8a'))[_0x544b('0xe')]&&function(_0x376d04,_0x4526ff,_0x8bacb7,_0x1a42f8,_0x3f7979){if(_0x4526ff&&!_0x4526ff['is'](_0x544b('0x8b')))return!0x1;const _0x3ac084=_0x3f7979[_0x544b('0x6f')](_0x376d04,_0x8bacb7);if(!_0x3ac084||!de(_0x3ac084,void 0x0,_0x1a42f8))return!0x1;const _0x14a563=_0x1a42f8[_0x544b('0x69')](_0x8bacb7['document'][_0x544b('0x8e')]);if(!_0x14a563[_0x544b('0xa')])return!0x1;const _0x18bc92=_0x14a563[0x0]['findAncestor']('table'),_0x5ca2a4=_0x1a42f8[_0x544b('0x6a')](_0x14a563),_0x5d1b3d=_0x1a42f8[_0x544b('0x49')](_0x14a563),_0x5280f8={'startRow':_0x5ca2a4[_0x544b('0x98')],'endRow':_0x5ca2a4[_0x544b('0x15')],'startColumn':_0x5d1b3d[_0x544b('0x98')],'endColumn':_0x5d1b3d[_0x544b('0x15')]};return 0x1==_0x14a563['length']&&(_0x5280f8[_0x544b('0xb')]+=_0x1a42f8[_0x544b('0x2a')](_0x3ac084)-0x1,_0x5280f8[_0x544b('0x22')]+=_0x1a42f8[_0x544b('0x88')](_0x3ac084)-0x1),de(_0x18bc92,_0x5280f8,_0x1a42f8);}(_0x3bc54c,_0xe23e63,_0x1adb6a[_0x544b('0x45')],_0x5831d4,_0x4da2b1)&&(_0x401547[_0x544b('0x4')](),_0x256f34={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1adb6a[_0x544b('0x45')][_0x544b('0x7f')](()=>{_0x1adb6a[_0x544b('0x45')][_0x544b('0x78')](_0x1982b5[0x0],_0x1982b5[0x1],_0x1982b5[0x2],{'forceDefaultExecution':!0x0});const _0x30c989=_0x4622f5(),{rowInsertionRanges:_0x44d3b8,columnInsertionRanges:_0x4d5e39,insertionRanges:_0x53aa1e,deletionRanges:_0x4c8d9a,cells:_0x149e65}=_0x256f34;_0x44d3b8[_0x544b('0xa')]&&_0xfcb76e['markMultiRangeInsertion'](_0x44d3b8,_0x544b('0x4e'),{'tablePasteChainId':_0x30c989}),_0x4d5e39['length']&&_0xfcb76e[_0x544b('0x99')](_0x4d5e39,_0x544b('0x26'),{'tablePasteChainId':_0x30c989}),_0x53aa1e[_0x544b('0xa')]&&_0xfcb76e['markMultiRangeInsertion'](_0x53aa1e,_0x544b('0x86'),{'tablePasteChainId':_0x30c989,'skipNestingCheck':!0x0}),_0x4c8d9a[_0x544b('0xa')]&&_0xfcb76e['markMultiRangeDeletion'](_0x4c8d9a,_0x544b('0x86'),{'tablePasteChainId':_0x30c989,'skipNestingCheck':!0x0});const _0x768b0c=_0xfcb76e['markMultiRangeBlockFormat'](_0x149e65[_0x544b('0x28')](({element:_0x7a539e})=>_0x7a539e),{'formatGroupId':_0x4622f5()},[],'tablePasteCell',{'tablePasteChainId':_0x30c989});if(_0x768b0c){const _0x14f48f=_0x768b0c['getMarkers'](),_0x36fd7a=[];for(const {element:_0x27bcc4,attributes:_0x3b9976}of _0x149e65){if(!_0x3b9976)continue;const _0x3facb6=_0x1adb6a['model'][_0x544b('0x4a')](_0x27bcc4),_0x588be9=_0x14f48f[_0x544b('0x9c')](_0x328801=>_0x328801['getRange']()[_0x544b('0x52')](_0x3facb6));_0x588be9&&_0x36fd7a[_0x544b('0x19')]([_0x588be9[_0x544b('0x40')],_0x3b9976]);}_0x36fd7a[_0x544b('0xa')]&&_0x768b0c['setAttribute']('markerAttributes',Object[_0x544b('0x2')](_0x36fd7a));}_0x256f34=null;}));},{'priority':_0x4f34fd[_0x544b('0x20')]+0xa}),_0x1adb6a[_0x544b('0x5d')][_0x544b('0xa1')](_0x544b('0x54'))['on']('_replaceTableSlotCell',(_0x1e481e,_0x5d6181)=>{const [_0x44274c,_0x16728e,,_0x1bf6b5]=_0x5d6181;if(!_0x256f34)return;_0x1e481e[_0x544b('0x4')]();const _0xb60dcd=_0x44274c[_0x544b('0x31')],_0x129d76=_0x16728e,_0x429478=ge(_0xb60dcd),_0x374e77=ge(_0x129d76);_0x1e481e[_0x544b('0x6')]=_0xb60dcd;let _0x1e3859=null,_0x5d271f=null;if(_0x374e77||_0x429478){if(_0x429478&&!_0x374e77){_0x1bf6b5['remove'](_0xb60dcd['getChild'](0x0));for(const _0x167970 of Array['from'](_0x129d76[_0x544b('0xf')]()))_0x1bf6b5[_0x544b('0x39')](_0x167970,_0xb60dcd,'end');const _0x43ff5e=_0x256f34[_0x544b('0x47')][_0x544b('0x5e')](_0x44274c[_0x544b('0x46')]),_0x3d122d=_0x256f34[_0x544b('0x13')]['includes'](_0x44274c[_0x544b('0xd')]);_0x43ff5e||_0x3d122d||(_0x1e3859=_0x1bf6b5[_0x544b('0x2e')](_0xb60dcd));}else _0x374e77&&!_0x429478&&(_0x5d271f=_0x1bf6b5[_0x544b('0x2e')](_0xb60dcd));}else{const _0x524cb0=_0x1bf6b5[_0x544b('0x3a')](_0x544b('0x35')),_0x3e24a2=_0x1bf6b5['createElement'](_0x544b('0x35'));_0x1bf6b5[_0x544b('0x29')](_0x1bf6b5[_0x544b('0x2e')](_0xb60dcd),_0x3e24a2),_0x1bf6b5[_0x544b('0x39')](_0x524cb0,_0xb60dcd,0x0);for(const _0x4a8bb8 of Array[_0x544b('0x23')](_0x129d76[_0x544b('0xf')]()))_0x1bf6b5[_0x544b('0x39')](_0x4a8bb8,_0x524cb0,'end');_0x1e3859=_0x1bf6b5[_0x544b('0x4a')](_0x524cb0),_0x5d271f=_0x1bf6b5[_0x544b('0x4a')](_0x3e24a2);}const _0x1974e2=Array[_0x544b('0x23')](_0x129d76[_0x544b('0x89')]())[_0x544b('0x66')](([_0x15e9f8])=>fe[_0x544b('0x5e')](_0x15e9f8));_0x256f34['cells']['push']({'element':_0xb60dcd,'attributes':_0x1974e2[_0x544b('0xa')]?Object['fromEntries'](_0x1974e2):null}),_0x1e3859&&_0x256f34[_0x544b('0x27')][_0x544b('0x19')](_0x1e3859),_0x5d271f&&_0x256f34['deletionRanges']['push'](_0x5d271f);},{'priority':_0x544b('0x20')}),_0x5831d4['on']('insertColumns',(_0x109fcc,_0x3e92ac)=>{const [_0x397a99,_0x3e042b={}]=_0x3e92ac;if(!_0x256f34)return;const _0x43a4e9=_0x3e042b['at']||0x0,_0x5377d1=_0x3e042b[_0x544b('0xa0')]||0x1;_0x256f34[_0x544b('0x13')]=new Array(_0x5377d1)[_0x544b('0x57')](_0x43a4e9)['map']((_0x11e9fe,_0x534cfa)=>_0x11e9fe+_0x534cfa);for(const {cell:_0x1a70b5}of _0x5831d4[_0x544b('0x38')](_0x397a99,{'startColumn':_0x43a4e9,'endColumn':_0x43a4e9+_0x5377d1-0x1}))_0x256f34[_0x544b('0x30')][_0x544b('0x19')](_0x1adb6a[_0x544b('0x45')]['createRangeOn'](_0x1a70b5));},{'priority':_0x544b('0x7e')}),_0x5831d4['on'](_0x544b('0x1a'),(_0x4ae2d1,_0x446dd4)=>{const [_0x2a4b3d,_0x312178={}]=_0x446dd4;if(!_0x256f34)return;const _0x50b9cf=_0x312178['at']||0x0,_0x51cef2=_0x312178['rows']||0x1;_0x256f34[_0x544b('0x47')]=new Array(_0x51cef2)['fill'](_0x50b9cf)[_0x544b('0x28')]((_0x5f2461,_0xf0d4d7)=>_0x5f2461+_0xf0d4d7);for(const {cell:_0x461c44}of _0x5831d4[_0x544b('0x38')](_0x2a4b3d,{'startRow':_0x50b9cf,'endRow':_0x50b9cf+_0x51cef2-0x1}))_0x256f34[_0x544b('0x9f')][_0x544b('0x19')](_0x1adb6a['model']['createRangeOn'](_0x461c44));},{'priority':_0x544b('0x7e')}),_0xfcb76e['_descriptionFactory']['registerDescriptionCallback'](_0x27e297=>{if(_0x27e297[_0x544b('0x9a')]&&_0x27e297['subType'][_0x544b('0x16')](_0x544b('0x86')))return _0x27e297[_0x544b('0x7')]?{}:{'type':_0x544b('0x1e'),'content':_0x2879e3(_0x1adb6a[_0x544b('0x43')],_0x544b('0x8f'))};});const _0x392543=()=>!0x1;for(const _0x351c78 of[_0x544b('0x86'),_0x544b('0x26'),'tablePasteRow','tablePasteCell'])_0xfcb76e[_0x544b('0x5a')][_0x544b('0x2d')]('insertion',_0x351c78,_0x544b('0x82'),_0x392543),_0xfcb76e['_suggestionFactory'][_0x544b('0x2d')](_0x544b('0x8d'),_0x351c78,_0x544b('0x82'),_0x392543),_0xfcb76e['_suggestionFactory'][_0x544b('0x2d')](_0x544b('0x56'),_0x351c78,_0x544b('0x82'),_0x392543);_0xfcb76e[_0x544b('0x5a')][_0x544b('0x2d')](_0x544b('0x56'),'tablePasteCell',_0x544b('0x4f'),_0x392543),_0xfcb76e['_suggestionFactory'][_0x544b('0x2d')](_0x544b('0x56'),_0x544b('0x21'),_0x544b('0x61'),(_0x50ad4b,_0x3d33e0,_0x4e7d25)=>{const _0x477f38=_0x50ad4b[_0x544b('0x28')](_0x28e5d1=>_0x28e5d1['getContainedElement']())[_0x544b('0x66')](_0x2fe9ac=>_0x2fe9ac),_0x36998f=new Map(_0x477f38['map'](_0x450b6a=>[_0x450b6a,null]));if(_0x256f34)for(const {element:_0x27e490,attributes:_0x1195a4}of _0x256f34[_0x544b('0xa3')])_0x1195a4&&_0x36998f[_0x544b('0x4d')](_0x27e490,_0x1195a4);else{if(_0x4e7d25&&_0x4e7d25[_0x544b('0x5c')])for(const [_0x5e0554,_0x5b00b4]of Object['entries'](_0x4e7d25[_0x544b('0x5c')])){const _0x350fd5=_0x1adb6a[_0x544b('0x45')][_0x544b('0x92')]['get'](_0x5e0554),_0x3fa8f5=_0x350fd5?_0x350fd5[_0x544b('0x85')]()[_0x544b('0x4b')]():null;_0x3fa8f5&&_0x36998f['set'](_0x3fa8f5,_0x5b00b4);}}_0x1adb6a[_0x544b('0x45')][_0x544b('0x7f')](_0x5f57d3=>{for(const [_0x5a44b4,_0x18c532]of _0x36998f)_0x5f57d3[_0x544b('0x3b')]({...be,..._0x18c532},_0x5a44b4);});});const _0x9f52ed=(_0x189d96,_0x1532a5)=>{_0xfcb76e[_0x544b('0x5a')][_0x544b('0x2d')](_0x189d96,'tablePaste',_0x1532a5,(_0x3ef3ad,_0x597f4a,_0x28039a)=>{_0x1adb6a['model'][_0x544b('0x7f')](_0x26c859=>{const _0x180a7c=[];for(const _0x5a09d2 of _0x3ef3ad){const _0x5b86e3=_0x5a09d2[_0x544b('0x95')][_0x544b('0x50')];_0x5b86e3['is'](_0x544b('0x9b'),_0x544b('0x35'))&&_0x180a7c[_0x544b('0x19')](_0x5b86e3);}_0xfcb76e[_0x544b('0x5a')]['getSuggestionCallback'](_0x189d96,null,_0x1532a5)(_0x3ef3ad,_0x597f4a,_0x28039a);for(const _0x46e027 of _0x180a7c)'$graveyard'!=_0x46e027[_0x544b('0x24')]['rootName']&&_0x26c859[_0x544b('0x75')](_0x46e027);});});};_0x9f52ed(_0x544b('0x1e'),_0x544b('0x61')),_0x9f52ed(_0x544b('0x1e'),'discard'),_0x9f52ed(_0x544b('0x8d'),_0x544b('0x61')),_0x9f52ed(_0x544b('0x8d'),'discard'),_0xfcb76e[_0x544b('0x5a')][_0x544b('0x2d')](_0x544b('0x1e'),'tablePasteRow','discard',_0x469065=>{const _0x188bd9=_0x469065[_0x544b('0x28')](_0x4b0221=>_0x4b0221[_0x544b('0x4b')]()),_0x4cbb72=_0x188bd9[0x0][_0x544b('0x81')](_0x544b('0x5')),{minRow:_0xfa3eeb,maxRow:_0x7202ac}=_0x2a89cb[_0x544b('0x37')](_0x188bd9);_0x5831d4[_0x544b('0x3f')](_0x4cbb72,{'at':_0xfa3eeb,'rows':_0x7202ac-_0xfa3eeb+0x1});}),_0xfcb76e[_0x544b('0x5a')][_0x544b('0x2d')]('insertion',_0x544b('0x26'),'discard',_0x5736b2=>{const _0xdd7d4f=_0x5736b2[_0x544b('0x28')](_0x44bdf2=>_0x44bdf2[_0x544b('0x4b')]()),_0x322c65=_0xdd7d4f[0x0]['findAncestor'](_0x544b('0x5')),{minColumn:_0x535d8e,maxColumn:_0x5c4f1a}=_0x2a89cb[_0x544b('0x37')](_0xdd7d4f);_0x5831d4[_0x544b('0x9')](_0x322c65,{'at':_0x535d8e,'columns':_0x5c4f1a-_0x535d8e+0x1});});const _0x49373b=(_0x5ad178,_0x5b587b)=>{if(!_0x5b587b[_0x544b('0x9a')]||!_0x5b587b[_0x544b('0x9a')][_0x544b('0x16')](_0x544b('0x86')))return;const _0x4b4338=_0x5b587b['attributes'][_0x544b('0xa5')],_0x33bbfe=_0xfcb76e[_0x544b('0x87')]()['filter'](_0x44c9a1=>_0x44c9a1[_0x544b('0x84')]&&_0x44c9a1['attributes']&&_0x44c9a1['attributes'][_0x544b('0xa5')]==_0x4b4338);_0x33bbfe[_0x544b('0xa')]&&_0x5b587b[_0x544b('0x71')]()['length']!=_0x33bbfe[_0x544b('0xa')]&&_0x33bbfe['reduce']((_0x44ba75,_0x38c636)=>(_0x44ba75[_0x544b('0x1c')]=_0x38c636,_0x38c636[_0x544b('0x7')]=_0x44ba75,_0x38c636));};function _0x4c655b(_0x3ae496,_0xb53efb=!0x0){const {id:_0x5a923e}=_0xfcb76e['_splitMarkerName'](_0x3ae496[_0x544b('0x91')]),_0x18bd33=[_0x544b('0x1d'),_0x544b('0x8')],_0x50eb2f=_0xfcb76e[_0x544b('0x18')]['includes'](_0x3ae496[_0x544b('0x91')]);return _0x50eb2f&&_0x18bd33[_0x544b('0x19')](_0x544b('0x7a')),{'classes':_0x18bd33,'attributes':{'data-suggestion':_0x5a923e},'priority':_0x50eb2f&&_0xb53efb?0xbc2:0xbb8};}_0xfcb76e['on']('suggestionLoaded',_0x49373b,{'priority':'high'}),_0xfcb76e['on'](_0x544b('0x2f'),_0x49373b,{'priority':_0x544b('0x20')}),_0x1adb6a[_0x544b('0x45')]['document'][_0x544b('0x83')](()=>{let _0x55e332=!0x1;const _0x483dbf=Array[_0x544b('0x23')](_0x1adb6a[_0x544b('0x45')][_0x544b('0x74')][_0x544b('0x6e')][_0x544b('0x96')]());for(const {name:_0x3b1c77,data:_0x4ddab8}of _0x483dbf){const {group:_0x290bd8,type:_0x1be752,id:_0x13fb61}=_0xfcb76e[_0x544b('0x67')](_0x3b1c77);if(_0x544b('0x48')!=_0x290bd8||_0x544b('0x8d')!=_0x1be752||_0x4ddab8[_0x544b('0x2c')])continue;if(!_0xfcb76e['hasSuggestion'](_0x13fb61))continue;const _0x1a42e5=_0xfcb76e[_0x544b('0x42')](_0x13fb61)[_0x544b('0x3d')](),_0x35ec45=_0x1adb6a['plugins'][_0x544b('0xa1')]('Users')['me'];for(const _0x975e70 of _0xfcb76e[_0x544b('0x87')]()){if(!_0x975e70[_0x544b('0x84')]||_0x975e70[_0x544b('0x1f')]!=_0x35ec45)continue;if(_0x544b('0x56')!=_0x975e70[_0x544b('0x36')]||_0x544b('0x21')!=_0x975e70[_0x544b('0x9a')])continue;if(_0x975e70[_0x544b('0x3d')]()['every'](_0x4a2d7e=>_0x1a42e5[_0x544b('0x76')](_0x45138a=>_0x45138a[_0x544b('0x1b')](_0x4a2d7e,!0x0))))for(const _0x812632 of _0x975e70[_0x544b('0x71')]())_0x812632[_0x544b('0x84')]&&(_0x812632[_0x544b('0x4f')](),_0x55e332=!0x0);}}return _0x55e332;}),_0x1adb6a[_0x544b('0x45')]['document']['registerPostFixer'](_0x1edc12=>{const _0x2d7c7e=_0x1adb6a[_0x544b('0x3')]['get'](_0x544b('0x41'));if(!_0x2d7c7e||!_0x2d7c7e[_0x544b('0x12')][_0x544b('0xc')](_0x1edc12[_0x544b('0x80')]))return!0x1;let _0x3b8d76=!0x1;const _0x25b498=_0x1adb6a[_0x544b('0x5d')]['get'](_0x544b('0x44'))['me'],_0x1bc2b4=_0x1adb6a[_0x544b('0x45')]['document'][_0x544b('0x6e')]['getChanges'](),_0x4d12b2=Array['from'](_0x1adb6a['model'][_0x544b('0x74')]['differ']['getChangedMarkers']())[_0x544b('0x66')](({name:_0x5c1027,data:_0x3482bf})=>{const {group:_0x38f290,subType:_0x7068e7,authorId:_0xb7075a}=_0xfcb76e[_0x544b('0x67')](_0x5c1027);return _0x544b('0x48')==_0x38f290&&_0x544b('0x86')==_0x7068e7&&_0xb7075a==_0x25b498['id']&&!_0x3482bf[_0x544b('0x2c')];});for(const _0x3833d3 of _0x1bc2b4){if(_0x544b('0x39')!=_0x3833d3['type']||'tableCellSuggestion'!=_0x3833d3[_0x544b('0x40')]||0x1!=_0x3833d3['length'])continue;const _0x524f25=_0x1edc12[_0x544b('0x17')](_0x3833d3[_0x544b('0x58')],_0x3833d3['position'][_0x544b('0x51')](0x1));if(!_0x4d12b2[_0x544b('0x9c')](({data:_0x4608bd})=>_0x4608bd[_0x544b('0x55')][_0x544b('0x52')](_0x524f25)))for(const {name:_0x31040d,data:_0x520cac}of _0x4d12b2)if(_0x524f25[_0x544b('0x1b')](_0x520cac['newRange'])){_0x1edc12['updateMarker'](_0x31040d,{'range':_0x524f25}),_0x3b8d76=!0x0;break;}}return _0x3b8d76;}),_0x1adb6a[_0x544b('0x45')][_0x544b('0x74')][_0x544b('0x83')](_0x4af83f=>{let _0x24e6f=!0x1;const _0x548814=_0x1adb6a[_0x544b('0x5d')][_0x544b('0xa1')](_0x544b('0x44'))['me'],_0x527959=_0xfcb76e[_0x544b('0x87')]()[_0x544b('0x66')](_0x2c5909=>_0x2c5909[_0x544b('0x84')]&&_0x2c5909[_0x544b('0x1f')]==_0x548814),_0x154370=new Set(),_0x1908d1=new Set();for(const _0x48b7db of _0x527959)if('tablePaste'==_0x48b7db[_0x544b('0x9a')])for(const _0x5bf095 of _0x48b7db[_0x544b('0x94')]()){const _0x82c651=_0x5bf095['getRange']()[_0x544b('0x4b')]();if(_0x82c651){if(_0x82c651['is'](_0x544b('0x9b'),'tableCellSuggestion')&&ge(_0x82c651)){_0x48b7db[_0x544b('0x9e')](_0x5bf095[_0x544b('0x40')]),_0x154370[_0x544b('0x8c')](_0x82c651),_0x24e6f=!0x0;const _0x40b94f=_0x82c651['nextSibling'],_0x1d2f0b=_0x82c651['previousSibling'],_0x3653a4=_0x40b94f&&_0x40b94f['is'](_0x544b('0x9b'),'tableCellSuggestion'),_0x530055=_0x1d2f0b&&_0x1d2f0b['is'](_0x544b('0x9b'),_0x544b('0x35'));_0x3653a4&&!_0x154370['has'](_0x40b94f)&&_0x1908d1['add'](_0x40b94f),_0x530055&&!_0x154370['has'](_0x1d2f0b)&&_0x1908d1[_0x544b('0x8c')](_0x1d2f0b);}else _0x82c651['is']('element','paragraph')&&_0x82c651[_0x544b('0x70')]&&(_0x48b7db[_0x544b('0x9e')](_0x5bf095[_0x544b('0x40')]),_0x24e6f=!0x0);}}else{if('tablePasteCell'==_0x48b7db[_0x544b('0x9a')]){if(!_0x48b7db['attributes']||!_0x48b7db[_0x544b('0x77')][_0x544b('0xa5')])continue;const _0x4f3ae9=_0x48b7db[_0x544b('0x77')]['markerAttributes'];if(_0x4f3ae9&&Object[_0x544b('0x73')](_0x4f3ae9)[_0x544b('0xa')])continue;const _0x40ab64=_0x48b7db[_0x544b('0x77')]['tablePasteChainId'];let _0x2ad30c=!0x0,_0x132ea1=!0x0;for(const _0x255557 of _0x527959)if(_0x255557[_0x544b('0x9a')]&&_0x255557[_0x544b('0x9a')][_0x544b('0x16')](_0x544b('0x86'))){if(!_0x255557[_0x544b('0x77')][_0x544b('0xa5')]){_0x132ea1=!0x1;break;}if(_0x255557['id']!=_0x48b7db['id']&&_0x255557[_0x544b('0x77')][_0x544b('0xa5')]==_0x40ab64){_0x2ad30c=!0x1;break;}}_0x132ea1&&_0x2ad30c&&(_0x48b7db[_0x544b('0xa4')](),_0x24e6f=!0x0);}}for(const _0x35da58 of _0x154370)_0x4af83f['remove'](_0x35da58);for(const _0x308120 of _0x1908d1)_0x4af83f[_0x544b('0x75')](_0x308120);return _0x24e6f;}),_0x1adb6a[_0x544b('0x6d')]['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x39ec08,_0x5f44d3)=>_0x4c655b(_0x39ec08),'converterPriority':'high'}),_0x1adb6a['conversion'][_0x544b('0x63')](_0x544b('0x64'))[_0x544b('0x6b')]({'model':_0x544b('0x3e'),'view':(_0x5f3613,_0x9ee268)=>_0x9ee268[_0x544b('0x59')][_0x544b('0x68')]?_0x4c655b(_0x5f3613,!0x1):null,'converterPriority':_0x544b('0x20')});const _0x1f4d57=_0x1adb6a[_0x544b('0x2b')][_0x544b('0x5f')];this[_0x544b('0x33')](_0x1f4d57[_0x544b('0x74')],_0x544b('0x7b'),(_0x179168,_0x1a7e6b)=>{const _0x1d9a90=[];for(const _0x22cfae of _0x1f4d57[_0x544b('0x2e')](_0x1a7e6b[_0x544b('0x72')])['getItems']())_0x22cfae['is'](_0x544b('0x9b'),_0x544b('0x32'))&&_0x1d9a90[_0x544b('0x19')](_0x22cfae);_0x1f4d57[_0x544b('0x7f')](_0x1b0a28=>{for(const _0x15a25a of _0x1d9a90)_0x1b0a28[_0x544b('0x90')](_0x1b0a28[_0x544b('0x2e')](_0x15a25a),_0x1b0a28[_0x544b('0x79')](_0x15a25a)),_0x1b0a28[_0x544b('0x93')](_0x15a25a);});});}}function ge(_0x4f985b){if(_0x4f985b[_0x544b('0x70')])return!0x0;const _0x361791=_0x4f985b[_0x544b('0x11')](0x0);return _0x361791['is'](_0x544b('0x9b'),_0x544b('0x1'))&&_0x361791[_0x544b('0x70')];}function de(_0x8c7713,_0x398702={},_0xa8df77){for(const {isAnchor:_0x5987eb,cellHeight:_0x3459d3,cellWidth:_0x683c6f}of _0xa8df77[_0x544b('0x38')](_0x8c7713,{'includeAllSlots':!0x0,..._0x398702}))if(!_0x5987eb||0x1!=_0x3459d3||0x1!=_0x683c6f)return!0x1;return!0x0;}
|
|
23
|
+
const _0x4858=['getMarkers','from','getSelectionAffectedTableCells','registerPostFixer','setAttribute','rowInsertionIndexes','updateMarker','getContainedElement','table','documentSelection','wrap','trackChanges','$graveyard','column','tableCellBorderWidth','move','isInContent','_getCoordsForCells','tablePasteChainId','editingDowncast','remove','*Replace\x20table\x20cells*','getItems','markerToHighlight','deletionRanges','suggestionLoaded','TrackChangesEditing','startsWith','ck-suggestion-marker-insertion','filter','fromEntries','Users','fill','return','getRange','endRow','entries','getTableIfOnlyTableInContent','document','_splitMarkerName','elementToElement','for','_descriptionFactory','accept','get','tableCell','selection','isEqual','removeRows','length','high','element','removeMarkers','setAttributes','createElement','view','suggestion-td','removeMarker','first','includes','_tablePostFixingSubtypes','getChild','tableCellSuggestion','add','suggestion','conversion','map','createTableWalker','content','has','cell','markerName','root','redo','position','insertion','editing','plugins','_createdBatches','endColumn','tableCellBackgroundColor','paragraph','row','locale','removeColumns','tableCellBorderStyle','createRangeIn','columns','rootName','createRangeOn','markMultiRangeInsertion','low','unwrap','oldRange','getChildren','tablePasteColumn','tableCellHorizontalAlignment','getSuggestions','newRange','name','getChangedMarkers','createRange','suggestion:formatBlock:tablePasteCell','_replaceTableSlotCell','markMultiRangeBlockFormat','author','editor','createPositionBefore','getSuggestion','push','keys','join','getAllAdjacentSuggestions','findAncestor','previousSibling','nodeAfter','columnInsertionIndexes','insertRows','find','getRanges','set','tablePaste','tablePasteCell','change','last','every','value','rows','isEmpty','deletion','registerDescriptionCallback','markerAttributes','forceDefaultExecution','commands','start','attributes','tableCellVerticalAlignment','TableClipboard','dataDowncast','type','end','ck-suggestion-marker','TableUtils','subType','previous','containsRange','afterInit','getAttributes','model','tablePasteRow','clipboardOutput','markers','registerCustomCallback','insert','getShiftedBy','_suggestionFactory','formatBlock','_isForcedDefaultExecutionBlock','discard','differ','rowInsertionRanges','stop','getColumns','next','cells','tableCellBorderColor'];(function(_0x507008,_0x485840){const _0x57a8c6=function(_0x403b44){while(--_0x403b44){_0x507008['push'](_0x507008['shift']());}};_0x57a8c6(++_0x485840);}(_0x4858,0x1b6));const _0x57a8=function(_0x507008,_0x485840){_0x507008=_0x507008-0x0;let _0x57a8c6=_0x4858[_0x507008];return _0x57a8c6;};import{getTranslation as _0x36bc7b}from'../utils/common-translations.js';import{Plugin as _0x251019}from'ckeditor5/src/core.js';import{uid as _0xb103d2,priorities as _0x4c577d}from'ckeditor5/src/utils.js';import _0xe75d62 from'./table.js';const fe=[_0x57a8('0x4a'),_0x57a8('0x3b'),_0x57a8('0x91'),_0x57a8('0x9c'),_0x57a8('0x1e'),_0x57a8('0x8c'),'tableCellPadding'],be=Object[_0x57a8('0x5a')](fe[_0x57a8('0x7e')](_0x1eebd1=>[_0x1eebd1,null]));export default class At extends _0x251019{static get['requires'](){return[_0xe75d62];}[_0x57a8('0x28')](){const _0x4562ba=this[_0x57a8('0x0')];if(!_0x4562ba[_0x57a8('0x89')][_0x57a8('0x81')]('TableClipboard'))return;const _0x3b6047=_0x4562ba[_0x57a8('0x89')][_0x57a8('0x68')](_0x57a8('0x56')),_0x15c3c3=_0x4562ba[_0x57a8('0x89')]['get'](_0x57a8('0x24')),_0x58a803=_0x4562ba['plugins']['get'](_0xe75d62),_0x2de75a=_0x4562ba[_0x57a8('0x89')][_0x57a8('0x68')](_0x57a8('0x1f'));_0x58a803[_0x57a8('0x78')][_0x57a8('0x3')](_0x57a8('0x2b'),_0x57a8('0x9b')),_0x4562ba[_0x57a8('0x2a')]['schema']['register'](_0x57a8('0x7a'),{'allowIn':_0x57a8('0x69'),'allowContentOf':_0x57a8('0x69'),'isLimit':!0x0}),_0x4562ba[_0x57a8('0x7d')][_0x57a8('0x64')]({'model':_0x57a8('0x7a'),'view':_0x57a8('0x74')});let _0x2b1187=null;_0x4562ba[_0x57a8('0x2a')]['on']('insertContent',(_0x173848,_0xd2c9a9)=>{const [_0x4f8ff1,_0x54cd10]=_0xd2c9a9,_0x337872=_0xd2c9a9[_0xd2c9a9[_0x57a8('0x6d')]-0x1];_0x337872&&_0x337872[_0x57a8('0x1a')]||_0x3b6047[_0x57a8('0x33')]||this[_0x57a8('0x0')]['commands'][_0x57a8('0x68')](_0x57a8('0x47'))[_0x57a8('0x14')]&&function(_0x32f301,_0x4db286,_0x54010d,_0x384d13,_0x4f6381){if(_0x4db286&&!_0x4db286['is'](_0x57a8('0x45')))return!0x1;const _0x2af3ca=_0x4f6381[_0x57a8('0x61')](_0x32f301,_0x54010d);if(!_0x2af3ca||!de(_0x2af3ca,void 0x0,_0x384d13))return!0x1;const _0x44484b=_0x384d13[_0x57a8('0x3e')](_0x54010d[_0x57a8('0x62')][_0x57a8('0x6a')]);if(!_0x44484b['length'])return!0x1;const _0x3f04cd=_0x44484b[0x0][_0x57a8('0x7')]('table'),_0x3fddbb=_0x384d13['getRowIndexes'](_0x44484b),_0x347991=_0x384d13['getColumnIndexes'](_0x44484b),_0x55e9c8={'startRow':_0x3fddbb[_0x57a8('0x76')],'endRow':_0x3fddbb[_0x57a8('0x12')],'startColumn':_0x347991['first'],'endColumn':_0x347991[_0x57a8('0x12')]};return 0x1==_0x44484b[_0x57a8('0x6d')]&&(_0x55e9c8[_0x57a8('0x5f')]+=_0x384d13['getRows'](_0x2af3ca)-0x1,_0x55e9c8[_0x57a8('0x8b')]+=_0x384d13[_0x57a8('0x38')](_0x2af3ca)-0x1),de(_0x3f04cd,_0x55e9c8,_0x384d13);}(_0x4f8ff1,_0x54cd10,_0x4562ba[_0x57a8('0x2a')],_0x15c3c3,_0x2de75a)&&(_0x173848[_0x57a8('0x37')](),_0x2b1187={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4562ba['model'][_0x57a8('0x11')](()=>{_0x4562ba[_0x57a8('0x2a')]['insertContent'](_0xd2c9a9[0x0],_0xd2c9a9[0x1],_0xd2c9a9[0x2],{'forceDefaultExecution':!0x0});const _0xbe7ee4=_0xb103d2(),{rowInsertionRanges:_0x1c0621,columnInsertionRanges:_0x3e8b2c,insertionRanges:_0x337310,deletionRanges:_0x1c65b3,cells:_0x52bbfe}=_0x2b1187;_0x1c0621[_0x57a8('0x6d')]&&_0x3b6047[_0x57a8('0x96')](_0x1c0621,_0x57a8('0x2b'),{'tablePasteChainId':_0xbe7ee4}),_0x3e8b2c[_0x57a8('0x6d')]&&_0x3b6047['markMultiRangeInsertion'](_0x3e8b2c,_0x57a8('0x9b'),{'tablePasteChainId':_0xbe7ee4}),_0x337310[_0x57a8('0x6d')]&&_0x3b6047[_0x57a8('0x96')](_0x337310,_0x57a8('0xf'),{'tablePasteChainId':_0xbe7ee4,'skipNestingCheck':!0x0}),_0x1c65b3[_0x57a8('0x6d')]&&_0x3b6047['markMultiRangeDeletion'](_0x1c65b3,_0x57a8('0xf'),{'tablePasteChainId':_0xbe7ee4,'skipNestingCheck':!0x0});const _0x13d368=_0x3b6047[_0x57a8('0xa4')](_0x52bbfe[_0x57a8('0x7e')](({element:_0x10ab23})=>_0x10ab23),{'formatGroupId':_0xb103d2()},[],_0x57a8('0x10'),{'tablePasteChainId':_0xbe7ee4});if(_0x13d368){const _0x25bbe6=_0x13d368[_0x57a8('0x3c')](),_0x170715=[];for(const {element:_0x4cceff,attributes:_0x46b495}of _0x52bbfe){if(!_0x46b495)continue;const _0x33112b=_0x4562ba['model'][_0x57a8('0x95')](_0x4cceff),_0x93919c=_0x25bbe6['find'](_0x3e8810=>_0x3e8810[_0x57a8('0x5e')]()['isEqual'](_0x33112b));_0x93919c&&_0x170715[_0x57a8('0x3')]([_0x93919c[_0x57a8('0x9f')],_0x46b495]);}_0x170715[_0x57a8('0x6d')]&&_0x13d368[_0x57a8('0x40')](_0x57a8('0x19'),Object['fromEntries'](_0x170715));}_0x2b1187=null;}));},{'priority':_0x4c577d[_0x57a8('0x6e')]+0xa}),_0x4562ba[_0x57a8('0x89')]['get']('TableClipboard')['on'](_0x57a8('0xa3'),(_0x3c2aba,_0xb223a5)=>{const [_0x1df826,_0x55bd7f,,_0x55c192]=_0xb223a5;if(!_0x2b1187)return;_0x3c2aba[_0x57a8('0x37')]();const _0x4de662=_0x1df826[_0x57a8('0x82')],_0x7da001=_0x55bd7f,_0x353a25=ge(_0x4de662),_0x431e0f=ge(_0x7da001);_0x3c2aba[_0x57a8('0x5d')]=_0x4de662;let _0x3c33b7=null,_0x572f9d=null;if(_0x431e0f||_0x353a25){if(_0x353a25&&!_0x431e0f){_0x55c192['remove'](_0x4de662[_0x57a8('0x79')](0x0));for(const _0x3389c3 of Array['from'](_0x7da001[_0x57a8('0x9a')]()))_0x55c192[_0x57a8('0x2f')](_0x3389c3,_0x4de662,_0x57a8('0x22'));const _0x1c0ab0=_0x2b1187['rowInsertionIndexes'][_0x57a8('0x77')](_0x1df826[_0x57a8('0x8e')]),_0x629e21=_0x2b1187[_0x57a8('0xa')][_0x57a8('0x77')](_0x1df826[_0x57a8('0x49')]);_0x1c0ab0||_0x629e21||(_0x3c33b7=_0x55c192[_0x57a8('0x92')](_0x4de662));}else _0x431e0f&&!_0x353a25&&(_0x572f9d=_0x55c192[_0x57a8('0x92')](_0x4de662));}else{const _0x379c2a=_0x55c192[_0x57a8('0x72')](_0x57a8('0x7a')),_0x435527=_0x55c192[_0x57a8('0x72')](_0x57a8('0x7a'));_0x55c192[_0x57a8('0x46')](_0x55c192[_0x57a8('0x92')](_0x4de662),_0x435527),_0x55c192[_0x57a8('0x2f')](_0x379c2a,_0x4de662,0x0);for(const _0x244f18 of Array['from'](_0x7da001['getChildren']()))_0x55c192[_0x57a8('0x2f')](_0x244f18,_0x379c2a,_0x57a8('0x22'));_0x3c33b7=_0x55c192[_0x57a8('0x95')](_0x379c2a),_0x572f9d=_0x55c192['createRangeOn'](_0x435527);}const _0x9057d=Array[_0x57a8('0x3d')](_0x7da001[_0x57a8('0x29')]())[_0x57a8('0x59')](([_0x1e18ad])=>fe[_0x57a8('0x77')](_0x1e18ad));_0x2b1187[_0x57a8('0x3a')][_0x57a8('0x3')]({'element':_0x4de662,'attributes':_0x9057d[_0x57a8('0x6d')]?Object[_0x57a8('0x5a')](_0x9057d):null}),_0x3c33b7&&_0x2b1187['insertionRanges'][_0x57a8('0x3')](_0x3c33b7),_0x572f9d&&_0x2b1187[_0x57a8('0x54')]['push'](_0x572f9d);},{'priority':_0x57a8('0x6e')}),_0x15c3c3['on']('insertColumns',(_0x36943d,_0x4776f4)=>{const [_0xb770ec,_0x4990b2={}]=_0x4776f4;if(!_0x2b1187)return;const _0x114286=_0x4990b2['at']||0x0,_0x5b6893=_0x4990b2[_0x57a8('0x93')]||0x1;_0x2b1187[_0x57a8('0xa')]=new Array(_0x5b6893)[_0x57a8('0x5c')](_0x114286)[_0x57a8('0x7e')]((_0x56fea9,_0xfa7d27)=>_0x56fea9+_0xfa7d27);for(const {cell:_0x488145}of _0x15c3c3[_0x57a8('0x7f')](_0xb770ec,{'startColumn':_0x114286,'endColumn':_0x114286+_0x5b6893-0x1}))_0x2b1187['columnInsertionRanges']['push'](_0x4562ba[_0x57a8('0x2a')]['createRangeOn'](_0x488145));},{'priority':_0x57a8('0x97')}),_0x15c3c3['on'](_0x57a8('0xb'),(_0x1381b3,_0x595220)=>{const [_0x42f61d,_0x129a75={}]=_0x595220;if(!_0x2b1187)return;const _0x425ab4=_0x129a75['at']||0x0,_0x231646=_0x129a75[_0x57a8('0x15')]||0x1;_0x2b1187[_0x57a8('0x41')]=new Array(_0x231646)[_0x57a8('0x5c')](_0x425ab4)[_0x57a8('0x7e')]((_0x38ac86,_0x36d13c)=>_0x38ac86+_0x36d13c);for(const {cell:_0x376491}of _0x15c3c3[_0x57a8('0x7f')](_0x42f61d,{'startRow':_0x425ab4,'endRow':_0x425ab4+_0x231646-0x1}))_0x2b1187[_0x57a8('0x36')]['push'](_0x4562ba['model'][_0x57a8('0x95')](_0x376491));},{'priority':_0x57a8('0x97')}),_0x3b6047[_0x57a8('0x66')][_0x57a8('0x18')](_0x4fe191=>{if(_0x4fe191[_0x57a8('0x25')]&&_0x4fe191['subType'][_0x57a8('0x57')](_0x57a8('0xf')))return _0x4fe191[_0x57a8('0x26')]?{}:{'type':_0x57a8('0x87'),'content':_0x36bc7b(_0x4562ba[_0x57a8('0x8f')],_0x57a8('0x51'))};});const _0x4f3bc7=()=>!0x1;for(const _0x1e0233 of[_0x57a8('0xf'),_0x57a8('0x9b'),'tablePasteRow',_0x57a8('0x10')])_0x3b6047[_0x57a8('0x31')][_0x57a8('0x2e')]('insertion',_0x1e0233,'join',_0x4f3bc7),_0x3b6047[_0x57a8('0x31')][_0x57a8('0x2e')](_0x57a8('0x17'),_0x1e0233,_0x57a8('0x5'),_0x4f3bc7),_0x3b6047['_suggestionFactory']['registerCustomCallback'](_0x57a8('0x32'),_0x1e0233,_0x57a8('0x5'),_0x4f3bc7);_0x3b6047[_0x57a8('0x31')][_0x57a8('0x2e')]('formatBlock',_0x57a8('0x10'),_0x57a8('0x34'),_0x4f3bc7),_0x3b6047[_0x57a8('0x31')][_0x57a8('0x2e')]('formatBlock',_0x57a8('0x10'),'accept',(_0x15d4bd,_0x5aad4a,_0x2d9e6b)=>{const _0x290747=_0x15d4bd[_0x57a8('0x7e')](_0x38212e=>_0x38212e[_0x57a8('0x43')]())[_0x57a8('0x59')](_0x259634=>_0x259634),_0x231805=new Map(_0x290747['map'](_0x6e06a3=>[_0x6e06a3,null]));if(_0x2b1187)for(const {element:_0x1483ac,attributes:_0x3380c0}of _0x2b1187['cells'])_0x3380c0&&_0x231805[_0x57a8('0xe')](_0x1483ac,_0x3380c0);else{if(_0x2d9e6b&&_0x2d9e6b[_0x57a8('0x19')])for(const [_0xdbb59d,_0x1980f1]of Object[_0x57a8('0x60')](_0x2d9e6b[_0x57a8('0x19')])){const _0x1e9c30=_0x4562ba[_0x57a8('0x2a')][_0x57a8('0x2d')][_0x57a8('0x68')](_0xdbb59d),_0x43c199=_0x1e9c30?_0x1e9c30[_0x57a8('0x5e')]()[_0x57a8('0x43')]():null;_0x43c199&&_0x231805['set'](_0x43c199,_0x1980f1);}}_0x4562ba[_0x57a8('0x2a')]['change'](_0x285267=>{for(const [_0x4499b9,_0x3c685b]of _0x231805)_0x285267[_0x57a8('0x71')]({...be,..._0x3c685b},_0x4499b9);});});const _0x4997f2=(_0x4b9327,_0x4d989c)=>{_0x3b6047[_0x57a8('0x31')][_0x57a8('0x2e')](_0x4b9327,_0x57a8('0xf'),_0x4d989c,(_0x3bf34b,_0xfa5bb8,_0x1b8d5b)=>{_0x4562ba[_0x57a8('0x2a')][_0x57a8('0x11')](_0x19b9b1=>{const _0xf12617=[];for(const _0x10a2e4 of _0x3bf34b){const _0x1706c6=_0x10a2e4[_0x57a8('0x1c')][_0x57a8('0x9')];_0x1706c6['is'](_0x57a8('0x6f'),_0x57a8('0x7a'))&&_0xf12617['push'](_0x1706c6);}_0x3b6047[_0x57a8('0x31')]['getSuggestionCallback'](_0x4b9327,null,_0x4d989c)(_0x3bf34b,_0xfa5bb8,_0x1b8d5b);for(const _0x359fea of _0xf12617)_0x57a8('0x48')!=_0x359fea[_0x57a8('0x84')][_0x57a8('0x94')]&&_0x19b9b1[_0x57a8('0x98')](_0x359fea);});});};_0x4997f2(_0x57a8('0x87'),_0x57a8('0x67')),_0x4997f2(_0x57a8('0x87'),_0x57a8('0x34')),_0x4997f2(_0x57a8('0x17'),'accept'),_0x4997f2(_0x57a8('0x17'),_0x57a8('0x34')),_0x3b6047[_0x57a8('0x31')][_0x57a8('0x2e')]('insertion','tablePasteRow',_0x57a8('0x34'),_0x5acd83=>{const _0x4aab7b=_0x5acd83[_0x57a8('0x7e')](_0x2ef1d9=>_0x2ef1d9[_0x57a8('0x43')]()),_0xab0cdb=_0x4aab7b[0x0][_0x57a8('0x7')]('table'),{minRow:_0x169b7e,maxRow:_0x18c568}=_0x58a803[_0x57a8('0x4d')](_0x4aab7b);_0x15c3c3[_0x57a8('0x6c')](_0xab0cdb,{'at':_0x169b7e,'rows':_0x18c568-_0x169b7e+0x1});}),_0x3b6047[_0x57a8('0x31')][_0x57a8('0x2e')](_0x57a8('0x87'),'tablePasteColumn','discard',_0x404474=>{const _0x1169f0=_0x404474['map'](_0x5c872e=>_0x5c872e[_0x57a8('0x43')]()),_0x2423ed=_0x1169f0[0x0][_0x57a8('0x7')](_0x57a8('0x44')),{minColumn:_0x2abbf6,maxColumn:_0x47869a}=_0x58a803[_0x57a8('0x4d')](_0x1169f0);_0x15c3c3[_0x57a8('0x90')](_0x2423ed,{'at':_0x2abbf6,'columns':_0x47869a-_0x2abbf6+0x1});});const _0x589ae0=(_0x5c09d0,_0x1ab942)=>{if(!_0x1ab942[_0x57a8('0x25')]||!_0x1ab942[_0x57a8('0x25')][_0x57a8('0x57')](_0x57a8('0xf')))return;const _0x47498e=_0x1ab942[_0x57a8('0x1d')][_0x57a8('0x4e')],_0x32908d=_0x3b6047[_0x57a8('0x9d')]()[_0x57a8('0x59')](_0xeda12b=>_0xeda12b['isInContent']&&_0xeda12b[_0x57a8('0x1d')]&&_0xeda12b[_0x57a8('0x1d')][_0x57a8('0x4e')]==_0x47498e);_0x32908d['length']&&_0x1ab942['getAllAdjacentSuggestions']()['length']!=_0x32908d[_0x57a8('0x6d')]&&_0x32908d['reduce']((_0x2032e2,_0x14a5cf)=>(_0x2032e2[_0x57a8('0x39')]=_0x14a5cf,_0x14a5cf[_0x57a8('0x26')]=_0x2032e2,_0x14a5cf));};function _0x502403(_0x4dbd09,_0x55d3f5=!0x0){const {id:_0x5dbeb0}=_0x3b6047[_0x57a8('0x63')](_0x4dbd09[_0x57a8('0x83')]),_0x21cebe=[_0x57a8('0x23'),_0x57a8('0x58')],_0x374793=_0x3b6047['activeMarkers'][_0x57a8('0x77')](_0x4dbd09[_0x57a8('0x83')]);return _0x374793&&_0x21cebe[_0x57a8('0x3')]('ck-suggestion-marker--active'),{'classes':_0x21cebe,'attributes':{'data-suggestion':_0x5dbeb0},'priority':_0x374793&&_0x55d3f5?0xbc2:0xbb8};}_0x3b6047['on'](_0x57a8('0x55'),_0x589ae0,{'priority':_0x57a8('0x6e')}),_0x3b6047['on']('suggestionUnloaded',_0x589ae0,{'priority':_0x57a8('0x6e')}),_0x4562ba['model'][_0x57a8('0x62')][_0x57a8('0x3f')](()=>{let _0x7edcc9=!0x1;const _0x1b926f=Array['from'](_0x4562ba['model'][_0x57a8('0x62')][_0x57a8('0x35')][_0x57a8('0xa0')]());for(const {name:_0x499952,data:_0x2e9d01}of _0x1b926f){const {group:_0x3a4764,type:_0x48614f,id:_0x23137d}=_0x3b6047[_0x57a8('0x63')](_0x499952);if(_0x57a8('0x7c')!=_0x3a4764||_0x57a8('0x17')!=_0x48614f||_0x2e9d01[_0x57a8('0x99')])continue;if(!_0x3b6047['hasSuggestion'](_0x23137d))continue;const _0x2437f8=_0x3b6047[_0x57a8('0x2')](_0x23137d)[_0x57a8('0xd')](),_0x22bb72=_0x4562ba[_0x57a8('0x89')][_0x57a8('0x68')](_0x57a8('0x5b'))['me'];for(const _0xdcd409 of _0x3b6047[_0x57a8('0x9d')]()){if(!_0xdcd409['isInContent']||_0xdcd409['author']!=_0x22bb72)continue;if(_0x57a8('0x32')!=_0xdcd409[_0x57a8('0x21')]||_0x57a8('0x10')!=_0xdcd409[_0x57a8('0x25')])continue;if(_0xdcd409['getRanges']()[_0x57a8('0x13')](_0x48dd47=>_0x2437f8['some'](_0x144a88=>_0x144a88['containsRange'](_0x48dd47,!0x0))))for(const _0x3b2532 of _0xdcd409[_0x57a8('0x6')]())_0x3b2532[_0x57a8('0x4c')]&&(_0x3b2532[_0x57a8('0x34')](),_0x7edcc9=!0x0);}}return _0x7edcc9;}),_0x4562ba[_0x57a8('0x2a')][_0x57a8('0x62')][_0x57a8('0x3f')](_0x69fb8b=>{const _0x13f0ac=_0x4562ba[_0x57a8('0x1b')][_0x57a8('0x68')](_0x57a8('0x85'));if(!_0x13f0ac||!_0x13f0ac[_0x57a8('0x8a')][_0x57a8('0x81')](_0x69fb8b['batch']))return!0x1;let _0x3c153f=!0x1;const _0x4961b7=_0x4562ba[_0x57a8('0x89')]['get'](_0x57a8('0x5b'))['me'],_0x495f51=_0x4562ba[_0x57a8('0x2a')][_0x57a8('0x62')][_0x57a8('0x35')]['getChanges'](),_0x34ac9a=Array[_0x57a8('0x3d')](_0x4562ba[_0x57a8('0x2a')]['document'][_0x57a8('0x35')]['getChangedMarkers']())['filter'](({name:_0xce4ef1,data:_0x309840})=>{const {group:_0x224661,subType:_0x271955,authorId:_0x89cd3f}=_0x3b6047[_0x57a8('0x63')](_0xce4ef1);return _0x57a8('0x7c')==_0x224661&&'tablePaste'==_0x271955&&_0x89cd3f==_0x4961b7['id']&&!_0x309840[_0x57a8('0x99')];});for(const _0x526978 of _0x495f51){if(_0x57a8('0x2f')!=_0x526978['type']||_0x57a8('0x7a')!=_0x526978[_0x57a8('0x9f')]||0x1!=_0x526978[_0x57a8('0x6d')])continue;const _0x404401=_0x69fb8b[_0x57a8('0xa1')](_0x526978['position'],_0x526978[_0x57a8('0x86')][_0x57a8('0x30')](0x1));if(!_0x34ac9a[_0x57a8('0xc')](({data:_0x301e9d})=>_0x301e9d[_0x57a8('0x9e')][_0x57a8('0x6b')](_0x404401)))for(const {name:_0x277158,data:_0x53381b}of _0x34ac9a)if(_0x404401[_0x57a8('0x27')](_0x53381b['newRange'])){_0x69fb8b[_0x57a8('0x42')](_0x277158,{'range':_0x404401}),_0x3c153f=!0x0;break;}}return _0x3c153f;}),_0x4562ba[_0x57a8('0x2a')]['document'][_0x57a8('0x3f')](_0x5bf5e9=>{let _0x1f7369=!0x1;const _0x53f7e2=_0x4562ba['plugins'][_0x57a8('0x68')](_0x57a8('0x5b'))['me'],_0x47ed0b=_0x3b6047[_0x57a8('0x9d')]()[_0x57a8('0x59')](_0xfe02bb=>_0xfe02bb[_0x57a8('0x4c')]&&_0xfe02bb[_0x57a8('0xa5')]==_0x53f7e2),_0x5b2473=new Set(),_0x51f097=new Set();for(const _0x5e676e of _0x47ed0b)if('tablePaste'==_0x5e676e[_0x57a8('0x25')])for(const _0x2654df of _0x5e676e[_0x57a8('0x3c')]()){const _0xd6ae0=_0x2654df[_0x57a8('0x5e')]()[_0x57a8('0x43')]();if(_0xd6ae0){if(_0xd6ae0['is']('element',_0x57a8('0x7a'))&&ge(_0xd6ae0)){_0x5e676e[_0x57a8('0x75')](_0x2654df[_0x57a8('0x9f')]),_0x5b2473[_0x57a8('0x7b')](_0xd6ae0),_0x1f7369=!0x0;const _0x38a677=_0xd6ae0['nextSibling'],_0x1015d8=_0xd6ae0[_0x57a8('0x8')],_0x75a302=_0x38a677&&_0x38a677['is'](_0x57a8('0x6f'),_0x57a8('0x7a')),_0x79dad9=_0x1015d8&&_0x1015d8['is']('element',_0x57a8('0x7a'));_0x75a302&&!_0x5b2473['has'](_0x38a677)&&_0x51f097[_0x57a8('0x7b')](_0x38a677),_0x79dad9&&!_0x5b2473[_0x57a8('0x81')](_0x1015d8)&&_0x51f097['add'](_0x1015d8);}else _0xd6ae0['is']('element','paragraph')&&_0xd6ae0[_0x57a8('0x16')]&&(_0x5e676e[_0x57a8('0x75')](_0x2654df['name']),_0x1f7369=!0x0);}}else{if('tablePasteCell'==_0x5e676e[_0x57a8('0x25')]){if(!_0x5e676e[_0x57a8('0x1d')]||!_0x5e676e['attributes'][_0x57a8('0x4e')])continue;const _0x8c3c97=_0x5e676e['attributes'][_0x57a8('0x19')];if(_0x8c3c97&&Object[_0x57a8('0x4')](_0x8c3c97)[_0x57a8('0x6d')])continue;const _0xf9baa8=_0x5e676e['attributes'][_0x57a8('0x4e')];let _0x1a5288=!0x0,_0x592774=!0x0;for(const _0x2ecd1a of _0x47ed0b)if(_0x2ecd1a['subType']&&_0x2ecd1a[_0x57a8('0x25')]['startsWith']('tablePaste')){if(!_0x2ecd1a[_0x57a8('0x1d')][_0x57a8('0x4e')]){_0x592774=!0x1;break;}if(_0x2ecd1a['id']!=_0x5e676e['id']&&_0x2ecd1a[_0x57a8('0x1d')][_0x57a8('0x4e')]==_0xf9baa8){_0x1a5288=!0x1;break;}}_0x592774&&_0x1a5288&&(_0x5e676e[_0x57a8('0x70')](),_0x1f7369=!0x0);}}for(const _0x55de93 of _0x5b2473)_0x5bf5e9[_0x57a8('0x50')](_0x55de93);for(const _0x4bb2cc of _0x51f097)_0x5bf5e9[_0x57a8('0x98')](_0x4bb2cc);return _0x1f7369;}),_0x4562ba[_0x57a8('0x7d')][_0x57a8('0x65')](_0x57a8('0x4f'))[_0x57a8('0x53')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1ed74f,_0x5106f6)=>_0x502403(_0x1ed74f),'converterPriority':_0x57a8('0x6e')}),_0x4562ba[_0x57a8('0x7d')][_0x57a8('0x65')](_0x57a8('0x20'))[_0x57a8('0x53')]({'model':_0x57a8('0xa2'),'view':(_0x335e49,_0x4992af)=>_0x4992af['options']['showSuggestionHighlights']?_0x502403(_0x335e49,!0x1):null,'converterPriority':_0x57a8('0x6e')});const _0x3a571a=_0x4562ba[_0x57a8('0x88')][_0x57a8('0x73')];this['listenTo'](_0x3a571a['document'],_0x57a8('0x2c'),(_0x34ac61,_0x4daca1)=>{const _0x47c04c=[];for(const _0xb240cd of _0x3a571a[_0x57a8('0x92')](_0x4daca1[_0x57a8('0x80')])[_0x57a8('0x52')]())_0xb240cd['is'](_0x57a8('0x6f'),_0x57a8('0x74'))&&_0x47c04c[_0x57a8('0x3')](_0xb240cd);_0x3a571a[_0x57a8('0x11')](_0x4f3a61=>{for(const _0x3704b3 of _0x47c04c)_0x4f3a61[_0x57a8('0x4b')](_0x4f3a61['createRangeIn'](_0x3704b3),_0x4f3a61[_0x57a8('0x1')](_0x3704b3)),_0x4f3a61['remove'](_0x3704b3);});});}}function ge(_0x492a33){if(_0x492a33[_0x57a8('0x16')])return!0x0;const _0x3b2c4a=_0x492a33[_0x57a8('0x79')](0x0);return _0x3b2c4a['is'](_0x57a8('0x6f'),_0x57a8('0x8d'))&&_0x3b2c4a[_0x57a8('0x16')];}function de(_0x3f2243,_0x26907d={},_0x83d6ab){for(const {isAnchor:_0xf50e3f,cellHeight:_0x86c6bb,cellWidth:_0x12662f}of _0x83d6ab[_0x57a8('0x7f')](_0x3f2243,{'includeAllSlots':!0x0,..._0x26907d}))if(!_0xf50e3f||0x1!=_0x86c6bb||0x1!=_0x12662f)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c43=['resizeTable','commandParams','getTableColumnsWidths','data','markBlockFormat','TableColumnResizeEditing','registerCustomCallback','formatInline','discard','columnWidths','document','handleSuggestionDescription','resizeTableWidth','handleResizeTableWidthCommand','locale','getColumnGroupElement','*Format:*\x20resize\x20table','_descriptionFactory','plugins','has','enableCommand','tableWidth','get','_suggestionFactory','accept','model','editor','change','formatGroupId','format','bind','getContainedElement','getSuggestionCallback','TrackChangesEditing','author','subType','table','getAttribute','formatBlock'];(function(_0x29087f,_0x5c4315){const _0x56e0f4=function(_0x4e565f){while(--_0x4e565f){_0x29087f['push'](_0x29087f['shift']());}};_0x56e0f4(++_0x5c4315);}(_0x5c43,0x110));const _0x56e0=function(_0x29087f,_0x5c4315){_0x29087f=_0x29087f-0x0;let _0x56e0f4=_0x5c43[_0x29087f];return _0x56e0f4;};import{Plugin as _0x4a40b6}from'ckeditor5/src/core.js';import{getTranslation as _0x34cd55}from'../utils/common-translations.js';export default class It extends _0x4a40b6{['afterInit'](){if(!this[_0x56e0('0x1b')][_0x56e0('0x13')][_0x56e0('0x14')](_0x56e0('0x6')))return;const _0xb91416=this[_0x56e0('0x1b')]['plugins']['get']('TrackChangesEditing');_0xb91416[_0x56e0('0x15')](_0x56e0('0xd'),this[_0x56e0('0xe')][_0x56e0('0x1f')](this)),_0xb91416[_0x56e0('0x18')][_0x56e0('0x7')](_0x56e0('0x0'),_0x56e0('0x1'),_0x56e0('0x19'),_0xb91416[_0x56e0('0x18')]['getSuggestionCallback'](_0x56e0('0x0'),null,_0x56e0('0x9'))),_0xb91416[_0x56e0('0x18')]['registerCustomCallback'](_0x56e0('0x0'),_0x56e0('0x1'),_0x56e0('0x9'),_0xb91416[_0x56e0('0x18')][_0x56e0('0x21')](_0x56e0('0x0'),null,'accept')),_0xb91416[_0x56e0('0x12')]['registerDescriptionCallback'](this[_0x56e0('0xc')][_0x56e0('0x1f')](this));}[_0x56e0('0xe')](_0x46af9c,_0x2faf15){const _0x51114d=this[_0x56e0('0x1b')]['plugins']['get'](_0x56e0('0x22')),_0x6e979=this[_0x56e0('0x1b')][_0x56e0('0x13')][_0x56e0('0x17')](_0x56e0('0x6')),_0x56cc38=_0x2faf15[_0x56e0('0x25')]||this['editor'][_0x56e0('0x1a')][_0x56e0('0xb')]['selection']['getSelectedElement']();this['editor'][_0x56e0('0x1a')][_0x56e0('0x1c')](()=>{const _0x43c5b0=_0x6e979[_0x56e0('0x10')](_0x56cc38);let _0x1d381f=_0x43c5b0?_0x6e979[_0x56e0('0x3')](_0x43c5b0):null,_0x6329c=_0x56cc38[_0x56e0('0x26')]('tableWidth')||null;const _0x165e33=_0x2faf15[_0x56e0('0x16')]||_0x6329c,_0x1c1af7=_0x2faf15[_0x56e0('0xa')]||_0x1d381f,_0x473db9=this[_0x56e0('0x1b')][_0x56e0('0x13')][_0x56e0('0x17')]('Users')['me'];for(const _0x5b5b3c of _0x51114d['getSuggestions']()){const _0x37e44a=_0x5b5b3c[_0x56e0('0x20')]();if(_0x56e0('0x1')===_0x5b5b3c[_0x56e0('0x24')]&&_0x37e44a===_0x56cc38){_0x5b5b3c[_0x56e0('0x23')]!==_0x473db9&&_0x5b5b3c[_0x56e0('0x9')]();const _0x3bfbe0=_0x5b5b3c[_0x56e0('0x4')][_0x56e0('0x2')];_0x6329c=_0x3bfbe0[0x0][_0x56e0('0x16')],_0x1d381f=_0x3bfbe0[0x0]['columnWidths'];break;}}_0x46af9c({'table':_0x56cc38,'tableWidth':_0x165e33,'columnWidths':_0x1c1af7}),_0x51114d[_0x56e0('0x5')](_0x56cc38,{'commandName':_0x56e0('0xd'),'commandParams':[{'tableWidth':_0x6329c,'columnWidths':_0x1d381f}],'formatGroupId':_0x56e0('0x1')},[],'resizeTable');});}[_0x56e0('0xc')](_0x3610f5){if(_0x56e0('0x0')!=_0x3610f5['type']&&_0x56e0('0x8')!=_0x3610f5['type'])return;const {data:_0x59659a}=_0x3610f5;if(_0x59659a&&'resizeTable'===_0x59659a[_0x56e0('0x1d')]){const _0x2414ed=_0x56e0('0x11');return{'type':_0x56e0('0x1e'),'content':_0x34cd55(this[_0x56e0('0x1b')][_0x56e0('0xf')],_0x2414ed)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3db9=['addClass','_suggestionFactory','createTableWalker','afterInit','getSuggestion','forceValue','ck-suggestion-marker--active','headingColumns','data','removeClass','stop','getCellLocation','registerCustomCallback','ck-suggestion-marker-','parent','TrackChangesEditing','editing','cell','toViewElement','addMarker:suggestion','mapper','includes','locale','_registerLegacyDescription','registerAttributeLabel','start','_splitMarkerName','headingRows','_handleLegacySuggestions','FORMAT_HEADER_ROW','setAttribute','data-suggestion','consume','markerRange','format','unbindElementFromMarkerName','_descriptionFactory','FORMAT_REGULAR_COLUMN','plugins','removeMarker:suggestion','end','setTableRowHeader','setTableColumnHeader','FORMAT_HEADER_COLUMN','markerNameToElements','highest','get','accept','has','*Format:*\x20%0','downcastDispatcher','requires','commandName','writer','type','formatBlock','name','markerName','nodeBefore','editor','item','_enableDefaultAttributesIntegration'];(function(_0x9b49c9,_0x3db90c){const _0x301b7e=function(_0x4dc34e){while(--_0x4dc34e){_0x9b49c9['push'](_0x9b49c9['shift']());}};_0x301b7e(++_0x3db90c);}(_0x3db9,0x8c));const _0x301b=function(_0x9b49c9,_0x3db90c){_0x9b49c9=_0x9b49c9-0x0;let _0x301b7e=_0x3db9[_0x9b49c9];return _0x301b7e;};import{Plugin as _0x3f3638}from'ckeditor5/src/core.js';import _0x551c89 from'./table.js';import{getTranslation as _0x4a0d79}from'../utils/common-translations.js';export default class St extends _0x3f3638{static get[_0x301b('0x23')](){return[_0x551c89];}[_0x301b('0x31')](){const _0x4c3e69=this[_0x301b('0x2b')];if(!_0x4c3e69[_0x301b('0x16')][_0x301b('0x20')]('TableEditing'))return;const _0x11d8c2=_0x4c3e69[_0x301b('0x6')],_0x5c148f=_0x4c3e69[_0x301b('0x16')]['get'](_0x301b('0x3d'));_0x5c148f[_0x301b('0x2d')](_0x301b('0x19'),[],['headingRows']),_0x5c148f['_enableDefaultAttributesIntegration'](_0x301b('0x1a'),[],['headingColumns']),_0x5c148f['_descriptionFactory'][_0x301b('0x8')](_0x301b('0xb'),_0x4a0d79(_0x11d8c2,_0x301b('0xd'))),_0x5c148f[_0x301b('0x14')][_0x301b('0x8')](_0x301b('0x35'),_0x4a0d79(_0x11d8c2,_0x301b('0x1b'))),this[_0x301b('0xc')]();}[_0x301b('0xc')](){const _0x3711e5=this[_0x301b('0x2b')]['plugins'][_0x301b('0x1e')](_0x301b('0x3d')),_0x1afd20=this[_0x301b('0x2b')][_0x301b('0x16')]['get']('TableUtils'),_0x197b73=this[_0x301b('0x2b')][_0x301b('0x16')][_0x301b('0x1e')](_0x551c89)['_acceptFormatSuggestionCallbackFactory']();function _0x13455d({showActiveMarker:_0x3896a9=!0x0,setDataAttribute:_0x426a34=!0x0}={}){return(_0x3c91bb,_0x509a6d,_0x13d460)=>{const {type:_0x154093,id:_0x7b232c}=_0x3711e5[_0x301b('0xa')](_0x509a6d[_0x301b('0x29')]),_0x2eae93=_0x3711e5['getSuggestion'](_0x7b232c),_0x5d9649=_0x2eae93['data'];if(_0x301b('0x27')!=_0x2eae93['type']||!_0x5d9649||_0x301b('0x1a')!=_0x5d9649[_0x301b('0x24')])return;if(_0x509a6d[_0x301b('0x2c')])return void _0x3c91bb[_0x301b('0x38')]();if(!_0x13d460['consumable'][_0x301b('0x10')](_0x509a6d['markerRange'],_0x3c91bb[_0x301b('0x28')]))return;const _0x1c7144=_0x509a6d[_0x301b('0x11')][_0x301b('0x9')]['nodeAfter'],_0x1a403e=_0x509a6d[_0x301b('0x11')][_0x301b('0x18')][_0x301b('0x2a')],_0x23e685=_0x1c7144[_0x301b('0x3c')]['parent'],{column:_0x1a9977}=_0x1afd20[_0x301b('0x39')](_0x1c7144),{column:_0x3c1472}=_0x1afd20[_0x301b('0x39')](_0x1a403e);for(let _0x12c750=_0x1a9977;_0x12c750<=_0x3c1472;_0x12c750++){const _0x44e759=_0x1afd20[_0x301b('0x30')](_0x23e685,{'column':_0x12c750,'includeAllSlots':!0x1});for(const _0xdcb3b5 of _0x44e759){const _0x43c694=_0xdcb3b5[_0x301b('0x1')],_0x71290c=_0x13d460['mapper'][_0x301b('0x2')](_0x43c694);_0x13d460[_0x301b('0x25')]['addClass'](_0x301b('0x3b')+_0x154093,_0x71290c),_0x426a34&&_0x13d460[_0x301b('0x25')][_0x301b('0xe')](_0x301b('0xf'),_0x7b232c,_0x71290c),_0x13d460[_0x301b('0x4')]['bindElementToMarker'](_0x71290c,_0x509a6d['markerName']),_0x3896a9&&(_0x3711e5['activeMarkers'][_0x301b('0x5')](_0x509a6d[_0x301b('0x29')])?_0x13d460['writer'][_0x301b('0x2e')](_0x301b('0x34'),_0x71290c):_0x13d460[_0x301b('0x25')][_0x301b('0x37')]('ck-suggestion-marker--active',_0x71290c));}}};}_0x3711e5[_0x301b('0x2f')][_0x301b('0x3a')](_0x301b('0x27'),_0x301b('0x19'),_0x301b('0x1f'),_0x197b73),_0x3711e5[_0x301b('0x2f')][_0x301b('0x3a')]('formatBlock','setTableColumnHeader',_0x301b('0x1f'),_0x197b73),this[_0x301b('0x2b')]['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x13455d(),{'priority':'highest'}),this['editor']['data'][_0x301b('0x22')]['on'](_0x301b('0x3'),(_0x5cd1b4,_0x2a6cdb,_0x355dc0)=>{_0x355dc0['options']['showSuggestionHighlights']&&_0x13455d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5cd1b4,_0x2a6cdb,_0x355dc0);},{'priority':'highest'}),this[_0x301b('0x2b')][_0x301b('0x0')][_0x301b('0x22')]['on'](_0x301b('0x17'),(_0x5b83b7,_0x2e3062,_0x4f7b2c)=>{const {type:_0x14d4c6,id:_0x2d752e}=_0x3711e5['_splitMarkerName'](_0x2e3062[_0x301b('0x29')]),_0x2bc4bb=_0x3711e5[_0x301b('0x32')](_0x2d752e),_0xd15d39=_0x2bc4bb[_0x301b('0x36')];if(_0x301b('0x27')!=_0x2bc4bb['type']||!_0xd15d39||_0x301b('0x1a')!=_0xd15d39[_0x301b('0x24')])return;const _0x866ded=_0x4f7b2c[_0x301b('0x4')][_0x301b('0x1c')](_0x2e3062[_0x301b('0x29')]);if(_0x866ded)for(const _0x163374 of _0x866ded)_0x4f7b2c[_0x301b('0x25')][_0x301b('0x37')](_0x301b('0x3b')+_0x14d4c6,_0x163374),_0x4f7b2c['writer']['removeClass']('ck-suggestion-marker--active',_0x163374),_0x4f7b2c[_0x301b('0x25')]['removeAttribute'](_0x301b('0xf'),_0x163374),_0x4f7b2c[_0x301b('0x4')][_0x301b('0x13')](_0x163374,_0x2e3062[_0x301b('0x29')]);},{'priority':_0x301b('0x1d')}),this['_registerLegacyDescription']();}[_0x301b('0x7')](){const _0x1f3031=this['editor'],_0x5c1e02=_0x1f3031[_0x301b('0x6')];function _0x2ebbd4(_0x3d8f6e){return{'type':_0x301b('0x12'),'content':_0x4a0d79(_0x5c1e02,_0x301b('0x21'),_0x3d8f6e)};}_0x1f3031['plugins'][_0x301b('0x1e')]('TrackChangesEditing')[_0x301b('0x14')]['registerDescriptionCallback'](_0x4b6bd6=>{if('formatBlock'!=_0x4b6bd6[_0x301b('0x26')])return;const {data:_0x42c67d}=_0x4b6bd6;if(_0x42c67d){if(_0x301b('0x19')==_0x42c67d[_0x301b('0x24')]){const _0x146f17=_0x42c67d['commandParams'][0x0][_0x301b('0x33')];return _0x2ebbd4(_0x4a0d79(_0x5c1e02,_0x146f17?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if(_0x301b('0x1a')==_0x42c67d[_0x301b('0x24')]){const _0x4dc20b=_0x42c67d['commandParams'][0x0][_0x301b('0x33')];return _0x2ebbd4(_0x4a0d79(_0x5c1e02,_0x4dc20b?_0x301b('0x1b'):_0x301b('0x15')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27a9=['getRanges','fromRange','accept','containsRange','model','$graveyard','horizontally','return','commands','TrackChangesEditing','formatBlock','author','selection','isInContent','_tablePostFixingSubtypes','rootName','length','highest','splitTableCellVertically','value','find','push','editor','mergeTableCellDown','forceDefaultExecution','document','formatInline','findAncestor','getAncestors','change','from','mergeTableCellRight','_descriptionFactory','map','add','_isForcedDefaultExecutionBlock','plugins','filter','enableCommand','*Split\x20cell:*\x20vertically','type','afterInit','table','deletion','TableEditing','_acceptFormatSuggestionCallbackFactory','commandName','mergeTableCellUp','root','createTableWalker','getSelectionAffectedTableCells','splitTableCellHorizontally','_areMergableCells','format','get','requires','TableUtils','subType','*Split\x20cell:*\x20horizontally','getCellLocation','low','markMultiRangeBlockFormat','mergeTableCells','locale','registerDescriptionCallback','getSuggestions','has','refresh','stop','createRangeOn','cell','mergeTableCellLeft','setSelection','*Merge\x20cells*','_areSelectedCellsMergable','registerCustomCallback','_suggestionFactory','size'];(function(_0x3b7a4c,_0x27a9b3){const _0x2fff7d=function(_0x2c6458){while(--_0x2c6458){_0x3b7a4c['push'](_0x3b7a4c['shift']());}};_0x2fff7d(++_0x27a9b3);}(_0x27a9,0x15e));const _0x2fff=function(_0x3b7a4c,_0x27a9b3){_0x3b7a4c=_0x3b7a4c-0x0;let _0x2fff7d=_0x27a9[_0x3b7a4c];return _0x2fff7d;};import{Plugin as _0x409193}from'ckeditor5/src/core.js';import _0x6e1d7c from'./table.js';import{LiveRange as _0x3acde8}from'ckeditor5/src/engine.js';import{getTranslation as _0x4830d6}from'../utils/common-translations.js';export default class jt extends _0x409193{static get[_0x2fff('0x11')](){return[_0x6e1d7c];}[_0x2fff('0x3')](){const _0x3fc771=this['editor'],_0x5c4a8f=_0x3fc771[_0x2fff('0x2c')][_0x2fff('0x41')][_0x2fff('0x34')],_0x5e28a2=_0x3fc771[_0x2fff('0x19')];if(!_0x3fc771[_0x2fff('0x4c')][_0x2fff('0x1c')](_0x2fff('0x6')))return;const _0x1d4590=_0x3fc771[_0x2fff('0x4c')][_0x2fff('0x10')](_0x2fff('0x31')),_0x5621ea=_0x3fc771[_0x2fff('0x4c')]['get'](_0x2fff('0x12')),_0x2b28e1=_0x3fc771[_0x2fff('0x4c')][_0x2fff('0x10')](_0x6e1d7c);_0x2b28e1[_0x2fff('0x36')][_0x2fff('0x3d')](_0x2fff('0x18')),_0x1d4590['enableCommand'](_0x2fff('0x18'),()=>{const _0x25b267=_0x5621ea[_0x2fff('0xc')](_0x3fc771[_0x2fff('0x2c')][_0x2fff('0x41')][_0x2fff('0x34')]);_0x3fc771[_0x2fff('0x2c')][_0x2fff('0x45')](()=>{_0x1d4590[_0x2fff('0x17')](_0x25b267,{'commandName':_0x2fff('0x18'),'commandParams':[]},[],_0x2fff('0x18'));});}),_0x3fc771['commands'][_0x2fff('0x10')](_0x2fff('0x18'))['on']('execute',(_0x3a70f9,_0x239b4f)=>{_0x3fc771[_0x2fff('0x30')][_0x2fff('0x10')]('trackChanges')[_0x2fff('0x3b')]&&(_0x239b4f[_0x2fff('0x38')]>0x0&&_0x239b4f[_0x239b4f[_0x2fff('0x38')]-0x1]&&_0x239b4f[_0x239b4f[_0x2fff('0x38')]-0x1][_0x2fff('0x40')]||_0x1d4590[_0x2fff('0x4b')]||this['_areSelectedCellsMergable']()||_0x3a70f9[_0x2fff('0x1e')]());},{'priority':_0x2fff('0x39')});for(const _0x12e66b of['mergeTableCellUp',_0x2fff('0x47'),_0x2fff('0x3f'),_0x2fff('0x21')]){const _0x315244=_0x3fc771[_0x2fff('0x30')][_0x2fff('0x10')](_0x12e66b);_0x1d4590[_0x2fff('0x0')](_0x12e66b,()=>{const _0x3b5b8a=_0x3fc771[_0x2fff('0x2c')][_0x2fff('0x41')][_0x2fff('0x34')]['getFirstPosition']()[_0x2fff('0x44')]()['find'](_0x4147d4=>_0x4147d4['is']('element','tableCell')),_0x5440af=_0x315244[_0x2fff('0x3b')];_0x3fc771['model'][_0x2fff('0x45')](()=>{_0x1d4590[_0x2fff('0x17')]([_0x3b5b8a,_0x5440af],{'commandName':_0x2fff('0x18'),'commandParams':[]},[],_0x2fff('0x18'));});});}for(const _0x4f2398 of[_0x2fff('0x3a'),'splitTableCellHorizontally']){const _0x127e17=_0x3fc771[_0x2fff('0x30')][_0x2fff('0x10')](_0x4f2398);_0x1d4590['enableCommand'](_0x4f2398,()=>{const _0x4ff6e9=_0x5621ea['getSelectionAffectedTableCells'](_0x3fc771['model']['document'][_0x2fff('0x34')])[0x0],_0x9f9ae6=_0x4ff6e9[_0x2fff('0x43')](_0x2fff('0x4')),{column:_0x57414e,row:_0x2c52dc}=_0x5621ea[_0x2fff('0x15')](_0x4ff6e9);let _0x5139fc=[];if(_0x2fff('0x2e')==_0x127e17['direction']){const _0x27374b=_0x5621ea[_0x2fff('0xb')](_0x9f9ae6,{'startRow':_0x2c52dc,'endRow':_0x2c52dc,'includeAllSlots':!0x0});_0x5139fc=Array[_0x2fff('0x46')](_0x27374b)[_0x2fff('0x49')](_0x145876=>_0x145876[_0x2fff('0x20')]);}else{const _0x2b85b0=_0x5621ea['createTableWalker'](_0x9f9ae6,{'column':_0x57414e,'includeAllSlots':!0x0});_0x5139fc=Array[_0x2fff('0x46')](_0x2b85b0)['map'](_0x33cbc4=>_0x33cbc4[_0x2fff('0x20')]);}_0x3fc771[_0x2fff('0x2c')][_0x2fff('0x45')](_0x54499b=>{_0x1d4590['markBlockFormat'](_0x54499b[_0x2fff('0x1f')](_0x4ff6e9),{'commandName':_0x4f2398,'commandParams':[]},_0x5139fc,_0x4f2398);});});}_0x1d4590[_0x2fff('0x48')][_0x2fff('0x1a')](_0x479e99=>{if(_0x2fff('0x32')!=_0x479e99[_0x2fff('0x2')]&&'formatInline'!=_0x479e99[_0x2fff('0x2')])return;const {data:_0x240fbf}=_0x479e99;return _0x240fbf&&_0x2fff('0x18')==_0x240fbf['commandName']?{'type':_0x2fff('0xf'),'content':_0x4830d6(_0x5e28a2,_0x2fff('0x23'))}:void 0x0;}),_0x1d4590[_0x2fff('0x48')][_0x2fff('0x1a')](_0x3e9a7d=>{if(_0x2fff('0x32')!=_0x3e9a7d[_0x2fff('0x2')]&&_0x2fff('0x42')!=_0x3e9a7d['type'])return;const {data:_0x3c17f1}=_0x3e9a7d;return _0x3c17f1?_0x2fff('0x3a')==_0x3c17f1[_0x2fff('0x8')]?{'type':_0x2fff('0xf'),'content':_0x4830d6(_0x5e28a2,_0x2fff('0x1'))}:_0x2fff('0xd')==_0x3c17f1[_0x2fff('0x8')]?{'type':_0x2fff('0xf'),'content':_0x4830d6(_0x5e28a2,_0x2fff('0x14'))}:void 0x0:void 0x0;});const _0x1e685c=_0x2b28e1[_0x2fff('0x7')]();for(const _0x41b77c of[_0x2fff('0x9'),_0x2fff('0x47'),'mergeTableCellDown',_0x2fff('0x21')])_0x1d4590[_0x2fff('0x26')][_0x2fff('0x25')](_0x2fff('0x32'),_0x41b77c,_0x2fff('0x2a'),_0x1e685c);for(const _0x5c3678 of[_0x2fff('0x3a'),_0x2fff('0xd')])_0x1d4590['_suggestionFactory'][_0x2fff('0x25')](_0x2fff('0x32'),_0x5c3678,_0x2fff('0x2a'),_0x1e685c);_0x1d4590[_0x2fff('0x26')]['registerCustomCallback'](_0x2fff('0x32'),_0x2fff('0x18'),_0x2fff('0x2a'),_0x5da627=>{_0x3fc771[_0x2fff('0x2c')][_0x2fff('0x45')](_0x49d8a0=>{const _0x30bfbc=Array[_0x2fff('0x46')](_0x5c4a8f[_0x2fff('0x28')]())[_0x2fff('0x49')](_0x3fb9fd=>_0x3acde8[_0x2fff('0x29')](_0x3fb9fd));_0x49d8a0['setSelection'](_0x5da627),_0x3fc771['commands'][_0x2fff('0x10')](_0x2fff('0x18'))[_0x2fff('0x1d')](),_0x3fc771['execute'](_0x2fff('0x18'),{'forceDefaultExecution':!0x0});const _0x57897e=_0x30bfbc[_0x2fff('0x4d')](_0x59be86=>_0x2fff('0x2d')!=_0x59be86[_0x2fff('0xa')][_0x2fff('0x37')]);_0x57897e[_0x2fff('0x38')]>0x0&&_0x49d8a0[_0x2fff('0x22')](_0x57897e);for(const _0x396285 of _0x30bfbc)_0x396285['detach']();});});for(const _0x31cd46 of[_0x2fff('0x9'),_0x2fff('0x3f'),'mergeTableCellLeft',_0x2fff('0x47')]){const _0x5df30c=_0x3fc771[_0x2fff('0x30')][_0x2fff('0x10')](_0x31cd46);_0x5df30c['on']('set:isEnabled',(_0x333c2e,_0x54b881,_0x11d7f4)=>{if(_0x11d7f4){const _0x56dc2d=_0x3fc771[_0x2fff('0x2c')][_0x2fff('0x41')][_0x2fff('0x34')]['getFirstPosition']()['getAncestors']()[_0x2fff('0x3c')](_0xeeca67=>_0xeeca67['is']('element','tableCell'));this[_0x2fff('0xe')](_0x5df30c[_0x2fff('0x3b')],_0x56dc2d)||(_0x333c2e[_0x2fff('0x2f')]=!0x1,_0x333c2e[_0x2fff('0x1e')]());}},{'priority':_0x2fff('0x16')});}}[_0x2fff('0x24')](){const _0x327a6d=this[_0x2fff('0x3e')][_0x2fff('0x30')][_0x2fff('0x10')](_0x2fff('0x18')),_0x45cb0c=this['editor']['plugins'][_0x2fff('0x10')]('TableUtils');if(!_0x327a6d['isEnabled'])return!0x1;const _0x16eeda=_0x45cb0c[_0x2fff('0xc')](this[_0x2fff('0x3e')][_0x2fff('0x2c')][_0x2fff('0x41')][_0x2fff('0x34')]);for(const _0x12f979 of _0x16eeda)for(const _0x2ecbd4 of _0x16eeda)if(_0x12f979!=_0x2ecbd4&&!this[_0x2fff('0xe')](_0x12f979,_0x2ecbd4))return!0x1;return!0x0;}[_0x2fff('0xe')](_0x3f01c1,_0x5a7b48){const _0x236752=this[_0x2fff('0x3e')][_0x2fff('0x4c')]['get'](_0x2fff('0x31')),_0x4b6f1a=this[_0x2fff('0x3e')]['model']['createRangeOn'](_0x3f01c1),_0x379cfb=this['editor'][_0x2fff('0x2c')][_0x2fff('0x1f')](_0x5a7b48),_0x33fc39=new Set(),_0x1cf9a8=new Set();for(const _0x4a44df of _0x236752[_0x2fff('0x1b')]())if(('insertion'==_0x4a44df[_0x2fff('0x2')]||_0x2fff('0x5')==_0x4a44df[_0x2fff('0x2')]||_0x2fff('0x18')==_0x4a44df[_0x2fff('0x13')])&&_0x4a44df[_0x2fff('0x35')])for(const _0x4bed04 of _0x4a44df[_0x2fff('0x28')]())_0x4bed04[_0x2fff('0x2b')](_0x4b6f1a,!0x0)&&_0x33fc39[_0x2fff('0x4a')](_0x4a44df[_0x2fff('0x2')]+':'+_0x4a44df[_0x2fff('0x33')]['id']),_0x4bed04['containsRange'](_0x379cfb,!0x0)&&_0x1cf9a8[_0x2fff('0x4a')](_0x4a44df[_0x2fff('0x2')]+':'+_0x4a44df[_0x2fff('0x33')]['id']);if(_0x33fc39[_0x2fff('0x27')]!=_0x1cf9a8[_0x2fff('0x27')])return!0x1;for(const _0x125aec of _0x33fc39)if(!_0x1cf9a8[_0x2fff('0x1c')](_0x125aec))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30cc=['plugins','enableCommand','locale','afterInit','ELEMENT_TABLE_OF_CONTENTS','insertTableOfContents','TrackChangesEditing','registerElementLabel','get','commands'];(function(_0x55288f,_0x30ccd0){const _0x29c74e=function(_0x34c4f4){while(--_0x34c4f4){_0x55288f['push'](_0x55288f['shift']());}};_0x29c74e(++_0x30ccd0);}(_0x30cc,0x1ca));const _0x29c7=function(_0x55288f,_0x30ccd0){_0x55288f=_0x55288f-0x0;let _0x29c74e=_0x30cc[_0x55288f];return _0x29c74e;};import{Plugin as _0x1cabe6}from'ckeditor5/src/core.js';import{getTranslation as _0x517acb}from'../utils/common-translations.js';export default class _t extends _0x1cabe6{[_0x29c7('0x5')](){const _0x9f1b8b=this['editor'];if(!_0x9f1b8b[_0x29c7('0x1')][_0x29c7('0x0')](_0x29c7('0x7')))return;_0x9f1b8b[_0x29c7('0x2')][_0x29c7('0x0')](_0x29c7('0x8'))[_0x29c7('0x3')](_0x29c7('0x7'));const _0x4e5289=_0x9f1b8b[_0x29c7('0x2')]['get'](_0x29c7('0x8')),_0x40015b=_0x9f1b8b[_0x29c7('0x4')];_0x4e5289['_descriptionFactory'][_0x29c7('0x9')]('tableOfContents',_0x140226=>_0x517acb(_0x40015b,_0x29c7('0x6'),_0x140226));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4717=['getSelectionAffectedTableCells','TrackChangesEditing','tableProperties','document','plugins','*Format:*\x20change\x20table\x20cell\x20properties','TablePropertiesEditing','subType','model','_suggestionFactory','tableCellHeight','editor','tableBackgroundColor','tableBorderColor','getFirstPosition','formatBlock','tableBorderWidth','enableCommand','TableCellPropertiesEditing','discard','afterInit','tableCellPadding','tableCellWidth','has','accept','_handlePropertyChange','handleDiscardAction','get','tableCellBorderColor','setAttribute','commandParams','batch','tableCellHorizontalAlignment','TableUtils','getSuggestionCallback','tableAlignment','findAncestor','locale','nodeAfter','change','table','tableCellVerticalAlignment','data','getContainedElement','handleSuggestionDescription','TrackChangesTableProperties','tableHeight','registerCustomCallback','tableWidth','_getSuggestion','tableBorderStyle','tableCellBorderStyle','format','enqueueChange','removeAttribute','tableCellBorderWidth','selection','tableCellProperties'];(function(_0x98c2c9,_0x47177c){const _0x40714d=function(_0x1814c0){while(--_0x1814c0){_0x98c2c9['push'](_0x98c2c9['shift']());}};_0x40714d(++_0x47177c);}(_0x4717,0x8c));const _0x4071=function(_0x98c2c9,_0x47177c){_0x98c2c9=_0x98c2c9-0x0;let _0x40714d=_0x4717[_0x98c2c9];return _0x40714d;};import{Plugin as _0xba9d53}from'ckeditor5/src/core.js';import{getTranslation as _0x313887}from'../utils/common-translations.js';export default class Mt extends _0xba9d53{constructor(_0x59d256){super(_0x59d256),this[_0x4071('0x24')]=[_0x4071('0x2f'),_0x4071('0x1a'),_0x4071('0x32'),_0x4071('0xb'),_0x4071('0x18'),_0x4071('0x16'),_0x4071('0x2e')],this['tableCellProperties']=[_0x4071('0x4'),_0x4071('0x1b'),_0x4071('0x1f'),_0x4071('0x37'),_0x4071('0x38'),_0x4071('0x2c'),'tableCellBackgroundColor',_0x4071('0x8'),_0x4071('0x11')];}static get['pluginName'](){return _0x4071('0x15');}[_0x4071('0x36')](){const _0x31d332=this[_0x4071('0x2d')][_0x4071('0x26')][_0x4071('0x3')](_0x4071('0x23'));if(this['editor'][_0x4071('0x26')][_0x4071('0x39')](_0x4071('0x28'))){for(const _0x343f2f of this[_0x4071('0x24')])_0x31d332[_0x4071('0x33')](_0x343f2f,(_0x27c590,_0x3d8121)=>{const _0x436be2=this[_0x4071('0x2d')][_0x4071('0x2a')][_0x4071('0x25')][_0x4071('0x20')][_0x4071('0x30')]()[_0x4071('0xc')](_0x4071('0x10'));this[_0x4071('0x1')](_0x343f2f,[_0x436be2],this['tableProperties'],_0x4071('0x24'),_0x27c590,_0x3d8121);});_0x31d332['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4071('0x24'),_0x4071('0x0'),_0x31d332[_0x4071('0x2b')][_0x4071('0xa')](_0x4071('0x31'),null,_0x4071('0x35'))),_0x31d332[_0x4071('0x2b')][_0x4071('0x17')]('formatBlock',_0x4071('0x24'),'discard',(_0x126308,_0x44d173)=>this['handleDiscardAction'](this[_0x4071('0x24')],_0x126308,_0x44d173)),_0x31d332['_suggestionFactory'][_0x4071('0x17')](_0x4071('0x31'),_0x4071('0x24'),'join',()=>!0x1);}if(this[_0x4071('0x2d')]['plugins']['has'](_0x4071('0x34'))){for(const _0x3f8c47 of this[_0x4071('0x21')])_0x31d332[_0x4071('0x33')](_0x3f8c47,(_0x90d501,_0x2fca79)=>{const _0x56ff0a=this[_0x4071('0x2d')][_0x4071('0x26')][_0x4071('0x3')](_0x4071('0x9'))[_0x4071('0x22')](this[_0x4071('0x2d')][_0x4071('0x2a')][_0x4071('0x25')][_0x4071('0x20')]);this[_0x4071('0x1')](_0x3f8c47,_0x56ff0a,this[_0x4071('0x21')],_0x4071('0x21'),_0x90d501,_0x2fca79);});_0x31d332[_0x4071('0x2b')][_0x4071('0x17')]('formatBlock',_0x4071('0x21'),_0x4071('0x0'),_0x31d332[_0x4071('0x2b')]['getSuggestionCallback'](_0x4071('0x31'),null,_0x4071('0x35'))),_0x31d332[_0x4071('0x2b')][_0x4071('0x17')](_0x4071('0x31'),_0x4071('0x21'),'discard',(_0x5566e7,_0x5347e6)=>this[_0x4071('0x2')](this[_0x4071('0x21')],_0x5566e7,_0x5347e6)),_0x31d332['_suggestionFactory'][_0x4071('0x17')](_0x4071('0x31'),'tableCellProperties','join',()=>!0x1);}_0x31d332['_descriptionFactory']['registerDescriptionCallback'](_0x2ce1cc=>this[_0x4071('0x14')](_0x2ce1cc));}[_0x4071('0x1')](_0xb5cf2e,_0x1c5cc4,_0x74ed4c,_0x20be82,_0x5dd56c,_0x34d03e){const _0x49d8bf=this[_0x4071('0x2d')][_0x4071('0x26')]['get'](_0x4071('0x23'));this[_0x4071('0x2d')][_0x4071('0x2a')][_0x4071('0x1d')](_0x34d03e[_0x4071('0x7')],()=>{for(const _0x50b29f of _0x1c5cc4){if(this[_0x4071('0x19')](_0x50b29f,_0x20be82))_0x5dd56c(_0x34d03e);else{const _0x389991={};for(const _0x2c93a6 of _0x74ed4c){const _0x3cac7d=_0x50b29f['getAttribute'](_0x2c93a6);void 0x0!==_0x3cac7d&&(_0x389991[_0x2c93a6]=_0x3cac7d);}_0x5dd56c(_0x34d03e),_0x49d8bf['markBlockFormat'](_0x50b29f,{'commandParams':[_0x389991]},[],_0x20be82);}}});}[_0x4071('0x2')](_0x1f6554,_0x5d5c38,_0x57147b){const _0x8dbbf5=_0x5d5c38[0x0]['start'][_0x4071('0xe')],_0x2f5c23=_0x57147b[_0x4071('0x6')][0x0];this[_0x4071('0x2d')]['model'][_0x4071('0xf')](_0x222af8=>{for(const _0xb4809d of _0x1f6554)void 0x0!==_0x2f5c23[_0xb4809d]?_0x222af8[_0x4071('0x5')](_0xb4809d,_0x2f5c23[_0xb4809d],_0x8dbbf5):_0x222af8[_0x4071('0x1e')](_0xb4809d,_0x8dbbf5);});}[_0x4071('0x14')](_0x3ebd7a){if(_0x3ebd7a[_0x4071('0x12')])switch(_0x3ebd7a[_0x4071('0x29')]){case _0x4071('0x24'):return{'type':_0x4071('0x1c'),'content':_0x313887(this[_0x4071('0x2d')][_0x4071('0xd')],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':_0x4071('0x1c'),'content':_0x313887(this['editor'][_0x4071('0xd')],_0x4071('0x27'))};}}['_getSuggestion'](_0xb94e8a,_0x2c35f0){const _0x5e4025=this[_0x4071('0x2d')][_0x4071('0x26')][_0x4071('0x3')](_0x4071('0x23'));for(const _0x94efe4 of _0x5e4025['getSuggestions']({'skipNotAttached':!0x0})){const _0x5f143e=_0x94efe4[_0x4071('0x13')]();if(_0x94efe4[_0x4071('0x29')]===_0x2c35f0&&_0x5f143e===_0xb94e8a)return _0x94efe4;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27f4=['afterInit','has','enableCommand','Template','get','editor','plugins'];(function(_0x145424,_0x27f4dd){const _0xacfefc=function(_0x349ee2){while(--_0x349ee2){_0x145424['push'](_0x145424['shift']());}};_0xacfefc(++_0x27f4dd);}(_0x27f4,0xb9));const _0xacfe=function(_0x145424,_0x27f4dd){_0x145424=_0x145424-0x0;let _0xacfefc=_0x27f4[_0x145424];return _0xacfefc;};import{Plugin as _0x2a9069}from'ckeditor5/src/core.js';export default class vt extends _0x2a9069{[_0xacfe('0x4')](){const _0x496273=this[_0xacfe('0x2')];_0x496273[_0xacfe('0x3')][_0xacfe('0x5')](_0xacfe('0x0'))&&_0x496273[_0xacfe('0x3')][_0xacfe('0x1')]('TrackChangesEditing')[_0xacfe('0x6')]('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37d7=['differ','nodeBefore','createRange','plugins','title-content','get','afterInit','isEqual','TrackChangesEditing','document','newRange','model','getNearestSelectionRange','forward','registerPostFixer','registerElementLabel','isCollapsed','suggestion','end','locale','from','editor','updateMarker','isTouching','has','element','start','Title'];(function(_0x207b2c,_0x37d7ef){const _0x43c95c=function(_0xbb83e2){while(--_0xbb83e2){_0x207b2c['push'](_0x207b2c['shift']());}};_0x43c95c(++_0x37d7ef);}(_0x37d7,0xec));const _0x43c9=function(_0x207b2c,_0x37d7ef){_0x207b2c=_0x207b2c-0x0;let _0x43c95c=_0x37d7[_0x207b2c];return _0x43c95c;};import{Plugin as _0x547338}from'ckeditor5/src/core.js';import{getTranslation as _0xa9819b}from'../utils/common-translations.js';export default class Ct extends _0x547338{[_0x43c9('0x16')](){const _0x495207=this[_0x43c9('0x9')];if(!_0x495207[_0x43c9('0x13')][_0x43c9('0xc')](_0x43c9('0xf')))return;const _0x5f11b2=_0x495207['plugins'][_0x43c9('0x15')](_0x43c9('0x18'));_0x5f11b2['_descriptionFactory'][_0x43c9('0x3')](_0x43c9('0x14'),()=>_0xa9819b(_0x495207[_0x43c9('0x7')],'ELEMENT_TITLE')),_0x495207[_0x43c9('0x1b')][_0x43c9('0x19')][_0x43c9('0x2')](_0x3d5c58=>{let _0xca54eb=!0x1;const _0x23052c=Array[_0x43c9('0x8')](_0x495207[_0x43c9('0x1b')][_0x43c9('0x19')][_0x43c9('0x10')]['getChangedMarkers']());for(const {name:_0x50b616,data:_0x4ab1fb}of _0x23052c){const {group:_0x405fd9}=_0x5f11b2['_splitMarkerName'](_0x50b616);if(_0x43c9('0x5')!==_0x405fd9||!_0x4ab1fb[_0x43c9('0x1a')])continue;const _0x2697f8=_0x4ab1fb[_0x43c9('0x1a')],_0x486282=_0x2697f8[_0x43c9('0x6')][_0x43c9('0x11')];if(!_0x486282||!_0x486282['is'](_0x43c9('0xd'),_0x43c9('0x14')))continue;if(!_0x2697f8[_0x43c9('0xe')][_0x43c9('0xb')](_0x2697f8[_0x43c9('0x6')]))continue;const _0x5c0f62=_0x495207[_0x43c9('0x1b')]['schema'][_0x43c9('0x0')](_0x2697f8[_0x43c9('0x6')],_0x43c9('0x1'));if(_0x5c0f62&&_0x5c0f62[_0x43c9('0x4')]){const _0x3828c7=_0x3d5c58[_0x43c9('0x12')](_0x2697f8[_0x43c9('0xe')],_0x5c0f62[_0x43c9('0xe')]);_0x3828c7[_0x43c9('0x17')](_0x2697f8)||(_0x3d5c58[_0x43c9('0xa')](_0x50b616,{'range':_0x3828c7}),_0xca54eb=!0x0);}_0xca54eb||(_0x3d5c58['removeMarker'](_0x50b616),_0xca54eb=!0x0);}return _0xca54eb;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ec0=['undo','plugins','enableCommand','redo','has','afterInit','UndoEditing','get','TrackChangesEditing','editor'];(function(_0x3d9489,_0x5ec035){const _0x44afb1=function(_0x1c0413){while(--_0x1c0413){_0x3d9489['push'](_0x3d9489['shift']());}};_0x44afb1(++_0x5ec035);}(_0x5ec0,0x166));const _0x44af=function(_0x3d9489,_0x5ec035){_0x3d9489=_0x3d9489-0x0;let _0x44afb1=_0x5ec0[_0x3d9489];return _0x44afb1;};import{Plugin as _0x3afac7}from'ckeditor5/src/core.js';export default class Dt extends _0x3afac7{[_0x44af('0x7')](){const _0x12ca7c=this[_0x44af('0x1')],_0x34616e=_0x12ca7c[_0x44af('0x3')][_0x44af('0x9')](_0x44af('0x0'));_0x12ca7c[_0x44af('0x3')][_0x44af('0x6')](_0x44af('0x8'))&&(_0x34616e['enableCommand'](_0x44af('0x2')),_0x34616e[_0x44af('0x4')](_0x44af('0x5')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x978a=['includes','type','hasAttribute','activeMarkers','toViewPosition','writer','createUIElement','getAttribute','element','markerName','isContent','mapper','model','name','markerRange','nextSibling','listIndent','start','push','addClass','schema','isAtEnd','previousPosition','span','plugins','toViewElement','insert','createRangeOn'];(function(_0x3914f9,_0x978a27){const _0x358e5c=function(_0x12958b){while(--_0x12958b){_0x3914f9['push'](_0x3914f9['shift']());}};_0x358e5c(++_0x978a27);}(_0x978a,0x154));const _0x358e=function(_0x3914f9,_0x978a27){_0x3914f9=_0x3914f9-0x0;let _0x358e5c=_0x978a[_0x3914f9];return _0x358e5c;};export function getRangesWithAttribute(_0x32e05b,_0x5cc4a8,_0x13b35f){const _0x593828=[];for(const _0x3934b0 of _0x5cc4a8['getItems']())_0x3934b0[_0x358e('0x1a')](_0x32e05b)&&_0x593828[_0x358e('0xe')](_0x13b35f[_0x358e('0x17')](_0x3934b0));return _0x593828;}export function getElementsAffectedByListItemRename(_0x1eef82){const _0x286ee9=[];if(_0x1eef82['is'](_0x358e('0x4'),'listItem')){let _0x2c6174=_0x1eef82[_0x358e('0xb')];for(;_0x2c6174&&_0x2c6174['is'](_0x358e('0x4'),'listItem')&&_0x2c6174[_0x358e('0x3')](_0x358e('0xc'))>0x0;)_0x286ee9['push'](_0x2c6174),_0x2c6174=_0x2c6174[_0x358e('0xb')];}return _0x286ee9;}export function downcastSplitMergeMarker(_0xe11c07,_0x5398e4,{showActiveMarker:_0x1b81cc=!0x0}={}){const _0x28f7e0=_0xe11c07[_0x358e('0x14')]['get']('TrackChangesEditing');return(_0x4f9ce1,_0x3ea131,_0x333175)=>{if(!_0x333175['consumable']['test'](_0x3ea131[_0x358e('0xa')],_0x4f9ce1[_0x358e('0x9')]))return;const _0x104192=_0x3ea131[_0x358e('0xa')]['getWalker'](),_0x44146e=_0x3ea131[_0x358e('0xa')][_0x358e('0xd')],_0x3f031f=_0xe11c07[_0x358e('0x8')][_0x358e('0x10')];let _0xcfcf7=null,_0x14dfc3=null,_0x5b2d03=!0x1,_0x14723c=!0x1;for(const _0x5a26aa of _0x104192){const _0x2afa6a=_0x5a26aa['item'];_0x5b2d03=_0x5b2d03||_0x3f031f[_0x358e('0x6')](_0x2afa6a);const _0x5c08c5=_0x333175[_0x358e('0x7')][_0x358e('0x15')](_0x2afa6a);if(_0x5c08c5&&_0x5c08c5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5a26aa[_0x358e('0x19')]&&(_0x3f031f['isBlock'](_0x2afa6a)&&!_0x3f031f['isLimit'](_0x2afa6a)&&(_0x2afa6a['nextSibling']||_0x44146e[_0x358e('0x11')]?_0xcfcf7&&_0xcfcf7['parent']==_0x2afa6a||(_0xcfcf7=_0x2afa6a,_0xf861c(_0x5a26aa[_0x358e('0x12')]),_0x14723c=!0x0):_0x14dfc3=_0x14dfc3||_0x5a26aa['previousPosition']));}function _0xf861c(_0x34fb55){const _0x195f2b=_0x333175[_0x358e('0x1')][_0x358e('0x2')](_0x358e('0x13'),{'class':'ck-suggestion-marker-'+_0x5398e4}),_0x4e67da=_0x333175['mapper'][_0x358e('0x0')](_0x34fb55);_0x1b81cc&&_0x28f7e0[_0x358e('0x1b')][_0x358e('0x18')](_0x3ea131[_0x358e('0x5')])&&_0x333175['writer'][_0x358e('0xf')]('ck-suggestion-marker--active',_0x195f2b),_0x333175[_0x358e('0x1')][_0x358e('0x16')](_0x4e67da,_0x195f2b),_0x333175[_0x358e('0x7')]['bindElementToMarker'](_0x195f2b,_0x3ea131[_0x358e('0x5')]);}_0x5b2d03||_0x14723c||!_0x14dfc3||_0xf861c(_0x14dfc3);};}
|