@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231129.0 → 0.0.0-nightly-20231201.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/CHANGELOG.md +15 -15
- package/README.md +1 -1
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4036=['author','add','setAttributes','discard','getRows','getItems','type','TableClipboard','registerDescriptionCallback','cell','ck-suggestion-marker--active','paragraph','isEqual','*Replace\x20table\x20cells*','createRangeIn','markerAttributes','registerCustomCallback','forceDefaultExecution','tableCellSuggestion','fill','previous','subType','createRange','nodeAfter','_tablePostFixingSubtypes','tablePaste','getAllAdjacentSuggestions','return','map','Users','documentSelection','tableCellBackgroundColor','_suggestionFactory','newRange','from','markMultiRangeInsertion','deletionRanges','TrackChangesEditing','schema','suggestionUnloaded','requires','rows','_getCoordsForCells','getRanges','tableCell','editor','getColumns','tablePasteCell','removeMarkers','attributes','join','getColumnIndexes','value','afterInit','some','filter','tableCellBorderStyle','low','keys','for','tablePasteChainId','getSelectionAffectedTableCells','last','end','batch','isInContent','startsWith','remove','unwrap','oldRange','trackChanges','tablePasteRow','_createdBatches','getSuggestionCallback','move','stop','_splitMarkerName','differ','markMultiRangeDeletion','getChangedMarkers','tablePasteColumn','view','conversion','ck-suggestion-marker-insertion','insertContent','start','cells','insertRows','position','createRangeOn','insertion','get','columns','getAttributes','getContainedElement','getRange','getTableIfOnlyTableInContent','rootName','insert','find','getChild','includes','removeRows','getMarkers','document','register','high','fromEntries','columnInsertionIndexes','element','createTableWalker','createElement','first','deletion','locale','row','model','removeMarker','has','column','table','formatBlock','$graveyard','length','markerName','markerToHighlight','commands','elementToElement','ck-suggestion-marker','removeColumns','next','change','editing','suggestion-td','entries','getChanges','registerPostFixer','suggestion:formatBlock:tablePasteCell','clipboardOutput','isEmpty','markers','containsRange','suggestion','plugins','endColumn','name','findAncestor','accept','getSuggestions','push','markMultiRangeBlockFormat','getChildren'];(function(_0x5e07e8,_0x40366b){const _0x482ed2=function(_0x531d8a){while(--_0x531d8a){_0x5e07e8['push'](_0x5e07e8['shift']());}};_0x482ed2(++_0x40366b);}(_0x4036,0x1ef));const _0x482e=function(_0x5e07e8,_0x40366b){_0x5e07e8=_0x5e07e8-0x0;let _0x482ed2=_0x4036[_0x5e07e8];return _0x482ed2;};import{getTranslation as _0x32d509}from'../utils/common-translations';import{Plugin as _0x56a1a1}from'ckeditor5/src/core';import{uid as _0x160968,priorities as _0x51ed32}from'ckeditor5/src/utils';import _0x33fb1e from'./table';const le=['tableCellBorderWidth','tableCellBorderColor',_0x482e('0x11'),'tableCellHorizontalAlignment','tableCellVerticalAlignment',_0x482e('0x90'),'tableCellPadding'],ae=Object[_0x482e('0x44')](le[_0x482e('0x8d')](_0x536a23=>[_0x536a23,null]));export default class At extends _0x56a1a1{static get[_0x482e('0x1')](){return[_0x33fb1e];}[_0x482e('0xe')](){const _0x9286c4=this[_0x482e('0x6')];if(!_0x9286c4[_0x482e('0x68')][_0x482e('0x4f')](_0x482e('0x78')))return;const _0x40201c=_0x9286c4['plugins'][_0x482e('0x34')](_0x482e('0x96')),_0x9cc208=_0x9286c4['plugins'][_0x482e('0x34')]('TableUtils'),_0x14ab4b=_0x9286c4[_0x482e('0x68')][_0x482e('0x34')](_0x33fb1e),_0x4389ee=_0x9286c4['plugins'][_0x482e('0x34')](_0x482e('0x78'));_0x14ab4b[_0x482e('0x89')][_0x482e('0x6e')]('tablePasteRow','tablePasteColumn'),_0x9286c4[_0x482e('0x4d')][_0x482e('0x97')][_0x482e('0x42')](_0x482e('0x83'),{'allowIn':_0x482e('0x5'),'allowContentOf':_0x482e('0x5'),'isLimit':!0x0}),_0x9286c4[_0x482e('0x2b')][_0x482e('0x58')]({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x191931=null;_0x9286c4['model']['on'](_0x482e('0x2d'),(_0x199174,_0x5b1ca2)=>{const [_0x551384,_0xe5f8f0]=_0x5b1ca2,_0x650ce9=_0x5b1ca2[_0x5b1ca2[_0x482e('0x54')]-0x1];_0x650ce9&&_0x650ce9[_0x482e('0x82')]||_0x40201c['_isForcedDefaultExecutionBlock']||this[_0x482e('0x6')][_0x482e('0x57')][_0x482e('0x34')](_0x482e('0x1f'))[_0x482e('0xd')]&&function(_0x14ba55,_0x350266,_0x1bb1b2,_0x34a596,_0x1aca8b){if(_0x350266&&!_0x350266['is'](_0x482e('0x8f')))return!0x1;const _0x22570f=_0x1aca8b[_0x482e('0x39')](_0x14ba55,_0x1bb1b2);if(!_0x22570f||!fe(_0x22570f,void 0x0,_0x34a596))return!0x1;const _0x451620=_0x34a596[_0x482e('0x16')](_0x1bb1b2[_0x482e('0x41')]['selection']);if(!_0x451620['length'])return!0x1;const _0x4ddb11=_0x451620[0x0][_0x482e('0x6b')](_0x482e('0x51')),_0x5c2e39=_0x34a596['getRowIndexes'](_0x451620),_0x584f0c=_0x34a596[_0x482e('0xc')](_0x451620),_0x4f6933={'startRow':_0x5c2e39[_0x482e('0x49')],'endRow':_0x5c2e39[_0x482e('0x17')],'startColumn':_0x584f0c[_0x482e('0x49')],'endColumn':_0x584f0c[_0x482e('0x17')]};return 0x1==_0x451620[_0x482e('0x54')]&&(_0x4f6933['endRow']+=_0x34a596[_0x482e('0x75')](_0x22570f)-0x1,_0x4f6933[_0x482e('0x69')]+=_0x34a596[_0x482e('0x7')](_0x22570f)-0x1),fe(_0x4ddb11,_0x4f6933,_0x34a596);}(_0x551384,_0xe5f8f0,_0x9286c4['model'],_0x9cc208,_0x4389ee)&&(_0x199174[_0x482e('0x24')](),_0x191931={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x9286c4[_0x482e('0x4d')][_0x482e('0x5c')](()=>{_0x9286c4[_0x482e('0x4d')][_0x482e('0x2d')](_0x5b1ca2[0x0],_0x5b1ca2[0x1],_0x5b1ca2[0x2],{'forceDefaultExecution':!0x0});const _0x41cc1d=_0x160968(),{rowInsertionRanges:_0x44da5b,columnInsertionRanges:_0x25ca39,insertionRanges:_0x1061a9,deletionRanges:_0x166916,cells:_0x51a12c}=_0x191931;_0x44da5b[_0x482e('0x54')]&&_0x40201c[_0x482e('0x94')](_0x44da5b,_0x482e('0x20'),{'tablePasteChainId':_0x41cc1d}),_0x25ca39[_0x482e('0x54')]&&_0x40201c['markMultiRangeInsertion'](_0x25ca39,_0x482e('0x29'),{'tablePasteChainId':_0x41cc1d}),_0x1061a9[_0x482e('0x54')]&&_0x40201c[_0x482e('0x94')](_0x1061a9,'tablePaste',{'tablePasteChainId':_0x41cc1d,'skipNestingCheck':!0x0}),_0x166916[_0x482e('0x54')]&&_0x40201c[_0x482e('0x27')](_0x166916,_0x482e('0x8a'),{'tablePasteChainId':_0x41cc1d,'skipNestingCheck':!0x0});const _0x35b4e0=_0x40201c[_0x482e('0x6f')](_0x51a12c[_0x482e('0x8d')](({element:_0xff7b6e})=>_0xff7b6e),{'formatGroupId':_0x160968()},[],_0x482e('0x8'),{'tablePasteChainId':_0x41cc1d});if(_0x35b4e0){const _0x20b1da=_0x35b4e0[_0x482e('0x40')](),_0x11241e=[];for(const {element:_0x2047fc,attributes:_0x51cf52}of _0x51a12c){if(!_0x51cf52)continue;const _0x1012a4=_0x9286c4[_0x482e('0x4d')]['createRangeOn'](_0x2047fc),_0x345ffe=_0x20b1da[_0x482e('0x3c')](_0x5ecc29=>_0x5ecc29['getRange']()['isEqual'](_0x1012a4));_0x345ffe&&_0x11241e[_0x482e('0x6e')]([_0x345ffe[_0x482e('0x6a')],_0x51cf52]);}_0x11241e[_0x482e('0x54')]&&_0x35b4e0['setAttribute'](_0x482e('0x80'),Object[_0x482e('0x44')](_0x11241e));}_0x191931=null;}));},{'priority':_0x51ed32[_0x482e('0x43')]+0xa}),_0x9286c4[_0x482e('0x68')][_0x482e('0x34')](_0x482e('0x78'))['on']('_replaceTableSlotCell',(_0xb7cef7,_0x359eb9)=>{const [_0x262fca,_0x29f015,,_0xcea234]=_0x359eb9;if(!_0x191931)return;_0xb7cef7[_0x482e('0x24')]();const _0x3c8a16=_0x262fca[_0x482e('0x7a')],_0x52c340=_0x29f015,_0x25803c=ce(_0x3c8a16),_0x25132b=ce(_0x52c340);_0xb7cef7[_0x482e('0x8c')]=_0x3c8a16;let _0x1811a4=null,_0x3627d1=null;if(_0x25132b||_0x25803c){if(_0x25803c&&!_0x25132b){_0xcea234[_0x482e('0x1c')](_0x3c8a16['getChild'](0x0));for(const _0x1c31a6 of Array['from'](_0x52c340[_0x482e('0x70')]()))_0xcea234[_0x482e('0x3b')](_0x1c31a6,_0x3c8a16,'end');const _0x18f504=_0x191931['rowInsertionIndexes'][_0x482e('0x3e')](_0x262fca[_0x482e('0x4c')]),_0x4f70cf=_0x191931[_0x482e('0x45')][_0x482e('0x3e')](_0x262fca[_0x482e('0x50')]);_0x18f504||_0x4f70cf||(_0x1811a4=_0xcea234[_0x482e('0x7f')](_0x3c8a16));}else _0x25132b&&!_0x25803c&&(_0x3627d1=_0xcea234['createRangeIn'](_0x3c8a16));}else{const _0x90da8d=_0xcea234[_0x482e('0x48')](_0x482e('0x83')),_0x463104=_0xcea234[_0x482e('0x48')](_0x482e('0x83'));_0xcea234['wrap'](_0xcea234[_0x482e('0x7f')](_0x3c8a16),_0x463104),_0xcea234[_0x482e('0x3b')](_0x90da8d,_0x3c8a16,0x0);for(const _0x181d0e of Array[_0x482e('0x93')](_0x52c340[_0x482e('0x70')]()))_0xcea234[_0x482e('0x3b')](_0x181d0e,_0x90da8d,_0x482e('0x18'));_0x1811a4=_0xcea234[_0x482e('0x32')](_0x90da8d),_0x3627d1=_0xcea234[_0x482e('0x32')](_0x463104);}const _0x1c0078=Array[_0x482e('0x93')](_0x52c340[_0x482e('0x36')]())[_0x482e('0x10')](([_0x31250e])=>le['includes'](_0x31250e));_0x191931[_0x482e('0x2f')]['push']({'element':_0x3c8a16,'attributes':_0x1c0078['length']?Object['fromEntries'](_0x1c0078):null}),_0x1811a4&&_0x191931['insertionRanges'][_0x482e('0x6e')](_0x1811a4),_0x3627d1&&_0x191931[_0x482e('0x95')]['push'](_0x3627d1);},{'priority':_0x482e('0x43')}),_0x9cc208['on']('insertColumns',(_0x28c78b,_0x13cccc)=>{const [_0x26d908,_0x32660c={}]=_0x13cccc;if(!_0x191931)return;const _0x4a92dd=_0x32660c['at']||0x0,_0x4feda0=_0x32660c[_0x482e('0x35')]||0x1;_0x191931[_0x482e('0x45')]=new Array(_0x4feda0)['fill'](_0x4a92dd)[_0x482e('0x8d')]((_0x56193d,_0x4b7030)=>_0x56193d+_0x4b7030);for(const {cell:_0x1c6e91}of _0x9cc208[_0x482e('0x47')](_0x26d908,{'startColumn':_0x4a92dd,'endColumn':_0x4a92dd+_0x4feda0-0x1}))_0x191931['columnInsertionRanges']['push'](_0x9286c4[_0x482e('0x4d')][_0x482e('0x32')](_0x1c6e91));},{'priority':_0x482e('0x12')}),_0x9cc208['on'](_0x482e('0x30'),(_0x2a2bf7,_0x1355bc)=>{const [_0x524108,_0x15a61e={}]=_0x1355bc;if(!_0x191931)return;const _0x88957e=_0x15a61e['at']||0x0,_0x22d66e=_0x15a61e[_0x482e('0x2')]||0x1;_0x191931['rowInsertionIndexes']=new Array(_0x22d66e)[_0x482e('0x84')](_0x88957e)[_0x482e('0x8d')]((_0x5e1c86,_0x41bb06)=>_0x5e1c86+_0x41bb06);for(const {cell:_0x1eb858}of _0x9cc208['createTableWalker'](_0x524108,{'startRow':_0x88957e,'endRow':_0x88957e+_0x22d66e-0x1}))_0x191931['rowInsertionRanges']['push'](_0x9286c4[_0x482e('0x4d')]['createRangeOn'](_0x1eb858));},{'priority':_0x482e('0x12')}),_0x40201c['_descriptionFactory'][_0x482e('0x79')](_0x5b4aac=>{if(_0x5b4aac[_0x482e('0x86')]&&_0x5b4aac[_0x482e('0x86')][_0x482e('0x1b')]('tablePaste'))return _0x5b4aac[_0x482e('0x85')]?{}:{'type':_0x482e('0x33'),'content':_0x32d509(_0x9286c4[_0x482e('0x4b')],_0x482e('0x7e'))};});const _0x1a519c=()=>!0x1;for(const _0x4be70c of['tablePaste','tablePasteColumn',_0x482e('0x20'),_0x482e('0x8')])_0x40201c[_0x482e('0x91')]['registerCustomCallback'](_0x482e('0x33'),_0x4be70c,_0x482e('0xb'),_0x1a519c),_0x40201c['_suggestionFactory'][_0x482e('0x81')](_0x482e('0x4a'),_0x4be70c,_0x482e('0xb'),_0x1a519c),_0x40201c['_suggestionFactory']['registerCustomCallback'](_0x482e('0x52'),_0x4be70c,_0x482e('0xb'),_0x1a519c);_0x40201c[_0x482e('0x91')][_0x482e('0x81')](_0x482e('0x52'),_0x482e('0x8'),_0x482e('0x74'),_0x1a519c),_0x40201c[_0x482e('0x91')]['registerCustomCallback'](_0x482e('0x52'),'tablePasteCell','accept',(_0x3bf10c,_0x28ccd5,_0x4dddab)=>{const _0x4bb3d1=_0x3bf10c['map'](_0xf312c1=>_0xf312c1[_0x482e('0x37')]())[_0x482e('0x10')](_0x5dde9a=>_0x5dde9a),_0x519b8d=new Map(_0x4bb3d1[_0x482e('0x8d')](_0x281c8a=>[_0x281c8a,null]));if(_0x191931)for(const {element:_0x46490d,attributes:_0x15a6a1}of _0x191931[_0x482e('0x2f')])_0x15a6a1&&_0x519b8d['set'](_0x46490d,_0x15a6a1);else{if(_0x4dddab&&_0x4dddab[_0x482e('0x80')])for(const [_0x49d96b,_0x5769e9]of Object[_0x482e('0x5f')](_0x4dddab[_0x482e('0x80')])){const _0x43dde1=_0x9286c4['model'][_0x482e('0x65')][_0x482e('0x34')](_0x49d96b),_0x26ce16=_0x43dde1?_0x43dde1[_0x482e('0x38')]()[_0x482e('0x37')]():null;_0x26ce16&&_0x519b8d['set'](_0x26ce16,_0x5769e9);}}_0x9286c4['model']['change'](_0x56c11e=>{for(const [_0x4e787b,_0x44eeb8]of _0x519b8d)_0x56c11e[_0x482e('0x73')]({...ae,..._0x44eeb8},_0x4e787b);});});const _0x2adbe0=(_0x2d92db,_0x11869c)=>{_0x40201c[_0x482e('0x91')]['registerCustomCallback'](_0x2d92db,'tablePaste',_0x11869c,(_0x444992,_0x2098f8,_0x155914)=>{_0x9286c4['model'][_0x482e('0x5c')](_0x2e8fe3=>{const _0x5f209d=[];for(const _0x4d3ab5 of _0x444992){const _0x5f2c3f=_0x4d3ab5[_0x482e('0x2e')][_0x482e('0x88')];_0x5f2c3f['is'](_0x482e('0x46'),_0x482e('0x83'))&&_0x5f209d[_0x482e('0x6e')](_0x5f2c3f);}_0x40201c[_0x482e('0x91')][_0x482e('0x22')](_0x2d92db,null,_0x11869c)(_0x444992,_0x2098f8,_0x155914);for(const _0x2ff10e of _0x5f209d)_0x482e('0x53')!=_0x2ff10e['root'][_0x482e('0x3a')]&&_0x2e8fe3[_0x482e('0x1d')](_0x2ff10e);});});};_0x2adbe0(_0x482e('0x33'),_0x482e('0x6c')),_0x2adbe0(_0x482e('0x33'),'discard'),_0x2adbe0(_0x482e('0x4a'),_0x482e('0x6c')),_0x2adbe0(_0x482e('0x4a'),_0x482e('0x74')),_0x40201c[_0x482e('0x91')]['registerCustomCallback'](_0x482e('0x33'),'tablePasteRow',_0x482e('0x74'),_0x5dfd80=>{const _0x3e7645=_0x5dfd80[_0x482e('0x8d')](_0x26e408=>_0x26e408['getContainedElement']()),_0xd6683d=_0x3e7645[0x0][_0x482e('0x6b')](_0x482e('0x51')),{minRow:_0x2eda37,maxRow:_0x555cee}=_0x14ab4b['_getCoordsForCells'](_0x3e7645);_0x9cc208[_0x482e('0x3f')](_0xd6683d,{'at':_0x2eda37,'rows':_0x555cee-_0x2eda37+0x1});}),_0x40201c[_0x482e('0x91')][_0x482e('0x81')]('insertion','tablePasteColumn',_0x482e('0x74'),_0x12a04e=>{const _0x43a8ea=_0x12a04e['map'](_0x5f42c0=>_0x5f42c0[_0x482e('0x37')]()),_0x159ecd=_0x43a8ea[0x0][_0x482e('0x6b')](_0x482e('0x51')),{minColumn:_0x9a6835,maxColumn:_0x42a4a0}=_0x14ab4b[_0x482e('0x3')](_0x43a8ea);_0x9cc208[_0x482e('0x5a')](_0x159ecd,{'at':_0x9a6835,'columns':_0x42a4a0-_0x9a6835+0x1});});const _0x24eb72=(_0x34caad,_0xe9a31b)=>{if(!_0xe9a31b['subType']||!_0xe9a31b[_0x482e('0x86')][_0x482e('0x1b')]('tablePaste'))return;const _0x78e9f5=_0xe9a31b['attributes'][_0x482e('0x15')],_0x431a2b=_0x40201c['getSuggestions']()[_0x482e('0x10')](_0x21fa3d=>_0x21fa3d['isInContent']&&_0x21fa3d['attributes']&&_0x21fa3d[_0x482e('0xa')][_0x482e('0x15')]==_0x78e9f5);_0x431a2b[_0x482e('0x54')]&&_0xe9a31b[_0x482e('0x8b')]()[_0x482e('0x54')]!=_0x431a2b[_0x482e('0x54')]&&_0x431a2b['reduce']((_0x595569,_0x5c6780)=>(_0x595569[_0x482e('0x5b')]=_0x5c6780,_0x5c6780[_0x482e('0x85')]=_0x595569,_0x5c6780));};function _0x594ccb(_0x4fba10,_0x421078=!0x0){const {id:_0x238f9d}=_0x40201c[_0x482e('0x25')](_0x4fba10[_0x482e('0x55')]),_0x59de93=[_0x482e('0x59'),_0x482e('0x2c')],_0x4236b2=_0x40201c['activeMarkers'][_0x482e('0x3e')](_0x4fba10[_0x482e('0x55')]);return _0x4236b2&&_0x59de93[_0x482e('0x6e')](_0x482e('0x7b')),{'classes':_0x59de93,'attributes':{'data-suggestion':_0x238f9d},'priority':_0x4236b2&&_0x421078?0xbc2:0xbb8};}_0x40201c['on']('suggestionLoaded',_0x24eb72,{'priority':_0x482e('0x43')}),_0x40201c['on'](_0x482e('0x0'),_0x24eb72,{'priority':_0x482e('0x43')}),_0x9286c4[_0x482e('0x4d')]['document']['registerPostFixer'](()=>{let _0x548e01=!0x1;const _0x61bfd2=Array['from'](_0x9286c4[_0x482e('0x4d')]['document'][_0x482e('0x26')][_0x482e('0x28')]());for(const {name:_0x2a6c82,data:_0x211b70}of _0x61bfd2){const {group:_0x3ee054,type:_0x2c77cd,id:_0x5359af}=_0x40201c[_0x482e('0x25')](_0x2a6c82);if(_0x482e('0x67')!=_0x3ee054||_0x482e('0x4a')!=_0x2c77cd||_0x211b70[_0x482e('0x1e')])continue;if(!_0x40201c['hasSuggestion'](_0x5359af))continue;const _0x180532=_0x40201c['getSuggestion'](_0x5359af)[_0x482e('0x4')](),_0x93f208=_0x9286c4[_0x482e('0x68')][_0x482e('0x34')](_0x482e('0x8e'))['me'];for(const _0x5c4e05 of _0x40201c[_0x482e('0x6d')]()){if(!_0x5c4e05[_0x482e('0x1a')]||_0x5c4e05[_0x482e('0x71')]!=_0x93f208)continue;if(_0x482e('0x52')!=_0x5c4e05['type']||_0x482e('0x8')!=_0x5c4e05['subType'])continue;if(_0x5c4e05[_0x482e('0x4')]()['every'](_0x1c8bf4=>_0x180532[_0x482e('0xf')](_0x2afeac=>_0x2afeac[_0x482e('0x66')](_0x1c8bf4,!0x0))))for(const _0x241cfc of _0x5c4e05['getAllAdjacentSuggestions']())_0x241cfc['isInContent']&&(_0x241cfc[_0x482e('0x74')](),_0x548e01=!0x0);}}return _0x548e01;}),_0x9286c4[_0x482e('0x4d')]['document']['registerPostFixer'](_0x299b67=>{const _0x4af57e=_0x9286c4[_0x482e('0x57')]['get']('redo');if(!_0x4af57e||!_0x4af57e[_0x482e('0x21')][_0x482e('0x4f')](_0x299b67[_0x482e('0x19')]))return!0x1;let _0x133291=!0x1;const _0x438b81=_0x9286c4[_0x482e('0x68')][_0x482e('0x34')](_0x482e('0x8e'))['me'],_0x35f96d=_0x9286c4['model'][_0x482e('0x41')]['differ'][_0x482e('0x60')](),_0x38cf54=Array['from'](_0x9286c4[_0x482e('0x4d')][_0x482e('0x41')][_0x482e('0x26')][_0x482e('0x28')]())[_0x482e('0x10')](({name:_0x2a7bcd,data:_0x9caeca})=>{const {group:_0x4a001f,subType:_0x7853fb,authorId:_0x1bc89f}=_0x40201c[_0x482e('0x25')](_0x2a7bcd);return _0x482e('0x67')==_0x4a001f&&_0x482e('0x8a')==_0x7853fb&&_0x1bc89f==_0x438b81['id']&&!_0x9caeca[_0x482e('0x1e')];});for(const _0x5b49d4 of _0x35f96d){if(_0x482e('0x3b')!=_0x5b49d4[_0x482e('0x77')]||_0x482e('0x83')!=_0x5b49d4['name']||0x1!=_0x5b49d4[_0x482e('0x54')])continue;const _0x7e9986=_0x299b67[_0x482e('0x87')](_0x5b49d4[_0x482e('0x31')],_0x5b49d4[_0x482e('0x31')]['getShiftedBy'](0x1));if(!_0x38cf54['find'](({data:_0x3a8582})=>_0x3a8582[_0x482e('0x92')][_0x482e('0x7d')](_0x7e9986)))for(const {name:_0x3ad39d,data:_0x50caef}of _0x38cf54)if(_0x7e9986['containsRange'](_0x50caef[_0x482e('0x92')])){_0x299b67['updateMarker'](_0x3ad39d,{'range':_0x7e9986}),_0x133291=!0x0;break;}}return _0x133291;}),_0x9286c4[_0x482e('0x4d')]['document'][_0x482e('0x61')](_0x23c548=>{let _0x2796d9=!0x1;const _0x13e1b5=_0x9286c4[_0x482e('0x68')]['get']('Users')['me'],_0x35c535=_0x40201c[_0x482e('0x6d')]()['filter'](_0x236b67=>_0x236b67[_0x482e('0x1a')]&&_0x236b67[_0x482e('0x71')]==_0x13e1b5),_0x4de513=new Set(),_0x4f01d9=new Set();for(const _0xc97a5d of _0x35c535)if(_0x482e('0x8a')==_0xc97a5d[_0x482e('0x86')])for(const _0x3968c1 of _0xc97a5d[_0x482e('0x40')]()){const _0x47e32d=_0x3968c1[_0x482e('0x38')]()['getContainedElement']();if(_0x47e32d){if(_0x47e32d['is'](_0x482e('0x46'),_0x482e('0x83'))&&ce(_0x47e32d)){_0xc97a5d[_0x482e('0x4e')](_0x3968c1[_0x482e('0x6a')]),_0x4de513[_0x482e('0x72')](_0x47e32d),_0x2796d9=!0x0;const _0x4c6a54=_0x47e32d['nextSibling'],_0x1f7fb0=_0x47e32d['previousSibling'],_0x27a6e4=_0x4c6a54&&_0x4c6a54['is'](_0x482e('0x46'),_0x482e('0x83')),_0x4cd230=_0x1f7fb0&&_0x1f7fb0['is']('element',_0x482e('0x83'));_0x27a6e4&&!_0x4de513[_0x482e('0x4f')](_0x4c6a54)&&_0x4f01d9[_0x482e('0x72')](_0x4c6a54),_0x4cd230&&!_0x4de513[_0x482e('0x4f')](_0x1f7fb0)&&_0x4f01d9[_0x482e('0x72')](_0x1f7fb0);}else _0x47e32d['is'](_0x482e('0x46'),_0x482e('0x7c'))&&_0x47e32d[_0x482e('0x64')]&&(_0xc97a5d[_0x482e('0x4e')](_0x3968c1['name']),_0x2796d9=!0x0);}}else{if(_0x482e('0x8')==_0xc97a5d[_0x482e('0x86')]){if(!_0xc97a5d[_0x482e('0xa')]||!_0xc97a5d[_0x482e('0xa')][_0x482e('0x15')])continue;const _0x1768ec=_0xc97a5d[_0x482e('0xa')]['markerAttributes'];if(_0x1768ec&&Object[_0x482e('0x13')](_0x1768ec)[_0x482e('0x54')])continue;const _0xdeec8c=_0xc97a5d[_0x482e('0xa')][_0x482e('0x15')];let _0xa7670c=!0x0,_0x5ba65e=!0x0;for(const _0x14d795 of _0x35c535)if(_0x14d795[_0x482e('0x86')]&&_0x14d795['subType'][_0x482e('0x1b')](_0x482e('0x8a'))){if(!_0x14d795['attributes'][_0x482e('0x15')]){_0x5ba65e=!0x1;break;}if(_0x14d795['id']!=_0xc97a5d['id']&&_0x14d795[_0x482e('0xa')]['tablePasteChainId']==_0xdeec8c){_0xa7670c=!0x1;break;}}_0x5ba65e&&_0xa7670c&&(_0xc97a5d[_0x482e('0x9')](),_0x2796d9=!0x0);}}for(const _0x128e60 of _0x4de513)_0x23c548[_0x482e('0x1c')](_0x128e60);for(const _0x41aa8b of _0x4f01d9)_0x23c548[_0x482e('0x1d')](_0x41aa8b);return _0x2796d9;}),_0x9286c4['conversion'][_0x482e('0x14')]('editingDowncast')[_0x482e('0x56')]({'model':_0x482e('0x62'),'view':(_0x1c1a7d,_0x30557d)=>_0x594ccb(_0x1c1a7d),'converterPriority':_0x482e('0x43')}),_0x9286c4[_0x482e('0x2b')][_0x482e('0x14')]('dataDowncast')[_0x482e('0x56')]({'model':_0x482e('0x62'),'view':(_0x4aa888,_0x481992)=>_0x481992['options']['showSuggestionHighlights']?_0x594ccb(_0x4aa888,!0x1):null,'converterPriority':_0x482e('0x43')});const _0x1c605e=_0x9286c4[_0x482e('0x5d')][_0x482e('0x2a')];this['listenTo'](_0x1c605e['document'],_0x482e('0x63'),(_0xdc72a7,_0x36bd7e)=>{const _0x559879=[];for(const _0x5d3b2f of _0x1c605e[_0x482e('0x7f')](_0x36bd7e['content'])[_0x482e('0x76')]())_0x5d3b2f['is'](_0x482e('0x46'),_0x482e('0x5e'))&&_0x559879[_0x482e('0x6e')](_0x5d3b2f);_0x1c605e['change'](_0x498b2e=>{for(const _0x296a28 of _0x559879)_0x498b2e[_0x482e('0x23')](_0x498b2e[_0x482e('0x7f')](_0x296a28),_0x498b2e['createPositionBefore'](_0x296a28)),_0x498b2e[_0x482e('0x1c')](_0x296a28);});});}}function ce(_0x27256c){if(_0x27256c['isEmpty'])return!0x0;const _0x5dedf6=_0x27256c[_0x482e('0x3d')](0x0);return _0x5dedf6['is'](_0x482e('0x46'),'paragraph')&&_0x5dedf6[_0x482e('0x64')];}function fe(_0x4bb178,_0x14d16c={},_0x33c190){for(const {isAnchor:_0x361882,cellHeight:_0x160952,cellWidth:_0x4e9813}of _0x33c190[_0x482e('0x47')](_0x4bb178,{'includeAllSlots':!0x0,..._0x14d16c}))if(!_0x361882||0x1!=_0x160952||0x1!=_0x4e9813)return!0x1;return!0x0;}
|
|
23
|
+
const _0x30a0=['join','getSuggestion','containsRange','afterInit','unwrap','name','commands','*Replace\x20table\x20cells*','activeMarkers','_getCoordsForCells','low','tableCellHorizontalAlignment','getChild','getItems','trackChanges','getAllAdjacentSuggestions','createRangeIn','showSuggestionHighlights','createPositionBefore','from','markMultiRangeDeletion','editor','cell','_suggestionFactory','getRowIndexes','getChildren','getShiftedBy','TableUtils','suggestion-td','createRangeOn','subType','markers','root','getSuggestions','keys','cells','markerAttributes','getRanges','view','getRows','nextSibling','length','nodeAfter','createElement','tableCellBorderColor','insert','tablePasteRow','tableCellSuggestion','tablePasteColumn','editingDowncast','wrap','insertContent','getMarkers','deletion','markMultiRangeInsertion','stop','reduce','rowInsertionRanges','tablePasteChainId','removeMarker','find','table','author','formatBlock','_isForcedDefaultExecutionBlock','last','push','suggestionUnloaded','for','removeColumns','options','TrackChangesEditing','suggestion:formatBlock:tablePasteCell','tableCellPadding','setAttribute','getContainedElement','position','startsWith','insertion','content','ck-suggestion-marker','tablePasteCell','newRange','getTableIfOnlyTableInContent','listenTo','has','attributes','createTableWalker','rowInsertionIndexes','removeRows','isInContent','getChanges','isEqual','move','registerPostFixer','createRange','tableCellBorderStyle','elementToElement','fill','_descriptionFactory','getSuggestionCallback','tableCellBackgroundColor','dataDowncast','next','registerCustomCallback','registerDescriptionCallback','suggestion','getChangedMarkers','markMultiRangeBlockFormat','return','insertionRanges','row','forceDefaultExecution','tablePaste','some','get','differ','register','findAncestor','redo','updateMarker','getColumnIndexes','change','tableCellBorderWidth','includes','paragraph','map','markerName','set','conversion','oldRange','isEmpty','plugins','type','rootName','endRow','accept','previous','model','end','high','getRange','value','add','insertColumns','discard','documentSelection','previousSibling','remove','column','suggestionLoaded','filter','hasSuggestion','TableClipboard','clipboardOutput','locale','markerToHighlight','Users','columnInsertionIndexes','document','element','start','getColumns','_splitMarkerName','setAttributes','_replaceTableSlotCell'];(function(_0x2f29a6,_0x30a0a8){const _0x4ea457=function(_0x4bc26b){while(--_0x4bc26b){_0x2f29a6['push'](_0x2f29a6['shift']());}};_0x4ea457(++_0x30a0a8);}(_0x30a0,0x12a));const _0x4ea4=function(_0x2f29a6,_0x30a0a8){_0x2f29a6=_0x2f29a6-0x0;let _0x4ea457=_0x30a0[_0x2f29a6];return _0x4ea457;};import{getTranslation as _0x172592}from'../utils/common-translations';import{Plugin as _0x4b384}from'ckeditor5/src/core';import{uid as _0x12082c,priorities as _0x4c9fc6}from'ckeditor5/src/utils';import _0x3a8c82 from'./table';const le=[_0x4ea4('0x9d'),_0x4ea4('0x4e'),_0x4ea4('0x82'),_0x4ea4('0x2d'),'tableCellVerticalAlignment',_0x4ea4('0x87'),_0x4ea4('0x6b')],ae=Object['fromEntries'](le['map'](_0x590507=>[_0x590507,null]));export default class At extends _0x4b384{static get['requires'](){return[_0x3a8c82];}[_0x4ea4('0x25')](){const _0x198b86=this[_0x4ea4('0x37')];if(!_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x77')]('TableClipboard'))return;const _0x4f05d4=_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')](_0x4ea4('0x69')),_0x339be0=_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')](_0x4ea4('0x3d')),_0xac261b=_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')](_0x3a8c82),_0x2ceade=_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')](_0x4ea4('0x15'));_0xac261b['_tablePostFixingSubtypes'][_0x4ea4('0x64')]('tablePasteRow','tablePasteColumn'),_0x198b86[_0x4ea4('0x6')]['schema'][_0x4ea4('0x97')]('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x198b86[_0x4ea4('0xa3')][_0x4ea4('0x83')]({'model':_0x4ea4('0x51'),'view':'suggestion-td'});let _0x34b6c7=null;_0x198b86[_0x4ea4('0x6')]['on'](_0x4ea4('0x55'),(_0x10eab5,_0x42e1ee)=>{const [_0x2c9d9d,_0xf035cd]=_0x42e1ee,_0x5e5978=_0x42e1ee[_0x42e1ee['length']-0x1];_0x5e5978&&_0x5e5978[_0x4ea4('0x92')]||_0x4f05d4[_0x4ea4('0x62')]||this['editor'][_0x4ea4('0x28')][_0x4ea4('0x95')](_0x4ea4('0x30'))[_0x4ea4('0xa')]&&function(_0x21f233,_0x145925,_0x100a6c,_0x1fa9e6,_0xda9b7){if(_0x145925&&!_0x145925['is'](_0x4ea4('0xe')))return!0x1;const _0x1a2aa0=_0xda9b7[_0x4ea4('0x75')](_0x21f233,_0x100a6c);if(!_0x1a2aa0||!fe(_0x1a2aa0,void 0x0,_0x1fa9e6))return!0x1;const _0x22d727=_0x1fa9e6['getSelectionAffectedTableCells'](_0x100a6c[_0x4ea4('0x1b')]['selection']);if(!_0x22d727[_0x4ea4('0x4b')])return!0x1;const _0x370d67=_0x22d727[0x0]['findAncestor']('table'),_0x90d2d3=_0x1fa9e6[_0x4ea4('0x3a')](_0x22d727),_0x270941=_0x1fa9e6[_0x4ea4('0x9b')](_0x22d727),_0x16a5f6={'startRow':_0x90d2d3['first'],'endRow':_0x90d2d3[_0x4ea4('0x63')],'startColumn':_0x270941['first'],'endColumn':_0x270941['last']};return 0x1==_0x22d727[_0x4ea4('0x4b')]&&(_0x16a5f6[_0x4ea4('0x3')]+=_0x1fa9e6[_0x4ea4('0x49')](_0x1a2aa0)-0x1,_0x16a5f6['endColumn']+=_0x1fa9e6[_0x4ea4('0x1e')](_0x1a2aa0)-0x1),fe(_0x370d67,_0x16a5f6,_0x1fa9e6);}(_0x2c9d9d,_0xf035cd,_0x198b86[_0x4ea4('0x6')],_0x339be0,_0x2ceade)&&(_0x10eab5[_0x4ea4('0x59')](),_0x34b6c7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x9c')](()=>{_0x198b86['model'][_0x4ea4('0x55')](_0x42e1ee[0x0],_0x42e1ee[0x1],_0x42e1ee[0x2],{'forceDefaultExecution':!0x0});const _0x120f16=_0x12082c(),{rowInsertionRanges:_0x1c7878,columnInsertionRanges:_0x3017f0,insertionRanges:_0x2598cd,deletionRanges:_0x18e035,cells:_0x115dd2}=_0x34b6c7;_0x1c7878['length']&&_0x4f05d4[_0x4ea4('0x58')](_0x1c7878,_0x4ea4('0x50'),{'tablePasteChainId':_0x120f16}),_0x3017f0['length']&&_0x4f05d4[_0x4ea4('0x58')](_0x3017f0,_0x4ea4('0x52'),{'tablePasteChainId':_0x120f16}),_0x2598cd[_0x4ea4('0x4b')]&&_0x4f05d4[_0x4ea4('0x58')](_0x2598cd,_0x4ea4('0x93'),{'tablePasteChainId':_0x120f16,'skipNestingCheck':!0x0}),_0x18e035[_0x4ea4('0x4b')]&&_0x4f05d4[_0x4ea4('0x36')](_0x18e035,_0x4ea4('0x93'),{'tablePasteChainId':_0x120f16,'skipNestingCheck':!0x0});const _0x279b55=_0x4f05d4[_0x4ea4('0x8e')](_0x115dd2[_0x4ea4('0xa0')](({element:_0x599400})=>_0x599400),{'formatGroupId':_0x12082c()},[],_0x4ea4('0x73'),{'tablePasteChainId':_0x120f16});if(_0x279b55){const _0x514b75=_0x279b55[_0x4ea4('0x56')](),_0x3da021=[];for(const {element:_0xe1a574,attributes:_0x236ee8}of _0x115dd2){if(!_0x236ee8)continue;const _0x5902d6=_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x3f')](_0xe1a574),_0x106988=_0x514b75[_0x4ea4('0x5e')](_0x480091=>_0x480091[_0x4ea4('0x9')]()[_0x4ea4('0x7e')](_0x5902d6));_0x106988&&_0x3da021['push']([_0x106988['name'],_0x236ee8]);}_0x3da021[_0x4ea4('0x4b')]&&_0x279b55[_0x4ea4('0x6c')](_0x4ea4('0x46'),Object['fromEntries'](_0x3da021));}_0x34b6c7=null;}));},{'priority':_0x4c9fc6[_0x4ea4('0x8')]+0xa}),_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')]('TableClipboard')['on'](_0x4ea4('0x21'),(_0x1e9a34,_0x44c7f3)=>{const [_0x4267ad,_0x7e2476,,_0x8378ea]=_0x44c7f3;if(!_0x34b6c7)return;_0x1e9a34[_0x4ea4('0x59')]();const _0x12f85f=_0x4267ad[_0x4ea4('0x38')],_0x1bcbf0=_0x7e2476,_0x267e8d=ce(_0x12f85f),_0x5509e6=ce(_0x1bcbf0);_0x1e9a34[_0x4ea4('0x8f')]=_0x12f85f;let _0x1fd70f=null,_0x27595f=null;if(_0x5509e6||_0x267e8d){if(_0x267e8d&&!_0x5509e6){_0x8378ea['remove'](_0x12f85f[_0x4ea4('0x2e')](0x0));for(const _0x213653 of Array['from'](_0x1bcbf0[_0x4ea4('0x3b')]()))_0x8378ea['insert'](_0x213653,_0x12f85f,'end');const _0x50f935=_0x34b6c7[_0x4ea4('0x7a')]['includes'](_0x4267ad[_0x4ea4('0x91')]),_0x67e50c=_0x34b6c7[_0x4ea4('0x1a')]['includes'](_0x4267ad[_0x4ea4('0x11')]);_0x50f935||_0x67e50c||(_0x1fd70f=_0x8378ea[_0x4ea4('0x32')](_0x12f85f));}else _0x5509e6&&!_0x267e8d&&(_0x27595f=_0x8378ea[_0x4ea4('0x32')](_0x12f85f));}else{const _0x4344e2=_0x8378ea[_0x4ea4('0x4d')](_0x4ea4('0x51')),_0x536ca1=_0x8378ea[_0x4ea4('0x4d')]('tableCellSuggestion');_0x8378ea[_0x4ea4('0x54')](_0x8378ea['createRangeIn'](_0x12f85f),_0x536ca1),_0x8378ea['insert'](_0x4344e2,_0x12f85f,0x0);for(const _0x4a4dc8 of Array[_0x4ea4('0x35')](_0x1bcbf0[_0x4ea4('0x3b')]()))_0x8378ea[_0x4ea4('0x4f')](_0x4a4dc8,_0x4344e2,_0x4ea4('0x7'));_0x1fd70f=_0x8378ea[_0x4ea4('0x3f')](_0x4344e2),_0x27595f=_0x8378ea[_0x4ea4('0x3f')](_0x536ca1);}const _0x3724dd=Array[_0x4ea4('0x35')](_0x1bcbf0['getAttributes']())[_0x4ea4('0x13')](([_0x187df0])=>le[_0x4ea4('0x9e')](_0x187df0));_0x34b6c7[_0x4ea4('0x45')][_0x4ea4('0x64')]({'element':_0x12f85f,'attributes':_0x3724dd['length']?Object['fromEntries'](_0x3724dd):null}),_0x1fd70f&&_0x34b6c7[_0x4ea4('0x90')][_0x4ea4('0x64')](_0x1fd70f),_0x27595f&&_0x34b6c7['deletionRanges'][_0x4ea4('0x64')](_0x27595f);},{'priority':_0x4ea4('0x8')}),_0x339be0['on'](_0x4ea4('0xc'),(_0x1d03dd,_0x4c53ae)=>{const [_0x411c7e,_0x4ddb0b={}]=_0x4c53ae;if(!_0x34b6c7)return;const _0x1bbf0f=_0x4ddb0b['at']||0x0,_0x2c1179=_0x4ddb0b['columns']||0x1;_0x34b6c7[_0x4ea4('0x1a')]=new Array(_0x2c1179)['fill'](_0x1bbf0f)['map']((_0x5ccbc8,_0x4f365d)=>_0x5ccbc8+_0x4f365d);for(const {cell:_0x565d08}of _0x339be0['createTableWalker'](_0x411c7e,{'startColumn':_0x1bbf0f,'endColumn':_0x1bbf0f+_0x2c1179-0x1}))_0x34b6c7['columnInsertionRanges']['push'](_0x198b86['model'][_0x4ea4('0x3f')](_0x565d08));},{'priority':_0x4ea4('0x2c')}),_0x339be0['on']('insertRows',(_0x37310c,_0x321c96)=>{const [_0x35c003,_0x1c8221={}]=_0x321c96;if(!_0x34b6c7)return;const _0x18cd18=_0x1c8221['at']||0x0,_0x107534=_0x1c8221['rows']||0x1;_0x34b6c7[_0x4ea4('0x7a')]=new Array(_0x107534)[_0x4ea4('0x84')](_0x18cd18)[_0x4ea4('0xa0')]((_0x427816,_0x265540)=>_0x427816+_0x265540);for(const {cell:_0x462471}of _0x339be0[_0x4ea4('0x79')](_0x35c003,{'startRow':_0x18cd18,'endRow':_0x18cd18+_0x107534-0x1}))_0x34b6c7[_0x4ea4('0x5b')][_0x4ea4('0x64')](_0x198b86['model']['createRangeOn'](_0x462471));},{'priority':_0x4ea4('0x2c')}),_0x4f05d4[_0x4ea4('0x85')][_0x4ea4('0x8b')](_0x4f7c82=>{if(_0x4f7c82[_0x4ea4('0x40')]&&_0x4f7c82[_0x4ea4('0x40')][_0x4ea4('0x6f')]('tablePaste'))return _0x4f7c82['previous']?{}:{'type':_0x4ea4('0x70'),'content':_0x172592(_0x198b86[_0x4ea4('0x17')],_0x4ea4('0x29'))};});const _0x471bf1=()=>!0x1;for(const _0x4faa5a of[_0x4ea4('0x93'),_0x4ea4('0x52'),_0x4ea4('0x50'),_0x4ea4('0x73')])_0x4f05d4['_suggestionFactory'][_0x4ea4('0x8a')](_0x4ea4('0x70'),_0x4faa5a,_0x4ea4('0x22'),_0x471bf1),_0x4f05d4['_suggestionFactory']['registerCustomCallback'](_0x4ea4('0x57'),_0x4faa5a,_0x4ea4('0x22'),_0x471bf1),_0x4f05d4[_0x4ea4('0x39')][_0x4ea4('0x8a')](_0x4ea4('0x61'),_0x4faa5a,_0x4ea4('0x22'),_0x471bf1);_0x4f05d4[_0x4ea4('0x39')][_0x4ea4('0x8a')](_0x4ea4('0x61'),'tablePasteCell',_0x4ea4('0xd'),_0x471bf1),_0x4f05d4['_suggestionFactory'][_0x4ea4('0x8a')]('formatBlock','tablePasteCell',_0x4ea4('0x4'),(_0x2b8e8b,_0x2121bf,_0x5bb026)=>{const _0x5bc613=_0x2b8e8b[_0x4ea4('0xa0')](_0x319ec7=>_0x319ec7[_0x4ea4('0x6d')]())[_0x4ea4('0x13')](_0x59e89b=>_0x59e89b),_0x257a9f=new Map(_0x5bc613['map'](_0x1bd78a=>[_0x1bd78a,null]));if(_0x34b6c7)for(const {element:_0x271a3e,attributes:_0x10e981}of _0x34b6c7[_0x4ea4('0x45')])_0x10e981&&_0x257a9f['set'](_0x271a3e,_0x10e981);else{if(_0x5bb026&&_0x5bb026['markerAttributes'])for(const [_0x285669,_0x3ce442]of Object['entries'](_0x5bb026[_0x4ea4('0x46')])){const _0xf7f741=_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x41')][_0x4ea4('0x95')](_0x285669),_0x3da1bd=_0xf7f741?_0xf7f741[_0x4ea4('0x9')]()['getContainedElement']():null;_0x3da1bd&&_0x257a9f[_0x4ea4('0xa2')](_0x3da1bd,_0x3ce442);}}_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x9c')](_0x2ab06f=>{for(const [_0x5e304f,_0x176ae8]of _0x257a9f)_0x2ab06f[_0x4ea4('0x20')]({...ae,..._0x176ae8},_0x5e304f);});});const _0x74d5bf=(_0x12afd2,_0x1e70ad)=>{_0x4f05d4['_suggestionFactory'][_0x4ea4('0x8a')](_0x12afd2,_0x4ea4('0x93'),_0x1e70ad,(_0x2e7b87,_0x46a731,_0x5c87d4)=>{_0x198b86['model'][_0x4ea4('0x9c')](_0x3e5dcd=>{const _0x2ff19a=[];for(const _0x13dcfd of _0x2e7b87){const _0x37a41a=_0x13dcfd[_0x4ea4('0x1d')][_0x4ea4('0x4c')];_0x37a41a['is'](_0x4ea4('0x1c'),_0x4ea4('0x51'))&&_0x2ff19a['push'](_0x37a41a);}_0x4f05d4[_0x4ea4('0x39')][_0x4ea4('0x86')](_0x12afd2,null,_0x1e70ad)(_0x2e7b87,_0x46a731,_0x5c87d4);for(const _0x5ce2a3 of _0x2ff19a)'$graveyard'!=_0x5ce2a3[_0x4ea4('0x42')][_0x4ea4('0x2')]&&_0x3e5dcd[_0x4ea4('0x26')](_0x5ce2a3);});});};_0x74d5bf(_0x4ea4('0x70'),_0x4ea4('0x4')),_0x74d5bf(_0x4ea4('0x70'),_0x4ea4('0xd')),_0x74d5bf(_0x4ea4('0x57'),_0x4ea4('0x4')),_0x74d5bf('deletion',_0x4ea4('0xd')),_0x4f05d4[_0x4ea4('0x39')][_0x4ea4('0x8a')](_0x4ea4('0x70'),_0x4ea4('0x50'),_0x4ea4('0xd'),_0x8a1bee=>{const _0x3c5520=_0x8a1bee[_0x4ea4('0xa0')](_0x19c383=>_0x19c383[_0x4ea4('0x6d')]()),_0x3585cc=_0x3c5520[0x0][_0x4ea4('0x98')](_0x4ea4('0x5f')),{minRow:_0xbc71cb,maxRow:_0x55e05a}=_0xac261b['_getCoordsForCells'](_0x3c5520);_0x339be0[_0x4ea4('0x7b')](_0x3585cc,{'at':_0xbc71cb,'rows':_0x55e05a-_0xbc71cb+0x1});}),_0x4f05d4[_0x4ea4('0x39')][_0x4ea4('0x8a')](_0x4ea4('0x70'),_0x4ea4('0x52'),_0x4ea4('0xd'),_0x527b8f=>{const _0x9193fa=_0x527b8f[_0x4ea4('0xa0')](_0x184c28=>_0x184c28[_0x4ea4('0x6d')]()),_0x34956c=_0x9193fa[0x0][_0x4ea4('0x98')](_0x4ea4('0x5f')),{minColumn:_0x19c1aa,maxColumn:_0x16d71a}=_0xac261b[_0x4ea4('0x2b')](_0x9193fa);_0x339be0[_0x4ea4('0x67')](_0x34956c,{'at':_0x19c1aa,'columns':_0x16d71a-_0x19c1aa+0x1});});const _0x1117e6=(_0x47ac72,_0x1cb554)=>{if(!_0x1cb554[_0x4ea4('0x40')]||!_0x1cb554[_0x4ea4('0x40')]['startsWith']('tablePaste'))return;const _0x25079e=_0x1cb554['attributes'][_0x4ea4('0x5c')],_0x8d7975=_0x4f05d4[_0x4ea4('0x43')]()[_0x4ea4('0x13')](_0x5527d6=>_0x5527d6[_0x4ea4('0x7c')]&&_0x5527d6[_0x4ea4('0x78')]&&_0x5527d6['attributes'][_0x4ea4('0x5c')]==_0x25079e);_0x8d7975['length']&&_0x1cb554[_0x4ea4('0x31')]()[_0x4ea4('0x4b')]!=_0x8d7975['length']&&_0x8d7975[_0x4ea4('0x5a')]((_0x48d739,_0x3f1915)=>(_0x48d739[_0x4ea4('0x89')]=_0x3f1915,_0x3f1915[_0x4ea4('0x5')]=_0x48d739,_0x3f1915));};function _0x1a9f59(_0x3ae76c,_0x16d791=!0x0){const {id:_0x195439}=_0x4f05d4[_0x4ea4('0x1f')](_0x3ae76c[_0x4ea4('0xa1')]),_0x4fed6c=[_0x4ea4('0x72'),'ck-suggestion-marker-insertion'],_0x1bdc81=_0x4f05d4[_0x4ea4('0x2a')]['includes'](_0x3ae76c[_0x4ea4('0xa1')]);return _0x1bdc81&&_0x4fed6c[_0x4ea4('0x64')]('ck-suggestion-marker--active'),{'classes':_0x4fed6c,'attributes':{'data-suggestion':_0x195439},'priority':_0x1bdc81&&_0x16d791?0xbc2:0xbb8};}_0x4f05d4['on'](_0x4ea4('0x12'),_0x1117e6,{'priority':'high'}),_0x4f05d4['on'](_0x4ea4('0x65'),_0x1117e6,{'priority':'high'}),_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x1b')][_0x4ea4('0x80')](()=>{let _0x5b4552=!0x1;const _0x4c1138=Array[_0x4ea4('0x35')](_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x1b')][_0x4ea4('0x96')]['getChangedMarkers']());for(const {name:_0x40d0e0,data:_0x480f47}of _0x4c1138){const {group:_0x4335eb,type:_0x356fe9,id:_0x48f34a}=_0x4f05d4[_0x4ea4('0x1f')](_0x40d0e0);if(_0x4ea4('0x8c')!=_0x4335eb||_0x4ea4('0x57')!=_0x356fe9||_0x480f47['oldRange'])continue;if(!_0x4f05d4[_0x4ea4('0x14')](_0x48f34a))continue;const _0x442bf9=_0x4f05d4[_0x4ea4('0x23')](_0x48f34a)[_0x4ea4('0x47')](),_0x485816=_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')](_0x4ea4('0x19'))['me'];for(const _0x313b75 of _0x4f05d4['getSuggestions']()){if(!_0x313b75[_0x4ea4('0x7c')]||_0x313b75[_0x4ea4('0x60')]!=_0x485816)continue;if(_0x4ea4('0x61')!=_0x313b75[_0x4ea4('0x1')]||_0x4ea4('0x73')!=_0x313b75[_0x4ea4('0x40')])continue;if(_0x313b75['getRanges']()['every'](_0x53e68d=>_0x442bf9[_0x4ea4('0x94')](_0x5b6dff=>_0x5b6dff[_0x4ea4('0x24')](_0x53e68d,!0x0))))for(const _0x323d15 of _0x313b75[_0x4ea4('0x31')]())_0x323d15[_0x4ea4('0x7c')]&&(_0x323d15[_0x4ea4('0xd')](),_0x5b4552=!0x0);}}return _0x5b4552;}),_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x1b')][_0x4ea4('0x80')](_0xe6d26=>{const _0x3abe8f=_0x198b86['commands'][_0x4ea4('0x95')](_0x4ea4('0x99'));if(!_0x3abe8f||!_0x3abe8f['_createdBatches'][_0x4ea4('0x77')](_0xe6d26['batch']))return!0x1;let _0x21f62c=!0x1;const _0x49a95b=_0x198b86['plugins'][_0x4ea4('0x95')]('Users')['me'],_0x515c14=_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x1b')][_0x4ea4('0x96')][_0x4ea4('0x7d')](),_0x3f8ff0=Array[_0x4ea4('0x35')](_0x198b86[_0x4ea4('0x6')]['document'][_0x4ea4('0x96')][_0x4ea4('0x8d')]())[_0x4ea4('0x13')](({name:_0x202d89,data:_0x198801})=>{const {group:_0x6e57f8,subType:_0x54a9fb,authorId:_0x3039f2}=_0x4f05d4[_0x4ea4('0x1f')](_0x202d89);return _0x4ea4('0x8c')==_0x6e57f8&&_0x4ea4('0x93')==_0x54a9fb&&_0x3039f2==_0x49a95b['id']&&!_0x198801[_0x4ea4('0xa4')];});for(const _0x782542 of _0x515c14){if(_0x4ea4('0x4f')!=_0x782542[_0x4ea4('0x1')]||_0x4ea4('0x51')!=_0x782542[_0x4ea4('0x27')]||0x1!=_0x782542[_0x4ea4('0x4b')])continue;const _0x10e7c9=_0xe6d26[_0x4ea4('0x81')](_0x782542[_0x4ea4('0x6e')],_0x782542[_0x4ea4('0x6e')][_0x4ea4('0x3c')](0x1));if(!_0x3f8ff0['find'](({data:_0x3d6b31})=>_0x3d6b31[_0x4ea4('0x74')][_0x4ea4('0x7e')](_0x10e7c9)))for(const {name:_0x263a59,data:_0x111b7a}of _0x3f8ff0)if(_0x10e7c9['containsRange'](_0x111b7a[_0x4ea4('0x74')])){_0xe6d26[_0x4ea4('0x9a')](_0x263a59,{'range':_0x10e7c9}),_0x21f62c=!0x0;break;}}return _0x21f62c;}),_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x1b')][_0x4ea4('0x80')](_0x5850fa=>{let _0x2da760=!0x1;const _0x591fbe=_0x198b86[_0x4ea4('0x0')]['get'](_0x4ea4('0x19'))['me'],_0x5a2e60=_0x4f05d4[_0x4ea4('0x43')]()[_0x4ea4('0x13')](_0x294cc5=>_0x294cc5[_0x4ea4('0x7c')]&&_0x294cc5['author']==_0x591fbe),_0x2aa10a=new Set(),_0xd9985=new Set();for(const _0x2ab9db of _0x5a2e60)if(_0x4ea4('0x93')==_0x2ab9db[_0x4ea4('0x40')])for(const _0x340262 of _0x2ab9db[_0x4ea4('0x56')]()){const _0x52a074=_0x340262[_0x4ea4('0x9')]()[_0x4ea4('0x6d')]();if(_0x52a074){if(_0x52a074['is'](_0x4ea4('0x1c'),_0x4ea4('0x51'))&&ce(_0x52a074)){_0x2ab9db[_0x4ea4('0x5d')](_0x340262[_0x4ea4('0x27')]),_0x2aa10a[_0x4ea4('0xb')](_0x52a074),_0x2da760=!0x0;const _0xd793d=_0x52a074[_0x4ea4('0x4a')],_0x39514b=_0x52a074[_0x4ea4('0xf')],_0x516b6d=_0xd793d&&_0xd793d['is'](_0x4ea4('0x1c'),_0x4ea4('0x51')),_0x58d126=_0x39514b&&_0x39514b['is'](_0x4ea4('0x1c'),_0x4ea4('0x51'));_0x516b6d&&!_0x2aa10a[_0x4ea4('0x77')](_0xd793d)&&_0xd9985[_0x4ea4('0xb')](_0xd793d),_0x58d126&&!_0x2aa10a[_0x4ea4('0x77')](_0x39514b)&&_0xd9985['add'](_0x39514b);}else _0x52a074['is']('element',_0x4ea4('0x9f'))&&_0x52a074[_0x4ea4('0xa5')]&&(_0x2ab9db['removeMarker'](_0x340262['name']),_0x2da760=!0x0);}}else{if('tablePasteCell'==_0x2ab9db[_0x4ea4('0x40')]){if(!_0x2ab9db[_0x4ea4('0x78')]||!_0x2ab9db[_0x4ea4('0x78')][_0x4ea4('0x5c')])continue;const _0x128f1a=_0x2ab9db[_0x4ea4('0x78')][_0x4ea4('0x46')];if(_0x128f1a&&Object[_0x4ea4('0x44')](_0x128f1a)[_0x4ea4('0x4b')])continue;const _0x4e91a0=_0x2ab9db[_0x4ea4('0x78')][_0x4ea4('0x5c')];let _0x3225aa=!0x0,_0x43c2d8=!0x0;for(const _0x6b9afb of _0x5a2e60)if(_0x6b9afb['subType']&&_0x6b9afb['subType']['startsWith']('tablePaste')){if(!_0x6b9afb[_0x4ea4('0x78')][_0x4ea4('0x5c')]){_0x43c2d8=!0x1;break;}if(_0x6b9afb['id']!=_0x2ab9db['id']&&_0x6b9afb[_0x4ea4('0x78')]['tablePasteChainId']==_0x4e91a0){_0x3225aa=!0x1;break;}}_0x43c2d8&&_0x3225aa&&(_0x2ab9db['removeMarkers'](),_0x2da760=!0x0);}}for(const _0x4c2029 of _0x2aa10a)_0x5850fa['remove'](_0x4c2029);for(const _0xa2145f of _0xd9985)_0x5850fa[_0x4ea4('0x26')](_0xa2145f);return _0x2da760;}),_0x198b86[_0x4ea4('0xa3')][_0x4ea4('0x66')](_0x4ea4('0x53'))[_0x4ea4('0x18')]({'model':_0x4ea4('0x6a'),'view':(_0x33cdb7,_0xef0f91)=>_0x1a9f59(_0x33cdb7),'converterPriority':_0x4ea4('0x8')}),_0x198b86['conversion'][_0x4ea4('0x66')](_0x4ea4('0x88'))[_0x4ea4('0x18')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x24487e,_0x7faa4a)=>_0x7faa4a[_0x4ea4('0x68')][_0x4ea4('0x33')]?_0x1a9f59(_0x24487e,!0x1):null,'converterPriority':_0x4ea4('0x8')});const _0x4325c4=_0x198b86['editing'][_0x4ea4('0x48')];this[_0x4ea4('0x76')](_0x4325c4[_0x4ea4('0x1b')],_0x4ea4('0x16'),(_0x182b93,_0x3fc0c2)=>{const _0x2034f3=[];for(const _0x584613 of _0x4325c4[_0x4ea4('0x32')](_0x3fc0c2[_0x4ea4('0x71')])[_0x4ea4('0x2f')]())_0x584613['is']('element',_0x4ea4('0x3e'))&&_0x2034f3['push'](_0x584613);_0x4325c4[_0x4ea4('0x9c')](_0x5962ab=>{for(const _0x3c4954 of _0x2034f3)_0x5962ab[_0x4ea4('0x7f')](_0x5962ab['createRangeIn'](_0x3c4954),_0x5962ab[_0x4ea4('0x34')](_0x3c4954)),_0x5962ab[_0x4ea4('0x10')](_0x3c4954);});});}}function ce(_0x2b3338){if(_0x2b3338[_0x4ea4('0xa5')])return!0x0;const _0x574b16=_0x2b3338[_0x4ea4('0x2e')](0x0);return _0x574b16['is']('element',_0x4ea4('0x9f'))&&_0x574b16['isEmpty'];}function fe(_0x1dcc18,_0x531104={},_0x202689){for(const {isAnchor:_0x4f56a2,cellHeight:_0x2b2752,cellWidth:_0x53b588}of _0x202689[_0x4ea4('0x79')](_0x1dcc18,{'includeAllSlots':!0x0,..._0x531104}))if(!_0x4f56a2||0x1!=_0x2b2752||0x1!=_0x53b588)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e44=['type','handleResizeTableWidthCommand','formatInline','tableWidth','columnWidths','plugins','formatBlock','TrackChangesEditing','getContainedElement','getSelectedElement','document','editor','get','table','accept','formatGroupId','locale','bind','registerCustomCallback','resizeTable','enableCommand','getSuggestions','handleSuggestionDescription','getSuggestionCallback','afterInit','Users','subType','TableColumnResizeEditing','model','discard','_descriptionFactory','author','has','commandParams','data','selection','getAttribute','_suggestionFactory','markBlockFormat'];(function(_0x550891,_0x5e4424){const _0x600e64=function(_0x5cec83){while(--_0x5cec83){_0x550891['push'](_0x550891['shift']());}};_0x600e64(++_0x5e4424);}(_0x5e44,0x1c9));const _0x600e=function(_0x550891,_0x5e4424){_0x550891=_0x550891-0x0;let _0x600e64=_0x5e44[_0x550891];return _0x600e64;};import{Plugin as _0x4433bb}from'ckeditor5/src/core';import{getTranslation as _0x2ede41}from'../utils/common-translations';export default class It extends _0x4433bb{[_0x600e('0x23')](){if(!this[_0x600e('0x16')]['plugins'][_0x600e('0x4')]('TableColumnResizeEditing'))return;const _0x430b3a=this[_0x600e('0x16')][_0x600e('0x10')][_0x600e('0x17')](_0x600e('0x12'));_0x430b3a[_0x600e('0x1f')]('resizeTableWidth',this[_0x600e('0xc')][_0x600e('0x1c')](this)),_0x430b3a[_0x600e('0x9')][_0x600e('0x1d')]('formatBlock',_0x600e('0x1e'),_0x600e('0x19'),_0x430b3a['_suggestionFactory']['getSuggestionCallback'](_0x600e('0x11'),null,_0x600e('0x1'))),_0x430b3a[_0x600e('0x9')][_0x600e('0x1d')](_0x600e('0x11'),'resizeTable',_0x600e('0x1'),_0x430b3a[_0x600e('0x9')][_0x600e('0x22')](_0x600e('0x11'),null,_0x600e('0x19'))),_0x430b3a[_0x600e('0x2')]['registerDescriptionCallback'](this['handleSuggestionDescription'][_0x600e('0x1c')](this));}[_0x600e('0xc')](_0x39e28c,_0x34a41c){const _0x427b0b=this['editor'][_0x600e('0x10')]['get'](_0x600e('0x12')),_0x2b9df9=this[_0x600e('0x16')][_0x600e('0x10')][_0x600e('0x17')](_0x600e('0x26')),_0x1b516e=_0x34a41c[_0x600e('0x18')]||this[_0x600e('0x16')][_0x600e('0x0')][_0x600e('0x15')][_0x600e('0x7')][_0x600e('0x14')]();this[_0x600e('0x16')]['model']['change'](()=>{const _0x5ccc0c=_0x2b9df9['getColumnGroupElement'](_0x1b516e);let _0x26729a=_0x5ccc0c?_0x2b9df9['getTableColumnsWidths'](_0x5ccc0c):null,_0x4c39f1=_0x1b516e[_0x600e('0x8')](_0x600e('0xe'))||null;const _0x4da8c5=_0x34a41c['tableWidth']||_0x4c39f1,_0x5d5600=_0x34a41c[_0x600e('0xf')]||_0x26729a,_0x3b00f3=this[_0x600e('0x16')][_0x600e('0x10')][_0x600e('0x17')](_0x600e('0x24'))['me'];for(const _0xdc24fb of _0x427b0b[_0x600e('0x20')]()){const _0x2c0b6d=_0xdc24fb[_0x600e('0x13')]();if(_0x600e('0x1e')===_0xdc24fb[_0x600e('0x25')]&&_0x2c0b6d===_0x1b516e){_0xdc24fb[_0x600e('0x3')]!==_0x3b00f3&&_0xdc24fb['discard']();const _0x37e49c=_0xdc24fb[_0x600e('0x6')][_0x600e('0x5')];_0x4c39f1=_0x37e49c[0x0][_0x600e('0xe')],_0x26729a=_0x37e49c[0x0][_0x600e('0xf')];break;}}_0x39e28c({'table':_0x1b516e,'tableWidth':_0x4da8c5,'columnWidths':_0x5d5600}),_0x427b0b[_0x600e('0xa')](_0x1b516e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4c39f1,'columnWidths':_0x26729a}],'formatGroupId':_0x600e('0x1e')},[],_0x600e('0x1e'));});}[_0x600e('0x21')](_0x283c74){if(_0x600e('0x11')!=_0x283c74[_0x600e('0xb')]&&_0x600e('0xd')!=_0x283c74[_0x600e('0xb')])return;const {data:_0x50fdd5}=_0x283c74;if(_0x50fdd5&&_0x600e('0x1e')===_0x50fdd5[_0x600e('0x1a')]){const _0x22d92a='*Format:*\x20resize\x20table';return{'type':'format','content':_0x2ede41(this[_0x600e('0x16')][_0x600e('0x1b')],_0x22d92a)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x658a=['getCellLocation','consumable','setAttribute','data','addMarker:suggestion','consume','registerDescriptionCallback','ck-suggestion-marker--active','get','markerName','parent','start','registerAttributeLabel','data-suggestion','registerCustomCallback','FORMAT_HEADER_ROW','commandName','FORMAT_HEADER_COLUMN','has','createTableWalker','removeAttribute','setTableColumnHeader','formatBlock','options','type','headingRows','cell','format','accept','end','requires','TrackChangesEditing','writer','removeClass','showSuggestionHighlights','_handleLegacySuggestions','_descriptionFactory','forceValue','plugins','TableEditing','locale','_splitMarkerName','*Format:*\x20%0','commandParams','_registerLegacyDescription','mapper','markerRange','_enableDefaultAttributesIntegration','_acceptFormatSuggestionCallbackFactory','editing','unbindElementFromMarkerName','FORMAT_REGULAR_COLUMN','nodeAfter','editor','highest','ck-suggestion-marker-','headingColumns','setTableRowHeader','addClass','getSuggestion','downcastDispatcher','_suggestionFactory','item','markerNameToElements'];(function(_0x557257,_0x658a03){const _0x3b0aef=function(_0x5f10a2){while(--_0x5f10a2){_0x557257['push'](_0x557257['shift']());}};_0x3b0aef(++_0x658a03);}(_0x658a,0x1cb));const _0x3b0a=function(_0x557257,_0x658a03){_0x557257=_0x557257-0x0;let _0x3b0aef=_0x658a[_0x557257];return _0x3b0aef;};import{Plugin as _0x416f40}from'ckeditor5/src/core';import _0x3b7b4d from'./table';import{getTranslation as _0x483588}from'../utils/common-translations';export default class St extends _0x416f40{static get[_0x3b0a('0x13')](){return[_0x3b7b4d];}['afterInit'](){const _0x5c5928=this['editor'];if(!_0x5c5928['plugins'][_0x3b0a('0x7')](_0x3b0a('0x1c')))return;const _0x4edb3f=_0x5c5928['locale'],_0x37369e=_0x5c5928['plugins'][_0x3b0a('0x3d')](_0x3b0a('0x14'));_0x37369e['_enableDefaultAttributesIntegration'](_0x3b0a('0x2e'),[],[_0x3b0a('0xe')]),_0x37369e[_0x3b0a('0x24')](_0x3b0a('0xa'),[],[_0x3b0a('0x2d')]),_0x37369e[_0x3b0a('0x19')]['registerAttributeLabel'](_0x3b0a('0xe'),_0x483588(_0x4edb3f,_0x3b0a('0x4'))),_0x37369e[_0x3b0a('0x19')][_0x3b0a('0x1')](_0x3b0a('0x2d'),_0x483588(_0x4edb3f,'FORMAT_HEADER_COLUMN')),this[_0x3b0a('0x18')]();}[_0x3b0a('0x18')](){const _0x5e761f=this['editor']['plugins'][_0x3b0a('0x3d')](_0x3b0a('0x14')),_0x28ae2b=this[_0x3b0a('0x2a')][_0x3b0a('0x1b')]['get']('TableUtils'),_0x158e82=this[_0x3b0a('0x2a')][_0x3b0a('0x1b')][_0x3b0a('0x3d')](_0x3b7b4d)[_0x3b0a('0x25')]();function _0x55866a({showActiveMarker:_0x2c08ae=!0x0,setDataAttribute:_0x9a5c58=!0x0}={}){return(_0x258b36,_0x2f43c9,_0x57a79b)=>{const {type:_0x5c2e8b,id:_0x3ba981}=_0x5e761f[_0x3b0a('0x1e')](_0x2f43c9['markerName']),_0x509f01=_0x5e761f[_0x3b0a('0x30')](_0x3ba981),_0x30595f=_0x509f01[_0x3b0a('0x38')];if(_0x3b0a('0xb')!=_0x509f01[_0x3b0a('0xd')]||!_0x30595f||'setTableColumnHeader'!=_0x30595f[_0x3b0a('0x5')])return;if(_0x2f43c9[_0x3b0a('0x33')])return void _0x258b36['stop']();if(!_0x57a79b[_0x3b0a('0x36')][_0x3b0a('0x3a')](_0x2f43c9['markerRange'],_0x258b36['name']))return;const _0x49df6f=_0x2f43c9[_0x3b0a('0x23')][_0x3b0a('0x0')][_0x3b0a('0x29')],_0x1f2be3=_0x2f43c9[_0x3b0a('0x23')][_0x3b0a('0x12')]['nodeBefore'],_0x4c0802=_0x49df6f[_0x3b0a('0x3f')][_0x3b0a('0x3f')],{column:_0x39e7c2}=_0x28ae2b[_0x3b0a('0x35')](_0x49df6f),{column:_0x1fcac7}=_0x28ae2b[_0x3b0a('0x35')](_0x1f2be3);for(let _0x392793=_0x39e7c2;_0x392793<=_0x1fcac7;_0x392793++){const _0x419935=_0x28ae2b[_0x3b0a('0x8')](_0x4c0802,{'column':_0x392793,'includeAllSlots':!0x1});for(const _0x3e82ff of _0x419935){const _0x344f9b=_0x3e82ff[_0x3b0a('0xf')],_0x18420d=_0x57a79b[_0x3b0a('0x22')]['toViewElement'](_0x344f9b);_0x57a79b[_0x3b0a('0x15')][_0x3b0a('0x2f')](_0x3b0a('0x2c')+_0x5c2e8b,_0x18420d),_0x9a5c58&&_0x57a79b[_0x3b0a('0x15')][_0x3b0a('0x37')](_0x3b0a('0x2'),_0x3ba981,_0x18420d),_0x57a79b['mapper']['bindElementToMarker'](_0x18420d,_0x2f43c9[_0x3b0a('0x3e')]),_0x2c08ae&&(_0x5e761f['activeMarkers']['includes'](_0x2f43c9[_0x3b0a('0x3e')])?_0x57a79b['writer'][_0x3b0a('0x2f')](_0x3b0a('0x3c'),_0x18420d):_0x57a79b[_0x3b0a('0x15')][_0x3b0a('0x16')]('ck-suggestion-marker--active',_0x18420d));}}};}_0x5e761f[_0x3b0a('0x32')][_0x3b0a('0x3')](_0x3b0a('0xb'),'setTableRowHeader',_0x3b0a('0x11'),_0x158e82),_0x5e761f[_0x3b0a('0x32')][_0x3b0a('0x3')](_0x3b0a('0xb'),'setTableColumnHeader','accept',_0x158e82),this[_0x3b0a('0x2a')][_0x3b0a('0x26')][_0x3b0a('0x31')]['on'](_0x3b0a('0x39'),_0x55866a(),{'priority':_0x3b0a('0x2b')}),this[_0x3b0a('0x2a')][_0x3b0a('0x38')]['downcastDispatcher']['on'](_0x3b0a('0x39'),(_0x2ec8f3,_0x53aa12,_0x5b1037)=>{_0x5b1037[_0x3b0a('0xc')][_0x3b0a('0x17')]&&_0x55866a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2ec8f3,_0x53aa12,_0x5b1037);},{'priority':_0x3b0a('0x2b')}),this[_0x3b0a('0x2a')][_0x3b0a('0x26')][_0x3b0a('0x31')]['on']('removeMarker:suggestion',(_0x20611d,_0x4f65d6,_0x388413)=>{const {type:_0x2b88e2,id:_0xedce51}=_0x5e761f[_0x3b0a('0x1e')](_0x4f65d6[_0x3b0a('0x3e')]),_0x398eae=_0x5e761f['getSuggestion'](_0xedce51),_0x192797=_0x398eae['data'];if(_0x3b0a('0xb')!=_0x398eae['type']||!_0x192797||'setTableColumnHeader'!=_0x192797[_0x3b0a('0x5')])return;const _0x2ed0a6=_0x388413[_0x3b0a('0x22')][_0x3b0a('0x34')](_0x4f65d6[_0x3b0a('0x3e')]);if(_0x2ed0a6)for(const _0x3aef44 of _0x2ed0a6)_0x388413[_0x3b0a('0x15')]['removeClass'](_0x3b0a('0x2c')+_0x2b88e2,_0x3aef44),_0x388413[_0x3b0a('0x15')][_0x3b0a('0x16')](_0x3b0a('0x3c'),_0x3aef44),_0x388413[_0x3b0a('0x15')][_0x3b0a('0x9')](_0x3b0a('0x2'),_0x3aef44),_0x388413[_0x3b0a('0x22')][_0x3b0a('0x27')](_0x3aef44,_0x4f65d6[_0x3b0a('0x3e')]);},{'priority':_0x3b0a('0x2b')}),this[_0x3b0a('0x21')]();}[_0x3b0a('0x21')](){const _0x258dac=this[_0x3b0a('0x2a')],_0x2cb7f7=_0x258dac[_0x3b0a('0x1d')];function _0x532c62(_0x3c147b){return{'type':_0x3b0a('0x10'),'content':_0x483588(_0x2cb7f7,_0x3b0a('0x1f'),_0x3c147b)};}_0x258dac[_0x3b0a('0x1b')][_0x3b0a('0x3d')](_0x3b0a('0x14'))[_0x3b0a('0x19')][_0x3b0a('0x3b')](_0x659276=>{if(_0x3b0a('0xb')!=_0x659276[_0x3b0a('0xd')])return;const {data:_0x143ef1}=_0x659276;if(_0x143ef1){if('setTableRowHeader'==_0x143ef1[_0x3b0a('0x5')]){const _0x20ffe7=_0x143ef1[_0x3b0a('0x20')][0x0]['forceValue'];return _0x532c62(_0x483588(_0x2cb7f7,_0x20ffe7?_0x3b0a('0x4'):'FORMAT_REGULAR_ROW'));}if(_0x3b0a('0xa')==_0x143ef1['commandName']){const _0x38b25d=_0x143ef1[_0x3b0a('0x20')][0x0][_0x3b0a('0x1a')];return _0x532c62(_0x483588(_0x2cb7f7,_0x38b25d?_0x3b0a('0x6'):_0x3b0a('0x28')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11d1=['find','push','getFirstPosition','filter','selection','mergeTableCellRight','document','return','length','refresh','mergeTableCells','element','mergeTableCellUp','_suggestionFactory','splitTableCellVertically','set:isEnabled','author','type','registerDescriptionCallback','trackChanges','markBlockFormat','model','registerCustomCallback','TableUtils','from','getRanges','execute','commandName','root','locale','map','getCellLocation','add','deletion','mergeTableCellDown','markMultiRangeBlockFormat','direction','forceDefaultExecution','horizontally','_areMergableCells','containsRange','setSelection','getSuggestions','findAncestor','fromRange','getSelectionAffectedTableCells','value','enableCommand','requires','tableCell','*Split\x20cell:*\x20vertically','editor','_tablePostFixingSubtypes','TableEditing','accept','change','_acceptFormatSuggestionCallbackFactory','getAncestors','rootName','detach','isInContent','stop','plugins','format','cell','mergeTableCellLeft','size','table','createRangeOn','_descriptionFactory','TrackChangesEditing','_isForcedDefaultExecutionBlock','splitTableCellHorizontally','commands','get','formatBlock','has'];(function(_0x7f6b48,_0x11d118){const _0x294c14=function(_0x1d575c){while(--_0x1d575c){_0x7f6b48['push'](_0x7f6b48['shift']());}};_0x294c14(++_0x11d118);}(_0x11d1,0x85));const _0x294c=function(_0x7f6b48,_0x11d118){_0x7f6b48=_0x7f6b48-0x0;let _0x294c14=_0x11d1[_0x7f6b48];return _0x294c14;};import{Plugin as _0x24dea5}from'ckeditor5/src/core';import _0x2f087d from'./table';import{LiveRange as _0x1ffb43}from'ckeditor5/src/engine';import{getTranslation as _0x448751}from'../utils/common-translations';export default class yt extends _0x24dea5{static get[_0x294c('0x45')](){return[_0x2f087d];}['afterInit'](){const _0x2d7def=this['editor'],_0x5e2edc=_0x2d7def[_0x294c('0x2a')]['document']['selection'],_0xd8bf6=_0x2d7def[_0x294c('0x32')];if(!_0x2d7def[_0x294c('0x6')]['has'](_0x294c('0x4a')))return;const _0x2f7661=_0x2d7def[_0x294c('0x6')]['get']('TrackChangesEditing'),_0x1edd77=_0x2d7def[_0x294c('0x6')][_0x294c('0x12')]('TableUtils'),_0x517260=_0x2d7def[_0x294c('0x6')][_0x294c('0x12')](_0x2f087d);_0x517260[_0x294c('0x49')][_0x294c('0x16')](_0x294c('0x1f')),_0x2f7661[_0x294c('0x44')](_0x294c('0x1f'),()=>{const _0x31757a=_0x1edd77[_0x294c('0x42')](_0x2d7def[_0x294c('0x2a')][_0x294c('0x1b')]['selection']);_0x2d7def['model'][_0x294c('0x4c')](()=>{_0x2f7661[_0x294c('0x38')](_0x31757a,{'commandName':'mergeTableCells','commandParams':[]},[],_0x294c('0x1f'));});}),_0x2d7def['commands']['get'](_0x294c('0x1f'))['on'](_0x294c('0x2f'),(_0x3e83d2,_0x100ed4)=>{_0x2d7def[_0x294c('0x11')][_0x294c('0x12')](_0x294c('0x28'))['value']&&(_0x100ed4[_0x294c('0x1d')]>0x0&&_0x100ed4[_0x100ed4['length']-0x1]&&_0x100ed4[_0x100ed4[_0x294c('0x1d')]-0x1][_0x294c('0x3a')]||_0x2f7661[_0x294c('0xf')]||this['_areSelectedCellsMergable']()||_0x3e83d2[_0x294c('0x5')]());},{'priority':'highest'});for(const _0x145b69 of['mergeTableCellUp','mergeTableCellRight',_0x294c('0x37'),_0x294c('0x9')]){const _0x5aeb43=_0x2d7def[_0x294c('0x11')][_0x294c('0x12')](_0x145b69);_0x2f7661[_0x294c('0x44')](_0x145b69,()=>{const _0x36910b=_0x2d7def[_0x294c('0x2a')][_0x294c('0x1b')]['selection'][_0x294c('0x17')]()['getAncestors']()[_0x294c('0x15')](_0x270cd1=>_0x270cd1['is'](_0x294c('0x20'),'tableCell')),_0x1087a1=_0x5aeb43[_0x294c('0x43')];_0x2d7def[_0x294c('0x2a')][_0x294c('0x4c')](()=>{_0x2f7661[_0x294c('0x38')]([_0x36910b,_0x1087a1],{'commandName':_0x294c('0x1f'),'commandParams':[]},[],_0x294c('0x1f'));});});}for(const _0x2fe3b5 of[_0x294c('0x23'),_0x294c('0x10')]){const _0x1a7632=_0x2d7def[_0x294c('0x11')][_0x294c('0x12')](_0x2fe3b5);_0x2f7661[_0x294c('0x44')](_0x2fe3b5,()=>{const _0x2b2b03=_0x1edd77[_0x294c('0x42')](_0x2d7def[_0x294c('0x2a')][_0x294c('0x1b')][_0x294c('0x19')])[0x0],_0x561c04=_0x2b2b03[_0x294c('0x40')](_0x294c('0xb')),{column:_0x3d3d3f,row:_0x5563cd}=_0x1edd77[_0x294c('0x34')](_0x2b2b03);let _0x1bb5f9=[];if(_0x294c('0x3b')==_0x1a7632[_0x294c('0x39')]){const _0x4475c1=_0x1edd77['createTableWalker'](_0x561c04,{'startRow':_0x5563cd,'endRow':_0x5563cd,'includeAllSlots':!0x0});_0x1bb5f9=Array[_0x294c('0x2d')](_0x4475c1)[_0x294c('0x33')](_0x344ff2=>_0x344ff2[_0x294c('0x8')]);}else{const _0x73cba8=_0x1edd77['createTableWalker'](_0x561c04,{'column':_0x3d3d3f,'includeAllSlots':!0x0});_0x1bb5f9=Array[_0x294c('0x2d')](_0x73cba8)[_0x294c('0x33')](_0x1f6228=>_0x1f6228[_0x294c('0x8')]);}_0x2d7def[_0x294c('0x2a')][_0x294c('0x4c')](_0x5f19a2=>{_0x2f7661[_0x294c('0x29')](_0x5f19a2[_0x294c('0xc')](_0x2b2b03),{'commandName':_0x2fe3b5,'commandParams':[]},_0x1bb5f9,_0x2fe3b5);});});}_0x2f7661['_descriptionFactory'][_0x294c('0x27')](_0x389e92=>{if(_0x294c('0x13')!=_0x389e92[_0x294c('0x26')]&&'formatInline'!=_0x389e92[_0x294c('0x26')])return;const {data:_0x5f0b67}=_0x389e92;return _0x5f0b67&&_0x294c('0x1f')==_0x5f0b67[_0x294c('0x30')]?{'type':_0x294c('0x7'),'content':_0x448751(_0xd8bf6,'*Merge\x20cells*')}:void 0x0;}),_0x2f7661[_0x294c('0xd')][_0x294c('0x27')](_0xd5fb2f=>{if(_0x294c('0x13')!=_0xd5fb2f[_0x294c('0x26')]&&'formatInline'!=_0xd5fb2f[_0x294c('0x26')])return;const {data:_0x22b457}=_0xd5fb2f;return _0x22b457?_0x294c('0x23')==_0x22b457['commandName']?{'type':_0x294c('0x7'),'content':_0x448751(_0xd8bf6,_0x294c('0x47'))}:'splitTableCellHorizontally'==_0x22b457[_0x294c('0x30')]?{'type':_0x294c('0x7'),'content':_0x448751(_0xd8bf6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x362252=_0x517260[_0x294c('0x0')]();for(const _0x2ef732 of[_0x294c('0x21'),_0x294c('0x1a'),'mergeTableCellDown',_0x294c('0x9')])_0x2f7661[_0x294c('0x22')][_0x294c('0x2b')](_0x294c('0x13'),_0x2ef732,_0x294c('0x4b'),_0x362252);for(const _0x4e442b of[_0x294c('0x23'),_0x294c('0x10')])_0x2f7661[_0x294c('0x22')][_0x294c('0x2b')](_0x294c('0x13'),_0x4e442b,_0x294c('0x4b'),_0x362252);_0x2f7661[_0x294c('0x22')]['registerCustomCallback'](_0x294c('0x13'),_0x294c('0x1f'),'accept',_0x568431=>{_0x2d7def[_0x294c('0x2a')][_0x294c('0x4c')](_0x2cbafc=>{const _0x8b8b2=Array[_0x294c('0x2d')](_0x5e2edc[_0x294c('0x2e')]())[_0x294c('0x33')](_0x30ae0d=>_0x1ffb43[_0x294c('0x41')](_0x30ae0d));_0x2cbafc[_0x294c('0x3e')](_0x568431),_0x2d7def['commands'][_0x294c('0x12')]('mergeTableCells')[_0x294c('0x1e')](),_0x2d7def[_0x294c('0x2f')](_0x294c('0x1f'),{'forceDefaultExecution':!0x0});const _0x289a59=_0x8b8b2[_0x294c('0x18')](_0x2d035b=>'$graveyard'!=_0x2d035b[_0x294c('0x31')][_0x294c('0x2')]);_0x289a59[_0x294c('0x1d')]>0x0&&_0x2cbafc['setSelection'](_0x289a59);for(const _0x22d244 of _0x8b8b2)_0x22d244[_0x294c('0x3')]();});});for(const _0x5d6b48 of[_0x294c('0x21'),_0x294c('0x37'),'mergeTableCellLeft',_0x294c('0x1a')]){const _0x397590=_0x2d7def[_0x294c('0x11')][_0x294c('0x12')](_0x5d6b48);_0x397590['on'](_0x294c('0x24'),(_0x662d3b,_0x3a5235,_0x7d4cd8)=>{if(_0x7d4cd8){const _0xded0e6=_0x2d7def['model']['document'][_0x294c('0x19')][_0x294c('0x17')]()[_0x294c('0x1')]()[_0x294c('0x15')](_0x25e64b=>_0x25e64b['is']('element',_0x294c('0x46')));this[_0x294c('0x3c')](_0x397590[_0x294c('0x43')],_0xded0e6)||(_0x662d3b[_0x294c('0x1c')]=!0x1,_0x662d3b[_0x294c('0x5')]());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xc139c8=this[_0x294c('0x48')]['commands'][_0x294c('0x12')](_0x294c('0x1f')),_0x24c383=this[_0x294c('0x48')][_0x294c('0x6')][_0x294c('0x12')](_0x294c('0x2c'));if(!_0xc139c8['isEnabled'])return!0x1;const _0x4c1886=_0x24c383[_0x294c('0x42')](this[_0x294c('0x48')][_0x294c('0x2a')][_0x294c('0x1b')][_0x294c('0x19')]);for(const _0x416e2f of _0x4c1886)for(const _0x27a0ad of _0x4c1886)if(_0x416e2f!=_0x27a0ad&&!this[_0x294c('0x3c')](_0x416e2f,_0x27a0ad))return!0x1;return!0x0;}[_0x294c('0x3c')](_0x2eff1a,_0xceb98d){const _0x4926e2=this[_0x294c('0x48')][_0x294c('0x6')][_0x294c('0x12')](_0x294c('0xe')),_0x51063f=this[_0x294c('0x48')][_0x294c('0x2a')][_0x294c('0xc')](_0x2eff1a),_0x4b33bd=this[_0x294c('0x48')]['model'][_0x294c('0xc')](_0xceb98d),_0x4a95f5=new Set(),_0x33efb8=new Set();for(const _0x2aaa20 of _0x4926e2[_0x294c('0x3f')]())if(('insertion'==_0x2aaa20['type']||_0x294c('0x36')==_0x2aaa20[_0x294c('0x26')]||_0x294c('0x1f')==_0x2aaa20['subType'])&&_0x2aaa20[_0x294c('0x4')])for(const _0x24321b of _0x2aaa20['getRanges']())_0x24321b[_0x294c('0x3d')](_0x51063f,!0x0)&&_0x4a95f5[_0x294c('0x35')](_0x2aaa20[_0x294c('0x26')]+':'+_0x2aaa20[_0x294c('0x25')]['id']),_0x24321b[_0x294c('0x3d')](_0x4b33bd,!0x0)&&_0x33efb8['add'](_0x2aaa20[_0x294c('0x26')]+':'+_0x2aaa20['author']['id']);if(_0x4a95f5[_0x294c('0xa')]!=_0x33efb8['size'])return!0x1;for(const _0x25b9bc of _0x4a95f5)if(!_0x33efb8[_0x294c('0x14')](_0x25b9bc))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ee2=['insertTableOfContents','enableCommand','get','TrackChangesEditing','afterInit','ELEMENT_TABLE_OF_CONTENTS','locale','editor','_descriptionFactory'];(function(_0x521373,_0x1ee20a){const _0x4dbd26=function(_0x446623){while(--_0x446623){_0x521373['push'](_0x521373['shift']());}};_0x4dbd26(++_0x1ee20a);}(_0x1ee2,0x1bd));const _0x4dbd=function(_0x521373,_0x1ee20a){_0x521373=_0x521373-0x0;let _0x4dbd26=_0x1ee2[_0x521373];return _0x4dbd26;};import{Plugin as _0xbfc170}from'ckeditor5/src/core';import{getTranslation as _0x4d68b0}from'../utils/common-translations';export default class Ct extends _0xbfc170{[_0x4dbd('0x0')](){const _0x390871=this[_0x4dbd('0x3')];if(!_0x390871['commands']['get'](_0x4dbd('0x5')))return;_0x390871['plugins'][_0x4dbd('0x7')]('TrackChangesEditing')[_0x4dbd('0x6')](_0x4dbd('0x5'));const _0x1cdb00=_0x390871['plugins'][_0x4dbd('0x7')](_0x4dbd('0x8')),_0x63e8a3=_0x390871[_0x4dbd('0x2')];_0x1cdb00[_0x4dbd('0x4')]['registerElementLabel']('tableOfContents',_0x30e46d=>_0x4d68b0(_0x63e8a3,_0x4dbd('0x1'),_0x30e46d));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x347b=['afterInit','getAttribute','document','join','nodeAfter','handleSuggestionDescription','tableCellProperties','handleDiscardAction','_handlePropertyChange','data','getSuggestionCallback','getSelectionAffectedTableCells','getContainedElement','_descriptionFactory','TrackChangesEditing','has','_suggestionFactory','registerDescriptionCallback','TableCellPropertiesEditing','registerCustomCallback','*Format:*\x20change\x20table\x20properties','table','tableCellHeight','_getSuggestion','tableBorderStyle','accept','findAncestor','tableAlignment','TableUtils','locale','editor','subType','plugins','TrackChangesTableProperties','commandParams','start','tableProperties','tableCellBorderStyle','tableBorderColor','selection','tableCellPadding','tableCellBorderWidth','getFirstPosition','tableCellBackgroundColor','format','discard','pluginName','tableBorderWidth','removeAttribute','batch','model','get','enableCommand','formatBlock'];(function(_0x3694e4,_0x347b29){const _0x5836fd=function(_0xeb62eb){while(--_0xeb62eb){_0x3694e4['push'](_0x3694e4['shift']());}};_0x5836fd(++_0x347b29);}(_0x347b,0x149));const _0x5836=function(_0x3694e4,_0x347b29){_0x3694e4=_0x3694e4-0x0;let _0x5836fd=_0x347b[_0x3694e4];return _0x5836fd;};import{Plugin as _0x32d83e}from'ckeditor5/src/core';import{getTranslation as _0x263be7}from'../utils/common-translations';export default class Mt extends _0x32d83e{constructor(_0x8721d1){super(_0x8721d1),this[_0x5836('0x1f')]=[_0x5836('0x21'),_0x5836('0x13'),_0x5836('0x2a'),_0x5836('0x16'),'tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor',_0x5836('0x20'),_0x5836('0x24'),_0x5836('0x23'),'tableCellWidth',_0x5836('0x11'),_0x5836('0x26'),'tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get[_0x5836('0x29')](){return _0x5836('0x1c');}[_0x5836('0x31')](){const _0x55e926=this[_0x5836('0x19')][_0x5836('0x1b')][_0x5836('0x2e')](_0x5836('0x9'));if(this['editor']['plugins'][_0x5836('0xa')]('TablePropertiesEditing')){for(const _0x7cb007 of this[_0x5836('0x1f')])_0x55e926['enableCommand'](_0x7cb007,(_0x30cd3f,_0x42e492)=>{const _0x3fea73=this[_0x5836('0x19')]['model'][_0x5836('0x33')][_0x5836('0x22')][_0x5836('0x25')]()[_0x5836('0x15')](_0x5836('0x10'));this[_0x5836('0x3')](_0x7cb007,[_0x3fea73],this[_0x5836('0x1f')],_0x5836('0x1f'),_0x30cd3f,_0x42e492);});_0x55e926[_0x5836('0xb')][_0x5836('0xe')](_0x5836('0x30'),_0x5836('0x1f'),'accept',_0x55e926[_0x5836('0xb')][_0x5836('0x5')](_0x5836('0x30'),null,_0x5836('0x28'))),_0x55e926[_0x5836('0xb')][_0x5836('0xe')]('formatBlock',_0x5836('0x1f'),_0x5836('0x28'),(_0x1f8975,_0x36a0de)=>this['handleDiscardAction'](this['tableProperties'],_0x1f8975,_0x36a0de)),_0x55e926[_0x5836('0xb')][_0x5836('0xe')](_0x5836('0x30'),_0x5836('0x1f'),_0x5836('0x34'),()=>!0x1);}if(this['editor'][_0x5836('0x1b')]['has'](_0x5836('0xd'))){for(const _0x34f679 of this[_0x5836('0x1')])_0x55e926[_0x5836('0x2f')](_0x34f679,(_0x1bfee9,_0x2bf0eb)=>{const _0x3a6b6c=this[_0x5836('0x19')][_0x5836('0x1b')][_0x5836('0x2e')](_0x5836('0x17'))[_0x5836('0x6')](this[_0x5836('0x19')][_0x5836('0x2d')][_0x5836('0x33')]['selection']);this[_0x5836('0x3')](_0x34f679,_0x3a6b6c,this['tableCellProperties'],_0x5836('0x1'),_0x1bfee9,_0x2bf0eb);});_0x55e926['_suggestionFactory'][_0x5836('0xe')]('formatBlock',_0x5836('0x1'),_0x5836('0x14'),_0x55e926[_0x5836('0xb')]['getSuggestionCallback']('formatBlock',null,'discard')),_0x55e926['_suggestionFactory'][_0x5836('0xe')]('formatBlock',_0x5836('0x1'),_0x5836('0x28'),(_0x1449a7,_0x5c3f33)=>this[_0x5836('0x2')](this['tableCellProperties'],_0x1449a7,_0x5c3f33)),_0x55e926[_0x5836('0xb')]['registerCustomCallback'](_0x5836('0x30'),'tableCellProperties',_0x5836('0x34'),()=>!0x1);}_0x55e926[_0x5836('0x8')][_0x5836('0xc')](_0x31eba6=>this[_0x5836('0x0')](_0x31eba6));}[_0x5836('0x3')](_0x422d72,_0x140ddf,_0x3de706,_0x3f684d,_0x42a780,_0x4d5cc8){const _0x1806da=this['editor'][_0x5836('0x1b')][_0x5836('0x2e')](_0x5836('0x9'));this[_0x5836('0x19')][_0x5836('0x2d')]['enqueueChange'](_0x4d5cc8[_0x5836('0x2c')],()=>{for(const _0x5f0492 of _0x140ddf){if(this[_0x5836('0x12')](_0x5f0492,_0x3f684d))_0x42a780(_0x4d5cc8);else{const _0x460255={};for(const _0x2600a5 of _0x3de706){const _0x1a23c7=_0x5f0492[_0x5836('0x32')](_0x2600a5);void 0x0!==_0x1a23c7&&(_0x460255[_0x2600a5]=_0x1a23c7);}_0x42a780(_0x4d5cc8),_0x1806da['markBlockFormat'](_0x5f0492,{'commandParams':[_0x460255]},[],_0x3f684d);}}});}[_0x5836('0x2')](_0x13c121,_0x4ac0aa,_0x169d85){const _0xffc340=_0x4ac0aa[0x0][_0x5836('0x1e')][_0x5836('0x35')],_0x5dd144=_0x169d85[_0x5836('0x1d')][0x0];this['editor'][_0x5836('0x2d')]['change'](_0x22f9c6=>{for(const _0x5a0590 of _0x13c121)void 0x0!==_0x5dd144[_0x5a0590]?_0x22f9c6['setAttribute'](_0x5a0590,_0x5dd144[_0x5a0590],_0xffc340):_0x22f9c6[_0x5836('0x2b')](_0x5a0590,_0xffc340);});}['handleSuggestionDescription'](_0x38bc11){if(_0x38bc11[_0x5836('0x4')])switch(_0x38bc11[_0x5836('0x1a')]){case _0x5836('0x1f'):return{'type':_0x5836('0x27'),'content':_0x263be7(this[_0x5836('0x19')]['locale'],_0x5836('0xf'))};case _0x5836('0x1'):return{'type':_0x5836('0x27'),'content':_0x263be7(this[_0x5836('0x19')][_0x5836('0x18')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x5836('0x12')](_0x471b83,_0x448d4d){const _0x484591=this[_0x5836('0x19')][_0x5836('0x1b')][_0x5836('0x2e')](_0x5836('0x9'));for(const _0x14654b of _0x484591['getSuggestions']({'skipNotAttached':!0x0})){const _0x2be58c=_0x14654b[_0x5836('0x7')]();if(_0x14654b[_0x5836('0x1a')]===_0x448d4d&&_0x2be58c===_0x471b83)return _0x14654b;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcbd4=['TrackChangesEditing','plugins','afterInit','insertTemplate','Template','enableCommand','get'];(function(_0x18306e,_0xcbd4f4){const _0x49b433=function(_0x49fd52){while(--_0x49fd52){_0x18306e['push'](_0x18306e['shift']());}};_0x49b433(++_0xcbd4f4);}(_0xcbd4,0xc9));const _0x49b4=function(_0x18306e,_0xcbd4f4){_0x18306e=_0x18306e-0x0;let _0x49b433=_0xcbd4[_0x18306e];return _0x49b433;};import{Plugin as _0x42eedf}from'ckeditor5/src/core';export default class vt extends _0x42eedf{[_0x49b4('0x4')](){const _0x386419=this['editor'];_0x386419['plugins']['has'](_0x49b4('0x6'))&&_0x386419[_0x49b4('0x3')][_0x49b4('0x1')](_0x49b4('0x2'))[_0x49b4('0x0')](_0x49b4('0x5'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3535=['newRange','locale','has','Title','from','start','editor','createRange','isEqual','schema','registerPostFixer','document','suggestion','model','updateMarker','title-content','end','differ','getNearestSelectionRange','removeMarker','registerElementLabel','afterInit','_splitMarkerName','isTouching','plugins','ELEMENT_TITLE'];(function(_0xaf6f38,_0x35351e){const _0x2b2e1a=function(_0x165250){while(--_0x165250){_0xaf6f38['push'](_0xaf6f38['shift']());}};_0x2b2e1a(++_0x35351e);}(_0x3535,0x92));const _0x2b2e=function(_0xaf6f38,_0x35351e){_0xaf6f38=_0xaf6f38-0x0;let _0x2b2e1a=_0x3535[_0xaf6f38];return _0x2b2e1a;};import{Plugin as _0xfc5858}from'ckeditor5/src/core';import{getTranslation as _0x4b6839}from'../utils/common-translations';export default class _t extends _0xfc5858{[_0x2b2e('0x5')](){const _0x258312=this[_0x2b2e('0x10')];if(!_0x258312[_0x2b2e('0x8')][_0x2b2e('0xc')](_0x2b2e('0xd')))return;const _0x16e161=_0x258312[_0x2b2e('0x8')]['get']('TrackChangesEditing');_0x16e161['_descriptionFactory'][_0x2b2e('0x4')](_0x2b2e('0x19'),()=>_0x4b6839(_0x258312[_0x2b2e('0xb')],_0x2b2e('0x9'))),_0x258312[_0x2b2e('0x17')][_0x2b2e('0x15')][_0x2b2e('0x14')](_0x4ccd1f=>{let _0x485239=!0x1;const _0x34529e=Array[_0x2b2e('0xe')](_0x258312[_0x2b2e('0x17')][_0x2b2e('0x15')][_0x2b2e('0x1')]['getChangedMarkers']());for(const {name:_0x1bc738,data:_0x3df91a}of _0x34529e){const {group:_0x33a55f}=_0x16e161[_0x2b2e('0x6')](_0x1bc738);if(_0x2b2e('0x16')!==_0x33a55f||!_0x3df91a[_0x2b2e('0xa')])continue;const _0x5dfe0e=_0x3df91a[_0x2b2e('0xa')],_0x474d00=_0x5dfe0e[_0x2b2e('0x0')]['nodeBefore'];if(!_0x474d00||!_0x474d00['is']('element','title-content'))continue;if(!_0x5dfe0e[_0x2b2e('0xf')][_0x2b2e('0x7')](_0x5dfe0e[_0x2b2e('0x0')]))continue;const _0x1cff2c=_0x258312[_0x2b2e('0x17')][_0x2b2e('0x13')][_0x2b2e('0x2')](_0x5dfe0e['end'],'forward');if(_0x1cff2c&&_0x1cff2c['isCollapsed']){const _0x1e1243=_0x4ccd1f[_0x2b2e('0x11')](_0x5dfe0e[_0x2b2e('0xf')],_0x1cff2c[_0x2b2e('0xf')]);_0x1e1243[_0x2b2e('0x12')](_0x5dfe0e)||(_0x4ccd1f[_0x2b2e('0x18')](_0x1bc738,{'range':_0x1e1243}),_0x485239=!0x0);}_0x485239||(_0x4ccd1f[_0x2b2e('0x3')](_0x1bc738),_0x485239=!0x0);}return _0x485239;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1753=['undo','afterInit','plugins','editor','UndoEditing','redo','TrackChangesEditing','enableCommand'];(function(_0x5e0523,_0x17532e){const _0x358a9d=function(_0x11e05d){while(--_0x11e05d){_0x5e0523['push'](_0x5e0523['shift']());}};_0x358a9d(++_0x17532e);}(_0x1753,0x1ef));const _0x358a=function(_0x5e0523,_0x17532e){_0x5e0523=_0x5e0523-0x0;let _0x358a9d=_0x1753[_0x5e0523];return _0x358a9d;};import{Plugin as _0x32914e}from'ckeditor5/src/core';export default class Dt extends _0x32914e{[_0x358a('0x2')](){const _0x15f040=this[_0x358a('0x4')],_0x411f33=_0x15f040[_0x358a('0x3')]['get'](_0x358a('0x7'));_0x15f040[_0x358a('0x3')]['has'](_0x358a('0x5'))&&(_0x411f33[_0x358a('0x0')](_0x358a('0x1')),_0x411f33[_0x358a('0x0')](_0x358a('0x6')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40fd=['getCustomProperty','createUIElement','activeMarkers','hasAttribute','element','name','getWalker','consumable','parent','previousPosition','markerRange','push','listItem','mapper','toViewPosition','getAttribute','type','getItems','plugins','isAtEnd','schema','ck-suggestion-marker--active','isBlock','get','writer','isLimit','markerName','span','bindElementToMarker','nextSibling','addClass','isContent'];(function(_0x29f6d6,_0x40fde1){const _0xebcd22=function(_0x662b08){while(--_0x662b08){_0x29f6d6['push'](_0x29f6d6['shift']());}};_0xebcd22(++_0x40fde1);}(_0x40fd,0x114));const _0xebcd=function(_0x29f6d6,_0x40fde1){_0x29f6d6=_0x29f6d6-0x0;let _0xebcd22=_0x40fd[_0x29f6d6];return _0xebcd22;};export function getRangesWithAttribute(_0x4690e9,_0x36ece8,_0x3afd99){const _0x3627e4=[];for(const _0x4f5d53 of _0x36ece8[_0xebcd('0x1d')]())_0x4f5d53[_0xebcd('0xf')](_0x4690e9)&&_0x3627e4[_0xebcd('0x17')](_0x3afd99['createRangeOn'](_0x4f5d53));return _0x3627e4;}export function getElementsAffectedByListItemRename(_0x2c96d5){const _0x3c0b4b=[];if(_0x2c96d5['is']('element','listItem')){let _0x2a71f3=_0x2c96d5[_0xebcd('0x9')];for(;_0x2a71f3&&_0x2a71f3['is'](_0xebcd('0x10'),_0xebcd('0x18'))&&_0x2a71f3[_0xebcd('0x1b')]('listIndent')>0x0;)_0x3c0b4b['push'](_0x2a71f3),_0x2a71f3=_0x2a71f3[_0xebcd('0x9')];}return _0x3c0b4b;}export function downcastSplitMergeMarker(_0x1f331d,_0x56ddf6,{showActiveMarker:_0x42c93c=!0x0}={}){const _0x349470=_0x1f331d[_0xebcd('0x1e')][_0xebcd('0x3')]('TrackChangesEditing');return(_0xfdf28b,_0x25d8b7,_0x9eaf67)=>{if(!_0x9eaf67[_0xebcd('0x13')]['test'](_0x25d8b7[_0xebcd('0x16')],_0xfdf28b[_0xebcd('0x11')]))return;const _0xe9304b=_0x25d8b7['markerRange'][_0xebcd('0x12')](),_0x4a9a14=_0x25d8b7[_0xebcd('0x16')]['start'],_0x418651=_0x1f331d['model'][_0xebcd('0x0')];let _0x518755=null,_0x50c635=null,_0x45fc2c=!0x1,_0x465e59=!0x1;for(const _0x4470dd of _0xe9304b){const _0x5688d1=_0x4470dd['item'];_0x45fc2c=_0x45fc2c||_0x418651[_0xebcd('0xb')](_0x5688d1);const _0x5ec63d=_0x9eaf67['mapper']['toViewElement'](_0x5688d1);if(_0x5ec63d&&_0x5ec63d[_0xebcd('0xc')]('addHighlight'))return;'elementEnd'==_0x4470dd[_0xebcd('0x1c')]&&(_0x418651[_0xebcd('0x2')](_0x5688d1)&&!_0x418651[_0xebcd('0x5')](_0x5688d1)&&(_0x5688d1['nextSibling']||_0x4a9a14[_0xebcd('0x1f')]?_0x518755&&_0x518755[_0xebcd('0x14')]==_0x5688d1||(_0x518755=_0x5688d1,_0x23b519(_0x4470dd[_0xebcd('0x15')]),_0x465e59=!0x0):_0x50c635=_0x50c635||_0x4470dd[_0xebcd('0x15')]));}function _0x23b519(_0x59ed6d){const _0x273bf9=_0x9eaf67[_0xebcd('0x4')][_0xebcd('0xd')](_0xebcd('0x7'),{'class':'ck-suggestion-marker-'+_0x56ddf6}),_0x138e8=_0x9eaf67['mapper'][_0xebcd('0x1a')](_0x59ed6d);_0x42c93c&&_0x349470[_0xebcd('0xe')]['includes'](_0x25d8b7[_0xebcd('0x6')])&&_0x9eaf67[_0xebcd('0x4')][_0xebcd('0xa')](_0xebcd('0x1'),_0x273bf9),_0x9eaf67[_0xebcd('0x4')]['insert'](_0x138e8,_0x273bf9),_0x9eaf67[_0xebcd('0x19')][_0xebcd('0x8')](_0x273bf9,_0x25d8b7[_0xebcd('0x6')]);}_0x45fc2c||_0x465e59||!_0x50c635||_0x23b519(_0x50c635);};}
|