@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240202.0 → 0.0.0-nightly-20240204.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 _0x29a0=['$graveyard','getMarkers','removeRows','tablePasteColumn','getRanges','tableCellBackgroundColor','selection','content','schema','markMultiRangeInsertion','startsWith','position','tableCellPadding','push','root','accept','deletionRanges','previousSibling','start','previous','has','includes','getSuggestions','isInContent','model','markerAttributes','getChildren','getShiftedBy','fill','conversion','columnInsertionIndexes','insertRows','_getCoordsForCells','subType','activeMarkers','differ','getChild','nodeAfter','isEqual','endRow','hasSuggestion','change','deletion','nextSibling','discard','insertion','forceDefaultExecution','getAttributes','createElement','afterInit','rowInsertionIndexes','_replaceTableSlotCell','getColumns','setAttribute','insertContent','updateMarker','type','_isForcedDefaultExecutionBlock','tablePasteChainId','TableClipboard','tableCellBorderWidth','cell','find','_tablePostFixingSubtypes','newRange','editor','name','suggestionUnloaded','tableCellBorderColor','batch','ck-suggestion-marker','removeMarkers','getRows','paragraph','end','isEmpty','some','suggestion:formatBlock:tablePasteCell','markerToHighlight','join','createRangeOn','value','editingDowncast','first','editing','ck-suggestion-marker--active','markerName','table','attributes','add','remove','stop','ck-suggestion-marker-insertion','columnInsertionRanges','map','tableCellBorderStyle','endColumn','tablePasteCell','filter','getRange','last','tableCellSuggestion','tablePasteRow','wrap','registerPostFixer','*Replace\x20table\x20cells*','suggestion-td','getSuggestion','getSuggestionCallback','high','trackChanges','clipboardOutput','containsRange','columns','dataDowncast','insert','findAncestor','row','markMultiRangeDeletion','TrackChangesEditing','fromEntries','getItems','low','getSelectionAffectedTableCells','_splitMarkerName','getAllAdjacentSuggestions','createPositionBefore','formatBlock','markMultiRangeBlockFormat','removeMarker','for','createRangeIn','setAttributes','insertionRanges','createTableWalker','elementToElement','rowInsertionRanges','getRowIndexes','oldRange','keys','documentSelection','plugins','view','element','getTableIfOnlyTableInContent','insertColumns','listenTo','set','get','_suggestionFactory','entries','suggestion','author','options','getContainedElement','Users','from','removeColumns','registerCustomCallback','createRange','length','locale','registerDescriptionCallback','document','commands','tablePaste','_createdBatches'];(function(_0x352dee,_0x29a025){const _0x44fc01=function(_0x54e3ce){while(--_0x54e3ce){_0x352dee['push'](_0x352dee['shift']());}};_0x44fc01(++_0x29a025);}(_0x29a0,0x143));const _0x44fc=function(_0x352dee,_0x29a025){_0x352dee=_0x352dee-0x0;let _0x44fc01=_0x29a0[_0x352dee];return _0x44fc01;};import{getTranslation as _0x33709a}from'../utils/common-translations.js';import{Plugin as _0x3eeabe}from'ckeditor5/src/core.js';import{uid as _0x36d651,priorities as _0x4928b1}from'ckeditor5/src/utils.js';import _0x15e5cc from'./table.js';const fe=[_0x44fc('0x47'),_0x44fc('0x4f'),_0x44fc('0x6a'),'tableCellHorizontalAlignment','tableCellVerticalAlignment',_0x44fc('0x10'),_0x44fc('0x17')],be=Object[_0x44fc('0x83')](fe['map'](_0x43e47c=>[_0x43e47c,null]));export default class At extends _0x3eeabe{static get['requires'](){return[_0x15e5cc];}[_0x44fc('0x3c')](){const _0x262469=this['editor'];if(!_0x262469[_0x44fc('0x98')][_0x44fc('0x1f')]('TableClipboard'))return;const _0x19208d=_0x262469['plugins'][_0x44fc('0x9f')](_0x44fc('0x82')),_0x3dacc5=_0x262469[_0x44fc('0x98')][_0x44fc('0x9f')]('TableUtils'),_0xfa7bfb=_0x262469[_0x44fc('0x98')]['get'](_0x15e5cc),_0x1b1ed3=_0x262469[_0x44fc('0x98')]['get']('TableClipboard');_0xfa7bfb[_0x44fc('0x4a')]['push'](_0x44fc('0x71'),_0x44fc('0xe')),_0x262469[_0x44fc('0x23')][_0x44fc('0x13')]['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x262469['conversion'][_0x44fc('0x92')]({'model':_0x44fc('0x70'),'view':_0x44fc('0x75')});let _0x2dcb2f=null;_0x262469['model']['on']('insertContent',(_0x4a87a9,_0x217c5d)=>{const [_0x4dff44,_0x203431]=_0x217c5d,_0x1f16d5=_0x217c5d[_0x217c5d[_0x44fc('0x4')]-0x1];_0x1f16d5&&_0x1f16d5[_0x44fc('0x39')]||_0x19208d[_0x44fc('0x44')]||this[_0x44fc('0x4c')]['commands'][_0x44fc('0x9f')](_0x44fc('0x79'))[_0x44fc('0x5c')]&&function(_0x3c91d1,_0x2cd331,_0x2cf55d,_0x3367c8,_0x5c2c29){if(_0x2cd331&&!_0x2cd331['is'](_0x44fc('0x97')))return!0x1;const _0x217213=_0x5c2c29[_0x44fc('0x9b')](_0x3c91d1,_0x2cf55d);if(!_0x217213||!de(_0x217213,void 0x0,_0x3367c8))return!0x1;const _0x5d941d=_0x3367c8[_0x44fc('0x86')](_0x2cf55d['document'][_0x44fc('0x11')]);if(!_0x5d941d[_0x44fc('0x4')])return!0x1;const _0x453d5b=_0x5d941d[0x0][_0x44fc('0x7f')](_0x44fc('0x62')),_0x3c6752=_0x3367c8[_0x44fc('0x94')](_0x5d941d),_0x276040=_0x3367c8['getColumnIndexes'](_0x5d941d),_0x521ce3={'startRow':_0x3c6752[_0x44fc('0x5e')],'endRow':_0x3c6752['last'],'startColumn':_0x276040['first'],'endColumn':_0x276040[_0x44fc('0x6f')]};return 0x1==_0x5d941d[_0x44fc('0x4')]&&(_0x521ce3[_0x44fc('0x32')]+=_0x3367c8[_0x44fc('0x53')](_0x217213)-0x1,_0x521ce3[_0x44fc('0x6b')]+=_0x3367c8[_0x44fc('0x3f')](_0x217213)-0x1),de(_0x453d5b,_0x521ce3,_0x3367c8);}(_0x4dff44,_0x203431,_0x262469[_0x44fc('0x23')],_0x3dacc5,_0x1b1ed3)&&(_0x4a87a9[_0x44fc('0x66')](),_0x2dcb2f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x262469[_0x44fc('0x23')][_0x44fc('0x34')](()=>{_0x262469[_0x44fc('0x23')][_0x44fc('0x41')](_0x217c5d[0x0],_0x217c5d[0x1],_0x217c5d[0x2],{'forceDefaultExecution':!0x0});const _0x136a3f=_0x36d651(),{rowInsertionRanges:_0x22d685,columnInsertionRanges:_0x8c80f3,insertionRanges:_0xecf501,deletionRanges:_0x33080c,cells:_0x183f8f}=_0x2dcb2f;_0x22d685[_0x44fc('0x4')]&&_0x19208d[_0x44fc('0x14')](_0x22d685,'tablePasteRow',{'tablePasteChainId':_0x136a3f}),_0x8c80f3[_0x44fc('0x4')]&&_0x19208d[_0x44fc('0x14')](_0x8c80f3,_0x44fc('0xe'),{'tablePasteChainId':_0x136a3f}),_0xecf501['length']&&_0x19208d[_0x44fc('0x14')](_0xecf501,'tablePaste',{'tablePasteChainId':_0x136a3f,'skipNestingCheck':!0x0}),_0x33080c[_0x44fc('0x4')]&&_0x19208d[_0x44fc('0x81')](_0x33080c,_0x44fc('0x9'),{'tablePasteChainId':_0x136a3f,'skipNestingCheck':!0x0});const _0x324e7f=_0x19208d[_0x44fc('0x8b')](_0x183f8f['map'](({element:_0x15f890})=>_0x15f890),{'formatGroupId':_0x36d651()},[],_0x44fc('0x6c'),{'tablePasteChainId':_0x136a3f});if(_0x324e7f){const _0xb15773=_0x324e7f[_0x44fc('0xc')](),_0x498e7a=[];for(const {element:_0x567da9,attributes:_0x542e02}of _0x183f8f){if(!_0x542e02)continue;const _0x42e9e9=_0x262469[_0x44fc('0x23')][_0x44fc('0x5b')](_0x567da9),_0x5d1fb2=_0xb15773[_0x44fc('0x49')](_0x29f21f=>_0x29f21f[_0x44fc('0x6e')]()['isEqual'](_0x42e9e9));_0x5d1fb2&&_0x498e7a[_0x44fc('0x18')]([_0x5d1fb2['name'],_0x542e02]);}_0x498e7a[_0x44fc('0x4')]&&_0x324e7f[_0x44fc('0x40')](_0x44fc('0x24'),Object[_0x44fc('0x83')](_0x498e7a));}_0x2dcb2f=null;}));},{'priority':_0x4928b1['high']+0xa}),_0x262469[_0x44fc('0x98')]['get'](_0x44fc('0x46'))['on'](_0x44fc('0x3e'),(_0x37f0a3,_0x493e59)=>{const [_0x312605,_0x2ec734,,_0x2d155d]=_0x493e59;if(!_0x2dcb2f)return;_0x37f0a3['stop']();const _0x23ad27=_0x312605[_0x44fc('0x48')],_0x241843=_0x2ec734,_0x522b6c=ge(_0x23ad27),_0x16852d=ge(_0x241843);_0x37f0a3['return']=_0x23ad27;let _0x408292=null,_0x404a23=null;if(_0x16852d||_0x522b6c){if(_0x522b6c&&!_0x16852d){_0x2d155d['remove'](_0x23ad27[_0x44fc('0x2f')](0x0));for(const _0x141996 of Array[_0x44fc('0x0')](_0x241843[_0x44fc('0x25')]()))_0x2d155d[_0x44fc('0x7e')](_0x141996,_0x23ad27,_0x44fc('0x55'));const _0x3ffc9f=_0x2dcb2f[_0x44fc('0x3d')][_0x44fc('0x20')](_0x312605[_0x44fc('0x80')]),_0x54aaa6=_0x2dcb2f[_0x44fc('0x29')]['includes'](_0x312605['column']);_0x3ffc9f||_0x54aaa6||(_0x408292=_0x2d155d[_0x44fc('0x8e')](_0x23ad27));}else _0x16852d&&!_0x522b6c&&(_0x404a23=_0x2d155d[_0x44fc('0x8e')](_0x23ad27));}else{const _0x1b530c=_0x2d155d[_0x44fc('0x3b')](_0x44fc('0x70')),_0x5e4ac8=_0x2d155d['createElement'](_0x44fc('0x70'));_0x2d155d[_0x44fc('0x72')](_0x2d155d['createRangeIn'](_0x23ad27),_0x5e4ac8),_0x2d155d[_0x44fc('0x7e')](_0x1b530c,_0x23ad27,0x0);for(const _0x91a088 of Array['from'](_0x241843[_0x44fc('0x25')]()))_0x2d155d[_0x44fc('0x7e')](_0x91a088,_0x1b530c,'end');_0x408292=_0x2d155d[_0x44fc('0x5b')](_0x1b530c),_0x404a23=_0x2d155d['createRangeOn'](_0x5e4ac8);}const _0x47e500=Array['from'](_0x241843[_0x44fc('0x3a')]())[_0x44fc('0x6d')](([_0x1ba8a2])=>fe[_0x44fc('0x20')](_0x1ba8a2));_0x2dcb2f['cells'][_0x44fc('0x18')]({'element':_0x23ad27,'attributes':_0x47e500[_0x44fc('0x4')]?Object['fromEntries'](_0x47e500):null}),_0x408292&&_0x2dcb2f[_0x44fc('0x90')]['push'](_0x408292),_0x404a23&&_0x2dcb2f[_0x44fc('0x1b')][_0x44fc('0x18')](_0x404a23);},{'priority':_0x44fc('0x78')}),_0x3dacc5['on'](_0x44fc('0x9c'),(_0x139405,_0x319642)=>{const [_0x5ce193,_0x487b30={}]=_0x319642;if(!_0x2dcb2f)return;const _0x152fd5=_0x487b30['at']||0x0,_0x453ac5=_0x487b30[_0x44fc('0x7c')]||0x1;_0x2dcb2f[_0x44fc('0x29')]=new Array(_0x453ac5)[_0x44fc('0x27')](_0x152fd5)[_0x44fc('0x69')]((_0x47fe08,_0x4ce37d)=>_0x47fe08+_0x4ce37d);for(const {cell:_0x1d4eb4}of _0x3dacc5[_0x44fc('0x91')](_0x5ce193,{'startColumn':_0x152fd5,'endColumn':_0x152fd5+_0x453ac5-0x1}))_0x2dcb2f[_0x44fc('0x68')][_0x44fc('0x18')](_0x262469[_0x44fc('0x23')]['createRangeOn'](_0x1d4eb4));},{'priority':_0x44fc('0x85')}),_0x3dacc5['on'](_0x44fc('0x2a'),(_0x249215,_0x423b94)=>{const [_0x3af304,_0x381866={}]=_0x423b94;if(!_0x2dcb2f)return;const _0x48295d=_0x381866['at']||0x0,_0x42d150=_0x381866['rows']||0x1;_0x2dcb2f[_0x44fc('0x3d')]=new Array(_0x42d150)[_0x44fc('0x27')](_0x48295d)['map']((_0x47501e,_0x127492)=>_0x47501e+_0x127492);for(const {cell:_0x282f8b}of _0x3dacc5[_0x44fc('0x91')](_0x3af304,{'startRow':_0x48295d,'endRow':_0x48295d+_0x42d150-0x1}))_0x2dcb2f[_0x44fc('0x93')][_0x44fc('0x18')](_0x262469[_0x44fc('0x23')][_0x44fc('0x5b')](_0x282f8b));},{'priority':_0x44fc('0x85')}),_0x19208d['_descriptionFactory'][_0x44fc('0x6')](_0x9b1b3=>{if(_0x9b1b3[_0x44fc('0x2c')]&&_0x9b1b3['subType'][_0x44fc('0x15')](_0x44fc('0x9')))return _0x9b1b3['previous']?{}:{'type':'insertion','content':_0x33709a(_0x262469[_0x44fc('0x5')],_0x44fc('0x74'))};});const _0x26279b=()=>!0x1;for(const _0x1f6c4b of[_0x44fc('0x9'),_0x44fc('0xe'),_0x44fc('0x71'),_0x44fc('0x6c')])_0x19208d['_suggestionFactory'][_0x44fc('0x2')]('insertion',_0x1f6c4b,_0x44fc('0x5a'),_0x26279b),_0x19208d[_0x44fc('0xa0')]['registerCustomCallback'](_0x44fc('0x35'),_0x1f6c4b,_0x44fc('0x5a'),_0x26279b),_0x19208d[_0x44fc('0xa0')][_0x44fc('0x2')](_0x44fc('0x8a'),_0x1f6c4b,_0x44fc('0x5a'),_0x26279b);_0x19208d['_suggestionFactory']['registerCustomCallback'](_0x44fc('0x8a'),'tablePasteCell',_0x44fc('0x37'),_0x26279b),_0x19208d[_0x44fc('0xa0')][_0x44fc('0x2')]('formatBlock',_0x44fc('0x6c'),'accept',(_0x30c7c8,_0x265e57,_0x57da20)=>{const _0x397dac=_0x30c7c8[_0x44fc('0x69')](_0x1c61c8=>_0x1c61c8['getContainedElement']())[_0x44fc('0x6d')](_0x175a81=>_0x175a81),_0x15e8e6=new Map(_0x397dac[_0x44fc('0x69')](_0x20d114=>[_0x20d114,null]));if(_0x2dcb2f)for(const {element:_0x3d3c14,attributes:_0x191f78}of _0x2dcb2f['cells'])_0x191f78&&_0x15e8e6['set'](_0x3d3c14,_0x191f78);else{if(_0x57da20&&_0x57da20[_0x44fc('0x24')])for(const [_0x27517e,_0x23d394]of Object[_0x44fc('0xa1')](_0x57da20[_0x44fc('0x24')])){const _0x2c22e3=_0x262469[_0x44fc('0x23')]['markers'][_0x44fc('0x9f')](_0x27517e),_0x26a581=_0x2c22e3?_0x2c22e3['getRange']()[_0x44fc('0xa5')]():null;_0x26a581&&_0x15e8e6[_0x44fc('0x9e')](_0x26a581,_0x23d394);}}_0x262469[_0x44fc('0x23')][_0x44fc('0x34')](_0x15d260=>{for(const [_0x35ceb1,_0x13cd28]of _0x15e8e6)_0x15d260[_0x44fc('0x8f')]({...be,..._0x13cd28},_0x35ceb1);});});const _0x1aa84a=(_0x197ed8,_0x52cdfa)=>{_0x19208d[_0x44fc('0xa0')][_0x44fc('0x2')](_0x197ed8,_0x44fc('0x9'),_0x52cdfa,(_0x2c0847,_0x8714ec,_0x35a5fb)=>{_0x262469[_0x44fc('0x23')][_0x44fc('0x34')](_0x3bf3b6=>{const _0x3dea7b=[];for(const _0x1a845a of _0x2c0847){const _0x85c6f1=_0x1a845a[_0x44fc('0x1d')][_0x44fc('0x30')];_0x85c6f1['is'](_0x44fc('0x9a'),_0x44fc('0x70'))&&_0x3dea7b['push'](_0x85c6f1);}_0x19208d[_0x44fc('0xa0')][_0x44fc('0x77')](_0x197ed8,null,_0x52cdfa)(_0x2c0847,_0x8714ec,_0x35a5fb);for(const _0x1c456b of _0x3dea7b)_0x44fc('0xb')!=_0x1c456b[_0x44fc('0x19')]['rootName']&&_0x3bf3b6['unwrap'](_0x1c456b);});});};_0x1aa84a(_0x44fc('0x38'),_0x44fc('0x1a')),_0x1aa84a('insertion',_0x44fc('0x37')),_0x1aa84a(_0x44fc('0x35'),'accept'),_0x1aa84a(_0x44fc('0x35'),_0x44fc('0x37')),_0x19208d[_0x44fc('0xa0')]['registerCustomCallback'](_0x44fc('0x38'),_0x44fc('0x71'),_0x44fc('0x37'),_0x4cb831=>{const _0x73ab7=_0x4cb831['map'](_0x4801db=>_0x4801db[_0x44fc('0xa5')]()),_0x141e8e=_0x73ab7[0x0][_0x44fc('0x7f')]('table'),{minRow:_0x1109f2,maxRow:_0x8b666e}=_0xfa7bfb[_0x44fc('0x2b')](_0x73ab7);_0x3dacc5[_0x44fc('0xd')](_0x141e8e,{'at':_0x1109f2,'rows':_0x8b666e-_0x1109f2+0x1});}),_0x19208d['_suggestionFactory']['registerCustomCallback'](_0x44fc('0x38'),'tablePasteColumn','discard',_0x5fe761=>{const _0x56c9ad=_0x5fe761[_0x44fc('0x69')](_0x59fe4c=>_0x59fe4c['getContainedElement']()),_0x56bca0=_0x56c9ad[0x0]['findAncestor'](_0x44fc('0x62')),{minColumn:_0x4e2e86,maxColumn:_0x59b895}=_0xfa7bfb[_0x44fc('0x2b')](_0x56c9ad);_0x3dacc5[_0x44fc('0x1')](_0x56bca0,{'at':_0x4e2e86,'columns':_0x59b895-_0x4e2e86+0x1});});const _0x30be06=(_0x5ab4db,_0x156c2a)=>{if(!_0x156c2a[_0x44fc('0x2c')]||!_0x156c2a['subType'][_0x44fc('0x15')](_0x44fc('0x9')))return;const _0x3d3faf=_0x156c2a[_0x44fc('0x63')][_0x44fc('0x45')],_0x10caac=_0x19208d[_0x44fc('0x21')]()[_0x44fc('0x6d')](_0x3d96a1=>_0x3d96a1[_0x44fc('0x22')]&&_0x3d96a1[_0x44fc('0x63')]&&_0x3d96a1['attributes'][_0x44fc('0x45')]==_0x3d3faf);_0x10caac[_0x44fc('0x4')]&&_0x156c2a['getAllAdjacentSuggestions']()['length']!=_0x10caac[_0x44fc('0x4')]&&_0x10caac['reduce']((_0x840af6,_0x497335)=>(_0x840af6['next']=_0x497335,_0x497335[_0x44fc('0x1e')]=_0x840af6,_0x497335));};function _0xe59dff(_0x3a0b64,_0x20b591=!0x0){const {id:_0x4d84e9}=_0x19208d['_splitMarkerName'](_0x3a0b64['markerName']),_0x1d543e=[_0x44fc('0x51'),_0x44fc('0x67')],_0x41647d=_0x19208d[_0x44fc('0x2d')][_0x44fc('0x20')](_0x3a0b64[_0x44fc('0x61')]);return _0x41647d&&_0x1d543e[_0x44fc('0x18')](_0x44fc('0x60')),{'classes':_0x1d543e,'attributes':{'data-suggestion':_0x4d84e9},'priority':_0x41647d&&_0x20b591?0xbc2:0xbb8};}_0x19208d['on']('suggestionLoaded',_0x30be06,{'priority':_0x44fc('0x78')}),_0x19208d['on'](_0x44fc('0x4e'),_0x30be06,{'priority':'high'}),_0x262469[_0x44fc('0x23')][_0x44fc('0x7')][_0x44fc('0x73')](()=>{let _0x4e520c=!0x1;const _0x1f21ac=Array[_0x44fc('0x0')](_0x262469[_0x44fc('0x23')][_0x44fc('0x7')]['differ']['getChangedMarkers']());for(const {name:_0x3da3f2,data:_0x37e14e}of _0x1f21ac){const {group:_0x2276f4,type:_0x1515e3,id:_0x403073}=_0x19208d[_0x44fc('0x87')](_0x3da3f2);if(_0x44fc('0xa2')!=_0x2276f4||'deletion'!=_0x1515e3||_0x37e14e[_0x44fc('0x95')])continue;if(!_0x19208d[_0x44fc('0x33')](_0x403073))continue;const _0x5a7272=_0x19208d[_0x44fc('0x76')](_0x403073)[_0x44fc('0xf')](),_0x5020f3=_0x262469[_0x44fc('0x98')][_0x44fc('0x9f')](_0x44fc('0xa6'))['me'];for(const _0x7d2f6e of _0x19208d[_0x44fc('0x21')]()){if(!_0x7d2f6e[_0x44fc('0x22')]||_0x7d2f6e[_0x44fc('0xa3')]!=_0x5020f3)continue;if(_0x44fc('0x8a')!=_0x7d2f6e[_0x44fc('0x43')]||_0x44fc('0x6c')!=_0x7d2f6e[_0x44fc('0x2c')])continue;if(_0x7d2f6e[_0x44fc('0xf')]()['every'](_0xf0ee68=>_0x5a7272[_0x44fc('0x57')](_0x390bae=>_0x390bae[_0x44fc('0x7b')](_0xf0ee68,!0x0))))for(const _0x350e58 of _0x7d2f6e[_0x44fc('0x88')]())_0x350e58[_0x44fc('0x22')]&&(_0x350e58[_0x44fc('0x37')](),_0x4e520c=!0x0);}}return _0x4e520c;}),_0x262469[_0x44fc('0x23')][_0x44fc('0x7')][_0x44fc('0x73')](_0x3fad2e=>{const _0x596d6d=_0x262469[_0x44fc('0x8')][_0x44fc('0x9f')]('redo');if(!_0x596d6d||!_0x596d6d[_0x44fc('0xa')]['has'](_0x3fad2e[_0x44fc('0x50')]))return!0x1;let _0x327f33=!0x1;const _0x22413c=_0x262469[_0x44fc('0x98')][_0x44fc('0x9f')]('Users')['me'],_0x3077a1=_0x262469[_0x44fc('0x23')]['document'][_0x44fc('0x2e')]['getChanges'](),_0x4700c6=Array[_0x44fc('0x0')](_0x262469[_0x44fc('0x23')][_0x44fc('0x7')]['differ']['getChangedMarkers']())[_0x44fc('0x6d')](({name:_0x57887e,data:_0x4e0854})=>{const {group:_0x205b05,subType:_0x165241,authorId:_0x39144c}=_0x19208d[_0x44fc('0x87')](_0x57887e);return _0x44fc('0xa2')==_0x205b05&&_0x44fc('0x9')==_0x165241&&_0x39144c==_0x22413c['id']&&!_0x4e0854[_0x44fc('0x95')];});for(const _0x296f54 of _0x3077a1){if(_0x44fc('0x7e')!=_0x296f54[_0x44fc('0x43')]||_0x44fc('0x70')!=_0x296f54['name']||0x1!=_0x296f54[_0x44fc('0x4')])continue;const _0x3a0628=_0x3fad2e[_0x44fc('0x3')](_0x296f54[_0x44fc('0x16')],_0x296f54[_0x44fc('0x16')][_0x44fc('0x26')](0x1));if(!_0x4700c6[_0x44fc('0x49')](({data:_0xfe314a})=>_0xfe314a[_0x44fc('0x4b')][_0x44fc('0x31')](_0x3a0628)))for(const {name:_0x32d88c,data:_0x32fea8}of _0x4700c6)if(_0x3a0628['containsRange'](_0x32fea8[_0x44fc('0x4b')])){_0x3fad2e[_0x44fc('0x42')](_0x32d88c,{'range':_0x3a0628}),_0x327f33=!0x0;break;}}return _0x327f33;}),_0x262469[_0x44fc('0x23')][_0x44fc('0x7')][_0x44fc('0x73')](_0x3fbb17=>{let _0x1f3a14=!0x1;const _0x912414=_0x262469['plugins'][_0x44fc('0x9f')]('Users')['me'],_0x257cad=_0x19208d['getSuggestions']()[_0x44fc('0x6d')](_0x5a9b93=>_0x5a9b93[_0x44fc('0x22')]&&_0x5a9b93['author']==_0x912414),_0x5781cc=new Set(),_0x2d990e=new Set();for(const _0x111f09 of _0x257cad)if(_0x44fc('0x9')==_0x111f09[_0x44fc('0x2c')])for(const _0x2fb7e3 of _0x111f09[_0x44fc('0xc')]()){const _0x5ec434=_0x2fb7e3[_0x44fc('0x6e')]()[_0x44fc('0xa5')]();if(_0x5ec434){if(_0x5ec434['is'](_0x44fc('0x9a'),_0x44fc('0x70'))&&ge(_0x5ec434)){_0x111f09[_0x44fc('0x8c')](_0x2fb7e3[_0x44fc('0x4d')]),_0x5781cc[_0x44fc('0x64')](_0x5ec434),_0x1f3a14=!0x0;const _0x1903be=_0x5ec434[_0x44fc('0x36')],_0x38c46d=_0x5ec434[_0x44fc('0x1c')],_0x4f2c50=_0x1903be&&_0x1903be['is']('element','tableCellSuggestion'),_0x4c693f=_0x38c46d&&_0x38c46d['is'](_0x44fc('0x9a'),_0x44fc('0x70'));_0x4f2c50&&!_0x5781cc['has'](_0x1903be)&&_0x2d990e['add'](_0x1903be),_0x4c693f&&!_0x5781cc['has'](_0x38c46d)&&_0x2d990e[_0x44fc('0x64')](_0x38c46d);}else _0x5ec434['is'](_0x44fc('0x9a'),'paragraph')&&_0x5ec434[_0x44fc('0x56')]&&(_0x111f09[_0x44fc('0x8c')](_0x2fb7e3[_0x44fc('0x4d')]),_0x1f3a14=!0x0);}}else{if(_0x44fc('0x6c')==_0x111f09[_0x44fc('0x2c')]){if(!_0x111f09[_0x44fc('0x63')]||!_0x111f09['attributes'][_0x44fc('0x45')])continue;const _0x4f0817=_0x111f09[_0x44fc('0x63')][_0x44fc('0x24')];if(_0x4f0817&&Object[_0x44fc('0x96')](_0x4f0817)[_0x44fc('0x4')])continue;const _0x285a2c=_0x111f09[_0x44fc('0x63')]['tablePasteChainId'];let _0x538d1d=!0x0,_0x10c104=!0x0;for(const _0x443bc2 of _0x257cad)if(_0x443bc2[_0x44fc('0x2c')]&&_0x443bc2[_0x44fc('0x2c')][_0x44fc('0x15')]('tablePaste')){if(!_0x443bc2[_0x44fc('0x63')][_0x44fc('0x45')]){_0x10c104=!0x1;break;}if(_0x443bc2['id']!=_0x111f09['id']&&_0x443bc2[_0x44fc('0x63')]['tablePasteChainId']==_0x285a2c){_0x538d1d=!0x1;break;}}_0x10c104&&_0x538d1d&&(_0x111f09[_0x44fc('0x52')](),_0x1f3a14=!0x0);}}for(const _0x3d0a7d of _0x5781cc)_0x3fbb17[_0x44fc('0x65')](_0x3d0a7d);for(const _0x3cd098 of _0x2d990e)_0x3fbb17['unwrap'](_0x3cd098);return _0x1f3a14;}),_0x262469[_0x44fc('0x28')][_0x44fc('0x8d')](_0x44fc('0x5d'))[_0x44fc('0x59')]({'model':_0x44fc('0x58'),'view':(_0xf761cc,_0x212343)=>_0xe59dff(_0xf761cc),'converterPriority':_0x44fc('0x78')}),_0x262469[_0x44fc('0x28')][_0x44fc('0x8d')](_0x44fc('0x7d'))[_0x44fc('0x59')]({'model':_0x44fc('0x58'),'view':(_0x24232c,_0x23ab8f)=>_0x23ab8f[_0x44fc('0xa4')]['showSuggestionHighlights']?_0xe59dff(_0x24232c,!0x1):null,'converterPriority':_0x44fc('0x78')});const _0x3a66b3=_0x262469[_0x44fc('0x5f')][_0x44fc('0x99')];this[_0x44fc('0x9d')](_0x3a66b3[_0x44fc('0x7')],_0x44fc('0x7a'),(_0x25fe82,_0x31cc37)=>{const _0x286088=[];for(const _0x3dee99 of _0x3a66b3[_0x44fc('0x8e')](_0x31cc37[_0x44fc('0x12')])[_0x44fc('0x84')]())_0x3dee99['is'](_0x44fc('0x9a'),_0x44fc('0x75'))&&_0x286088['push'](_0x3dee99);_0x3a66b3[_0x44fc('0x34')](_0xae1ac1=>{for(const _0x4a0700 of _0x286088)_0xae1ac1['move'](_0xae1ac1[_0x44fc('0x8e')](_0x4a0700),_0xae1ac1[_0x44fc('0x89')](_0x4a0700)),_0xae1ac1['remove'](_0x4a0700);});});}}function ge(_0x53bdc4){if(_0x53bdc4[_0x44fc('0x56')])return!0x0;const _0x14787d=_0x53bdc4[_0x44fc('0x2f')](0x0);return _0x14787d['is'](_0x44fc('0x9a'),_0x44fc('0x54'))&&_0x14787d[_0x44fc('0x56')];}function de(_0x44b04a,_0x4f946d={},_0x2495a8){for(const {isAnchor:_0x446e6e,cellHeight:_0xb305f1,cellWidth:_0x2ebac9}of _0x2495a8['createTableWalker'](_0x44b04a,{'includeAllSlots':!0x0,..._0x4f946d}))if(!_0x446e6e||0x1!=_0xb305f1||0x1!=_0x2ebac9)return!0x1;return!0x0;}
|
|
23
|
+
const _0x1df8=['TableClipboard','for','getSuggestionCallback','isEmpty','tablePasteRow','get','getChangedMarkers','_createdBatches','differ','suggestion','table','endColumn','TrackChangesEditing','getShiftedBy','startsWith','schema','createPositionBefore','markMultiRangeBlockFormat','fill','containsRange','isInContent','registerDescriptionCallback','forceDefaultExecution','join','has','tableCellPadding','deletion','getRange','createTableWalker','findAncestor','columnInsertionIndexes','attributes','tableCellHorizontalAlignment','insertion','afterInit','editing','low','trackChanges','options','columnInsertionRanges','type','length','rowInsertionRanges','removeMarkers','ck-suggestion-marker','selection','getContainedElement','getChanges','end','createRangeIn','next','content','_splitMarkerName','getItems','author','getMarkers','registerCustomCallback','column','suggestion-td','tablePaste','insertContent','getRanges','return','getChild','*Replace\x20table\x20cells*','tablePasteCell','tableCellBackgroundColor','filter','subType','first','map','keys','getAllAdjacentSuggestions','_descriptionFactory','start','insertionRanges','showSuggestionHighlights','setAttributes','accept','_replaceTableSlotCell','oldRange','register','every','reduce','createRangeOn','insertRows','cell','ck-suggestion-marker--active','_isForcedDefaultExecutionBlock','markMultiRangeInsertion','element','fromEntries','includes','remove','batch','getChildren','setAttribute','getColumns','view','hasSuggestion','add','tablePasteChainId','name','push','getTableIfOnlyTableInContent','position','Users','root','nextSibling','rowInsertionIndexes','documentSelection','getColumnIndexes','change','tableCellBorderColor','from','suggestionLoaded','commands','set','markerName','entries','tableCellSuggestion','stop','getRowIndexes','activeMarkers','previous','createElement','paragraph','isEqual','redo','previousSibling','formatBlock','_suggestionFactory','markerAttributes','rows','requires','unwrap','tablePasteColumn','markerToHighlight','move','clipboardOutput','discard','value','$graveyard','elementToElement','removeMarker','document','suggestion:formatBlock:tablePasteCell','cells','model','conversion','tableCell','insert','nodeAfter','markers','high','tableCellBorderWidth','removeRows','getSuggestions','last','registerPostFixer','editor','newRange','plugins'];(function(_0x16b6b0,_0x1df835){const _0x4071fc=function(_0x11547e){while(--_0x11547e){_0x16b6b0['push'](_0x16b6b0['shift']());}};_0x4071fc(++_0x1df835);}(_0x1df8,0xc3));const _0x4071=function(_0x16b6b0,_0x1df835){_0x16b6b0=_0x16b6b0-0x0;let _0x4071fc=_0x1df8[_0x16b6b0];return _0x4071fc;};import{getTranslation as _0x3b8243}from'../utils/common-translations.js';import{Plugin as _0x53607b}from'ckeditor5/src/core.js';import{uid as _0x25cb51,priorities as _0x4fc7b6}from'ckeditor5/src/utils.js';import _0x25336b from'./table.js';const fe=[_0x4071('0x7b'),_0x4071('0x51'),'tableCellBorderStyle',_0x4071('0x0'),'tableCellVerticalAlignment',_0x4071('0x22'),_0x4071('0x9c')],be=Object['fromEntries'](fe[_0x4071('0x26')](_0x16aaf2=>[_0x16aaf2,null]));export default class At extends _0x53607b{static get[_0x4071('0x66')](){return[_0x25336b];}[_0x4071('0x2')](){const _0x181912=this[_0x4071('0x80')];if(!_0x181912['plugins']['has'](_0x4071('0x83')))return;const _0x41e509=_0x181912['plugins']['get'](_0x4071('0x8f')),_0x22bb4a=_0x181912['plugins'][_0x4071('0x88')]('TableUtils'),_0x34fdd9=_0x181912[_0x4071('0x82')][_0x4071('0x88')](_0x25336b),_0x2c677a=_0x181912[_0x4071('0x82')][_0x4071('0x88')](_0x4071('0x83'));_0x34fdd9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x181912[_0x4071('0x74')][_0x4071('0x92')][_0x4071('0x31')]('tableCellSuggestion',{'allowIn':_0x4071('0x76'),'allowContentOf':_0x4071('0x76'),'isLimit':!0x0}),_0x181912[_0x4071('0x75')][_0x4071('0x6f')]({'model':_0x4071('0x58'),'view':'suggestion-td'});let _0x44fb59=null;_0x181912['model']['on']('insertContent',(_0x3268aa,_0x14ee61)=>{const [_0x4d69a9,_0x14bd0f]=_0x14ee61,_0x4b78d0=_0x14ee61[_0x14ee61[_0x4071('0x9')]-0x1];_0x4b78d0&&_0x4b78d0[_0x4071('0x99')]||_0x41e509[_0x4071('0x38')]||this[_0x4071('0x80')][_0x4071('0x54')][_0x4071('0x88')](_0x4071('0x5'))[_0x4071('0x6d')]&&function(_0x53f198,_0x41654e,_0x3443bf,_0x463b54,_0x4c4cce){if(_0x41654e&&!_0x41654e['is'](_0x4071('0x4e')))return!0x1;const _0x24fd95=_0x4c4cce[_0x4071('0x48')](_0x53f198,_0x3443bf);if(!_0x24fd95||!de(_0x24fd95,void 0x0,_0x463b54))return!0x1;const _0x169e5b=_0x463b54['getSelectionAffectedTableCells'](_0x3443bf[_0x4071('0x71')][_0x4071('0xd')]);if(!_0x169e5b['length'])return!0x1;const _0x46248c=_0x169e5b[0x0][_0x4071('0xa0')](_0x4071('0x8d')),_0x47f2dc=_0x463b54[_0x4071('0x5a')](_0x169e5b),_0x425a27=_0x463b54[_0x4071('0x4f')](_0x169e5b),_0x5ecdcf={'startRow':_0x47f2dc[_0x4071('0x25')],'endRow':_0x47f2dc[_0x4071('0x7e')],'startColumn':_0x425a27[_0x4071('0x25')],'endColumn':_0x425a27[_0x4071('0x7e')]};return 0x1==_0x169e5b['length']&&(_0x5ecdcf['endRow']+=_0x463b54['getRows'](_0x24fd95)-0x1,_0x5ecdcf[_0x4071('0x8e')]+=_0x463b54[_0x4071('0x41')](_0x24fd95)-0x1),de(_0x46248c,_0x5ecdcf,_0x463b54);}(_0x4d69a9,_0x14bd0f,_0x181912[_0x4071('0x74')],_0x22bb4a,_0x2c677a)&&(_0x3268aa['stop'](),_0x44fb59={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x181912[_0x4071('0x74')]['change'](()=>{_0x181912[_0x4071('0x74')][_0x4071('0x1c')](_0x14ee61[0x0],_0x14ee61[0x1],_0x14ee61[0x2],{'forceDefaultExecution':!0x0});const _0x160e5e=_0x25cb51(),{rowInsertionRanges:_0x399e03,columnInsertionRanges:_0x58ae05,insertionRanges:_0x40c8af,deletionRanges:_0x3221c6,cells:_0x5eb4ae}=_0x44fb59;_0x399e03[_0x4071('0x9')]&&_0x41e509[_0x4071('0x39')](_0x399e03,_0x4071('0x87'),{'tablePasteChainId':_0x160e5e}),_0x58ae05[_0x4071('0x9')]&&_0x41e509[_0x4071('0x39')](_0x58ae05,_0x4071('0x68'),{'tablePasteChainId':_0x160e5e}),_0x40c8af[_0x4071('0x9')]&&_0x41e509[_0x4071('0x39')](_0x40c8af,'tablePaste',{'tablePasteChainId':_0x160e5e,'skipNestingCheck':!0x0}),_0x3221c6[_0x4071('0x9')]&&_0x41e509['markMultiRangeDeletion'](_0x3221c6,_0x4071('0x1b'),{'tablePasteChainId':_0x160e5e,'skipNestingCheck':!0x0});const _0x3f581e=_0x41e509[_0x4071('0x94')](_0x5eb4ae[_0x4071('0x26')](({element:_0x4de15c})=>_0x4de15c),{'formatGroupId':_0x25cb51()},[],_0x4071('0x21'),{'tablePasteChainId':_0x160e5e});if(_0x3f581e){const _0x4b14ca=_0x3f581e['getMarkers'](),_0x3a3481=[];for(const {element:_0x35ca77,attributes:_0x246d1e}of _0x5eb4ae){if(!_0x246d1e)continue;const _0x5861b6=_0x181912[_0x4071('0x74')][_0x4071('0x34')](_0x35ca77),_0x4d744b=_0x4b14ca['find'](_0x55f3c9=>_0x55f3c9['getRange']()['isEqual'](_0x5861b6));_0x4d744b&&_0x3a3481['push']([_0x4d744b[_0x4071('0x46')],_0x246d1e]);}_0x3a3481[_0x4071('0x9')]&&_0x3f581e[_0x4071('0x40')]('markerAttributes',Object[_0x4071('0x3b')](_0x3a3481));}_0x44fb59=null;}));},{'priority':_0x4fc7b6['high']+0xa}),_0x181912[_0x4071('0x82')][_0x4071('0x88')](_0x4071('0x83'))['on'](_0x4071('0x2f'),(_0x1c9598,_0x275e88)=>{const [_0x9aab14,_0x394d35,,_0x320063]=_0x275e88;if(!_0x44fb59)return;_0x1c9598[_0x4071('0x59')]();const _0x1cdba1=_0x9aab14[_0x4071('0x36')],_0x5e596b=_0x394d35,_0x972169=ge(_0x1cdba1),_0x2ae8a6=ge(_0x5e596b);_0x1c9598[_0x4071('0x1e')]=_0x1cdba1;let _0x56f7e8=null,_0x4aae70=null;if(_0x2ae8a6||_0x972169){if(_0x972169&&!_0x2ae8a6){_0x320063[_0x4071('0x3d')](_0x1cdba1[_0x4071('0x1f')](0x0));for(const _0x4bf1e6 of Array[_0x4071('0x52')](_0x5e596b['getChildren']()))_0x320063[_0x4071('0x77')](_0x4bf1e6,_0x1cdba1,_0x4071('0x10'));const _0x5c465f=_0x44fb59[_0x4071('0x4d')][_0x4071('0x3c')](_0x9aab14['row']),_0x347fc2=_0x44fb59[_0x4071('0xa1')]['includes'](_0x9aab14[_0x4071('0x19')]);_0x5c465f||_0x347fc2||(_0x56f7e8=_0x320063[_0x4071('0x11')](_0x1cdba1));}else _0x2ae8a6&&!_0x972169&&(_0x4aae70=_0x320063[_0x4071('0x11')](_0x1cdba1));}else{const _0x54bc3c=_0x320063['createElement'](_0x4071('0x58')),_0x398235=_0x320063[_0x4071('0x5d')](_0x4071('0x58'));_0x320063['wrap'](_0x320063[_0x4071('0x11')](_0x1cdba1),_0x398235),_0x320063[_0x4071('0x77')](_0x54bc3c,_0x1cdba1,0x0);for(const _0x3f4888 of Array[_0x4071('0x52')](_0x5e596b[_0x4071('0x3f')]()))_0x320063[_0x4071('0x77')](_0x3f4888,_0x54bc3c,_0x4071('0x10'));_0x56f7e8=_0x320063['createRangeOn'](_0x54bc3c),_0x4aae70=_0x320063[_0x4071('0x34')](_0x398235);}const _0x265809=Array[_0x4071('0x52')](_0x5e596b['getAttributes']())[_0x4071('0x23')](([_0x1289de])=>fe['includes'](_0x1289de));_0x44fb59[_0x4071('0x73')][_0x4071('0x47')]({'element':_0x1cdba1,'attributes':_0x265809[_0x4071('0x9')]?Object[_0x4071('0x3b')](_0x265809):null}),_0x56f7e8&&_0x44fb59[_0x4071('0x2b')][_0x4071('0x47')](_0x56f7e8),_0x4aae70&&_0x44fb59['deletionRanges'][_0x4071('0x47')](_0x4aae70);},{'priority':_0x4071('0x7a')}),_0x22bb4a['on']('insertColumns',(_0x31cba5,_0x4cb295)=>{const [_0x1aa345,_0x552805={}]=_0x4cb295;if(!_0x44fb59)return;const _0x4c9cce=_0x552805['at']||0x0,_0xbcbb45=_0x552805['columns']||0x1;_0x44fb59[_0x4071('0xa1')]=new Array(_0xbcbb45)['fill'](_0x4c9cce)[_0x4071('0x26')]((_0x43a1bb,_0x5c66c0)=>_0x43a1bb+_0x5c66c0);for(const {cell:_0x387431}of _0x22bb4a[_0x4071('0x9f')](_0x1aa345,{'startColumn':_0x4c9cce,'endColumn':_0x4c9cce+_0xbcbb45-0x1}))_0x44fb59[_0x4071('0x7')][_0x4071('0x47')](_0x181912[_0x4071('0x74')][_0x4071('0x34')](_0x387431));},{'priority':_0x4071('0x4')}),_0x22bb4a['on'](_0x4071('0x35'),(_0x5cbf7a,_0x35c18b)=>{const [_0x483f3c,_0x424b40={}]=_0x35c18b;if(!_0x44fb59)return;const _0x42a64f=_0x424b40['at']||0x0,_0x5214dc=_0x424b40[_0x4071('0x65')]||0x1;_0x44fb59[_0x4071('0x4d')]=new Array(_0x5214dc)[_0x4071('0x95')](_0x42a64f)[_0x4071('0x26')]((_0x17ea29,_0x301279)=>_0x17ea29+_0x301279);for(const {cell:_0x385aa8}of _0x22bb4a[_0x4071('0x9f')](_0x483f3c,{'startRow':_0x42a64f,'endRow':_0x42a64f+_0x5214dc-0x1}))_0x44fb59[_0x4071('0xa')][_0x4071('0x47')](_0x181912[_0x4071('0x74')]['createRangeOn'](_0x385aa8));},{'priority':_0x4071('0x4')}),_0x41e509[_0x4071('0x29')][_0x4071('0x98')](_0x1ac4fd=>{if(_0x1ac4fd[_0x4071('0x24')]&&_0x1ac4fd[_0x4071('0x24')][_0x4071('0x91')](_0x4071('0x1b')))return _0x1ac4fd[_0x4071('0x5c')]?{}:{'type':_0x4071('0x1'),'content':_0x3b8243(_0x181912['locale'],_0x4071('0x20'))};});const _0x4151eb=()=>!0x1;for(const _0x50fa8a of[_0x4071('0x1b'),_0x4071('0x68'),_0x4071('0x87'),_0x4071('0x21')])_0x41e509[_0x4071('0x63')][_0x4071('0x18')](_0x4071('0x1'),_0x50fa8a,_0x4071('0x9a'),_0x4151eb),_0x41e509[_0x4071('0x63')][_0x4071('0x18')](_0x4071('0x9d'),_0x50fa8a,_0x4071('0x9a'),_0x4151eb),_0x41e509[_0x4071('0x63')][_0x4071('0x18')](_0x4071('0x62'),_0x50fa8a,_0x4071('0x9a'),_0x4151eb);_0x41e509['_suggestionFactory'][_0x4071('0x18')](_0x4071('0x62'),_0x4071('0x21'),_0x4071('0x6c'),_0x4151eb),_0x41e509['_suggestionFactory'][_0x4071('0x18')](_0x4071('0x62'),_0x4071('0x21'),_0x4071('0x2e'),(_0x5595ca,_0x1dc67d,_0x1ed338)=>{const _0x5d6e19=_0x5595ca[_0x4071('0x26')](_0x5d7b44=>_0x5d7b44['getContainedElement']())[_0x4071('0x23')](_0x2d853e=>_0x2d853e),_0x15e169=new Map(_0x5d6e19[_0x4071('0x26')](_0x554c5a=>[_0x554c5a,null]));if(_0x44fb59)for(const {element:_0x2ea3b5,attributes:_0x37435d}of _0x44fb59[_0x4071('0x73')])_0x37435d&&_0x15e169[_0x4071('0x55')](_0x2ea3b5,_0x37435d);else{if(_0x1ed338&&_0x1ed338[_0x4071('0x64')])for(const [_0x4de8ac,_0x2d2be4]of Object[_0x4071('0x57')](_0x1ed338[_0x4071('0x64')])){const _0x43202f=_0x181912[_0x4071('0x74')][_0x4071('0x79')][_0x4071('0x88')](_0x4de8ac),_0x2c614f=_0x43202f?_0x43202f['getRange']()[_0x4071('0xe')]():null;_0x2c614f&&_0x15e169[_0x4071('0x55')](_0x2c614f,_0x2d2be4);}}_0x181912['model'][_0x4071('0x50')](_0x3c98eb=>{for(const [_0x3f75da,_0x589efb]of _0x15e169)_0x3c98eb[_0x4071('0x2d')]({...be,..._0x589efb},_0x3f75da);});});const _0x2d3760=(_0xb3dde3,_0x228705)=>{_0x41e509[_0x4071('0x63')][_0x4071('0x18')](_0xb3dde3,_0x4071('0x1b'),_0x228705,(_0x260bce,_0x48ea45,_0x32b809)=>{_0x181912[_0x4071('0x74')][_0x4071('0x50')](_0x5dd653=>{const _0x59d65c=[];for(const _0x4605d8 of _0x260bce){const _0x1d015a=_0x4605d8[_0x4071('0x2a')][_0x4071('0x78')];_0x1d015a['is']('element',_0x4071('0x58'))&&_0x59d65c[_0x4071('0x47')](_0x1d015a);}_0x41e509[_0x4071('0x63')][_0x4071('0x85')](_0xb3dde3,null,_0x228705)(_0x260bce,_0x48ea45,_0x32b809);for(const _0x26d932 of _0x59d65c)_0x4071('0x6e')!=_0x26d932[_0x4071('0x4b')]['rootName']&&_0x5dd653[_0x4071('0x67')](_0x26d932);});});};_0x2d3760(_0x4071('0x1'),'accept'),_0x2d3760('insertion',_0x4071('0x6c')),_0x2d3760(_0x4071('0x9d'),_0x4071('0x2e')),_0x2d3760(_0x4071('0x9d'),_0x4071('0x6c')),_0x41e509[_0x4071('0x63')][_0x4071('0x18')]('insertion',_0x4071('0x87'),_0x4071('0x6c'),_0x5d5d9d=>{const _0x20d935=_0x5d5d9d[_0x4071('0x26')](_0x206ad5=>_0x206ad5[_0x4071('0xe')]()),_0x557f55=_0x20d935[0x0]['findAncestor'](_0x4071('0x8d')),{minRow:_0x8ba6ba,maxRow:_0x1191ed}=_0x34fdd9['_getCoordsForCells'](_0x20d935);_0x22bb4a[_0x4071('0x7c')](_0x557f55,{'at':_0x8ba6ba,'rows':_0x1191ed-_0x8ba6ba+0x1});}),_0x41e509[_0x4071('0x63')]['registerCustomCallback'](_0x4071('0x1'),_0x4071('0x68'),_0x4071('0x6c'),_0x60380a=>{const _0x2201ed=_0x60380a[_0x4071('0x26')](_0x28732b=>_0x28732b['getContainedElement']()),_0x4c7a4f=_0x2201ed[0x0][_0x4071('0xa0')](_0x4071('0x8d')),{minColumn:_0xe3dfe,maxColumn:_0x3488ac}=_0x34fdd9['_getCoordsForCells'](_0x2201ed);_0x22bb4a['removeColumns'](_0x4c7a4f,{'at':_0xe3dfe,'columns':_0x3488ac-_0xe3dfe+0x1});});const _0x216031=(_0x150997,_0x27a528)=>{if(!_0x27a528[_0x4071('0x24')]||!_0x27a528['subType'][_0x4071('0x91')](_0x4071('0x1b')))return;const _0x29c5fb=_0x27a528[_0x4071('0xa2')][_0x4071('0x45')],_0x3a3e1f=_0x41e509[_0x4071('0x7d')]()[_0x4071('0x23')](_0x465267=>_0x465267[_0x4071('0x97')]&&_0x465267[_0x4071('0xa2')]&&_0x465267['attributes'][_0x4071('0x45')]==_0x29c5fb);_0x3a3e1f[_0x4071('0x9')]&&_0x27a528['getAllAdjacentSuggestions']()[_0x4071('0x9')]!=_0x3a3e1f[_0x4071('0x9')]&&_0x3a3e1f[_0x4071('0x33')]((_0x19ac48,_0x152422)=>(_0x19ac48[_0x4071('0x12')]=_0x152422,_0x152422[_0x4071('0x5c')]=_0x19ac48,_0x152422));};function _0x216b3d(_0x35d016,_0x1226b3=!0x0){const {id:_0x10a7e8}=_0x41e509[_0x4071('0x14')](_0x35d016['markerName']),_0x441a27=[_0x4071('0xc'),'ck-suggestion-marker-insertion'],_0x15d869=_0x41e509[_0x4071('0x5b')][_0x4071('0x3c')](_0x35d016[_0x4071('0x56')]);return _0x15d869&&_0x441a27[_0x4071('0x47')](_0x4071('0x37')),{'classes':_0x441a27,'attributes':{'data-suggestion':_0x10a7e8},'priority':_0x15d869&&_0x1226b3?0xbc2:0xbb8};}_0x41e509['on'](_0x4071('0x53'),_0x216031,{'priority':_0x4071('0x7a')}),_0x41e509['on']('suggestionUnloaded',_0x216031,{'priority':_0x4071('0x7a')}),_0x181912[_0x4071('0x74')]['document'][_0x4071('0x7f')](()=>{let _0x3a4223=!0x1;const _0x2bcfd0=Array[_0x4071('0x52')](_0x181912[_0x4071('0x74')]['document'][_0x4071('0x8b')][_0x4071('0x89')]());for(const {name:_0x5657a9,data:_0x3063c8}of _0x2bcfd0){const {group:_0x3a1666,type:_0xae05a6,id:_0x23e7e7}=_0x41e509['_splitMarkerName'](_0x5657a9);if(_0x4071('0x8c')!=_0x3a1666||'deletion'!=_0xae05a6||_0x3063c8['oldRange'])continue;if(!_0x41e509[_0x4071('0x43')](_0x23e7e7))continue;const _0x7cc860=_0x41e509['getSuggestion'](_0x23e7e7)[_0x4071('0x1d')](),_0x338254=_0x181912['plugins'][_0x4071('0x88')](_0x4071('0x4a'))['me'];for(const _0x1ed6af of _0x41e509[_0x4071('0x7d')]()){if(!_0x1ed6af[_0x4071('0x97')]||_0x1ed6af[_0x4071('0x16')]!=_0x338254)continue;if(_0x4071('0x62')!=_0x1ed6af[_0x4071('0x8')]||_0x4071('0x21')!=_0x1ed6af[_0x4071('0x24')])continue;if(_0x1ed6af[_0x4071('0x1d')]()[_0x4071('0x32')](_0x2fe722=>_0x7cc860['some'](_0x30b11a=>_0x30b11a[_0x4071('0x96')](_0x2fe722,!0x0))))for(const _0x12aa2c of _0x1ed6af[_0x4071('0x28')]())_0x12aa2c[_0x4071('0x97')]&&(_0x12aa2c[_0x4071('0x6c')](),_0x3a4223=!0x0);}}return _0x3a4223;}),_0x181912['model'][_0x4071('0x71')][_0x4071('0x7f')](_0x2ff3f3=>{const _0x2e8ce4=_0x181912['commands'][_0x4071('0x88')](_0x4071('0x60'));if(!_0x2e8ce4||!_0x2e8ce4[_0x4071('0x8a')][_0x4071('0x9b')](_0x2ff3f3[_0x4071('0x3e')]))return!0x1;let _0x1f9190=!0x1;const _0x53f0a7=_0x181912[_0x4071('0x82')][_0x4071('0x88')](_0x4071('0x4a'))['me'],_0x4c11f6=_0x181912['model'][_0x4071('0x71')]['differ'][_0x4071('0xf')](),_0x2c3292=Array[_0x4071('0x52')](_0x181912[_0x4071('0x74')][_0x4071('0x71')][_0x4071('0x8b')][_0x4071('0x89')]())[_0x4071('0x23')](({name:_0x523598,data:_0x509a5c})=>{const {group:_0x4ca052,subType:_0x2694f6,authorId:_0x39aff4}=_0x41e509[_0x4071('0x14')](_0x523598);return _0x4071('0x8c')==_0x4ca052&&_0x4071('0x1b')==_0x2694f6&&_0x39aff4==_0x53f0a7['id']&&!_0x509a5c[_0x4071('0x30')];});for(const _0x18e07c of _0x4c11f6){if(_0x4071('0x77')!=_0x18e07c[_0x4071('0x8')]||_0x4071('0x58')!=_0x18e07c[_0x4071('0x46')]||0x1!=_0x18e07c['length'])continue;const _0x3c150e=_0x2ff3f3['createRange'](_0x18e07c['position'],_0x18e07c[_0x4071('0x49')][_0x4071('0x90')](0x1));if(!_0x2c3292['find'](({data:_0x282aab})=>_0x282aab[_0x4071('0x81')][_0x4071('0x5f')](_0x3c150e)))for(const {name:_0x4b6835,data:_0x345f8d}of _0x2c3292)if(_0x3c150e[_0x4071('0x96')](_0x345f8d[_0x4071('0x81')])){_0x2ff3f3['updateMarker'](_0x4b6835,{'range':_0x3c150e}),_0x1f9190=!0x0;break;}}return _0x1f9190;}),_0x181912[_0x4071('0x74')][_0x4071('0x71')][_0x4071('0x7f')](_0x205fe3=>{let _0x143db3=!0x1;const _0x6e9c73=_0x181912['plugins'][_0x4071('0x88')](_0x4071('0x4a'))['me'],_0x5556a9=_0x41e509[_0x4071('0x7d')]()[_0x4071('0x23')](_0x120b3e=>_0x120b3e['isInContent']&&_0x120b3e[_0x4071('0x16')]==_0x6e9c73),_0x478107=new Set(),_0x4eb2ba=new Set();for(const _0x293d5a of _0x5556a9)if('tablePaste'==_0x293d5a[_0x4071('0x24')])for(const _0x2d2489 of _0x293d5a[_0x4071('0x17')]()){const _0x19c8d2=_0x2d2489[_0x4071('0x9e')]()[_0x4071('0xe')]();if(_0x19c8d2){if(_0x19c8d2['is'](_0x4071('0x3a'),_0x4071('0x58'))&&ge(_0x19c8d2)){_0x293d5a[_0x4071('0x70')](_0x2d2489[_0x4071('0x46')]),_0x478107[_0x4071('0x44')](_0x19c8d2),_0x143db3=!0x0;const _0x4cb8ad=_0x19c8d2[_0x4071('0x4c')],_0x1ac6d3=_0x19c8d2[_0x4071('0x61')],_0x25c1ea=_0x4cb8ad&&_0x4cb8ad['is'](_0x4071('0x3a'),_0x4071('0x58')),_0x1adb65=_0x1ac6d3&&_0x1ac6d3['is'](_0x4071('0x3a'),_0x4071('0x58'));_0x25c1ea&&!_0x478107['has'](_0x4cb8ad)&&_0x4eb2ba['add'](_0x4cb8ad),_0x1adb65&&!_0x478107[_0x4071('0x9b')](_0x1ac6d3)&&_0x4eb2ba[_0x4071('0x44')](_0x1ac6d3);}else _0x19c8d2['is'](_0x4071('0x3a'),_0x4071('0x5e'))&&_0x19c8d2[_0x4071('0x86')]&&(_0x293d5a[_0x4071('0x70')](_0x2d2489[_0x4071('0x46')]),_0x143db3=!0x0);}}else{if(_0x4071('0x21')==_0x293d5a[_0x4071('0x24')]){if(!_0x293d5a[_0x4071('0xa2')]||!_0x293d5a[_0x4071('0xa2')]['tablePasteChainId'])continue;const _0x635f70=_0x293d5a['attributes']['markerAttributes'];if(_0x635f70&&Object[_0x4071('0x27')](_0x635f70)[_0x4071('0x9')])continue;const _0x25f209=_0x293d5a[_0x4071('0xa2')]['tablePasteChainId'];let _0x5d3511=!0x0,_0x1405d7=!0x0;for(const _0x284f71 of _0x5556a9)if(_0x284f71[_0x4071('0x24')]&&_0x284f71['subType']['startsWith'](_0x4071('0x1b'))){if(!_0x284f71[_0x4071('0xa2')][_0x4071('0x45')]){_0x1405d7=!0x1;break;}if(_0x284f71['id']!=_0x293d5a['id']&&_0x284f71[_0x4071('0xa2')][_0x4071('0x45')]==_0x25f209){_0x5d3511=!0x1;break;}}_0x1405d7&&_0x5d3511&&(_0x293d5a[_0x4071('0xb')](),_0x143db3=!0x0);}}for(const _0xdb37e7 of _0x478107)_0x205fe3[_0x4071('0x3d')](_0xdb37e7);for(const _0x1491bf of _0x4eb2ba)_0x205fe3[_0x4071('0x67')](_0x1491bf);return _0x143db3;}),_0x181912[_0x4071('0x75')][_0x4071('0x84')]('editingDowncast')['markerToHighlight']({'model':_0x4071('0x72'),'view':(_0x5a8a86,_0x16d3c3)=>_0x216b3d(_0x5a8a86),'converterPriority':'high'}),_0x181912[_0x4071('0x75')]['for']('dataDowncast')[_0x4071('0x69')]({'model':_0x4071('0x72'),'view':(_0x2a30f3,_0x261d67)=>_0x261d67[_0x4071('0x6')][_0x4071('0x2c')]?_0x216b3d(_0x2a30f3,!0x1):null,'converterPriority':'high'});const _0x3c6e8c=_0x181912[_0x4071('0x3')][_0x4071('0x42')];this['listenTo'](_0x3c6e8c[_0x4071('0x71')],_0x4071('0x6b'),(_0x1df82b,_0x4359d1)=>{const _0x277c1e=[];for(const _0x27c2bd of _0x3c6e8c[_0x4071('0x11')](_0x4359d1[_0x4071('0x13')])[_0x4071('0x15')]())_0x27c2bd['is'](_0x4071('0x3a'),_0x4071('0x1a'))&&_0x277c1e[_0x4071('0x47')](_0x27c2bd);_0x3c6e8c[_0x4071('0x50')](_0x26ca49=>{for(const _0x2c9071 of _0x277c1e)_0x26ca49[_0x4071('0x6a')](_0x26ca49[_0x4071('0x11')](_0x2c9071),_0x26ca49[_0x4071('0x93')](_0x2c9071)),_0x26ca49[_0x4071('0x3d')](_0x2c9071);});});}}function ge(_0x4b9ab5){if(_0x4b9ab5[_0x4071('0x86')])return!0x0;const _0x4a8055=_0x4b9ab5[_0x4071('0x1f')](0x0);return _0x4a8055['is'](_0x4071('0x3a'),_0x4071('0x5e'))&&_0x4a8055[_0x4071('0x86')];}function de(_0x826584,_0x3f689b={},_0x5acd44){for(const {isAnchor:_0x45caf4,cellHeight:_0x2bc856,cellWidth:_0x5d2a53}of _0x5acd44['createTableWalker'](_0x826584,{'includeAllSlots':!0x0,..._0x3f689b}))if(!_0x45caf4||0x1!=_0x2bc856||0x1!=_0x5d2a53)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x365c=['bind','TableColumnResizeEditing','get','change','selection','TrackChangesEditing','table','commandParams','columnWidths','formatGroupId','markBlockFormat','getSelectedElement','plugins','subType','Users','type','format','handleResizeTableWidthCommand','formatBlock','data','locale','_descriptionFactory','getAttribute','model','_suggestionFactory','document','*Format:*\x20resize\x20table','editor','tableWidth','registerCustomCallback','getSuggestions','getSuggestionCallback','resizeTable','handleSuggestionDescription','discard'];(function(_0x2d1f84,_0x365c31){const _0x237447=function(_0x54a1cf){while(--_0x54a1cf){_0x2d1f84['push'](_0x2d1f84['shift']());}};_0x237447(++_0x365c31);}(_0x365c,0x121));const _0x2374=function(_0x2d1f84,_0x365c31){_0x2d1f84=_0x2d1f84-0x0;let _0x237447=_0x365c[_0x2d1f84];return _0x237447;};import{Plugin as _0x3d8a36}from'ckeditor5/src/core.js';import{getTranslation as _0x41389a}from'../utils/common-translations.js';export default class It extends _0x3d8a36{['afterInit'](){if(!this[_0x2374('0x12')]['plugins']['has']('TableColumnResizeEditing'))return;const _0x3b6043=this[_0x2374('0x12')][_0x2374('0x3')]['get'](_0x2374('0x1f'));_0x3b6043['enableCommand']('resizeTableWidth',this[_0x2374('0x8')][_0x2374('0x1a')](this)),_0x3b6043[_0x2374('0xf')]['registerCustomCallback'](_0x2374('0x9'),'resizeTable','accept',_0x3b6043[_0x2374('0xf')][_0x2374('0x16')](_0x2374('0x9'),null,_0x2374('0x19'))),_0x3b6043['_suggestionFactory'][_0x2374('0x14')](_0x2374('0x9'),_0x2374('0x17'),_0x2374('0x19'),_0x3b6043[_0x2374('0xf')][_0x2374('0x16')](_0x2374('0x9'),null,'accept')),_0x3b6043[_0x2374('0xc')]['registerDescriptionCallback'](this[_0x2374('0x18')][_0x2374('0x1a')](this));}['handleResizeTableWidthCommand'](_0x47a383,_0x10c0b6){const _0x542919=this[_0x2374('0x12')][_0x2374('0x3')][_0x2374('0x1c')]('TrackChangesEditing'),_0x348ac7=this[_0x2374('0x12')][_0x2374('0x3')]['get'](_0x2374('0x1b')),_0x1534af=_0x10c0b6[_0x2374('0x20')]||this[_0x2374('0x12')][_0x2374('0xe')][_0x2374('0x10')][_0x2374('0x1e')][_0x2374('0x2')]();this[_0x2374('0x12')]['model'][_0x2374('0x1d')](()=>{const _0x30bf7c=_0x348ac7['getColumnGroupElement'](_0x1534af);let _0x50f909=_0x30bf7c?_0x348ac7['getTableColumnsWidths'](_0x30bf7c):null,_0x4b04a9=_0x1534af[_0x2374('0xd')]('tableWidth')||null;const _0x478f5a=_0x10c0b6[_0x2374('0x13')]||_0x4b04a9,_0x7d6123=_0x10c0b6['columnWidths']||_0x50f909,_0x29e397=this['editor']['plugins']['get'](_0x2374('0x5'))['me'];for(const _0x820992 of _0x542919[_0x2374('0x15')]()){const _0x52b506=_0x820992['getContainedElement']();if('resizeTable'===_0x820992[_0x2374('0x4')]&&_0x52b506===_0x1534af){_0x820992['author']!==_0x29e397&&_0x820992['discard']();const _0x58ab51=_0x820992[_0x2374('0xa')][_0x2374('0x21')];_0x4b04a9=_0x58ab51[0x0][_0x2374('0x13')],_0x50f909=_0x58ab51[0x0][_0x2374('0x22')];break;}}_0x47a383({'table':_0x1534af,'tableWidth':_0x478f5a,'columnWidths':_0x7d6123}),_0x542919[_0x2374('0x1')](_0x1534af,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4b04a9,'columnWidths':_0x50f909}],'formatGroupId':_0x2374('0x17')},[],_0x2374('0x17'));});}[_0x2374('0x18')](_0xf5a634){if(_0x2374('0x9')!=_0xf5a634['type']&&'formatInline'!=_0xf5a634[_0x2374('0x6')])return;const {data:_0x38999a}=_0xf5a634;if(_0x38999a&&_0x2374('0x17')===_0x38999a[_0x2374('0x0')]){const _0x270baa=_0x2374('0x11');return{'type':_0x2374('0x7'),'content':_0x41389a(this[_0x2374('0x12')][_0x2374('0xb')],_0x270baa)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2287=['end','data','mapper','ck-suggestion-marker-','toViewElement','parent','FORMAT_HEADER_COLUMN','editing','has','consumable','locale','editor','accept','get','FORMAT_REGULAR_ROW','addMarker:suggestion','createTableWalker','nodeBefore','downcastDispatcher','headingRows','registerCustomCallback','markerName','showSuggestionHighlights','item','setAttribute','formatBlock','headingColumns','requires','_suggestionFactory','addClass','markerNameToElements','commandName','data-suggestion','activeMarkers','_registerLegacyDescription','FORMAT_REGULAR_COLUMN','highest','removeMarker:suggestion','_handleLegacySuggestions','unbindElementFromMarkerName','commandParams','afterInit','registerDescriptionCallback','removeAttribute','ck-suggestion-marker--active','_enableDefaultAttributesIntegration','_splitMarkerName','_descriptionFactory','*Format:*\x20%0','forceValue','getCellLocation','bindElementToMarker','start','TableEditing','setTableRowHeader','TrackChangesEditing','setTableColumnHeader','markerRange','removeClass','stop','writer','name','options','plugins','consume','registerAttributeLabel'];(function(_0x3f7251,_0x228716){const _0x10b198=function(_0x533549){while(--_0x533549){_0x3f7251['push'](_0x3f7251['shift']());}};_0x10b198(++_0x228716);}(_0x2287,0x16e));const _0x10b1=function(_0x3f7251,_0x228716){_0x3f7251=_0x3f7251-0x0;let _0x10b198=_0x2287[_0x3f7251];return _0x10b198;};import{Plugin as _0x3b22d8}from'ckeditor5/src/core.js';import _0xd1f4cb from'./table.js';import{getTranslation as _0x2a268e}from'../utils/common-translations.js';export default class St extends _0x3b22d8{static get[_0x10b1('0x39')](){return[_0xd1f4cb];}[_0x10b1('0x5')](){const _0x26c50e=this['editor'];if(!_0x26c50e[_0x10b1('0x1b')][_0x10b1('0x26')](_0x10b1('0x11')))return;const _0x55401d=_0x26c50e[_0x10b1('0x28')],_0x1d380d=_0x26c50e['plugins'][_0x10b1('0x2b')](_0x10b1('0x13'));_0x1d380d[_0x10b1('0x9')](_0x10b1('0x12'),[],[_0x10b1('0x31')]),_0x1d380d['_enableDefaultAttributesIntegration'](_0x10b1('0x14'),[],[_0x10b1('0x38')]),_0x1d380d[_0x10b1('0xb')][_0x10b1('0x1d')]('headingRows',_0x2a268e(_0x55401d,'FORMAT_HEADER_ROW')),_0x1d380d[_0x10b1('0xb')][_0x10b1('0x1d')](_0x10b1('0x38'),_0x2a268e(_0x55401d,_0x10b1('0x24'))),this[_0x10b1('0x2')]();}['_handleLegacySuggestions'](){const _0x3ab643=this[_0x10b1('0x29')]['plugins'][_0x10b1('0x2b')](_0x10b1('0x13')),_0x7e6d69=this[_0x10b1('0x29')]['plugins'][_0x10b1('0x2b')]('TableUtils'),_0x1baf5b=this[_0x10b1('0x29')][_0x10b1('0x1b')][_0x10b1('0x2b')](_0xd1f4cb)['_acceptFormatSuggestionCallbackFactory']();function _0x497585({showActiveMarker:_0x51bffe=!0x0,setDataAttribute:_0xff26e6=!0x0}={}){return(_0x1c1ffa,_0x990d03,_0x1965b6)=>{const {type:_0x3816e8,id:_0x51f53c}=_0x3ab643[_0x10b1('0xa')](_0x990d03['markerName']),_0x2f2c67=_0x3ab643['getSuggestion'](_0x51f53c),_0x525b23=_0x2f2c67['data'];if(_0x10b1('0x37')!=_0x2f2c67['type']||!_0x525b23||_0x10b1('0x14')!=_0x525b23[_0x10b1('0x3d')])return;if(_0x990d03[_0x10b1('0x35')])return void _0x1c1ffa[_0x10b1('0x17')]();if(!_0x1965b6[_0x10b1('0x27')][_0x10b1('0x1c')](_0x990d03[_0x10b1('0x15')],_0x1c1ffa[_0x10b1('0x19')]))return;const _0xdd0663=_0x990d03[_0x10b1('0x15')][_0x10b1('0x10')]['nodeAfter'],_0xff8d0f=_0x990d03[_0x10b1('0x15')][_0x10b1('0x1e')][_0x10b1('0x2f')],_0x3aaedf=_0xdd0663[_0x10b1('0x23')][_0x10b1('0x23')],{column:_0x5cd889}=_0x7e6d69[_0x10b1('0xe')](_0xdd0663),{column:_0x47629b}=_0x7e6d69[_0x10b1('0xe')](_0xff8d0f);for(let _0xf8b4cd=_0x5cd889;_0xf8b4cd<=_0x47629b;_0xf8b4cd++){const _0x45094a=_0x7e6d69[_0x10b1('0x2e')](_0x3aaedf,{'column':_0xf8b4cd,'includeAllSlots':!0x1});for(const _0x17c2bc of _0x45094a){const _0x13b1be=_0x17c2bc['cell'],_0x34f657=_0x1965b6['mapper'][_0x10b1('0x22')](_0x13b1be);_0x1965b6[_0x10b1('0x18')]['addClass'](_0x10b1('0x21')+_0x3816e8,_0x34f657),_0xff26e6&&_0x1965b6[_0x10b1('0x18')][_0x10b1('0x36')](_0x10b1('0x3e'),_0x51f53c,_0x34f657),_0x1965b6['mapper'][_0x10b1('0xf')](_0x34f657,_0x990d03[_0x10b1('0x33')]),_0x51bffe&&(_0x3ab643[_0x10b1('0x3f')]['includes'](_0x990d03[_0x10b1('0x33')])?_0x1965b6[_0x10b1('0x18')][_0x10b1('0x3b')]('ck-suggestion-marker--active',_0x34f657):_0x1965b6[_0x10b1('0x18')][_0x10b1('0x16')](_0x10b1('0x8'),_0x34f657));}}};}_0x3ab643[_0x10b1('0x3a')][_0x10b1('0x32')](_0x10b1('0x37'),_0x10b1('0x12'),_0x10b1('0x2a'),_0x1baf5b),_0x3ab643[_0x10b1('0x3a')][_0x10b1('0x32')](_0x10b1('0x37'),_0x10b1('0x14'),_0x10b1('0x2a'),_0x1baf5b),this[_0x10b1('0x29')][_0x10b1('0x25')]['downcastDispatcher']['on'](_0x10b1('0x2d'),_0x497585(),{'priority':_0x10b1('0x0')}),this[_0x10b1('0x29')]['data'][_0x10b1('0x30')]['on'](_0x10b1('0x2d'),(_0x243c61,_0x2cf200,_0x262919)=>{_0x262919[_0x10b1('0x1a')][_0x10b1('0x34')]&&_0x497585({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x243c61,_0x2cf200,_0x262919);},{'priority':_0x10b1('0x0')}),this[_0x10b1('0x29')][_0x10b1('0x25')][_0x10b1('0x30')]['on'](_0x10b1('0x1'),(_0x4a95c0,_0x41c471,_0x393c97)=>{const {type:_0xa5434b,id:_0x4dbb13}=_0x3ab643['_splitMarkerName'](_0x41c471[_0x10b1('0x33')]),_0x98c42e=_0x3ab643['getSuggestion'](_0x4dbb13),_0xa816e0=_0x98c42e[_0x10b1('0x1f')];if(_0x10b1('0x37')!=_0x98c42e['type']||!_0xa816e0||_0x10b1('0x14')!=_0xa816e0[_0x10b1('0x3d')])return;const _0x2ca73a=_0x393c97[_0x10b1('0x20')][_0x10b1('0x3c')](_0x41c471[_0x10b1('0x33')]);if(_0x2ca73a)for(const _0x56480e of _0x2ca73a)_0x393c97[_0x10b1('0x18')]['removeClass'](_0x10b1('0x21')+_0xa5434b,_0x56480e),_0x393c97[_0x10b1('0x18')]['removeClass'](_0x10b1('0x8'),_0x56480e),_0x393c97['writer'][_0x10b1('0x7')](_0x10b1('0x3e'),_0x56480e),_0x393c97[_0x10b1('0x20')][_0x10b1('0x3')](_0x56480e,_0x41c471[_0x10b1('0x33')]);},{'priority':_0x10b1('0x0')}),this[_0x10b1('0x40')]();}['_registerLegacyDescription'](){const _0x57842f=this[_0x10b1('0x29')],_0x48b1d3=_0x57842f[_0x10b1('0x28')];function _0x3f246e(_0x406413){return{'type':'format','content':_0x2a268e(_0x48b1d3,_0x10b1('0xc'),_0x406413)};}_0x57842f[_0x10b1('0x1b')][_0x10b1('0x2b')](_0x10b1('0x13'))['_descriptionFactory'][_0x10b1('0x6')](_0x232b36=>{if(_0x10b1('0x37')!=_0x232b36['type'])return;const {data:_0x4c20eb}=_0x232b36;if(_0x4c20eb){if(_0x10b1('0x12')==_0x4c20eb[_0x10b1('0x3d')]){const _0x56d3a4=_0x4c20eb[_0x10b1('0x4')][0x0][_0x10b1('0xd')];return _0x3f246e(_0x2a268e(_0x48b1d3,_0x56d3a4?'FORMAT_HEADER_ROW':_0x10b1('0x2c')));}if('setTableColumnHeader'==_0x4c20eb[_0x10b1('0x3d')]){const _0x12bc8c=_0x4c20eb[_0x10b1('0x4')][0x0][_0x10b1('0xd')];return _0x3f246e(_0x2a268e(_0x48b1d3,_0x12bc8c?'FORMAT_HEADER_COLUMN':_0x10b1('0x41')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41a6=['add','registerCustomCallback','enableCommand','element','detach','splitTableCellHorizontally','cell','getAncestors','_descriptionFactory','markMultiRangeBlockFormat','$graveyard','markBlockFormat','change','execute','trackChanges','deletion','tableCell','rootName','TableUtils','locale','stop','low','_areSelectedCellsMergable','set:isEnabled','mergeTableCellRight','get','isEnabled','length','_areMergableCells','formatInline','_acceptFormatSuggestionCallbackFactory','highest','*Split\x20cell:*\x20horizontally','selection','mergeTableCellUp','find','type','_tablePostFixingSubtypes','filter','createTableWalker','TableEditing','_suggestionFactory','getSelectionAffectedTableCells','registerDescriptionCallback','document','plugins','accept','table','forceDefaultExecution','commands','return','push','mergeTableCells','mergeTableCellLeft','_isForcedDefaultExecutionBlock','*Merge\x20cells*','refresh','from','formatBlock','createRangeOn','afterInit','model','containsRange','*Split\x20cell:*\x20vertically','editor','getRanges','has','size','getSuggestions','mergeTableCellDown','value','horizontally','map','direction','getFirstPosition','splitTableCellVertically','root','TrackChangesEditing','format','commandName'];(function(_0xcdf885,_0x41a67d){const _0x24dcbf=function(_0x3fd512){while(--_0x3fd512){_0xcdf885['push'](_0xcdf885['shift']());}};_0x24dcbf(++_0x41a67d);}(_0x41a6,0x9a));const _0x24dc=function(_0xcdf885,_0x41a67d){_0xcdf885=_0xcdf885-0x0;let _0x24dcbf=_0x41a6[_0xcdf885];return _0x24dcbf;};import{Plugin as _0x42f549}from'ckeditor5/src/core.js';import _0x346ec3 from'./table.js';import{LiveRange as _0x1e2641}from'ckeditor5/src/engine.js';import{getTranslation as _0x1bff15}from'../utils/common-translations.js';export default class jt extends _0x42f549{static get['requires'](){return[_0x346ec3];}[_0x24dc('0x42')](){const _0x27b640=this[_0x24dc('0x46')],_0x2463b2=_0x27b640[_0x24dc('0x43')][_0x24dc('0x32')]['selection'],_0x28ef95=_0x27b640[_0x24dc('0x19')];if(!_0x27b640[_0x24dc('0x33')][_0x24dc('0x48')](_0x24dc('0x2e')))return;const _0x9d0a73=_0x27b640[_0x24dc('0x33')][_0x24dc('0x1f')](_0x24dc('0x3')),_0x19b63d=_0x27b640[_0x24dc('0x33')][_0x24dc('0x1f')](_0x24dc('0x18')),_0x6182c6=_0x27b640[_0x24dc('0x33')]['get'](_0x346ec3);_0x6182c6[_0x24dc('0x2b')][_0x24dc('0x39')](_0x24dc('0x3a')),_0x9d0a73[_0x24dc('0x8')](_0x24dc('0x3a'),()=>{const _0x154cf0=_0x19b63d['getSelectionAffectedTableCells'](_0x27b640[_0x24dc('0x43')][_0x24dc('0x32')][_0x24dc('0x27')]);_0x27b640[_0x24dc('0x43')][_0x24dc('0x12')](()=>{_0x9d0a73[_0x24dc('0xf')](_0x154cf0,{'commandName':_0x24dc('0x3a'),'commandParams':[]},[],_0x24dc('0x3a'));});}),_0x27b640[_0x24dc('0x37')][_0x24dc('0x1f')](_0x24dc('0x3a'))['on'](_0x24dc('0x13'),(_0x4e9688,_0x35501b)=>{_0x27b640[_0x24dc('0x37')][_0x24dc('0x1f')](_0x24dc('0x14'))[_0x24dc('0x4c')]&&(_0x35501b[_0x24dc('0x21')]>0x0&&_0x35501b[_0x35501b[_0x24dc('0x21')]-0x1]&&_0x35501b[_0x35501b['length']-0x1][_0x24dc('0x36')]||_0x9d0a73[_0x24dc('0x3c')]||this[_0x24dc('0x1c')]()||_0x4e9688[_0x24dc('0x1a')]());},{'priority':_0x24dc('0x25')});for(const _0x3d2472 of[_0x24dc('0x28'),_0x24dc('0x1e'),_0x24dc('0x4b'),_0x24dc('0x3b')]){const _0xe3d72e=_0x27b640[_0x24dc('0x37')]['get'](_0x3d2472);_0x9d0a73[_0x24dc('0x8')](_0x3d2472,()=>{const _0x523933=_0x27b640[_0x24dc('0x43')][_0x24dc('0x32')]['selection'][_0x24dc('0x0')]()[_0x24dc('0xd')]()[_0x24dc('0x29')](_0x2048d4=>_0x2048d4['is']('element',_0x24dc('0x16'))),_0x42fc52=_0xe3d72e['value'];_0x27b640[_0x24dc('0x43')]['change'](()=>{_0x9d0a73[_0x24dc('0xf')]([_0x523933,_0x42fc52],{'commandName':_0x24dc('0x3a'),'commandParams':[]},[],_0x24dc('0x3a'));});});}for(const _0x4b54ec of[_0x24dc('0x1'),'splitTableCellHorizontally']){const _0x4afd5c=_0x27b640['commands'][_0x24dc('0x1f')](_0x4b54ec);_0x9d0a73[_0x24dc('0x8')](_0x4b54ec,()=>{const _0x134d3=_0x19b63d['getSelectionAffectedTableCells'](_0x27b640[_0x24dc('0x43')][_0x24dc('0x32')][_0x24dc('0x27')])[0x0],_0x13ff9d=_0x134d3['findAncestor'](_0x24dc('0x35')),{column:_0x487598,row:_0x7f2737}=_0x19b63d['getCellLocation'](_0x134d3);let _0x11fc59=[];if(_0x24dc('0x4d')==_0x4afd5c[_0x24dc('0x4f')]){const _0x30c254=_0x19b63d[_0x24dc('0x2d')](_0x13ff9d,{'startRow':_0x7f2737,'endRow':_0x7f2737,'includeAllSlots':!0x0});_0x11fc59=Array[_0x24dc('0x3f')](_0x30c254)[_0x24dc('0x4e')](_0x27cb01=>_0x27cb01['cell']);}else{const _0x4dd6e1=_0x19b63d[_0x24dc('0x2d')](_0x13ff9d,{'column':_0x487598,'includeAllSlots':!0x0});_0x11fc59=Array[_0x24dc('0x3f')](_0x4dd6e1)[_0x24dc('0x4e')](_0x8a1a24=>_0x8a1a24[_0x24dc('0xc')]);}_0x27b640['model'][_0x24dc('0x12')](_0xafe71c=>{_0x9d0a73[_0x24dc('0x11')](_0xafe71c[_0x24dc('0x41')](_0x134d3),{'commandName':_0x4b54ec,'commandParams':[]},_0x11fc59,_0x4b54ec);});});}_0x9d0a73[_0x24dc('0xe')]['registerDescriptionCallback'](_0x2c572f=>{if('formatBlock'!=_0x2c572f[_0x24dc('0x2a')]&&_0x24dc('0x23')!=_0x2c572f[_0x24dc('0x2a')])return;const {data:_0x5cd12a}=_0x2c572f;return _0x5cd12a&&'mergeTableCells'==_0x5cd12a[_0x24dc('0x5')]?{'type':_0x24dc('0x4'),'content':_0x1bff15(_0x28ef95,_0x24dc('0x3d'))}:void 0x0;}),_0x9d0a73[_0x24dc('0xe')][_0x24dc('0x31')](_0x59dde5=>{if(_0x24dc('0x40')!=_0x59dde5['type']&&'formatInline'!=_0x59dde5['type'])return;const {data:_0x3db935}=_0x59dde5;return _0x3db935?_0x24dc('0x1')==_0x3db935[_0x24dc('0x5')]?{'type':'format','content':_0x1bff15(_0x28ef95,_0x24dc('0x45'))}:_0x24dc('0xb')==_0x3db935[_0x24dc('0x5')]?{'type':_0x24dc('0x4'),'content':_0x1bff15(_0x28ef95,_0x24dc('0x26'))}:void 0x0:void 0x0;});const _0xb160f0=_0x6182c6[_0x24dc('0x24')]();for(const _0x74beed of[_0x24dc('0x28'),'mergeTableCellRight',_0x24dc('0x4b'),_0x24dc('0x3b')])_0x9d0a73[_0x24dc('0x2f')][_0x24dc('0x7')]('formatBlock',_0x74beed,_0x24dc('0x34'),_0xb160f0);for(const _0xa8e914 of['splitTableCellVertically',_0x24dc('0xb')])_0x9d0a73['_suggestionFactory'][_0x24dc('0x7')](_0x24dc('0x40'),_0xa8e914,_0x24dc('0x34'),_0xb160f0);_0x9d0a73['_suggestionFactory'][_0x24dc('0x7')]('formatBlock',_0x24dc('0x3a'),_0x24dc('0x34'),_0x7a219f=>{_0x27b640[_0x24dc('0x43')]['change'](_0x2c65e1=>{const _0x23e2ae=Array[_0x24dc('0x3f')](_0x2463b2[_0x24dc('0x47')]())[_0x24dc('0x4e')](_0x402b76=>_0x1e2641['fromRange'](_0x402b76));_0x2c65e1['setSelection'](_0x7a219f),_0x27b640[_0x24dc('0x37')][_0x24dc('0x1f')](_0x24dc('0x3a'))[_0x24dc('0x3e')](),_0x27b640[_0x24dc('0x13')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x40e629=_0x23e2ae[_0x24dc('0x2c')](_0x1bdba8=>_0x24dc('0x10')!=_0x1bdba8[_0x24dc('0x2')][_0x24dc('0x17')]);_0x40e629['length']>0x0&&_0x2c65e1['setSelection'](_0x40e629);for(const _0x1716e8 of _0x23e2ae)_0x1716e8[_0x24dc('0xa')]();});});for(const _0x5d95ef of[_0x24dc('0x28'),_0x24dc('0x4b'),_0x24dc('0x3b'),_0x24dc('0x1e')]){const _0x18e7e7=_0x27b640[_0x24dc('0x37')][_0x24dc('0x1f')](_0x5d95ef);_0x18e7e7['on'](_0x24dc('0x1d'),(_0x768b9e,_0x2f9201,_0x1605bf)=>{if(_0x1605bf){const _0x4ef020=_0x27b640['model'][_0x24dc('0x32')][_0x24dc('0x27')]['getFirstPosition']()[_0x24dc('0xd')]()[_0x24dc('0x29')](_0x573dc3=>_0x573dc3['is'](_0x24dc('0x9'),_0x24dc('0x16')));this['_areMergableCells'](_0x18e7e7[_0x24dc('0x4c')],_0x4ef020)||(_0x768b9e[_0x24dc('0x38')]=!0x1,_0x768b9e[_0x24dc('0x1a')]());}},{'priority':_0x24dc('0x1b')});}}['_areSelectedCellsMergable'](){const _0xc3bb76=this[_0x24dc('0x46')]['commands'][_0x24dc('0x1f')](_0x24dc('0x3a')),_0x1f6aa6=this[_0x24dc('0x46')][_0x24dc('0x33')][_0x24dc('0x1f')](_0x24dc('0x18'));if(!_0xc3bb76[_0x24dc('0x20')])return!0x1;const _0x5b0802=_0x1f6aa6[_0x24dc('0x30')](this[_0x24dc('0x46')][_0x24dc('0x43')][_0x24dc('0x32')][_0x24dc('0x27')]);for(const _0x3f76cd of _0x5b0802)for(const _0x5206e0 of _0x5b0802)if(_0x3f76cd!=_0x5206e0&&!this['_areMergableCells'](_0x3f76cd,_0x5206e0))return!0x1;return!0x0;}[_0x24dc('0x22')](_0x2260b2,_0x473cfe){const _0x59e5a0=this[_0x24dc('0x46')]['plugins']['get'](_0x24dc('0x3')),_0x506984=this[_0x24dc('0x46')][_0x24dc('0x43')][_0x24dc('0x41')](_0x2260b2),_0x4033a2=this[_0x24dc('0x46')][_0x24dc('0x43')][_0x24dc('0x41')](_0x473cfe),_0x238f89=new Set(),_0x329905=new Set();for(const _0x55e7cd of _0x59e5a0[_0x24dc('0x4a')]())if(('insertion'==_0x55e7cd[_0x24dc('0x2a')]||_0x24dc('0x15')==_0x55e7cd[_0x24dc('0x2a')]||_0x24dc('0x3a')==_0x55e7cd['subType'])&&_0x55e7cd['isInContent'])for(const _0x4dad21 of _0x55e7cd[_0x24dc('0x47')]())_0x4dad21[_0x24dc('0x44')](_0x506984,!0x0)&&_0x238f89[_0x24dc('0x6')](_0x55e7cd['type']+':'+_0x55e7cd['author']['id']),_0x4dad21[_0x24dc('0x44')](_0x4033a2,!0x0)&&_0x329905[_0x24dc('0x6')](_0x55e7cd[_0x24dc('0x2a')]+':'+_0x55e7cd['author']['id']);if(_0x238f89[_0x24dc('0x49')]!=_0x329905['size'])return!0x1;for(const _0x48b5b3 of _0x238f89)if(!_0x329905['has'](_0x48b5b3))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4429=['locale','editor','_descriptionFactory','plugins','ELEMENT_TABLE_OF_CONTENTS','tableOfContents','TrackChangesEditing','enableCommand','insertTableOfContents','get','afterInit','commands'];(function(_0x98c588,_0x442941){const _0x3031ce=function(_0x5afad8){while(--_0x5afad8){_0x98c588['push'](_0x98c588['shift']());}};_0x3031ce(++_0x442941);}(_0x4429,0x8c));const _0x3031=function(_0x98c588,_0x442941){_0x98c588=_0x98c588-0x0;let _0x3031ce=_0x4429[_0x98c588];return _0x3031ce;};import{Plugin as _0x5de83e}from'ckeditor5/src/core.js';import{getTranslation as _0x41bd01}from'../utils/common-translations.js';export default class _t extends _0x5de83e{[_0x3031('0x2')](){const _0x4830b5=this[_0x3031('0x5')];if(!_0x4830b5[_0x3031('0x3')][_0x3031('0x1')]('insertTableOfContents'))return;_0x4830b5[_0x3031('0x7')][_0x3031('0x1')](_0x3031('0xa'))[_0x3031('0xb')](_0x3031('0x0'));const _0x27b64a=_0x4830b5[_0x3031('0x7')][_0x3031('0x1')](_0x3031('0xa')),_0x4df65b=_0x4830b5[_0x3031('0x4')];_0x27b64a[_0x3031('0x6')]['registerElementLabel'](_0x3031('0x9'),_0x1c2969=>_0x41bd01(_0x4df65b,_0x3031('0x8'),_0x1c2969));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d52=['tableWidth','tableCellBorderColor','subType','has','_getSuggestion','format','document','handleSuggestionDescription','formatBlock','pluginName','tableCellBorderWidth','tableCellWidth','batch','tableCellBorderStyle','accept','selection','plugins','tableHeight','tableBorderColor','TableUtils','TableCellPropertiesEditing','data','tableCellBackgroundColor','enableCommand','TrackChangesEditing','findAncestor','locale','get','tableBorderStyle','tableBorderWidth','model','commandParams','table','discard','join','handleDiscardAction','tableCellProperties','getSelectionAffectedTableCells','TablePropertiesEditing','registerDescriptionCallback','*Format:*\x20change\x20table\x20properties','tableCellHeight','change','getSuggestions','getSuggestionCallback','tableProperties','setAttribute','getFirstPosition','tableCellPadding','_descriptionFactory','tableCellVerticalAlignment','tableCellHorizontalAlignment','editor','_handlePropertyChange','registerCustomCallback','_suggestionFactory','removeAttribute','afterInit','nodeAfter'];(function(_0x1f839c,_0x1d52c2){const _0x3b1243=function(_0x4c9cbb){while(--_0x4c9cbb){_0x1f839c['push'](_0x1f839c['shift']());}};_0x3b1243(++_0x1d52c2);}(_0x1d52,0xe8));const _0x3b12=function(_0x1f839c,_0x1d52c2){_0x1f839c=_0x1f839c-0x0;let _0x3b1243=_0x1d52[_0x1f839c];return _0x3b1243;};import{Plugin as _0x141261}from'ckeditor5/src/core.js';import{getTranslation as _0x4ac84a}from'../utils/common-translations.js';export default class Mt extends _0x141261{constructor(_0x187b65){super(_0x187b65),this[_0x3b12('0x31')]=[_0x3b12('0x16'),_0x3b12('0x20'),_0x3b12('0x21'),'tableAlignment',_0x3b12('0x4'),_0x3b12('0x15'),'tableBackgroundColor'],this[_0x3b12('0x28')]=[_0x3b12('0x5'),_0x3b12('0x11'),_0x3b12('0xe'),_0x3b12('0x34'),_0x3b12('0xf'),_0x3b12('0x2d'),_0x3b12('0x1a'),_0x3b12('0x37'),_0x3b12('0x36')];}static get[_0x3b12('0xd')](){return'TrackChangesTableProperties';}[_0x3b12('0x2')](){const _0x1c0a0d=this[_0x3b12('0x38')][_0x3b12('0x14')]['get']('TrackChangesEditing');if(this[_0x3b12('0x38')]['plugins'][_0x3b12('0x7')](_0x3b12('0x2a'))){for(const _0xbd7158 of this[_0x3b12('0x31')])_0x1c0a0d[_0x3b12('0x1b')](_0xbd7158,(_0x17afc8,_0x24c5e1)=>{const _0x2e2676=this['editor']['model']['document'][_0x3b12('0x13')][_0x3b12('0x33')]()[_0x3b12('0x1d')](_0x3b12('0x24'));this['_handlePropertyChange'](_0xbd7158,[_0x2e2676],this[_0x3b12('0x31')],_0x3b12('0x31'),_0x17afc8,_0x24c5e1);});_0x1c0a0d[_0x3b12('0x0')][_0x3b12('0x3a')](_0x3b12('0xc'),_0x3b12('0x31'),_0x3b12('0x12'),_0x1c0a0d['_suggestionFactory'][_0x3b12('0x30')](_0x3b12('0xc'),null,_0x3b12('0x25'))),_0x1c0a0d[_0x3b12('0x0')][_0x3b12('0x3a')]('formatBlock',_0x3b12('0x31'),'discard',(_0x1c728c,_0x4b5450)=>this[_0x3b12('0x27')](this[_0x3b12('0x31')],_0x1c728c,_0x4b5450)),_0x1c0a0d['_suggestionFactory']['registerCustomCallback'](_0x3b12('0xc'),_0x3b12('0x31'),_0x3b12('0x26'),()=>!0x1);}if(this[_0x3b12('0x38')]['plugins'][_0x3b12('0x7')](_0x3b12('0x18'))){for(const _0x400789 of this['tableCellProperties'])_0x1c0a0d[_0x3b12('0x1b')](_0x400789,(_0x172472,_0x3be458)=>{const _0xdc02b1=this[_0x3b12('0x38')]['plugins'][_0x3b12('0x1f')](_0x3b12('0x17'))[_0x3b12('0x29')](this[_0x3b12('0x38')][_0x3b12('0x22')][_0x3b12('0xa')][_0x3b12('0x13')]);this[_0x3b12('0x39')](_0x400789,_0xdc02b1,this[_0x3b12('0x28')],_0x3b12('0x28'),_0x172472,_0x3be458);});_0x1c0a0d[_0x3b12('0x0')][_0x3b12('0x3a')](_0x3b12('0xc'),'tableCellProperties',_0x3b12('0x12'),_0x1c0a0d[_0x3b12('0x0')]['getSuggestionCallback'](_0x3b12('0xc'),null,'discard')),_0x1c0a0d[_0x3b12('0x0')][_0x3b12('0x3a')](_0x3b12('0xc'),_0x3b12('0x28'),_0x3b12('0x25'),(_0x3537ec,_0x97db17)=>this[_0x3b12('0x27')](this[_0x3b12('0x28')],_0x3537ec,_0x97db17)),_0x1c0a0d[_0x3b12('0x0')][_0x3b12('0x3a')]('formatBlock',_0x3b12('0x28'),_0x3b12('0x26'),()=>!0x1);}_0x1c0a0d[_0x3b12('0x35')][_0x3b12('0x2b')](_0x51b437=>this[_0x3b12('0xb')](_0x51b437));}['_handlePropertyChange'](_0x51195c,_0x43ad03,_0x1dd560,_0x51a8e2,_0x465872,_0x28cb30){const _0x82d9b9=this[_0x3b12('0x38')][_0x3b12('0x14')][_0x3b12('0x1f')](_0x3b12('0x1c'));this[_0x3b12('0x38')][_0x3b12('0x22')]['enqueueChange'](_0x28cb30[_0x3b12('0x10')],()=>{for(const _0x694502 of _0x43ad03){if(this['_getSuggestion'](_0x694502,_0x51a8e2))_0x465872(_0x28cb30);else{const _0x45bd47={};for(const _0x15913c of _0x1dd560){const _0x3f3bfb=_0x694502['getAttribute'](_0x15913c);void 0x0!==_0x3f3bfb&&(_0x45bd47[_0x15913c]=_0x3f3bfb);}_0x465872(_0x28cb30),_0x82d9b9['markBlockFormat'](_0x694502,{'commandParams':[_0x45bd47]},[],_0x51a8e2);}}});}['handleDiscardAction'](_0x4a9859,_0x23a533,_0x4111ec){const _0x364663=_0x23a533[0x0]['start'][_0x3b12('0x3')],_0xef6279=_0x4111ec[_0x3b12('0x23')][0x0];this[_0x3b12('0x38')][_0x3b12('0x22')][_0x3b12('0x2e')](_0xfddbde=>{for(const _0x590eea of _0x4a9859)void 0x0!==_0xef6279[_0x590eea]?_0xfddbde[_0x3b12('0x32')](_0x590eea,_0xef6279[_0x590eea],_0x364663):_0xfddbde[_0x3b12('0x1')](_0x590eea,_0x364663);});}[_0x3b12('0xb')](_0x53b1e9){if(_0x53b1e9[_0x3b12('0x19')])switch(_0x53b1e9['subType']){case _0x3b12('0x31'):return{'type':_0x3b12('0x9'),'content':_0x4ac84a(this['editor'][_0x3b12('0x1e')],_0x3b12('0x2c'))};case'tableCellProperties':return{'type':'format','content':_0x4ac84a(this[_0x3b12('0x38')]['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x3b12('0x8')](_0x1101b1,_0x4b5490){const _0x2040a8=this['editor']['plugins'][_0x3b12('0x1f')](_0x3b12('0x1c'));for(const _0x325ae5 of _0x2040a8[_0x3b12('0x2f')]({'skipNotAttached':!0x0})){const _0x165795=_0x325ae5['getContainedElement']();if(_0x325ae5[_0x3b12('0x6')]===_0x4b5490&&_0x165795===_0x1101b1)return _0x325ae5;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59f5=['TrackChangesEditing','Template','insertTemplate','has','plugins','editor','get','afterInit'];(function(_0x1428e7,_0x59f5ee){const _0x301ed4=function(_0x5323af){while(--_0x5323af){_0x1428e7['push'](_0x1428e7['shift']());}};_0x301ed4(++_0x59f5ee);}(_0x59f5,0xb8));const _0x301e=function(_0x1428e7,_0x59f5ee){_0x1428e7=_0x1428e7-0x0;let _0x301ed4=_0x59f5[_0x1428e7];return _0x301ed4;};import{Plugin as _0x841e49}from'ckeditor5/src/core.js';export default class vt extends _0x841e49{[_0x301e('0x7')](){const _0x5c456e=this[_0x301e('0x5')];_0x5c456e['plugins'][_0x301e('0x3')](_0x301e('0x1'))&&_0x5c456e[_0x301e('0x4')][_0x301e('0x6')](_0x301e('0x0'))['enableCommand'](_0x301e('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f42=['_splitMarkerName','differ','TrackChangesEditing','registerElementLabel','newRange','document','start','updateMarker','plugins','createRange','model','afterInit','forward','title-content','isEqual','end','editor','isTouching','registerPostFixer','removeMarker','element','ELEMENT_TITLE','isCollapsed','get','has','Title'];(function(_0x78f76d,_0x2f424c){const _0x31a289=function(_0x4878c2){while(--_0x4878c2){_0x78f76d['push'](_0x78f76d['shift']());}};_0x31a289(++_0x2f424c);}(_0x2f42,0x83));const _0x31a2=function(_0x78f76d,_0x2f424c){_0x78f76d=_0x78f76d-0x0;let _0x31a289=_0x2f42[_0x78f76d];return _0x31a289;};import{Plugin as _0x1bd1a5}from'ckeditor5/src/core.js';import{getTranslation as _0x38794e}from'../utils/common-translations.js';export default class Ct extends _0x1bd1a5{[_0x31a2('0xa')](){const _0x54d3c1=this[_0x31a2('0xf')];if(!_0x54d3c1[_0x31a2('0x7')][_0x31a2('0x17')](_0x31a2('0x18')))return;const _0x1f13bb=_0x54d3c1['plugins'][_0x31a2('0x16')](_0x31a2('0x1'));_0x1f13bb['_descriptionFactory'][_0x31a2('0x2')](_0x31a2('0xc'),()=>_0x38794e(_0x54d3c1['locale'],_0x31a2('0x14'))),_0x54d3c1['model'][_0x31a2('0x4')][_0x31a2('0x11')](_0x3ce18d=>{let _0x1dd4b7=!0x1;const _0x29574e=Array['from'](_0x54d3c1[_0x31a2('0x9')][_0x31a2('0x4')][_0x31a2('0x0')]['getChangedMarkers']());for(const {name:_0x3b70dd,data:_0xf6e245}of _0x29574e){const {group:_0x29d4f3}=_0x1f13bb[_0x31a2('0x19')](_0x3b70dd);if('suggestion'!==_0x29d4f3||!_0xf6e245[_0x31a2('0x3')])continue;const _0x551bb5=_0xf6e245['newRange'],_0x42b1d7=_0x551bb5[_0x31a2('0xe')]['nodeBefore'];if(!_0x42b1d7||!_0x42b1d7['is'](_0x31a2('0x13'),_0x31a2('0xc')))continue;if(!_0x551bb5[_0x31a2('0x5')][_0x31a2('0x10')](_0x551bb5[_0x31a2('0xe')]))continue;const _0x459e4d=_0x54d3c1[_0x31a2('0x9')]['schema']['getNearestSelectionRange'](_0x551bb5[_0x31a2('0xe')],_0x31a2('0xb'));if(_0x459e4d&&_0x459e4d[_0x31a2('0x15')]){const _0x36a502=_0x3ce18d[_0x31a2('0x8')](_0x551bb5[_0x31a2('0x5')],_0x459e4d[_0x31a2('0x5')]);_0x36a502[_0x31a2('0xd')](_0x551bb5)||(_0x3ce18d[_0x31a2('0x6')](_0x3b70dd,{'range':_0x36a502}),_0x1dd4b7=!0x0);}_0x1dd4b7||(_0x3ce18d[_0x31a2('0x12')](_0x3b70dd),_0x1dd4b7=!0x0);}return _0x1dd4b7;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1faa=['redo','enableCommand','UndoEditing','has','undo','get','TrackChangesEditing','plugins'];(function(_0x350210,_0x1faa7b){const _0x3d7dd0=function(_0x55d5fc){while(--_0x55d5fc){_0x350210['push'](_0x350210['shift']());}};_0x3d7dd0(++_0x1faa7b);}(_0x1faa,0x142));const _0x3d7d=function(_0x350210,_0x1faa7b){_0x350210=_0x350210-0x0;let _0x3d7dd0=_0x1faa[_0x350210];return _0x3d7dd0;};import{Plugin as _0x76d8f}from'ckeditor5/src/core.js';export default class Dt extends _0x76d8f{['afterInit'](){const _0x3ff16a=this['editor'],_0x3ff08b=_0x3ff16a[_0x3d7d('0x5')][_0x3d7d('0x3')](_0x3d7d('0x4'));_0x3ff16a['plugins'][_0x3d7d('0x1')](_0x3d7d('0x0'))&&(_0x3ff08b[_0x3d7d('0x7')](_0x3d7d('0x2')),_0x3ff08b[_0x3d7d('0x7')](_0x3d7d('0x6')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47ec=['listItem','schema','push','getItems','get','getAttribute','isLimit','mapper','model','bindElementToMarker','elementEnd','markerRange','getWalker','nextSibling','getCustomProperty','isContent','includes','markerName','TrackChangesEditing','type','span','insert','start','previousPosition','parent','isBlock','toViewElement','addHighlight','listIndent','plugins','item','writer','addClass','createRangeOn','ck-suggestion-marker--active'];(function(_0x54d2e1,_0x47ec4a){const _0x55637e=function(_0xe1b8a7){while(--_0xe1b8a7){_0x54d2e1['push'](_0x54d2e1['shift']());}};_0x55637e(++_0x47ec4a);}(_0x47ec,0x1c8));const _0x5563=function(_0x54d2e1,_0x47ec4a){_0x54d2e1=_0x54d2e1-0x0;let _0x55637e=_0x47ec[_0x54d2e1];return _0x55637e;};export function getRangesWithAttribute(_0x20703b,_0x2a6165,_0x34cf42){const _0x3f13e7=[];for(const _0x14fa01 of _0x2a6165[_0x5563('0x2')]())_0x14fa01['hasAttribute'](_0x20703b)&&_0x3f13e7[_0x5563('0x1')](_0x34cf42[_0x5563('0x20')](_0x14fa01));return _0x3f13e7;}export function getElementsAffectedByListItemRename(_0x3f2bf7){const _0x55cedf=[];if(_0x3f2bf7['is']('element',_0x5563('0x22'))){let _0x2f65e7=_0x3f2bf7[_0x5563('0xc')];for(;_0x2f65e7&&_0x2f65e7['is']('element',_0x5563('0x22'))&&_0x2f65e7[_0x5563('0x4')](_0x5563('0x1b'))>0x0;)_0x55cedf[_0x5563('0x1')](_0x2f65e7),_0x2f65e7=_0x2f65e7['nextSibling'];}return _0x55cedf;}export function downcastSplitMergeMarker(_0x358c45,_0x2fec0b,{showActiveMarker:_0x3a2b9c=!0x0}={}){const _0x1ddd67=_0x358c45[_0x5563('0x1c')][_0x5563('0x3')](_0x5563('0x11'));return(_0x4fa4f5,_0x290aec,_0x1a7208)=>{if(!_0x1a7208['consumable']['test'](_0x290aec[_0x5563('0xa')],_0x4fa4f5['name']))return;const _0x218152=_0x290aec[_0x5563('0xa')][_0x5563('0xb')](),_0x1c6dab=_0x290aec[_0x5563('0xa')][_0x5563('0x15')],_0x382dd6=_0x358c45[_0x5563('0x7')][_0x5563('0x0')];let _0x24664d=null,_0x581aff=null,_0x297540=!0x1,_0x282e38=!0x1;for(const _0x390f78 of _0x218152){const _0x35cd52=_0x390f78[_0x5563('0x1d')];_0x297540=_0x297540||_0x382dd6[_0x5563('0xe')](_0x35cd52);const _0x47f379=_0x1a7208['mapper'][_0x5563('0x19')](_0x35cd52);if(_0x47f379&&_0x47f379[_0x5563('0xd')](_0x5563('0x1a')))return;_0x5563('0x9')==_0x390f78[_0x5563('0x12')]&&(_0x382dd6[_0x5563('0x18')](_0x35cd52)&&!_0x382dd6[_0x5563('0x5')](_0x35cd52)&&(_0x35cd52[_0x5563('0xc')]||_0x1c6dab['isAtEnd']?_0x24664d&&_0x24664d[_0x5563('0x17')]==_0x35cd52||(_0x24664d=_0x35cd52,_0x4f5da2(_0x390f78[_0x5563('0x16')]),_0x282e38=!0x0):_0x581aff=_0x581aff||_0x390f78[_0x5563('0x16')]));}function _0x4f5da2(_0xe67df2){const _0x24a466=_0x1a7208['writer']['createUIElement'](_0x5563('0x13'),{'class':'ck-suggestion-marker-'+_0x2fec0b}),_0xa69fa0=_0x1a7208[_0x5563('0x6')]['toViewPosition'](_0xe67df2);_0x3a2b9c&&_0x1ddd67['activeMarkers'][_0x5563('0xf')](_0x290aec[_0x5563('0x10')])&&_0x1a7208[_0x5563('0x1e')][_0x5563('0x1f')](_0x5563('0x21'),_0x24a466),_0x1a7208[_0x5563('0x1e')][_0x5563('0x14')](_0xa69fa0,_0x24a466),_0x1a7208['mapper'][_0x5563('0x8')](_0x24a466,_0x290aec[_0x5563('0x10')]);}_0x297540||_0x282e38||!_0x581aff||_0x4f5da2(_0x581aff);};}
|