@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230906.0 → 0.0.0-nightly-20230907.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/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4a51=['start','ck-suggestion-marker','paragraph','columnInsertionRanges','join','documentSelection','first','tableCellBorderStyle','name','Users','register','_splitMarkerName','getShiftedBy','getAttributes','removeMarker','dataDowncast','element','change','registerPostFixer','tableCellVerticalAlignment','ck-suggestion-marker--active','set','getSuggestionCallback','suggestion-td','differ','getSelectionAffectedTableCells','rowInsertionIndexes','createRange','findAncestor','markMultiRangeDeletion','suggestion','endColumn','requires','getChangedMarkers','createRangeOn','accept','insertContent','move','fill','getRange','trackChanges','for','TrackChangesEditing','setAttribute','getAllAdjacentSuggestions','hasSuggestion','createTableWalker','tableCellBorderColor','getSuggestions','getContainedElement','getSuggestion','tablePasteColumn','redo','suggestion:formatBlock:tablePasteCell','view','stop','getMarkers','low','from','isEqual','createPositionBefore','createRangeIn','selection','getChanges','setAttributes','commands','TableUtils','nextSibling','table','insertionRanges','markMultiRangeInsertion','tableCellHorizontalAlignment','editing','previous','tableCellBorderWidth','conversion','add','filter','cell','tablePasteChainId','tableCell','entries','clipboardOutput','end','last','includes','editor','discard','afterInit','activeMarkers','column','oldRange','every','tablePaste','_replaceTableSlotCell','markers','_suggestionFactory','locale','insertion','getRowIndexes','previousSibling','getItems','tableCellBackgroundColor','find','markerToHighlight','tablePasteCell','push','plugins','getColumns','getRows','showSuggestionHighlights','map','_getCoordsForCells','next','model','startsWith','updateMarker','fromEntries','$graveyard','remove','endRow','getTableIfOnlyTableInContent','author','suggestionUnloaded','get','newRange','formatBlock','cells','some','type','insert','high','row','schema','deletionRanges','removeMarkers','has','attributes','elementToElement','length','TableClipboard','rowInsertionRanges','value','document','_descriptionFactory','getRanges','unwrap','batch','markerName','listenTo','root','registerCustomCallback','position','tableCellSuggestion','subType','deletion','registerDescriptionCallback','isInContent','markerAttributes','isEmpty','getChild','tablePasteRow'];(function(_0x5b6be1,_0x4a51ba){const _0x5ec3d4=function(_0x535b86){while(--_0x535b86){_0x5b6be1['push'](_0x5b6be1['shift']());}};_0x5ec3d4(++_0x4a51ba);}(_0x4a51,0x1e4));const _0x5ec3=function(_0x5b6be1,_0x4a51ba){_0x5b6be1=_0x5b6be1-0x0;let _0x5ec3d4=_0x4a51[_0x5b6be1];return _0x5ec3d4;};import{getTranslation as _0x27b50a}from'../utils/common-translations';import{Plugin as _0x289017}from'ckeditor5/src/core';import{uid as _0x5abd9a,priorities as _0x371b0d}from'ckeditor5/src/utils';import _0x370dac from'./table';const le=[_0x5ec3('0x4c'),_0x5ec3('0x31'),_0x5ec3('0x9'),_0x5ec3('0x49'),_0x5ec3('0x15'),_0x5ec3('0x68'),'tableCellPadding'],ae=Object[_0x5ec3('0x77')](le['map'](_0x1680fd=>[_0x1680fd,null]));export default class kt extends _0x289017{static get[_0x5ec3('0x22')](){return[_0x370dac];}[_0x5ec3('0x5a')](){const _0x598d5c=this[_0x5ec3('0x58')];if(!_0x598d5c['plugins'][_0x5ec3('0x8a')](_0x5ec3('0x8e')))return;const _0x276e1d=_0x598d5c[_0x5ec3('0x6d')]['get'](_0x5ec3('0x2c')),_0x534df4=_0x598d5c[_0x5ec3('0x6d')][_0x5ec3('0x7e')](_0x5ec3('0x44')),_0x43204b=_0x598d5c['plugins']['get'](_0x370dac),_0x4509e5=_0x598d5c[_0x5ec3('0x6d')]['get'](_0x5ec3('0x8e'));_0x43204b['_tablePostFixingSubtypes']['push'](_0x5ec3('0x1'),_0x5ec3('0x35')),_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x87')][_0x5ec3('0xc')](_0x5ec3('0x9b'),{'allowIn':'tableCell','allowContentOf':_0x5ec3('0x52'),'isLimit':!0x0}),_0x598d5c[_0x5ec3('0x4d')][_0x5ec3('0x8c')]({'model':_0x5ec3('0x9b'),'view':_0x5ec3('0x19')});let _0x24331c=null;_0x598d5c[_0x5ec3('0x74')]['on'](_0x5ec3('0x26'),(_0x1d3d8f,_0x515892)=>{const [_0x3e2591,_0x47663b]=_0x515892,_0x37dd09=_0x515892[_0x515892[_0x5ec3('0x8d')]-0x1];_0x37dd09&&_0x37dd09['forceDefaultExecution']||_0x276e1d['_isForcedDefaultExecutionBlock']||this['editor'][_0x5ec3('0x43')][_0x5ec3('0x7e')](_0x5ec3('0x2a'))[_0x5ec3('0x90')]&&function(_0x1bcede,_0xf98726,_0x6460fd,_0xb7b66d,_0x1027d8){if(_0xf98726&&!_0xf98726['is'](_0x5ec3('0x7')))return!0x1;const _0x2f894a=_0x1027d8[_0x5ec3('0x7b')](_0x1bcede,_0x6460fd);if(!_0x2f894a||!fe(_0x2f894a,void 0x0,_0xb7b66d))return!0x1;const _0x137ea7=_0xb7b66d[_0x5ec3('0x1b')](_0x6460fd['document'][_0x5ec3('0x40')]);if(!_0x137ea7['length'])return!0x1;const _0x2143f4=_0x137ea7[0x0]['findAncestor'](_0x5ec3('0x46')),_0x2ec750=_0xb7b66d[_0x5ec3('0x65')](_0x137ea7),_0xf72d75=_0xb7b66d['getColumnIndexes'](_0x137ea7),_0x198dc2={'startRow':_0x2ec750[_0x5ec3('0x8')],'endRow':_0x2ec750[_0x5ec3('0x56')],'startColumn':_0xf72d75[_0x5ec3('0x8')],'endColumn':_0xf72d75[_0x5ec3('0x56')]};return 0x1==_0x137ea7[_0x5ec3('0x8d')]&&(_0x198dc2[_0x5ec3('0x7a')]+=_0xb7b66d[_0x5ec3('0x6f')](_0x2f894a)-0x1,_0x198dc2[_0x5ec3('0x21')]+=_0xb7b66d[_0x5ec3('0x6e')](_0x2f894a)-0x1),fe(_0x2143f4,_0x198dc2,_0xb7b66d);}(_0x3e2591,_0x47663b,_0x598d5c[_0x5ec3('0x74')],_0x534df4,_0x4509e5)&&(_0x1d3d8f[_0x5ec3('0x39')](),_0x24331c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x13')](()=>{_0x598d5c[_0x5ec3('0x74')]['insertContent'](_0x515892[0x0],_0x515892[0x1],_0x515892[0x2],{'forceDefaultExecution':!0x0});const _0x5a0122=_0x5abd9a(),{rowInsertionRanges:_0x45cea2,columnInsertionRanges:_0x84086,insertionRanges:_0x547965,deletionRanges:_0x370761,cells:_0x5db0df}=_0x24331c;_0x45cea2[_0x5ec3('0x8d')]&&_0x276e1d[_0x5ec3('0x48')](_0x45cea2,'tablePasteRow',{'tablePasteChainId':_0x5a0122}),_0x84086[_0x5ec3('0x8d')]&&_0x276e1d[_0x5ec3('0x48')](_0x84086,'tablePasteColumn',{'tablePasteChainId':_0x5a0122}),_0x547965['length']&&_0x276e1d[_0x5ec3('0x48')](_0x547965,'tablePaste',{'tablePasteChainId':_0x5a0122,'skipNestingCheck':!0x0}),_0x370761['length']&&_0x276e1d[_0x5ec3('0x1f')](_0x370761,_0x5ec3('0x5f'),{'tablePasteChainId':_0x5a0122,'skipNestingCheck':!0x0});const _0x24b019=_0x276e1d['markMultiRangeBlockFormat'](_0x5db0df[_0x5ec3('0x71')](({element:_0xef481})=>_0xef481),{'formatGroupId':_0x5abd9a()},[],_0x5ec3('0x6b'),{'tablePasteChainId':_0x5a0122});if(_0x24b019){const _0x5e0404=_0x24b019[_0x5ec3('0x3a')](),_0x3eb0b4=[];for(const {element:_0x15be97,attributes:_0x1abfac}of _0x5db0df){if(!_0x1abfac)continue;const _0xcfc1df=_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x24')](_0x15be97),_0x3cf133=_0x5e0404[_0x5ec3('0x69')](_0x144bf6=>_0x144bf6[_0x5ec3('0x29')]()[_0x5ec3('0x3d')](_0xcfc1df));_0x3cf133&&_0x3eb0b4[_0x5ec3('0x6c')]([_0x3cf133[_0x5ec3('0xa')],_0x1abfac]);}_0x3eb0b4['length']&&_0x24b019[_0x5ec3('0x2d')](_0x5ec3('0xa0'),Object['fromEntries'](_0x3eb0b4));}_0x24331c=null;}));},{'priority':_0x371b0d[_0x5ec3('0x85')]+0xa}),_0x598d5c['plugins'][_0x5ec3('0x7e')](_0x5ec3('0x8e'))['on'](_0x5ec3('0x60'),(_0x281502,_0x3a81ce)=>{const [_0xc96f2c,_0x2121f2,,_0x17d0e0]=_0x3a81ce;if(!_0x24331c)return;_0x281502[_0x5ec3('0x39')]();const _0x57368e=_0xc96f2c[_0x5ec3('0x50')],_0x253790=_0x2121f2,_0x46e099=ce(_0x57368e),_0x18b092=ce(_0x253790);_0x281502['return']=_0x57368e;let _0x48066c=null,_0x395045=null;if(_0x18b092||_0x46e099){if(_0x46e099&&!_0x18b092){_0x17d0e0[_0x5ec3('0x79')](_0x57368e[_0x5ec3('0x0')](0x0));for(const _0x4ad435 of Array[_0x5ec3('0x3c')](_0x253790['getChildren']()))_0x17d0e0[_0x5ec3('0x84')](_0x4ad435,_0x57368e,_0x5ec3('0x55'));const _0x395f84=_0x24331c[_0x5ec3('0x1c')][_0x5ec3('0x57')](_0xc96f2c[_0x5ec3('0x86')]),_0x5b4742=_0x24331c['columnInsertionIndexes'][_0x5ec3('0x57')](_0xc96f2c[_0x5ec3('0x5c')]);_0x395f84||_0x5b4742||(_0x48066c=_0x17d0e0['createRangeIn'](_0x57368e));}else _0x18b092&&!_0x46e099&&(_0x395045=_0x17d0e0[_0x5ec3('0x3f')](_0x57368e));}else{const _0x1fc01f=_0x17d0e0['createElement'](_0x5ec3('0x9b')),_0x31f068=_0x17d0e0['createElement']('tableCellSuggestion');_0x17d0e0['wrap'](_0x17d0e0[_0x5ec3('0x3f')](_0x57368e),_0x31f068),_0x17d0e0[_0x5ec3('0x84')](_0x1fc01f,_0x57368e,0x0);for(const _0x16c850 of Array['from'](_0x253790['getChildren']()))_0x17d0e0[_0x5ec3('0x84')](_0x16c850,_0x1fc01f,'end');_0x48066c=_0x17d0e0[_0x5ec3('0x24')](_0x1fc01f),_0x395045=_0x17d0e0[_0x5ec3('0x24')](_0x31f068);}const _0x28bc2b=Array[_0x5ec3('0x3c')](_0x253790[_0x5ec3('0xf')]())[_0x5ec3('0x4f')](([_0x1ae290])=>le['includes'](_0x1ae290));_0x24331c['cells']['push']({'element':_0x57368e,'attributes':_0x28bc2b[_0x5ec3('0x8d')]?Object[_0x5ec3('0x77')](_0x28bc2b):null}),_0x48066c&&_0x24331c[_0x5ec3('0x47')][_0x5ec3('0x6c')](_0x48066c),_0x395045&&_0x24331c[_0x5ec3('0x88')][_0x5ec3('0x6c')](_0x395045);},{'priority':_0x5ec3('0x85')}),_0x534df4['on']('insertColumns',(_0x3407fa,_0x4750e4)=>{const [_0x2b4921,_0x3e6119={}]=_0x4750e4;if(!_0x24331c)return;const _0x37d37f=_0x3e6119['at']||0x0,_0x4a47ae=_0x3e6119['columns']||0x1;_0x24331c['columnInsertionIndexes']=new Array(_0x4a47ae)['fill'](_0x37d37f)['map']((_0x55b04e,_0x5e2102)=>_0x55b04e+_0x5e2102);for(const {cell:_0x5bb78d}of _0x534df4[_0x5ec3('0x30')](_0x2b4921,{'startColumn':_0x37d37f,'endColumn':_0x37d37f+_0x4a47ae-0x1}))_0x24331c[_0x5ec3('0x5')]['push'](_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x24')](_0x5bb78d));},{'priority':'low'}),_0x534df4['on']('insertRows',(_0x4273d7,_0x2d4c5e)=>{const [_0x23f3fe,_0x4d12d1={}]=_0x2d4c5e;if(!_0x24331c)return;const _0x1c0dc9=_0x4d12d1['at']||0x0,_0x58930d=_0x4d12d1['rows']||0x1;_0x24331c[_0x5ec3('0x1c')]=new Array(_0x58930d)[_0x5ec3('0x28')](_0x1c0dc9)['map']((_0x25e716,_0x3ea2ad)=>_0x25e716+_0x3ea2ad);for(const {cell:_0xbd0a5a}of _0x534df4['createTableWalker'](_0x23f3fe,{'startRow':_0x1c0dc9,'endRow':_0x1c0dc9+_0x58930d-0x1}))_0x24331c[_0x5ec3('0x8f')][_0x5ec3('0x6c')](_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x24')](_0xbd0a5a));},{'priority':_0x5ec3('0x3b')}),_0x276e1d[_0x5ec3('0x92')][_0x5ec3('0x9e')](_0x6dd82e=>{if(_0x6dd82e['subType']&&_0x6dd82e[_0x5ec3('0x9c')][_0x5ec3('0x75')](_0x5ec3('0x5f')))return _0x6dd82e[_0x5ec3('0x4b')]?{}:{'type':_0x5ec3('0x64'),'content':_0x27b50a(_0x598d5c[_0x5ec3('0x63')],'*Replace\x20table\x20cells*')};});const _0x44b330=()=>!0x1;for(const _0x47ce6e of[_0x5ec3('0x5f'),_0x5ec3('0x35'),'tablePasteRow',_0x5ec3('0x6b')])_0x276e1d[_0x5ec3('0x62')]['registerCustomCallback'](_0x5ec3('0x64'),_0x47ce6e,_0x5ec3('0x6'),_0x44b330),_0x276e1d[_0x5ec3('0x62')][_0x5ec3('0x99')](_0x5ec3('0x9d'),_0x47ce6e,'join',_0x44b330),_0x276e1d[_0x5ec3('0x62')]['registerCustomCallback'](_0x5ec3('0x80'),_0x47ce6e,'join',_0x44b330);_0x276e1d[_0x5ec3('0x62')][_0x5ec3('0x99')](_0x5ec3('0x80'),_0x5ec3('0x6b'),_0x5ec3('0x59'),_0x44b330),_0x276e1d[_0x5ec3('0x62')]['registerCustomCallback'](_0x5ec3('0x80'),'tablePasteCell','accept',(_0xc0ddb2,_0x170dbc,_0x2852cc)=>{const _0x206d1d=_0xc0ddb2['map'](_0x1e4a57=>_0x1e4a57[_0x5ec3('0x33')]())[_0x5ec3('0x4f')](_0x4d152b=>_0x4d152b),_0x3295cc=new Map(_0x206d1d[_0x5ec3('0x71')](_0x4c183a=>[_0x4c183a,null]));if(_0x24331c)for(const {element:_0x175fa7,attributes:_0x2c65af}of _0x24331c[_0x5ec3('0x81')])_0x2c65af&&_0x3295cc[_0x5ec3('0x17')](_0x175fa7,_0x2c65af);else{if(_0x2852cc&&_0x2852cc[_0x5ec3('0xa0')])for(const [_0x154202,_0x1a3dc9]of Object[_0x5ec3('0x53')](_0x2852cc[_0x5ec3('0xa0')])){const _0x815d5b=_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x61')][_0x5ec3('0x7e')](_0x154202),_0x4f8ada=_0x815d5b?_0x815d5b[_0x5ec3('0x29')]()[_0x5ec3('0x33')]():null;_0x4f8ada&&_0x3295cc[_0x5ec3('0x17')](_0x4f8ada,_0x1a3dc9);}}_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x13')](_0x180978=>{for(const [_0x513181,_0x4a113c]of _0x3295cc)_0x180978[_0x5ec3('0x42')]({...ae,..._0x4a113c},_0x513181);});});const _0x55a6a7=(_0x9b29c6,_0x418bb5)=>{_0x276e1d['_suggestionFactory']['registerCustomCallback'](_0x9b29c6,_0x5ec3('0x5f'),_0x418bb5,(_0x371036,_0x5bb435,_0x5e8e12)=>{_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x13')](_0x35a5cc=>{const _0x119e7a=[];for(const _0x490cba of _0x371036){const _0x5e0982=_0x490cba[_0x5ec3('0x2')]['nodeAfter'];_0x5e0982['is'](_0x5ec3('0x12'),'tableCellSuggestion')&&_0x119e7a[_0x5ec3('0x6c')](_0x5e0982);}_0x276e1d['_suggestionFactory'][_0x5ec3('0x18')](_0x9b29c6,null,_0x418bb5)(_0x371036,_0x5bb435,_0x5e8e12);for(const _0x152b51 of _0x119e7a)_0x5ec3('0x78')!=_0x152b51[_0x5ec3('0x98')]['rootName']&&_0x35a5cc[_0x5ec3('0x94')](_0x152b51);});});};_0x55a6a7(_0x5ec3('0x64'),_0x5ec3('0x25')),_0x55a6a7(_0x5ec3('0x64'),_0x5ec3('0x59')),_0x55a6a7(_0x5ec3('0x9d'),_0x5ec3('0x25')),_0x55a6a7(_0x5ec3('0x9d'),_0x5ec3('0x59')),_0x276e1d[_0x5ec3('0x62')][_0x5ec3('0x99')](_0x5ec3('0x64'),_0x5ec3('0x1'),_0x5ec3('0x59'),_0x370294=>{const _0x2c384d=_0x370294[_0x5ec3('0x71')](_0x39e18f=>_0x39e18f[_0x5ec3('0x33')]()),_0x2ee94a=_0x2c384d[0x0][_0x5ec3('0x1e')](_0x5ec3('0x46')),{minRow:_0x1ec2d9,maxRow:_0x482118}=_0x43204b['_getCoordsForCells'](_0x2c384d);_0x534df4['removeRows'](_0x2ee94a,{'at':_0x1ec2d9,'rows':_0x482118-_0x1ec2d9+0x1});}),_0x276e1d['_suggestionFactory']['registerCustomCallback'](_0x5ec3('0x64'),'tablePasteColumn','discard',_0x24d374=>{const _0x522313=_0x24d374[_0x5ec3('0x71')](_0x43b934=>_0x43b934['getContainedElement']()),_0x48f8cd=_0x522313[0x0][_0x5ec3('0x1e')](_0x5ec3('0x46')),{minColumn:_0x4d1d0f,maxColumn:_0x19faa3}=_0x43204b[_0x5ec3('0x72')](_0x522313);_0x534df4['removeColumns'](_0x48f8cd,{'at':_0x4d1d0f,'columns':_0x19faa3-_0x4d1d0f+0x1});});const _0x294ecd=(_0x4192bb,_0x4318f0)=>{if(!_0x4318f0[_0x5ec3('0x9c')]||!_0x4318f0['subType'][_0x5ec3('0x75')]('tablePaste'))return;const _0x2ed35=_0x4318f0[_0x5ec3('0x8b')]['tablePasteChainId'],_0x11485e=_0x276e1d[_0x5ec3('0x32')]()[_0x5ec3('0x4f')](_0x1bbc57=>_0x1bbc57['isInContent']&&_0x1bbc57[_0x5ec3('0x8b')]&&_0x1bbc57['attributes'][_0x5ec3('0x51')]==_0x2ed35);_0x11485e[_0x5ec3('0x8d')]&&_0x4318f0[_0x5ec3('0x2e')]()[_0x5ec3('0x8d')]!=_0x11485e[_0x5ec3('0x8d')]&&_0x11485e['reduce']((_0x51253b,_0x79c4a9)=>(_0x51253b[_0x5ec3('0x73')]=_0x79c4a9,_0x79c4a9['previous']=_0x51253b,_0x79c4a9));};function _0x902e43(_0x42b9e9,_0x1fb97c=!0x0){const {id:_0x26860f}=_0x276e1d[_0x5ec3('0xd')](_0x42b9e9[_0x5ec3('0x96')]),_0x139d15=[_0x5ec3('0x3'),'ck-suggestion-marker-insertion'],_0x5eda34=_0x276e1d[_0x5ec3('0x5b')][_0x5ec3('0x57')](_0x42b9e9[_0x5ec3('0x96')]);return _0x5eda34&&_0x139d15['push'](_0x5ec3('0x16')),{'classes':_0x139d15,'attributes':{'data-suggestion':_0x26860f},'priority':_0x5eda34&&_0x1fb97c?0xbc2:0xbb8};}_0x276e1d['on']('suggestionLoaded',_0x294ecd,{'priority':_0x5ec3('0x85')}),_0x276e1d['on'](_0x5ec3('0x7d'),_0x294ecd,{'priority':_0x5ec3('0x85')}),_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x91')][_0x5ec3('0x14')](()=>{let _0x537fac=!0x1;const _0xfa39=Array[_0x5ec3('0x3c')](_0x598d5c['model'][_0x5ec3('0x91')][_0x5ec3('0x1a')][_0x5ec3('0x23')]());for(const {name:_0x317a6e,data:_0x50011c}of _0xfa39){const {group:_0x8f246d,type:_0xf7060f,id:_0x5797f3}=_0x276e1d[_0x5ec3('0xd')](_0x317a6e);if(_0x5ec3('0x20')!=_0x8f246d||'deletion'!=_0xf7060f||_0x50011c['oldRange'])continue;if(!_0x276e1d[_0x5ec3('0x2f')](_0x5797f3))continue;const _0x465a21=_0x276e1d[_0x5ec3('0x34')](_0x5797f3)['getRanges'](),_0x422fd5=_0x598d5c[_0x5ec3('0x6d')][_0x5ec3('0x7e')](_0x5ec3('0xb'))['me'];for(const _0x4f1738 of _0x276e1d['getSuggestions']()){if(!_0x4f1738[_0x5ec3('0x9f')]||_0x4f1738[_0x5ec3('0x7c')]!=_0x422fd5)continue;if('formatBlock'!=_0x4f1738['type']||_0x5ec3('0x6b')!=_0x4f1738['subType'])continue;if(_0x4f1738[_0x5ec3('0x93')]()[_0x5ec3('0x5e')](_0x290321=>_0x465a21[_0x5ec3('0x82')](_0x1cddea=>_0x1cddea['containsRange'](_0x290321,!0x0))))for(const _0x4ab8d4 of _0x4f1738[_0x5ec3('0x2e')]())_0x4ab8d4[_0x5ec3('0x9f')]&&(_0x4ab8d4[_0x5ec3('0x59')](),_0x537fac=!0x0);}}return _0x537fac;}),_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x91')][_0x5ec3('0x14')](_0x3b3c58=>{const _0xc20c59=_0x598d5c[_0x5ec3('0x43')][_0x5ec3('0x7e')](_0x5ec3('0x36'));if(!_0xc20c59||!_0xc20c59['_createdBatches'][_0x5ec3('0x8a')](_0x3b3c58[_0x5ec3('0x95')]))return!0x1;let _0x516a8e=!0x1;const _0x1f1632=_0x598d5c[_0x5ec3('0x6d')][_0x5ec3('0x7e')](_0x5ec3('0xb'))['me'],_0x3e66b3=_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x91')][_0x5ec3('0x1a')][_0x5ec3('0x41')](),_0x45eff2=Array[_0x5ec3('0x3c')](_0x598d5c[_0x5ec3('0x74')]['document'][_0x5ec3('0x1a')][_0x5ec3('0x23')]())['filter'](({name:_0x616083,data:_0x295a04})=>{const {group:_0x5afc98,subType:_0x5459d0,authorId:_0x5b307f}=_0x276e1d[_0x5ec3('0xd')](_0x616083);return'suggestion'==_0x5afc98&&_0x5ec3('0x5f')==_0x5459d0&&_0x5b307f==_0x1f1632['id']&&!_0x295a04[_0x5ec3('0x5d')];});for(const _0x202a42 of _0x3e66b3){if(_0x5ec3('0x84')!=_0x202a42[_0x5ec3('0x83')]||_0x5ec3('0x9b')!=_0x202a42['name']||0x1!=_0x202a42[_0x5ec3('0x8d')])continue;const _0x2e55d0=_0x3b3c58[_0x5ec3('0x1d')](_0x202a42[_0x5ec3('0x9a')],_0x202a42['position'][_0x5ec3('0xe')](0x1));if(!_0x45eff2[_0x5ec3('0x69')](({data:_0x2d05f0})=>_0x2d05f0[_0x5ec3('0x7f')][_0x5ec3('0x3d')](_0x2e55d0)))for(const {name:_0xc3a048,data:_0x8ee886}of _0x45eff2)if(_0x2e55d0['containsRange'](_0x8ee886['newRange'])){_0x3b3c58[_0x5ec3('0x76')](_0xc3a048,{'range':_0x2e55d0}),_0x516a8e=!0x0;break;}}return _0x516a8e;}),_0x598d5c['model']['document'][_0x5ec3('0x14')](_0x464d53=>{let _0x1e8e1=!0x1;const _0x431ee8=_0x598d5c[_0x5ec3('0x6d')][_0x5ec3('0x7e')](_0x5ec3('0xb'))['me'],_0x8212a2=_0x276e1d['getSuggestions']()[_0x5ec3('0x4f')](_0x398dd4=>_0x398dd4['isInContent']&&_0x398dd4[_0x5ec3('0x7c')]==_0x431ee8),_0x53ef29=new Set(),_0x1557b0=new Set();for(const _0x5972fb of _0x8212a2)if('tablePaste'==_0x5972fb[_0x5ec3('0x9c')])for(const _0x5ef9ef of _0x5972fb[_0x5ec3('0x3a')]()){const _0x31c0f3=_0x5ef9ef[_0x5ec3('0x29')]()[_0x5ec3('0x33')]();if(_0x31c0f3){if(_0x31c0f3['is']('element','tableCellSuggestion')&&ce(_0x31c0f3)){_0x5972fb['removeMarker'](_0x5ef9ef[_0x5ec3('0xa')]),_0x53ef29[_0x5ec3('0x4e')](_0x31c0f3),_0x1e8e1=!0x0;const _0x4e4cb9=_0x31c0f3[_0x5ec3('0x45')],_0x3aeb81=_0x31c0f3[_0x5ec3('0x66')],_0x2a80da=_0x4e4cb9&&_0x4e4cb9['is'](_0x5ec3('0x12'),_0x5ec3('0x9b')),_0x1b2a76=_0x3aeb81&&_0x3aeb81['is']('element',_0x5ec3('0x9b'));_0x2a80da&&!_0x53ef29[_0x5ec3('0x8a')](_0x4e4cb9)&&_0x1557b0[_0x5ec3('0x4e')](_0x4e4cb9),_0x1b2a76&&!_0x53ef29[_0x5ec3('0x8a')](_0x3aeb81)&&_0x1557b0[_0x5ec3('0x4e')](_0x3aeb81);}else _0x31c0f3['is']('element',_0x5ec3('0x4'))&&_0x31c0f3[_0x5ec3('0xa1')]&&(_0x5972fb[_0x5ec3('0x10')](_0x5ef9ef[_0x5ec3('0xa')]),_0x1e8e1=!0x0);}}else{if(_0x5ec3('0x6b')==_0x5972fb[_0x5ec3('0x9c')]){if(!_0x5972fb[_0x5ec3('0x8b')]||!_0x5972fb[_0x5ec3('0x8b')][_0x5ec3('0x51')])continue;const _0x1cef79=_0x5972fb[_0x5ec3('0x8b')]['markerAttributes'];if(_0x1cef79&&Object['keys'](_0x1cef79)['length'])continue;const _0x262dd6=_0x5972fb[_0x5ec3('0x8b')][_0x5ec3('0x51')];let _0x49bdbc=!0x0,_0x12c865=!0x0;for(const _0x3b7b2d of _0x8212a2)if(_0x3b7b2d[_0x5ec3('0x9c')]&&_0x3b7b2d[_0x5ec3('0x9c')][_0x5ec3('0x75')](_0x5ec3('0x5f'))){if(!_0x3b7b2d[_0x5ec3('0x8b')][_0x5ec3('0x51')]){_0x12c865=!0x1;break;}if(_0x3b7b2d['id']!=_0x5972fb['id']&&_0x3b7b2d[_0x5ec3('0x8b')][_0x5ec3('0x51')]==_0x262dd6){_0x49bdbc=!0x1;break;}}_0x12c865&&_0x49bdbc&&(_0x5972fb[_0x5ec3('0x89')](),_0x1e8e1=!0x0);}}for(const _0x10e726 of _0x53ef29)_0x464d53[_0x5ec3('0x79')](_0x10e726);for(const _0x70e106 of _0x1557b0)_0x464d53[_0x5ec3('0x94')](_0x70e106);return _0x1e8e1;}),_0x598d5c[_0x5ec3('0x4d')][_0x5ec3('0x2b')]('editingDowncast')[_0x5ec3('0x6a')]({'model':_0x5ec3('0x37'),'view':(_0x97d35e,_0x2c358c)=>_0x902e43(_0x97d35e),'converterPriority':_0x5ec3('0x85')}),_0x598d5c[_0x5ec3('0x4d')][_0x5ec3('0x2b')](_0x5ec3('0x11'))['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xf095a9,_0x187dfa)=>_0x187dfa['options'][_0x5ec3('0x70')]?_0x902e43(_0xf095a9,!0x1):null,'converterPriority':_0x5ec3('0x85')});const _0x3d9cbb=_0x598d5c[_0x5ec3('0x4a')][_0x5ec3('0x38')];this[_0x5ec3('0x97')](_0x3d9cbb[_0x5ec3('0x91')],_0x5ec3('0x54'),(_0x32c06e,_0x3d81b5)=>{const _0x323532=[];for(const _0x2610b1 of _0x3d9cbb['createRangeIn'](_0x3d81b5['content'])[_0x5ec3('0x67')]())_0x2610b1['is'](_0x5ec3('0x12'),'suggestion-td')&&_0x323532[_0x5ec3('0x6c')](_0x2610b1);_0x3d9cbb[_0x5ec3('0x13')](_0xc1911a=>{for(const _0x4ec20b of _0x323532)_0xc1911a[_0x5ec3('0x27')](_0xc1911a[_0x5ec3('0x3f')](_0x4ec20b),_0xc1911a[_0x5ec3('0x3e')](_0x4ec20b)),_0xc1911a['remove'](_0x4ec20b);});});}}function ce(_0x3bfe2a){if(_0x3bfe2a[_0x5ec3('0xa1')])return!0x0;const _0x1bb44e=_0x3bfe2a[_0x5ec3('0x0')](0x0);return _0x1bb44e['is'](_0x5ec3('0x12'),_0x5ec3('0x4'))&&_0x1bb44e[_0x5ec3('0xa1')];}function fe(_0x510d5f,_0x20a658={},_0x2f9e3d){for(const {isAnchor:_0x3991c6,cellHeight:_0x10fee9,cellWidth:_0x23ff6e}of _0x2f9e3d[_0x5ec3('0x30')](_0x510d5f,{'includeAllSlots':!0x0,..._0x20a658}))if(!_0x3991c6||0x1!=_0x10fee9||0x1!=_0x23ff6e)return!0x1;return!0x0;}
|
|
23
|
+
const _0x1caf=['insertion','suggestion:formatBlock:tablePasteCell','has','getShiftedBy','low','batch','markMultiRangeInsertion','createRangeOn','getItems','model','locale','keys','formatBlock','createRange','entries','oldRange','name','createElement','createRangeIn','activeMarkers','isEqual','from','type','TableClipboard','element','tableCellSuggestion','getContainedElement','last','getRanges','_tablePostFixingSubtypes','first','deletion','clipboardOutput','move','ck-suggestion-marker','suggestionUnloaded','markerName','tablePasteCell','columnInsertionRanges','startsWith','tableCellPadding','ck-suggestion-marker--active','root','getSuggestion','containsRange','getSuggestionCallback','column','table','insertContent','subType','tablePasteRow','rowInsertionIndexes','plugins','_createdBatches','newRange','_replaceTableSlotCell','endRow','registerDescriptionCallback','hasSuggestion','getChild','suggestion-td','high','nextSibling','redo','*Replace\x20table\x20cells*','find','columns','commands','suggestion','filter','join','TableUtils','remove','includes','createPositionBefore','getRowIndexes','isEmpty','_suggestionFactory','removeMarkers','view','getTableIfOnlyTableInContent','previous','content','for','register','insertRows','getSuggestions','change','fromEntries','tablePaste','discard','get','tableCellBorderColor','createTableWalker','Users','some','tableCellBorderWidth','getSelectionAffectedTableCells','length','tableCell','removeRows','add','nodeAfter','rows','editor','_descriptionFactory','previousSibling','getChildren','rootName','showSuggestionHighlights','afterInit','tableCellVerticalAlignment','removeMarker','_splitMarkerName','documentSelection','tablePasteColumn','row','schema','markerToHighlight','getMarkers','_getCoordsForCells','set','position','fill','value','getAllAdjacentSuggestions','markMultiRangeDeletion','reduce','isInContent','push','listenTo','document','markerAttributes','columnInsertionIndexes','getAttributes','getChangedMarkers','return','_isForcedDefaultExecutionBlock','attributes','getRange','paragraph','map','unwrap','elementToElement','differ','dataDowncast','registerPostFixer','tablePasteChainId','TrackChangesEditing','cells','end','insert','setAttribute','conversion','accept','suggestionLoaded','tableCellHorizontalAlignment','registerCustomCallback','findAncestor'];(function(_0x44615f,_0x1caf27){const _0xefd4bd=function(_0x5e9fd5){while(--_0x5e9fd5){_0x44615f['push'](_0x44615f['shift']());}};_0xefd4bd(++_0x1caf27);}(_0x1caf,0x183));const _0xefd4=function(_0x44615f,_0x1caf27){_0x44615f=_0x44615f-0x0;let _0xefd4bd=_0x1caf[_0x44615f];return _0xefd4bd;};import{getTranslation as _0x3de7ea}from'../utils/common-translations';import{Plugin as _0x101f97}from'ckeditor5/src/core';import{uid as _0x44960e,priorities as _0x36516c}from'ckeditor5/src/utils';import _0x3fad85 from'./table';const le=[_0xefd4('0x1b'),_0xefd4('0x17'),'tableCellBorderStyle',_0xefd4('0x57'),_0xefd4('0x2a'),'tableCellBackgroundColor',_0xefd4('0x82')],ae=Object[_0xefd4('0x13')](le[_0xefd4('0x48')](_0x462334=>[_0x462334,null]));export default class kt extends _0x101f97{static get['requires'](){return[_0x3fad85];}[_0xefd4('0x29')](){const _0x1ae366=this[_0xefd4('0x23')];if(!_0x1ae366[_0xefd4('0x8e')][_0xefd4('0x5c')]('TableClipboard'))return;const _0x461ca2=_0x1ae366[_0xefd4('0x8e')][_0xefd4('0x16')](_0xefd4('0x4f')),_0x3a5409=_0x1ae366[_0xefd4('0x8e')][_0xefd4('0x16')](_0xefd4('0x2')),_0x2642bf=_0x1ae366[_0xefd4('0x8e')][_0xefd4('0x16')](_0x3fad85),_0x2dd7af=_0x1ae366[_0xefd4('0x8e')][_0xefd4('0x16')](_0xefd4('0x71'));_0x2642bf[_0xefd4('0x77')][_0xefd4('0x3c')](_0xefd4('0x8c'),'tablePasteColumn'),_0x1ae366[_0xefd4('0x63')][_0xefd4('0x30')][_0xefd4('0xf')](_0xefd4('0x73'),{'allowIn':_0xefd4('0x1e'),'allowContentOf':_0xefd4('0x1e'),'isLimit':!0x0}),_0x1ae366[_0xefd4('0x54')][_0xefd4('0x4a')]({'model':_0xefd4('0x73'),'view':_0xefd4('0x96')});let _0x54d36a=null;_0x1ae366[_0xefd4('0x63')]['on'](_0xefd4('0x8a'),(_0x2b7df5,_0x1ed974)=>{const [_0x4a1e7c,_0x6bb735]=_0x1ed974,_0x2354e4=_0x1ed974[_0x1ed974[_0xefd4('0x1d')]-0x1];_0x2354e4&&_0x2354e4['forceDefaultExecution']||_0x461ca2[_0xefd4('0x44')]||this[_0xefd4('0x23')]['commands'][_0xefd4('0x16')]('trackChanges')[_0xefd4('0x37')]&&function(_0x514ba2,_0x3279bd,_0x4e1f68,_0xc5f299,_0x3c2f48){if(_0x3279bd&&!_0x3279bd['is'](_0xefd4('0x2d')))return!0x1;const _0x19409b=_0x3c2f48[_0xefd4('0xb')](_0x514ba2,_0x4e1f68);if(!_0x19409b||!fe(_0x19409b,void 0x0,_0xc5f299))return!0x1;const _0x310c8b=_0xc5f299[_0xefd4('0x1c')](_0x4e1f68[_0xefd4('0x3e')]['selection']);if(!_0x310c8b[_0xefd4('0x1d')])return!0x1;const _0x43f86b=_0x310c8b[0x0]['findAncestor'](_0xefd4('0x89')),_0x3053d5=_0xc5f299[_0xefd4('0x6')](_0x310c8b),_0x5c110d=_0xc5f299['getColumnIndexes'](_0x310c8b),_0x1bfb1c={'startRow':_0x3053d5[_0xefd4('0x78')],'endRow':_0x3053d5[_0xefd4('0x75')],'startColumn':_0x5c110d[_0xefd4('0x78')],'endColumn':_0x5c110d[_0xefd4('0x75')]};return 0x1==_0x310c8b['length']&&(_0x1bfb1c[_0xefd4('0x92')]+=_0xc5f299['getRows'](_0x19409b)-0x1,_0x1bfb1c['endColumn']+=_0xc5f299['getColumns'](_0x19409b)-0x1),fe(_0x43f86b,_0x1bfb1c,_0xc5f299);}(_0x4a1e7c,_0x6bb735,_0x1ae366[_0xefd4('0x63')],_0x3a5409,_0x2dd7af)&&(_0x2b7df5['stop'](),_0x54d36a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1ae366[_0xefd4('0x63')][_0xefd4('0x12')](()=>{_0x1ae366[_0xefd4('0x63')][_0xefd4('0x8a')](_0x1ed974[0x0],_0x1ed974[0x1],_0x1ed974[0x2],{'forceDefaultExecution':!0x0});const _0x2cb716=_0x44960e(),{rowInsertionRanges:_0x382110,columnInsertionRanges:_0x1430e9,insertionRanges:_0x96ef28,deletionRanges:_0x13f2a6,cells:_0x2f68ae}=_0x54d36a;_0x382110['length']&&_0x461ca2[_0xefd4('0x60')](_0x382110,_0xefd4('0x8c'),{'tablePasteChainId':_0x2cb716}),_0x1430e9['length']&&_0x461ca2[_0xefd4('0x60')](_0x1430e9,_0xefd4('0x2e'),{'tablePasteChainId':_0x2cb716}),_0x96ef28[_0xefd4('0x1d')]&&_0x461ca2[_0xefd4('0x60')](_0x96ef28,_0xefd4('0x14'),{'tablePasteChainId':_0x2cb716,'skipNestingCheck':!0x0}),_0x13f2a6[_0xefd4('0x1d')]&&_0x461ca2[_0xefd4('0x39')](_0x13f2a6,_0xefd4('0x14'),{'tablePasteChainId':_0x2cb716,'skipNestingCheck':!0x0});const _0x3ec141=_0x461ca2['markMultiRangeBlockFormat'](_0x2f68ae[_0xefd4('0x48')](({element:_0x425cb8})=>_0x425cb8),{'formatGroupId':_0x44960e()},[],_0xefd4('0x7f'),{'tablePasteChainId':_0x2cb716});if(_0x3ec141){const _0x57c521=_0x3ec141[_0xefd4('0x32')](),_0x5551d0=[];for(const {element:_0x3a25ab,attributes:_0x4c11ab}of _0x2f68ae){if(!_0x4c11ab)continue;const _0xb0c2f=_0x1ae366['model'][_0xefd4('0x61')](_0x3a25ab),_0x2ac4f6=_0x57c521['find'](_0x42e5ce=>_0x42e5ce[_0xefd4('0x46')]()[_0xefd4('0x6e')](_0xb0c2f));_0x2ac4f6&&_0x5551d0[_0xefd4('0x3c')]([_0x2ac4f6['name'],_0x4c11ab]);}_0x5551d0[_0xefd4('0x1d')]&&_0x3ec141[_0xefd4('0x53')]('markerAttributes',Object['fromEntries'](_0x5551d0));}_0x54d36a=null;}));},{'priority':_0x36516c['high']+0xa}),_0x1ae366[_0xefd4('0x8e')][_0xefd4('0x16')](_0xefd4('0x71'))['on'](_0xefd4('0x91'),(_0x36d84c,_0x1dd925)=>{const [_0x38bcff,_0x494732,,_0x2d198b]=_0x1dd925;if(!_0x54d36a)return;_0x36d84c['stop']();const _0x5ce8ce=_0x38bcff['cell'],_0x38f26e=_0x494732,_0x9a5012=ce(_0x5ce8ce),_0xab1aee=ce(_0x38f26e);_0x36d84c[_0xefd4('0x43')]=_0x5ce8ce;let _0x320009=null,_0x3632e3=null;if(_0xab1aee||_0x9a5012){if(_0x9a5012&&!_0xab1aee){_0x2d198b['remove'](_0x5ce8ce['getChild'](0x0));for(const _0x1d36c4 of Array[_0xefd4('0x6f')](_0x38f26e['getChildren']()))_0x2d198b[_0xefd4('0x52')](_0x1d36c4,_0x5ce8ce,_0xefd4('0x51'));const _0x2a5040=_0x54d36a[_0xefd4('0x8d')][_0xefd4('0x4')](_0x38bcff[_0xefd4('0x2f')]),_0x18e99d=_0x54d36a[_0xefd4('0x40')][_0xefd4('0x4')](_0x38bcff[_0xefd4('0x88')]);_0x2a5040||_0x18e99d||(_0x320009=_0x2d198b['createRangeIn'](_0x5ce8ce));}else _0xab1aee&&!_0x9a5012&&(_0x3632e3=_0x2d198b[_0xefd4('0x6c')](_0x5ce8ce));}else{const _0x8c3dec=_0x2d198b[_0xefd4('0x6b')]('tableCellSuggestion'),_0xeebf70=_0x2d198b[_0xefd4('0x6b')](_0xefd4('0x73'));_0x2d198b['wrap'](_0x2d198b['createRangeIn'](_0x5ce8ce),_0xeebf70),_0x2d198b[_0xefd4('0x52')](_0x8c3dec,_0x5ce8ce,0x0);for(const _0x54a671 of Array[_0xefd4('0x6f')](_0x38f26e[_0xefd4('0x26')]()))_0x2d198b['insert'](_0x54a671,_0x8c3dec,_0xefd4('0x51'));_0x320009=_0x2d198b[_0xefd4('0x61')](_0x8c3dec),_0x3632e3=_0x2d198b['createRangeOn'](_0xeebf70);}const _0x275a14=Array[_0xefd4('0x6f')](_0x38f26e[_0xefd4('0x41')]())[_0xefd4('0x0')](([_0x111705])=>le[_0xefd4('0x4')](_0x111705));_0x54d36a[_0xefd4('0x50')][_0xefd4('0x3c')]({'element':_0x5ce8ce,'attributes':_0x275a14[_0xefd4('0x1d')]?Object[_0xefd4('0x13')](_0x275a14):null}),_0x320009&&_0x54d36a['insertionRanges'][_0xefd4('0x3c')](_0x320009),_0x3632e3&&_0x54d36a['deletionRanges'][_0xefd4('0x3c')](_0x3632e3);},{'priority':_0xefd4('0x97')}),_0x3a5409['on']('insertColumns',(_0x28a4f9,_0x2fbb3b)=>{const [_0xdb4974,_0x15f855={}]=_0x2fbb3b;if(!_0x54d36a)return;const _0x5643f6=_0x15f855['at']||0x0,_0x545477=_0x15f855[_0xefd4('0x9c')]||0x1;_0x54d36a[_0xefd4('0x40')]=new Array(_0x545477)[_0xefd4('0x36')](_0x5643f6)[_0xefd4('0x48')]((_0x42f6e9,_0x5b6029)=>_0x42f6e9+_0x5b6029);for(const {cell:_0xd12bc}of _0x3a5409[_0xefd4('0x18')](_0xdb4974,{'startColumn':_0x5643f6,'endColumn':_0x5643f6+_0x545477-0x1}))_0x54d36a[_0xefd4('0x80')][_0xefd4('0x3c')](_0x1ae366[_0xefd4('0x63')][_0xefd4('0x61')](_0xd12bc));},{'priority':'low'}),_0x3a5409['on'](_0xefd4('0x10'),(_0x18d330,_0x39ae35)=>{const [_0x386549,_0x4809ab={}]=_0x39ae35;if(!_0x54d36a)return;const _0x25291f=_0x4809ab['at']||0x0,_0x35459c=_0x4809ab[_0xefd4('0x22')]||0x1;_0x54d36a[_0xefd4('0x8d')]=new Array(_0x35459c)[_0xefd4('0x36')](_0x25291f)[_0xefd4('0x48')]((_0x542bee,_0x1bae74)=>_0x542bee+_0x1bae74);for(const {cell:_0x1edc3e}of _0x3a5409[_0xefd4('0x18')](_0x386549,{'startRow':_0x25291f,'endRow':_0x25291f+_0x35459c-0x1}))_0x54d36a['rowInsertionRanges']['push'](_0x1ae366[_0xefd4('0x63')][_0xefd4('0x61')](_0x1edc3e));},{'priority':_0xefd4('0x5e')}),_0x461ca2[_0xefd4('0x24')][_0xefd4('0x93')](_0x10bb6e=>{if(_0x10bb6e[_0xefd4('0x8b')]&&_0x10bb6e['subType'][_0xefd4('0x81')](_0xefd4('0x14')))return _0x10bb6e[_0xefd4('0xc')]?{}:{'type':_0xefd4('0x5a'),'content':_0x3de7ea(_0x1ae366[_0xefd4('0x64')],_0xefd4('0x9a'))};});const _0x4ae7d9=()=>!0x1;for(const _0x93f70 of['tablePaste','tablePasteColumn',_0xefd4('0x8c'),_0xefd4('0x7f')])_0x461ca2[_0xefd4('0x8')]['registerCustomCallback'](_0xefd4('0x5a'),_0x93f70,_0xefd4('0x1'),_0x4ae7d9),_0x461ca2[_0xefd4('0x8')]['registerCustomCallback'](_0xefd4('0x79'),_0x93f70,_0xefd4('0x1'),_0x4ae7d9),_0x461ca2['_suggestionFactory'][_0xefd4('0x58')](_0xefd4('0x66'),_0x93f70,_0xefd4('0x1'),_0x4ae7d9);_0x461ca2[_0xefd4('0x8')][_0xefd4('0x58')](_0xefd4('0x66'),_0xefd4('0x7f'),'discard',_0x4ae7d9),_0x461ca2[_0xefd4('0x8')][_0xefd4('0x58')](_0xefd4('0x66'),_0xefd4('0x7f'),_0xefd4('0x55'),(_0x24d344,_0x263f66,_0x49cee7)=>{const _0x178270=_0x24d344[_0xefd4('0x48')](_0x5074ab=>_0x5074ab[_0xefd4('0x74')]())['filter'](_0x1e8761=>_0x1e8761),_0x1ecc0c=new Map(_0x178270[_0xefd4('0x48')](_0x4ab45e=>[_0x4ab45e,null]));if(_0x54d36a)for(const {element:_0x5a4957,attributes:_0xea4b55}of _0x54d36a[_0xefd4('0x50')])_0xea4b55&&_0x1ecc0c[_0xefd4('0x34')](_0x5a4957,_0xea4b55);else{if(_0x49cee7&&_0x49cee7['markerAttributes'])for(const [_0x39100a,_0x3e721c]of Object[_0xefd4('0x68')](_0x49cee7[_0xefd4('0x3f')])){const _0x2dfa84=_0x1ae366['model']['markers'][_0xefd4('0x16')](_0x39100a),_0x259a17=_0x2dfa84?_0x2dfa84['getRange']()[_0xefd4('0x74')]():null;_0x259a17&&_0x1ecc0c['set'](_0x259a17,_0x3e721c);}}_0x1ae366[_0xefd4('0x63')]['change'](_0x191caa=>{for(const [_0x4dd5ae,_0x12c738]of _0x1ecc0c)_0x191caa['setAttributes']({...ae,..._0x12c738},_0x4dd5ae);});});const _0x90fff0=(_0x5a1d2c,_0x1da9d9)=>{_0x461ca2[_0xefd4('0x8')][_0xefd4('0x58')](_0x5a1d2c,_0xefd4('0x14'),_0x1da9d9,(_0x50c732,_0x435930,_0x28cee6)=>{_0x1ae366[_0xefd4('0x63')][_0xefd4('0x12')](_0x58737e=>{const _0x387115=[];for(const _0xd8fd21 of _0x50c732){const _0x208508=_0xd8fd21['start'][_0xefd4('0x21')];_0x208508['is'](_0xefd4('0x72'),_0xefd4('0x73'))&&_0x387115[_0xefd4('0x3c')](_0x208508);}_0x461ca2[_0xefd4('0x8')][_0xefd4('0x87')](_0x5a1d2c,null,_0x1da9d9)(_0x50c732,_0x435930,_0x28cee6);for(const _0x158a47 of _0x387115)'$graveyard'!=_0x158a47[_0xefd4('0x84')][_0xefd4('0x27')]&&_0x58737e[_0xefd4('0x49')](_0x158a47);});});};_0x90fff0(_0xefd4('0x5a'),'accept'),_0x90fff0(_0xefd4('0x5a'),_0xefd4('0x15')),_0x90fff0(_0xefd4('0x79'),'accept'),_0x90fff0(_0xefd4('0x79'),'discard'),_0x461ca2[_0xefd4('0x8')][_0xefd4('0x58')](_0xefd4('0x5a'),_0xefd4('0x8c'),_0xefd4('0x15'),_0x28d5bc=>{const _0x46a33a=_0x28d5bc[_0xefd4('0x48')](_0x31112a=>_0x31112a[_0xefd4('0x74')]()),_0x1ee774=_0x46a33a[0x0][_0xefd4('0x59')](_0xefd4('0x89')),{minRow:_0x1b0887,maxRow:_0x323f4b}=_0x2642bf['_getCoordsForCells'](_0x46a33a);_0x3a5409[_0xefd4('0x1f')](_0x1ee774,{'at':_0x1b0887,'rows':_0x323f4b-_0x1b0887+0x1});}),_0x461ca2[_0xefd4('0x8')][_0xefd4('0x58')]('insertion',_0xefd4('0x2e'),_0xefd4('0x15'),_0x46b23a=>{const _0x49da23=_0x46b23a[_0xefd4('0x48')](_0xf3e9a4=>_0xf3e9a4['getContainedElement']()),_0x141c46=_0x49da23[0x0][_0xefd4('0x59')]('table'),{minColumn:_0x510517,maxColumn:_0x497a8b}=_0x2642bf[_0xefd4('0x33')](_0x49da23);_0x3a5409['removeColumns'](_0x141c46,{'at':_0x510517,'columns':_0x497a8b-_0x510517+0x1});});const _0x577e4a=(_0x307450,_0x4b789d)=>{if(!_0x4b789d[_0xefd4('0x8b')]||!_0x4b789d[_0xefd4('0x8b')]['startsWith'](_0xefd4('0x14')))return;const _0x207a88=_0x4b789d[_0xefd4('0x45')][_0xefd4('0x4e')],_0x33feab=_0x461ca2[_0xefd4('0x11')]()['filter'](_0x4f9789=>_0x4f9789[_0xefd4('0x3b')]&&_0x4f9789['attributes']&&_0x4f9789[_0xefd4('0x45')]['tablePasteChainId']==_0x207a88);_0x33feab['length']&&_0x4b789d[_0xefd4('0x38')]()[_0xefd4('0x1d')]!=_0x33feab[_0xefd4('0x1d')]&&_0x33feab[_0xefd4('0x3a')]((_0x3f62e7,_0x59c229)=>(_0x3f62e7['next']=_0x59c229,_0x59c229[_0xefd4('0xc')]=_0x3f62e7,_0x59c229));};function _0x25fa51(_0x4628d7,_0x116714=!0x0){const {id:_0x3906ed}=_0x461ca2[_0xefd4('0x2c')](_0x4628d7[_0xefd4('0x7e')]),_0xea1bc9=[_0xefd4('0x7c'),'ck-suggestion-marker-insertion'],_0x1c1daf=_0x461ca2[_0xefd4('0x6d')]['includes'](_0x4628d7['markerName']);return _0x1c1daf&&_0xea1bc9[_0xefd4('0x3c')](_0xefd4('0x83')),{'classes':_0xea1bc9,'attributes':{'data-suggestion':_0x3906ed},'priority':_0x1c1daf&&_0x116714?0xbc2:0xbb8};}_0x461ca2['on'](_0xefd4('0x56'),_0x577e4a,{'priority':_0xefd4('0x97')}),_0x461ca2['on'](_0xefd4('0x7d'),_0x577e4a,{'priority':_0xefd4('0x97')}),_0x1ae366[_0xefd4('0x63')]['document'][_0xefd4('0x4d')](()=>{let _0x4c44b3=!0x1;const _0x148b83=Array[_0xefd4('0x6f')](_0x1ae366[_0xefd4('0x63')]['document'][_0xefd4('0x4b')][_0xefd4('0x42')]());for(const {name:_0x13428a,data:_0x2c3c6c}of _0x148b83){const {group:_0x3fd730,type:_0x3d55af,id:_0x5f4834}=_0x461ca2[_0xefd4('0x2c')](_0x13428a);if(_0xefd4('0x9e')!=_0x3fd730||_0xefd4('0x79')!=_0x3d55af||_0x2c3c6c[_0xefd4('0x69')])continue;if(!_0x461ca2[_0xefd4('0x94')](_0x5f4834))continue;const _0x429ec4=_0x461ca2[_0xefd4('0x85')](_0x5f4834)[_0xefd4('0x76')](),_0xe7bce2=_0x1ae366[_0xefd4('0x8e')]['get'](_0xefd4('0x19'))['me'];for(const _0x5bd26b of _0x461ca2[_0xefd4('0x11')]()){if(!_0x5bd26b[_0xefd4('0x3b')]||_0x5bd26b['author']!=_0xe7bce2)continue;if('formatBlock'!=_0x5bd26b[_0xefd4('0x70')]||_0xefd4('0x7f')!=_0x5bd26b[_0xefd4('0x8b')])continue;if(_0x5bd26b['getRanges']()['every'](_0x1036ad=>_0x429ec4[_0xefd4('0x1a')](_0x185332=>_0x185332[_0xefd4('0x86')](_0x1036ad,!0x0))))for(const _0x2fff62 of _0x5bd26b[_0xefd4('0x38')]())_0x2fff62['isInContent']&&(_0x2fff62[_0xefd4('0x15')](),_0x4c44b3=!0x0);}}return _0x4c44b3;}),_0x1ae366[_0xefd4('0x63')][_0xefd4('0x3e')][_0xefd4('0x4d')](_0x14db52=>{const _0x5edba9=_0x1ae366[_0xefd4('0x9d')]['get'](_0xefd4('0x99'));if(!_0x5edba9||!_0x5edba9[_0xefd4('0x8f')][_0xefd4('0x5c')](_0x14db52[_0xefd4('0x5f')]))return!0x1;let _0x268c99=!0x1;const _0x1b75e0=_0x1ae366[_0xefd4('0x8e')][_0xefd4('0x16')](_0xefd4('0x19'))['me'],_0xedef85=_0x1ae366[_0xefd4('0x63')]['document'][_0xefd4('0x4b')]['getChanges'](),_0x419490=Array[_0xefd4('0x6f')](_0x1ae366['model']['document'][_0xefd4('0x4b')][_0xefd4('0x42')]())[_0xefd4('0x0')](({name:_0x140d1a,data:_0x3f165e})=>{const {group:_0x2b30ba,subType:_0x16a77e,authorId:_0x49853c}=_0x461ca2[_0xefd4('0x2c')](_0x140d1a);return _0xefd4('0x9e')==_0x2b30ba&&_0xefd4('0x14')==_0x16a77e&&_0x49853c==_0x1b75e0['id']&&!_0x3f165e[_0xefd4('0x69')];});for(const _0xbcda82 of _0xedef85){if('insert'!=_0xbcda82[_0xefd4('0x70')]||_0xefd4('0x73')!=_0xbcda82[_0xefd4('0x6a')]||0x1!=_0xbcda82[_0xefd4('0x1d')])continue;const _0x1c3bd2=_0x14db52[_0xefd4('0x67')](_0xbcda82[_0xefd4('0x35')],_0xbcda82[_0xefd4('0x35')][_0xefd4('0x5d')](0x1));if(!_0x419490[_0xefd4('0x9b')](({data:_0x21ec77})=>_0x21ec77[_0xefd4('0x90')][_0xefd4('0x6e')](_0x1c3bd2)))for(const {name:_0x270612,data:_0x1ae6aa}of _0x419490)if(_0x1c3bd2[_0xefd4('0x86')](_0x1ae6aa[_0xefd4('0x90')])){_0x14db52['updateMarker'](_0x270612,{'range':_0x1c3bd2}),_0x268c99=!0x0;break;}}return _0x268c99;}),_0x1ae366[_0xefd4('0x63')]['document'][_0xefd4('0x4d')](_0x26f718=>{let _0x400ef8=!0x1;const _0xec6ca6=_0x1ae366['plugins'][_0xefd4('0x16')]('Users')['me'],_0x3b6cf1=_0x461ca2[_0xefd4('0x11')]()[_0xefd4('0x0')](_0x25a249=>_0x25a249[_0xefd4('0x3b')]&&_0x25a249['author']==_0xec6ca6),_0x14ab12=new Set(),_0x1af2b7=new Set();for(const _0x131355 of _0x3b6cf1)if(_0xefd4('0x14')==_0x131355[_0xefd4('0x8b')])for(const _0x12381d of _0x131355[_0xefd4('0x32')]()){const _0xcb5d97=_0x12381d[_0xefd4('0x46')]()['getContainedElement']();if(_0xcb5d97){if(_0xcb5d97['is'](_0xefd4('0x72'),'tableCellSuggestion')&&ce(_0xcb5d97)){_0x131355[_0xefd4('0x2b')](_0x12381d[_0xefd4('0x6a')]),_0x14ab12[_0xefd4('0x20')](_0xcb5d97),_0x400ef8=!0x0;const _0xab6291=_0xcb5d97[_0xefd4('0x98')],_0x5d71f7=_0xcb5d97[_0xefd4('0x25')],_0x3f5704=_0xab6291&&_0xab6291['is'](_0xefd4('0x72'),'tableCellSuggestion'),_0x4556c2=_0x5d71f7&&_0x5d71f7['is'](_0xefd4('0x72'),_0xefd4('0x73'));_0x3f5704&&!_0x14ab12[_0xefd4('0x5c')](_0xab6291)&&_0x1af2b7[_0xefd4('0x20')](_0xab6291),_0x4556c2&&!_0x14ab12['has'](_0x5d71f7)&&_0x1af2b7[_0xefd4('0x20')](_0x5d71f7);}else _0xcb5d97['is'](_0xefd4('0x72'),'paragraph')&&_0xcb5d97[_0xefd4('0x7')]&&(_0x131355[_0xefd4('0x2b')](_0x12381d[_0xefd4('0x6a')]),_0x400ef8=!0x0);}}else{if(_0xefd4('0x7f')==_0x131355['subType']){if(!_0x131355['attributes']||!_0x131355['attributes'][_0xefd4('0x4e')])continue;const _0x825e0e=_0x131355[_0xefd4('0x45')][_0xefd4('0x3f')];if(_0x825e0e&&Object[_0xefd4('0x65')](_0x825e0e)['length'])continue;const _0x378d8e=_0x131355[_0xefd4('0x45')][_0xefd4('0x4e')];let _0x476f1a=!0x0,_0x5564f6=!0x0;for(const _0x5aa58a of _0x3b6cf1)if(_0x5aa58a[_0xefd4('0x8b')]&&_0x5aa58a[_0xefd4('0x8b')][_0xefd4('0x81')](_0xefd4('0x14'))){if(!_0x5aa58a[_0xefd4('0x45')][_0xefd4('0x4e')]){_0x5564f6=!0x1;break;}if(_0x5aa58a['id']!=_0x131355['id']&&_0x5aa58a['attributes'][_0xefd4('0x4e')]==_0x378d8e){_0x476f1a=!0x1;break;}}_0x5564f6&&_0x476f1a&&(_0x131355[_0xefd4('0x9')](),_0x400ef8=!0x0);}}for(const _0x43d88c of _0x14ab12)_0x26f718[_0xefd4('0x3')](_0x43d88c);for(const _0x4582a0 of _0x1af2b7)_0x26f718[_0xefd4('0x49')](_0x4582a0);return _0x400ef8;}),_0x1ae366[_0xefd4('0x54')]['for']('editingDowncast')[_0xefd4('0x31')]({'model':_0xefd4('0x5b'),'view':(_0xf0ebe8,_0x450606)=>_0x25fa51(_0xf0ebe8),'converterPriority':_0xefd4('0x97')}),_0x1ae366['conversion'][_0xefd4('0xe')](_0xefd4('0x4c'))['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x358b34,_0x2603d0)=>_0x2603d0['options'][_0xefd4('0x28')]?_0x25fa51(_0x358b34,!0x1):null,'converterPriority':_0xefd4('0x97')});const _0x4e53cc=_0x1ae366['editing'][_0xefd4('0xa')];this[_0xefd4('0x3d')](_0x4e53cc[_0xefd4('0x3e')],_0xefd4('0x7a'),(_0x1a0b7c,_0x1b16d8)=>{const _0x245767=[];for(const _0x16b2ad of _0x4e53cc['createRangeIn'](_0x1b16d8[_0xefd4('0xd')])[_0xefd4('0x62')]())_0x16b2ad['is'](_0xefd4('0x72'),'suggestion-td')&&_0x245767[_0xefd4('0x3c')](_0x16b2ad);_0x4e53cc[_0xefd4('0x12')](_0x25c376=>{for(const _0x236e11 of _0x245767)_0x25c376[_0xefd4('0x7b')](_0x25c376[_0xefd4('0x6c')](_0x236e11),_0x25c376[_0xefd4('0x5')](_0x236e11)),_0x25c376[_0xefd4('0x3')](_0x236e11);});});}}function ce(_0x3187e6){if(_0x3187e6['isEmpty'])return!0x0;const _0x2e6654=_0x3187e6[_0xefd4('0x95')](0x0);return _0x2e6654['is'](_0xefd4('0x72'),_0xefd4('0x47'))&&_0x2e6654[_0xefd4('0x7')];}function fe(_0x3b8f32,_0x322d7f={},_0x58a89c){for(const {isAnchor:_0x11419d,cellHeight:_0x3415f0,cellWidth:_0x4a43c7}of _0x58a89c[_0xefd4('0x18')](_0x3b8f32,{'includeAllSlots':!0x0,..._0x322d7f}))if(!_0x11419d||0x1!=_0x3415f0||0x1!=_0x4a43c7)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x458e=['getSuggestionCallback','bind','accept','document','*Format:*\x20resize\x20table','formatBlock','getContainedElement','formatGroupId','markBlockFormat','afterInit','getAttribute','author','Users','handleResizeTableWidthCommand','get','plugins','table','change','has','getColumnGroupElement','selection','subType','_descriptionFactory','editor','commandParams','resizeTable','TrackChangesEditing','model','handleSuggestionDescription','discard','TableColumnResizeEditing','tableWidth','_suggestionFactory','getSuggestions','registerCustomCallback','locale','getSelectedElement','format'];(function(_0xb985a0,_0x458e56){const _0xdd8156=function(_0x27fd6b){while(--_0x27fd6b){_0xb985a0['push'](_0xb985a0['shift']());}};_0xdd8156(++_0x458e56);}(_0x458e,0x94));const _0xdd81=function(_0xb985a0,_0x458e56){_0xb985a0=_0xb985a0-0x0;let _0xdd8156=_0x458e[_0xb985a0];return _0xdd8156;};import{Plugin as _0x1773ca}from'ckeditor5/src/core';import{getTranslation as _0x68a885}from'../utils/common-translations';export default class wt extends _0x1773ca{[_0xdd81('0xd')](){if(!this[_0xdd81('0x1b')][_0xdd81('0x13')][_0xdd81('0x16')](_0xdd81('0x22')))return;const _0x1278c1=this[_0xdd81('0x1b')][_0xdd81('0x13')]['get'](_0xdd81('0x1e'));_0x1278c1['enableCommand']('resizeTableWidth',this[_0xdd81('0x11')][_0xdd81('0x5')](this)),_0x1278c1['enableCommand']('resizeColumnWidths',this[_0xdd81('0x11')][_0xdd81('0x5')](this)),_0x1278c1[_0xdd81('0x24')][_0xdd81('0x0')](_0xdd81('0x9'),_0xdd81('0x1d'),_0xdd81('0x6'),_0x1278c1[_0xdd81('0x24')][_0xdd81('0x4')]('formatBlock',null,_0xdd81('0x21'))),_0x1278c1['_suggestionFactory']['registerCustomCallback'](_0xdd81('0x9'),'resizeTable',_0xdd81('0x21'),_0x1278c1[_0xdd81('0x24')][_0xdd81('0x4')]('formatBlock',null,_0xdd81('0x6'))),_0x1278c1[_0xdd81('0x1a')]['registerDescriptionCallback'](this[_0xdd81('0x20')][_0xdd81('0x5')](this));}[_0xdd81('0x11')](_0x36049e,_0x27f2a4){const _0x4666db=this[_0xdd81('0x1b')][_0xdd81('0x13')][_0xdd81('0x12')]('TrackChangesEditing'),_0xf03658=this[_0xdd81('0x1b')][_0xdd81('0x13')]['get'](_0xdd81('0x22')),_0xfadf85=_0x27f2a4[_0xdd81('0x14')]||this['editor'][_0xdd81('0x1f')][_0xdd81('0x7')][_0xdd81('0x18')][_0xdd81('0x2')]();this['editor'][_0xdd81('0x1f')][_0xdd81('0x15')](()=>{const _0x106a6a=_0xf03658[_0xdd81('0x17')](_0xfadf85);let _0x70c976=_0x106a6a?_0xf03658['getTableColumnsWidths'](_0x106a6a):null,_0x12e543=_0xfadf85[_0xdd81('0xe')](_0xdd81('0x23'))||null;const _0x34fba0=_0x27f2a4[_0xdd81('0x23')]||_0x12e543,_0x212baf=_0x27f2a4['columnWidths']||_0x70c976,_0x3dc9fd=this[_0xdd81('0x1b')]['plugins'][_0xdd81('0x12')](_0xdd81('0x10'))['me'];for(const _0x2eafeb of _0x4666db[_0xdd81('0x25')]()){const _0x3069ba=_0x2eafeb[_0xdd81('0xa')]();if(_0xdd81('0x1d')===_0x2eafeb[_0xdd81('0x19')]&&_0x3069ba===_0xfadf85){_0x2eafeb[_0xdd81('0xf')]!==_0x3dc9fd&&_0x2eafeb[_0xdd81('0x21')]();const _0xf409cb=_0x2eafeb['data'][_0xdd81('0x1c')];_0x12e543=_0xf409cb[0x0]['tableWidth'],_0x70c976=_0xf409cb[0x0]['columnWidths'];break;}}_0x36049e({'table':_0xfadf85,'tableWidth':_0x34fba0,'columnWidths':_0x212baf}),_0x4666db[_0xdd81('0xc')](_0xfadf85,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x12e543,'columnWidths':_0x70c976}],'formatGroupId':_0xdd81('0x1d')},[],'resizeTable');});}['handleSuggestionDescription'](_0x94a09f){const {data:_0x499b65}=_0x94a09f;if(_0x499b65&&'resizeTable'===_0x499b65[_0xdd81('0xb')]){const _0x1e382b=_0xdd81('0x8');return{'type':_0xdd81('0x3'),'content':_0x68a885(this[_0xdd81('0x1b')][_0xdd81('0x1')],_0x1e382b)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3527=['commandName','index','accept','commands','isBefore','nodeBefore','requires','setTableRowHeader','editing','includes','_acceptFormatSuggestionCallbackFactory','document','headingColumns','getSelectionAffectedTableCells','setAttribute','createTableWalker','highest','downcastDispatcher','mapper','get','stop','nodeAfter','ck-suggestion-marker-','data','ck-suggestion-marker--active','unbindElementFromMarkerName','getChild','forceValue','getAttribute','FORMAT_HEADER_ROW','createPositionBefore','cell','removeMarker:suggestion','markerName','has','from','value','editor','plugins','FORMAT_REGULAR_COLUMN','table','model','start','options','headingRows','parent','setTableColumnHeader','writer','toViewElement','registerDescriptionCallback','markBlockFormat','change','getColumnIndexes','childCount','getSuggestion','last','_descriptionFactory','data-suggestion','name','getCellLocation','FORMAT_REGULAR_ROW','markerNameToElements','getRowIndexes','commandParams','addMarker:suggestion','findAncestor','_suggestionFactory','first','TableEditing','_splitMarkerName','consumable','createRange','markerRange','removeClass','createPositionAfter','registerCustomCallback','bindElementToMarker','formatBlock','TableUtils','TrackChangesEditing'];(function(_0x59b7f2,_0x3527ef){const _0x591b34=function(_0x335a2d){while(--_0x335a2d){_0x59b7f2['push'](_0x59b7f2['shift']());}};_0x591b34(++_0x3527ef);}(_0x3527,0x1dd));const _0x591b=function(_0x59b7f2,_0x3527ef){_0x59b7f2=_0x59b7f2-0x0;let _0x591b34=_0x3527[_0x59b7f2];return _0x591b34;};import{Plugin as _0xe6e537}from'ckeditor5/src/core';import _0x1522c5 from'./table';import{getTranslation as _0x1bd412}from'../utils/common-translations';export default class pt extends _0xe6e537{static get[_0x591b('0x9')](){return[_0x1522c5];}['afterInit'](){const _0x968b47=this[_0x591b('0x28')];if(!_0x968b47[_0x591b('0x29')][_0x591b('0x25')](_0x591b('0x47')))return;const _0x5bf7b3=_0x968b47['locale'],_0x2b711a=_0x968b47[_0x591b('0x29')][_0x591b('0x16')](_0x591b('0x2')),_0x5a9f5f=_0x968b47[_0x591b('0x29')][_0x591b('0x16')](_0x591b('0x1')),_0xce4f4a=_0x968b47['plugins'][_0x591b('0x16')](_0x1522c5);function _0x420d44({showActiveMarker:_0x3d00cd=!0x0,setDataAttribute:_0x2b2a04=!0x0}={}){return(_0x45673c,_0x2fb92a,_0x3702ac)=>{const {type:_0x23e262,id:_0x4e7a7b}=_0x2b711a[_0x591b('0x48')](_0x2fb92a[_0x591b('0x24')]),_0x137de0=_0x2b711a[_0x591b('0x39')](_0x4e7a7b);if(!_0x137de0[_0x591b('0x1a')]||'setTableColumnHeader'!=_0x137de0['data'][_0x591b('0x3')])return;if(_0x2fb92a['item'])return void _0x45673c[_0x591b('0x17')]();if(!_0x3702ac[_0x591b('0x49')]['consume'](_0x2fb92a[_0x591b('0x4b')],_0x45673c[_0x591b('0x3d')]))return;const _0x2bc537=_0x2fb92a['markerRange'][_0x591b('0x2d')][_0x591b('0x18')],_0x501713=_0x2fb92a[_0x591b('0x4b')]['end'][_0x591b('0x8')],_0x503505=_0x2bc537[_0x591b('0x30')]['parent'],{column:_0x143be5}=_0x5a9f5f[_0x591b('0x3e')](_0x2bc537),{column:_0x1e0a3e}=_0x5a9f5f['getCellLocation'](_0x501713);for(let _0x597764=_0x143be5;_0x597764<=_0x1e0a3e;_0x597764++){const _0x1d8b4a=_0x5a9f5f[_0x591b('0x12')](_0x503505,{'column':_0x597764,'includeAllSlots':!0x1});for(const _0x126c73 of _0x1d8b4a){const _0x188b2f=_0x126c73['cell'],_0x12daa1=_0x3702ac[_0x591b('0x15')][_0x591b('0x33')](_0x188b2f);_0x3702ac['writer']['addClass'](_0x591b('0x19')+_0x23e262,_0x12daa1),_0x2b2a04&&_0x3702ac[_0x591b('0x32')][_0x591b('0x11')](_0x591b('0x3c'),_0x4e7a7b,_0x12daa1),_0x3702ac[_0x591b('0x15')][_0x591b('0x4f')](_0x12daa1,_0x2fb92a[_0x591b('0x24')]),_0x3d00cd&&(_0x2b711a['activeMarkers'][_0x591b('0xc')](_0x2fb92a[_0x591b('0x24')])?_0x3702ac[_0x591b('0x32')]['addClass'](_0x591b('0x1b'),_0x12daa1):_0x3702ac[_0x591b('0x32')][_0x591b('0x4c')](_0x591b('0x1b'),_0x12daa1));}}};}_0x2b711a['enableCommand']('setTableRowHeader',(_0x4ac8fc,_0x146183)=>{const _0x4701d0=_0x5a9f5f[_0x591b('0x10')](_0x968b47[_0x591b('0x2c')][_0x591b('0xe')]['selection']),_0x3368ac=_0x5a9f5f[_0x591b('0x41')](_0x4701d0),_0x50bd54=_0x4701d0[0x0][_0x591b('0x44')](_0x591b('0x2b')),_0x44cdc2=_0x50bd54[_0x591b('0x1f')](_0x591b('0x2f'))||0x0,_0x1e0e40=_0x146183&&null!==_0x146183['forceValue']?_0x146183['forceValue']:!_0x968b47[_0x591b('0x6')][_0x591b('0x16')](_0x591b('0xa'))[_0x591b('0x27')],_0xb0465f=_0x1e0e40?_0x3368ac[_0x591b('0x3a')]:_0x3368ac[_0x591b('0x46')],_0x3d7b8b=_0x50bd54[_0x591b('0x1d')](_0xb0465f);let _0x3d790d;if(_0x1e0e40){const _0x4b57b4=_0x50bd54[_0x591b('0x1d')](_0x44cdc2);if(_0x3d7b8b[_0x591b('0x4')]<_0x4b57b4[_0x591b('0x4')])return;_0x3d790d=_0x968b47['model'][_0x591b('0x4a')](_0x968b47[_0x591b('0x2c')][_0x591b('0x21')](_0x4b57b4['getChild'](0x0)),_0x968b47[_0x591b('0x2c')][_0x591b('0x4d')](_0x3d7b8b[_0x591b('0x1d')](_0x3d7b8b[_0x591b('0x38')]-0x1)));}else{const _0x1e6256=_0x50bd54[_0x591b('0x1d')](_0x44cdc2-0x1);if(!_0x1e6256)return;_0x3d790d=_0x968b47[_0x591b('0x2c')][_0x591b('0x4a')](_0x968b47[_0x591b('0x2c')][_0x591b('0x21')](_0x3d7b8b[_0x591b('0x1d')](0x0)),_0x968b47['model'][_0x591b('0x4d')](_0x1e6256[_0x591b('0x1d')](_0x1e6256['childCount']-0x1)));}_0x968b47['model']['change'](()=>{_0x2b711a[_0x591b('0x35')](_0x3d790d,{'commandName':_0x591b('0xa'),'commandParams':[{'forceValue':_0x1e0e40}]},[],_0x591b('0xa'));});}),_0x2b711a['enableCommand']('setTableColumnHeader',(_0x27b0ac,_0x262e7b)=>{const _0x4b8dd6=_0x968b47[_0x591b('0x29')][_0x591b('0x16')](_0x591b('0x1')),_0x5c8209=_0x4b8dd6['getSelectionAffectedTableCells'](_0x968b47['model'][_0x591b('0xe')]['selection']),_0x45a0ad=_0x4b8dd6[_0x591b('0x37')](_0x5c8209),_0xe7f88f=_0x5c8209[0x0][_0x591b('0x44')](_0x591b('0x2b')),_0x3b9088=_0xe7f88f[_0x591b('0x1f')](_0x591b('0xf'))||0x0,_0x1d4503=_0x262e7b&&null!==_0x262e7b['forceValue']?_0x262e7b[_0x591b('0x1e')]:!_0x968b47['commands']['get'](_0x591b('0x31'))[_0x591b('0x27')];let _0x5011dc;const _0x2fabb4=_0xe7f88f['getChild'](0x0),_0x59eb24=_0x1d4503?_0x45a0ad[_0x591b('0x3a')]:_0x45a0ad[_0x591b('0x46')],_0x15590a=_0x4b8dd6[_0x591b('0x12')](_0xe7f88f,{'startRow':0x0,'column':_0x59eb24,'includeAllSlots':!0x1}),_0x1ebc3e=Array[_0x591b('0x26')](_0x15590a)[0x0][_0x591b('0x22')];if(_0x1d4503){const _0x3149e8=_0x2fabb4[_0x591b('0x1d')](_0x3b9088);if(_0x1ebc3e[_0x591b('0x7')](_0x3149e8))return;_0x5011dc=_0x968b47[_0x591b('0x2c')]['createRange'](_0x968b47[_0x591b('0x2c')][_0x591b('0x21')](_0x3149e8),_0x968b47[_0x591b('0x2c')][_0x591b('0x4d')](_0x1ebc3e));}else{const _0x5daaef=_0x2fabb4['getChild'](_0x3b9088-0x1);if(!_0x5daaef)return;_0x5011dc=_0x968b47[_0x591b('0x2c')][_0x591b('0x4a')](_0x968b47[_0x591b('0x2c')][_0x591b('0x21')](_0x1ebc3e),_0x968b47[_0x591b('0x2c')][_0x591b('0x4d')](_0x5daaef));}_0x968b47[_0x591b('0x2c')][_0x591b('0x36')](()=>{_0x2b711a['markBlockFormat'](_0x5011dc,{'commandName':_0x591b('0x31'),'commandParams':[{'forceValue':_0x1d4503}]},[],_0x591b('0x31'));});}),_0x968b47[_0x591b('0xb')][_0x591b('0x14')]['on']('addMarker:suggestion',_0x420d44(),{'priority':_0x591b('0x13')}),_0x968b47[_0x591b('0x1a')][_0x591b('0x14')]['on'](_0x591b('0x43'),(_0x41409b,_0x1f6f9b,_0x96da2e)=>{_0x96da2e[_0x591b('0x2e')]['showSuggestionHighlights']&&_0x420d44({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x41409b,_0x1f6f9b,_0x96da2e);},{'priority':_0x591b('0x13')}),_0x968b47['editing']['downcastDispatcher']['on'](_0x591b('0x23'),(_0x57c56a,_0x23ac6b,_0x20a0cc)=>{const {type:_0x117f7e,id:_0x556d3f}=_0x2b711a['_splitMarkerName'](_0x23ac6b[_0x591b('0x24')]),_0x371aa3=_0x2b711a['getSuggestion'](_0x556d3f);if(!_0x371aa3['data']||_0x591b('0x31')!=_0x371aa3[_0x591b('0x1a')][_0x591b('0x3')])return;const _0x483276=_0x20a0cc['mapper'][_0x591b('0x40')](_0x23ac6b[_0x591b('0x24')]);if(_0x483276)for(const _0x2f18ab of _0x483276)_0x20a0cc['writer']['removeClass'](_0x591b('0x19')+_0x117f7e,_0x2f18ab),_0x20a0cc[_0x591b('0x32')][_0x591b('0x4c')](_0x591b('0x1b'),_0x2f18ab),_0x20a0cc[_0x591b('0x32')]['removeAttribute'](_0x591b('0x3c'),_0x2f18ab),_0x20a0cc['mapper'][_0x591b('0x1c')](_0x2f18ab,_0x23ac6b[_0x591b('0x24')]);},{'priority':_0x591b('0x13')}),_0x2b711a[_0x591b('0x3b')][_0x591b('0x34')](_0x4b0f71=>{const {data:_0x47f2a8}=_0x4b0f71;if(_0x47f2a8){if('setTableRowHeader'==_0x47f2a8[_0x591b('0x3')]){const _0x58590e=_0x47f2a8[_0x591b('0x42')][0x0]['forceValue'];return _0x41b9ec(_0x1bd412(_0x5bf7b3,_0x58590e?_0x591b('0x20'):_0x591b('0x3f')));}if(_0x591b('0x31')==_0x47f2a8[_0x591b('0x3')]){const _0x4ec018=_0x47f2a8[_0x591b('0x42')][0x0]['forceValue'];return _0x41b9ec(_0x1bd412(_0x5bf7b3,_0x4ec018?'FORMAT_HEADER_COLUMN':_0x591b('0x2a')));}}function _0x41b9ec(_0x448d98){return{'type':'format','content':_0x1bd412(_0x5bf7b3,'*Format:*\x20%0',_0x448d98)};}});const _0x5bc2bb=_0xce4f4a[_0x591b('0xd')]();_0x2b711a['_suggestionFactory'][_0x591b('0x4e')]('formatBlock',_0x591b('0xa'),_0x591b('0x5'),_0x5bc2bb),_0x2b711a[_0x591b('0x45')][_0x591b('0x4e')](_0x591b('0x0'),_0x591b('0x31'),_0x591b('0x5'),_0x5bc2bb);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45fe=['table','type','*Merge\x20cells*','registerDescriptionCallback','value','selection','TableUtils','has','containsRange','get','execute','map','editor','change','horizontally','forceDefaultExecution','registerCustomCallback','_descriptionFactory','element','TrackChangesEditing','document','size','getAncestors','createTableWalker','mergeTableCellUp','tableCell','getSuggestions','from','cell','set:isEnabled','splitTableCellVertically','model','mergeTableCellDown','setSelection','mergeTableCells','author','find','length','markBlockFormat','enableCommand','accept','markMultiRangeBlockFormat','locale','detach','requires','subType','mergeTableCellRight','formatBlock','splitTableCellHorizontally','refresh','insertion','getFirstPosition','_isForcedDefaultExecutionBlock','_suggestionFactory','TableEditing','isEnabled','root','$graveyard','getCellLocation','commands','mergeTableCellLeft','format','rootName','direction','_areMergableCells','_areSelectedCellsMergable','findAncestor','stop','_tablePostFixingSubtypes','commandName','plugins','fromRange','highest','getSelectionAffectedTableCells'];(function(_0x1295b7,_0x45fe24){const _0x5029d5=function(_0x63d213){while(--_0x63d213){_0x1295b7['push'](_0x1295b7['shift']());}};_0x5029d5(++_0x45fe24);}(_0x45fe,0xb2));const _0x5029=function(_0x1295b7,_0x45fe24){_0x1295b7=_0x1295b7-0x0;let _0x5029d5=_0x45fe[_0x1295b7];return _0x5029d5;};import{Plugin as _0x29f9d5}from'ckeditor5/src/core';import _0x579ca8 from'./table';import{LiveRange as _0x15a9e2}from'ckeditor5/src/engine';import{getTranslation as _0x1513f8}from'../utils/common-translations';export default class dt extends _0x29f9d5{static get[_0x5029('0xe')](){return[_0x579ca8];}['afterInit'](){const _0x5a5ba0=this[_0x5029('0x38')],_0x14508d=_0x5a5ba0[_0x5029('0x1')][_0x5029('0x40')][_0x5029('0x31')],_0x47c6f0=_0x5a5ba0[_0x5029('0xc')];if(!_0x5a5ba0['plugins']['has'](_0x5029('0x18')))return;const _0x4cacf7=_0x5a5ba0[_0x5029('0x28')][_0x5029('0x35')](_0x5029('0x3f')),_0x41f817=_0x5a5ba0['plugins'][_0x5029('0x35')](_0x5029('0x32')),_0x1ba5cf=_0x5a5ba0[_0x5029('0x28')][_0x5029('0x35')](_0x579ca8);_0x1ba5cf[_0x5029('0x26')]['push'](_0x5029('0x4')),_0x4cacf7[_0x5029('0x9')]('mergeTableCells',()=>{const _0x1affbd=_0x41f817['getSelectionAffectedTableCells'](_0x5a5ba0[_0x5029('0x1')][_0x5029('0x40')][_0x5029('0x31')]);_0x5a5ba0[_0x5029('0x1')][_0x5029('0x39')](()=>{_0x4cacf7[_0x5029('0xb')](_0x1affbd,{'commandName':'mergeTableCells','commandParams':[]},[],_0x5029('0x4'));});}),_0x5a5ba0['commands']['get'](_0x5029('0x4'))['on'](_0x5029('0x36'),(_0x226b5c,_0xbe6d45)=>{_0x5a5ba0[_0x5029('0x1d')][_0x5029('0x35')]('trackChanges')['value']&&(_0xbe6d45[_0x5029('0x7')]>0x0&&_0xbe6d45[_0xbe6d45['length']-0x1]&&_0xbe6d45[_0xbe6d45[_0x5029('0x7')]-0x1][_0x5029('0x3b')]||_0x4cacf7[_0x5029('0x16')]||this[_0x5029('0x23')]()||_0x226b5c[_0x5029('0x25')]());},{'priority':_0x5029('0x2a')});for(const _0x2847e3 of[_0x5029('0x44'),_0x5029('0x10'),_0x5029('0x2'),_0x5029('0x1e')]){const _0x4bcac2=_0x5a5ba0['commands'][_0x5029('0x35')](_0x2847e3);_0x4cacf7[_0x5029('0x9')](_0x2847e3,()=>{const _0x948c60=_0x5a5ba0[_0x5029('0x1')][_0x5029('0x40')][_0x5029('0x31')][_0x5029('0x15')]()[_0x5029('0x42')]()[_0x5029('0x6')](_0x36ec5e=>_0x36ec5e['is'](_0x5029('0x3e'),'tableCell')),_0x2f6319=_0x4bcac2[_0x5029('0x30')];_0x5a5ba0[_0x5029('0x1')][_0x5029('0x39')](()=>{_0x4cacf7[_0x5029('0xb')]([_0x948c60,_0x2f6319],{'commandName':_0x5029('0x4'),'commandParams':[]},[],'mergeTableCells');});});}for(const _0x269cca of['splitTableCellVertically',_0x5029('0x12')]){const _0x2a8e95=_0x5a5ba0['commands'][_0x5029('0x35')](_0x269cca);_0x4cacf7[_0x5029('0x9')](_0x269cca,()=>{const _0xdcd1b9=_0x41f817['getSelectionAffectedTableCells'](_0x5a5ba0[_0x5029('0x1')][_0x5029('0x40')][_0x5029('0x31')])[0x0],_0x382016=_0xdcd1b9[_0x5029('0x24')](_0x5029('0x2c')),{column:_0x7e0009,row:_0x54732b}=_0x41f817[_0x5029('0x1c')](_0xdcd1b9);let _0x40f5b3=[];if(_0x5029('0x3a')==_0x2a8e95[_0x5029('0x21')]){const _0x536fe4=_0x41f817['createTableWalker'](_0x382016,{'startRow':_0x54732b,'endRow':_0x54732b,'includeAllSlots':!0x0});_0x40f5b3=Array['from'](_0x536fe4)[_0x5029('0x37')](_0x582cd3=>_0x582cd3[_0x5029('0x48')]);}else{const _0xe70bb8=_0x41f817[_0x5029('0x43')](_0x382016,{'column':_0x7e0009,'includeAllSlots':!0x0});_0x40f5b3=Array['from'](_0xe70bb8)[_0x5029('0x37')](_0x219873=>_0x219873[_0x5029('0x48')]);}_0x5a5ba0['model']['change'](_0x29bfe8=>{_0x4cacf7[_0x5029('0x8')](_0x29bfe8['createRangeOn'](_0xdcd1b9),{'commandName':_0x269cca,'commandParams':[]},_0x40f5b3,_0x269cca);});});}_0x4cacf7[_0x5029('0x3d')]['registerDescriptionCallback'](_0x82fd21=>{const {data:_0x5e413b}=_0x82fd21;if(_0x5e413b)return _0x5029('0x4')==_0x5e413b[_0x5029('0x27')]?{'type':_0x5029('0x1f'),'content':_0x1513f8(_0x47c6f0,_0x5029('0x2e'))}:void 0x0;}),_0x4cacf7[_0x5029('0x3d')][_0x5029('0x2f')](_0xd2dea6=>{const {data:_0x4fbe74}=_0xd2dea6;if(_0x4fbe74)return _0x5029('0x0')==_0x4fbe74['commandName']?{'type':_0x5029('0x1f'),'content':_0x1513f8(_0x47c6f0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4fbe74['commandName']?{'type':_0x5029('0x1f'),'content':_0x1513f8(_0x47c6f0,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x161a91=_0x1ba5cf['_acceptFormatSuggestionCallbackFactory']();for(const _0x1c8206 of[_0x5029('0x44'),'mergeTableCellRight',_0x5029('0x2'),_0x5029('0x1e')])_0x4cacf7[_0x5029('0x17')]['registerCustomCallback'](_0x5029('0x11'),_0x1c8206,_0x5029('0xa'),_0x161a91);for(const _0x59ef8f of[_0x5029('0x0'),_0x5029('0x12')])_0x4cacf7[_0x5029('0x17')][_0x5029('0x3c')]('formatBlock',_0x59ef8f,_0x5029('0xa'),_0x161a91);_0x4cacf7[_0x5029('0x17')][_0x5029('0x3c')](_0x5029('0x11'),_0x5029('0x4'),_0x5029('0xa'),_0x13d765=>{_0x5a5ba0['model'][_0x5029('0x39')](_0x7f408f=>{const _0x58dc79=Array[_0x5029('0x47')](_0x14508d['getRanges']())['map'](_0x33f72a=>_0x15a9e2[_0x5029('0x29')](_0x33f72a));_0x7f408f['setSelection'](_0x13d765),_0x5a5ba0[_0x5029('0x1d')][_0x5029('0x35')](_0x5029('0x4'))[_0x5029('0x13')](),_0x5a5ba0['execute'](_0x5029('0x4'),{'forceDefaultExecution':!0x0});const _0x40a4aa=_0x58dc79['filter'](_0x1a314b=>_0x5029('0x1b')!=_0x1a314b[_0x5029('0x1a')][_0x5029('0x20')]);_0x40a4aa[_0x5029('0x7')]>0x0&&_0x7f408f[_0x5029('0x3')](_0x40a4aa);for(const _0x24c095 of _0x58dc79)_0x24c095[_0x5029('0xd')]();});});for(const _0x535005 of[_0x5029('0x44'),_0x5029('0x2'),'mergeTableCellLeft',_0x5029('0x10')]){const _0x1b3955=_0x5a5ba0[_0x5029('0x1d')][_0x5029('0x35')](_0x535005);_0x1b3955['on'](_0x5029('0x49'),(_0xb558f1,_0x3a2e9a,_0xc0584f)=>{if(_0xc0584f){const _0x49ff04=_0x5a5ba0['model']['document']['selection'][_0x5029('0x15')]()[_0x5029('0x42')]()[_0x5029('0x6')](_0x3ad0a0=>_0x3ad0a0['is'](_0x5029('0x3e'),_0x5029('0x45')));this['_areMergableCells'](_0x1b3955[_0x5029('0x30')],_0x49ff04)||(_0xb558f1['return']=!0x1,_0xb558f1[_0x5029('0x25')]());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3f12e7=this[_0x5029('0x38')][_0x5029('0x1d')][_0x5029('0x35')]('mergeTableCells'),_0x251384=this[_0x5029('0x38')][_0x5029('0x28')][_0x5029('0x35')](_0x5029('0x32'));if(!_0x3f12e7[_0x5029('0x19')])return!0x1;const _0x50cee5=_0x251384[_0x5029('0x2b')](this[_0x5029('0x38')][_0x5029('0x1')]['document'][_0x5029('0x31')]);for(const _0x3670e2 of _0x50cee5)for(const _0x40f8e5 of _0x50cee5)if(_0x3670e2!=_0x40f8e5&&!this['_areMergableCells'](_0x3670e2,_0x40f8e5))return!0x1;return!0x0;}[_0x5029('0x22')](_0x5ebc79,_0x719e84){const _0x49a051=this[_0x5029('0x38')][_0x5029('0x28')][_0x5029('0x35')](_0x5029('0x3f')),_0x416c73=this[_0x5029('0x38')][_0x5029('0x1')]['createRangeOn'](_0x5ebc79),_0x283f9e=this['editor']['model']['createRangeOn'](_0x719e84),_0x2b2dad=new Set(),_0x285224=new Set();for(const _0x27c3eb of _0x49a051[_0x5029('0x46')]())if((_0x5029('0x14')==_0x27c3eb[_0x5029('0x2d')]||'deletion'==_0x27c3eb[_0x5029('0x2d')]||_0x5029('0x4')==_0x27c3eb[_0x5029('0xf')])&&_0x27c3eb['isInContent'])for(const _0x197582 of _0x27c3eb['getRanges']())_0x197582['containsRange'](_0x416c73,!0x0)&&_0x2b2dad['add'](_0x27c3eb[_0x5029('0x2d')]+':'+_0x27c3eb['author']['id']),_0x197582[_0x5029('0x34')](_0x283f9e,!0x0)&&_0x285224['add'](_0x27c3eb['type']+':'+_0x27c3eb[_0x5029('0x5')]['id']);if(_0x2b2dad[_0x5029('0x41')]!=_0x285224[_0x5029('0x41')])return!0x1;for(const _0x18bbe3 of _0x2b2dad)if(!_0x285224[_0x5029('0x33')](_0x18bbe3))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3496=['registerElementLabel','insertTableOfContents','TrackChangesEditing','get','editor','plugins','commands','ELEMENT_TABLE_OF_CONTENTS','afterInit','tableOfContents','locale'];(function(_0x16845b,_0x349679){const _0x5bf8b=function(_0x3b9313){while(--_0x3b9313){_0x16845b['push'](_0x16845b['shift']());}};_0x5bf8b(++_0x349679);}(_0x3496,0xc2));const _0x5bf8=function(_0x16845b,_0x349679){_0x16845b=_0x16845b-0x0;let _0x5bf8b=_0x3496[_0x16845b];return _0x5bf8b;};import{Plugin as _0x3f072e}from'ckeditor5/src/core';import{getTranslation as _0x45da01}from'../utils/common-translations';export default class bt extends _0x3f072e{[_0x5bf8('0x1')](){const _0x1f34e3=this[_0x5bf8('0x8')];if(!_0x1f34e3[_0x5bf8('0xa')]['get']('insertTableOfContents'))return;_0x1f34e3['plugins'][_0x5bf8('0x7')](_0x5bf8('0x6'))['enableCommand'](_0x5bf8('0x5'));const _0x51288c=_0x1f34e3[_0x5bf8('0x9')][_0x5bf8('0x7')](_0x5bf8('0x6')),_0x78bc7f=_0x1f34e3[_0x5bf8('0x3')];_0x51288c['_descriptionFactory'][_0x5bf8('0x4')](_0x5bf8('0x2'),_0x4c8b8a=>_0x45da01(_0x78bc7f,_0x5bf8('0x0'),_0x4c8b8a));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xdc2b=['join','change','registerDescriptionCallback','locale','plugins','TrackChangesEditing','tableCellWidth','getAttribute','selection','editor','*Format:*\x20change\x20table\x20cell\x20properties','enableCommand','getFirstPosition','tableBorderColor','get','table','tableCellBorderStyle','accept','tableCellVerticalAlignment','enqueueChange','formatBlock','_descriptionFactory','data','subType','_suggestionFactory','discard','tableCellBorderColor','_getSuggestion','tableAlignment','pluginName','TrackChangesTableProperties','TablePropertiesEditing','model','getSuggestionCallback','tableBorderWidth','batch','findAncestor','tableProperties','setAttribute','tableWidth','registerCustomCallback','format','tableCellProperties','handleSuggestionDescription','has','start','_handlePropertyChange','handleDiscardAction','tableCellBorderWidth','tableCellHeight','getSelectionAffectedTableCells','TableCellPropertiesEditing','tableCellPadding'];(function(_0x4455dd,_0xdc2bc6){const _0x35a8e9=function(_0x2913e4){while(--_0x2913e4){_0x4455dd['push'](_0x4455dd['shift']());}};_0x35a8e9(++_0xdc2bc6);}(_0xdc2b,0x183));const _0x35a8=function(_0x4455dd,_0xdc2bc6){_0x4455dd=_0x4455dd-0x0;let _0x35a8e9=_0xdc2b[_0x4455dd];return _0x35a8e9;};import{Plugin as _0x27358a}from'ckeditor5/src/core';import{getTranslation as _0x2f6ebb}from'../utils/common-translations';export default class Ct extends _0x27358a{constructor(_0x53989e){super(_0x53989e),this[_0x35a8('0x15')]=[_0x35a8('0x32'),'tableBorderStyle',_0x35a8('0x12'),_0x35a8('0xc'),_0x35a8('0x17'),'tableHeight','tableBackgroundColor'],this['tableCellProperties']=[_0x35a8('0xa'),_0x35a8('0x0'),_0x35a8('0x20'),_0x35a8('0x24'),_0x35a8('0x2b'),_0x35a8('0x21'),'tableCellBackgroundColor','tableCellHorizontalAlignment',_0x35a8('0x2')];}static get[_0x35a8('0xd')](){return _0x35a8('0xe');}['afterInit'](){const _0x27b4b6=this[_0x35a8('0x2e')][_0x35a8('0x29')]['get'](_0x35a8('0x2a'));if(this[_0x35a8('0x2e')]['plugins'][_0x35a8('0x1c')](_0x35a8('0xf'))){for(const _0x594a26 of this[_0x35a8('0x15')])_0x27b4b6[_0x35a8('0x30')](_0x594a26,(_0x2133c6,_0x4a7e60)=>{const _0x103c78=this[_0x35a8('0x2e')][_0x35a8('0x10')]['document'][_0x35a8('0x2d')][_0x35a8('0x31')]()[_0x35a8('0x14')](_0x35a8('0x34'));this[_0x35a8('0x1e')](_0x594a26,[_0x103c78],this[_0x35a8('0x15')],_0x35a8('0x15'),_0x2133c6,_0x4a7e60);});_0x27b4b6[_0x35a8('0x8')][_0x35a8('0x18')](_0x35a8('0x4'),_0x35a8('0x15'),_0x35a8('0x1'),_0x27b4b6[_0x35a8('0x8')][_0x35a8('0x11')]('formatBlock',null,_0x35a8('0x9'))),_0x27b4b6[_0x35a8('0x8')][_0x35a8('0x18')](_0x35a8('0x4'),_0x35a8('0x15'),_0x35a8('0x9'),(_0x2dbd04,_0x433c7d)=>this[_0x35a8('0x1f')](this[_0x35a8('0x15')],_0x2dbd04,_0x433c7d)),_0x27b4b6[_0x35a8('0x8')][_0x35a8('0x18')]('formatBlock',_0x35a8('0x15'),_0x35a8('0x25'),()=>!0x1);}if(this['editor'][_0x35a8('0x29')][_0x35a8('0x1c')](_0x35a8('0x23'))){for(const _0x41d798 of this[_0x35a8('0x1a')])_0x27b4b6[_0x35a8('0x30')](_0x41d798,(_0x36cb14,_0x526e5c)=>{const _0x13ab1d=this['editor'][_0x35a8('0x29')][_0x35a8('0x33')]('TableUtils')[_0x35a8('0x22')](this[_0x35a8('0x2e')][_0x35a8('0x10')]['document']['selection']);this[_0x35a8('0x1e')](_0x41d798,_0x13ab1d,this[_0x35a8('0x1a')],_0x35a8('0x1a'),_0x36cb14,_0x526e5c);});_0x27b4b6[_0x35a8('0x8')]['registerCustomCallback'](_0x35a8('0x4'),_0x35a8('0x1a'),_0x35a8('0x1'),_0x27b4b6[_0x35a8('0x8')][_0x35a8('0x11')](_0x35a8('0x4'),null,_0x35a8('0x9'))),_0x27b4b6[_0x35a8('0x8')][_0x35a8('0x18')](_0x35a8('0x4'),'tableCellProperties',_0x35a8('0x9'),(_0x4bbd87,_0x1d3789)=>this[_0x35a8('0x1f')](this[_0x35a8('0x1a')],_0x4bbd87,_0x1d3789)),_0x27b4b6[_0x35a8('0x8')][_0x35a8('0x18')]('formatBlock',_0x35a8('0x1a'),_0x35a8('0x25'),()=>!0x1);}_0x27b4b6[_0x35a8('0x5')][_0x35a8('0x27')](_0x1f34b3=>this[_0x35a8('0x1b')](_0x1f34b3));}['_handlePropertyChange'](_0x522da3,_0x1540ce,_0x4c163e,_0x58d396,_0x51e02b,_0x51e315){const _0x1eba8e=this[_0x35a8('0x2e')][_0x35a8('0x29')]['get']('TrackChangesEditing');this['editor'][_0x35a8('0x10')][_0x35a8('0x3')](_0x51e315[_0x35a8('0x13')],()=>{for(const _0x5c0b19 of _0x1540ce){if(this[_0x35a8('0xb')](_0x5c0b19,_0x58d396))_0x51e02b(_0x51e315);else{const _0x4cafe8={};for(const _0x3482a5 of _0x4c163e){const _0x58bbff=_0x5c0b19[_0x35a8('0x2c')](_0x3482a5);void 0x0!==_0x58bbff&&(_0x4cafe8[_0x3482a5]=_0x58bbff);}_0x51e02b(_0x51e315),_0x1eba8e['markBlockFormat'](_0x5c0b19,{'commandParams':[_0x4cafe8]},[],_0x58d396);}}});}[_0x35a8('0x1f')](_0x552470,_0x4ef150,_0x232e52){const _0x373277=_0x4ef150[0x0][_0x35a8('0x1d')]['nodeAfter'],_0x59741f=_0x232e52['commandParams'][0x0];this[_0x35a8('0x2e')][_0x35a8('0x10')][_0x35a8('0x26')](_0x13dcc5=>{for(const _0x798241 of _0x552470)void 0x0!==_0x59741f[_0x798241]?_0x13dcc5[_0x35a8('0x16')](_0x798241,_0x59741f[_0x798241],_0x373277):_0x13dcc5['removeAttribute'](_0x798241,_0x373277);});}[_0x35a8('0x1b')](_0x340465){if(_0x340465[_0x35a8('0x6')])switch(_0x340465['subType']){case _0x35a8('0x15'):return{'type':_0x35a8('0x19'),'content':_0x2f6ebb(this['editor'][_0x35a8('0x28')],'*Format:*\x20change\x20table\x20properties')};case _0x35a8('0x1a'):return{'type':_0x35a8('0x19'),'content':_0x2f6ebb(this[_0x35a8('0x2e')]['locale'],_0x35a8('0x2f'))};}}[_0x35a8('0xb')](_0x1db3de,_0x4b8015){const _0x3d8ad5=this['editor'][_0x35a8('0x29')][_0x35a8('0x33')]('TrackChangesEditing');for(const _0x22c9a7 of _0x3d8ad5['getSuggestions']({'skipNotAttached':!0x0})){const _0x1cc33f=_0x22c9a7['getContainedElement']();if(_0x22c9a7[_0x35a8('0x7')]===_0x4b8015&&_0x1cc33f===_0x1db3de)return _0x22c9a7;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d7a=['Template','enableCommand','insertTemplate','has','editor','plugins','get'];(function(_0x4815f9,_0x3d7af8){const _0x228820=function(_0x164353){while(--_0x164353){_0x4815f9['push'](_0x4815f9['shift']());}};_0x228820(++_0x3d7af8);}(_0x3d7a,0x193));const _0x2288=function(_0x4815f9,_0x3d7af8){_0x4815f9=_0x4815f9-0x0;let _0x228820=_0x3d7a[_0x4815f9];return _0x228820;};import{Plugin as _0xd878ef}from'ckeditor5/src/core';export default class yt extends _0xd878ef{['afterInit'](){const _0x1eb7a8=this[_0x2288('0x0')];_0x1eb7a8[_0x2288('0x1')][_0x2288('0x6')](_0x2288('0x3'))&&_0x1eb7a8[_0x2288('0x1')][_0x2288('0x2')]('TrackChangesEditing')[_0x2288('0x4')](_0x2288('0x5'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55bc=['locale','_descriptionFactory','isTouching','createRange','getNearestSelectionRange','editor','model','differ','schema','end','element','updateMarker','Title','suggestion','get','from','plugins','document','has','title-content','newRange','afterInit','start','nodeBefore','removeMarker','TrackChangesEditing'];(function(_0x543534,_0x55bc70){const _0x5d067a=function(_0x9f61a9){while(--_0x9f61a9){_0x543534['push'](_0x543534['shift']());}};_0x5d067a(++_0x55bc70);}(_0x55bc,0x1c6));const _0x5d06=function(_0x543534,_0x55bc70){_0x543534=_0x543534-0x0;let _0x5d067a=_0x55bc[_0x543534];return _0x5d067a;};import{Plugin as _0x38d89f}from'ckeditor5/src/core';import{getTranslation as _0x5535ed}from'../utils/common-translations';export default class St extends _0x38d89f{[_0x5d06('0x9')](){const _0x5f0eff=this[_0x5d06('0x13')];if(!_0x5f0eff[_0x5d06('0x4')][_0x5d06('0x6')](_0x5d06('0x0')))return;const _0x48ac73=_0x5f0eff[_0x5d06('0x4')][_0x5d06('0x2')](_0x5d06('0xd'));_0x48ac73[_0x5d06('0xf')]['registerElementLabel']('title-content',()=>_0x5535ed(_0x5f0eff[_0x5d06('0xe')],'ELEMENT_TITLE')),_0x5f0eff[_0x5d06('0x14')][_0x5d06('0x5')]['registerPostFixer'](_0x3bff97=>{let _0x2319b2=!0x1;const _0x4c9a02=Array[_0x5d06('0x3')](_0x5f0eff[_0x5d06('0x14')][_0x5d06('0x5')][_0x5d06('0x15')]['getChangedMarkers']());for(const {name:_0x36d4e8,data:_0x4b9008}of _0x4c9a02){const {group:_0x5188d7}=_0x48ac73['_splitMarkerName'](_0x36d4e8);if(_0x5d06('0x1')!==_0x5188d7||!_0x4b9008['newRange'])continue;const _0x38603f=_0x4b9008[_0x5d06('0x8')],_0x51df76=_0x38603f['end'][_0x5d06('0xb')];if(!_0x51df76||!_0x51df76['is'](_0x5d06('0x18'),_0x5d06('0x7')))continue;if(!_0x38603f[_0x5d06('0xa')][_0x5d06('0x10')](_0x38603f[_0x5d06('0x17')]))continue;const _0x34c25b=_0x5f0eff[_0x5d06('0x14')][_0x5d06('0x16')][_0x5d06('0x12')](_0x38603f[_0x5d06('0x17')],'forward');if(_0x34c25b&&_0x34c25b['isCollapsed']){const _0x5c758b=_0x3bff97[_0x5d06('0x11')](_0x38603f[_0x5d06('0xa')],_0x34c25b[_0x5d06('0xa')]);_0x5c758b['isEqual'](_0x38603f)||(_0x3bff97[_0x5d06('0x19')](_0x36d4e8,{'range':_0x5c758b}),_0x2319b2=!0x0);}_0x2319b2||(_0x3bff97[_0x5d06('0xc')](_0x36d4e8),_0x2319b2=!0x0);}return _0x2319b2;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a47=['has','TrackChangesEditing','redo','undo','plugins','editor','get','enableCommand'];(function(_0x33ea6c,_0x2a47a9){const _0x27ce19=function(_0x566d19){while(--_0x566d19){_0x33ea6c['push'](_0x33ea6c['shift']());}};_0x27ce19(++_0x2a47a9);}(_0x2a47,0x13e));const _0x27ce=function(_0x33ea6c,_0x2a47a9){_0x33ea6c=_0x33ea6c-0x0;let _0x27ce19=_0x2a47[_0x33ea6c];return _0x27ce19;};import{Plugin as _0x1e70a8}from'ckeditor5/src/core';export default class It extends _0x1e70a8{['afterInit'](){const _0x4dcde8=this[_0x27ce('0x7')],_0x1f407d=_0x4dcde8[_0x27ce('0x6')][_0x27ce('0x0')](_0x27ce('0x3'));_0x4dcde8['plugins'][_0x27ce('0x2')]('UndoEditing')&&(_0x1f407d[_0x27ce('0x1')](_0x27ce('0x5')),_0x1f407d[_0x27ce('0x1')](_0x27ce('0x4')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d98=['schema','bindElementToMarker','listItem','hasAttribute','addClass','name','includes','parent','previousPosition','elementEnd','type','createRangeOn','TrackChangesEditing','item','element','markerName','listIndent','isLimit','addHighlight','toViewElement','activeMarkers','isContent','getWalker','get','push','ck-suggestion-marker--active','isAtEnd','markerRange','getAttribute','getCustomProperty','nextSibling','insert','model','mapper','start','toViewPosition','writer'];(function(_0x39c1f3,_0x5d98b4){const _0xf2e59b=function(_0xb036cb){while(--_0xb036cb){_0x39c1f3['push'](_0x39c1f3['shift']());}};_0xf2e59b(++_0x5d98b4);}(_0x5d98,0x156));const _0xf2e5=function(_0x39c1f3,_0x5d98b4){_0x39c1f3=_0x39c1f3-0x0;let _0xf2e59b=_0x5d98[_0x39c1f3];return _0xf2e59b;};export function getRangesWithAttribute(_0x3bc743,_0x5d8f11,_0x1a2a51){const _0x1d2ec9=[];for(const _0xc5154f of _0x5d8f11['getItems']())_0xc5154f[_0xf2e5('0x1f')](_0x3bc743)&&_0x1d2ec9[_0xf2e5('0xf')](_0x1a2a51[_0xf2e5('0x2')](_0xc5154f));return _0x1d2ec9;}export function getElementsAffectedByListItemRename(_0x1c6aec){const _0x33d489=[];if(_0x1c6aec['is']('element',_0xf2e5('0x1e'))){let _0x5b86ef=_0x1c6aec['nextSibling'];for(;_0x5b86ef&&_0x5b86ef['is'](_0xf2e5('0x5'),_0xf2e5('0x1e'))&&_0x5b86ef[_0xf2e5('0x13')](_0xf2e5('0x7'))>0x0;)_0x33d489[_0xf2e5('0xf')](_0x5b86ef),_0x5b86ef=_0x5b86ef[_0xf2e5('0x15')];}return _0x33d489;}export function downcastSplitMergeMarker(_0x221520,_0x417517,{showActiveMarker:_0x438449=!0x0}={}){const _0x107a68=_0x221520['plugins'][_0xf2e5('0xe')](_0xf2e5('0x3'));return(_0x5cfdc6,_0x561542,_0x390ba9)=>{if(!_0x390ba9['consumable']['test'](_0x561542[_0xf2e5('0x12')],_0x5cfdc6[_0xf2e5('0x21')]))return;const _0x4cf287=_0x561542[_0xf2e5('0x12')][_0xf2e5('0xd')](),_0x323059=_0x561542['markerRange'][_0xf2e5('0x19')],_0x3fd7d4=_0x221520[_0xf2e5('0x17')][_0xf2e5('0x1c')];let _0x54b8c9=null,_0x53a576=null,_0x1b990e=!0x1,_0x3dd4bb=!0x1;for(const _0x5afa4a of _0x4cf287){const _0x3a4c3e=_0x5afa4a[_0xf2e5('0x4')];_0x1b990e=_0x1b990e||_0x3fd7d4[_0xf2e5('0xc')](_0x3a4c3e);const _0x48facc=_0x390ba9['mapper'][_0xf2e5('0xa')](_0x3a4c3e);if(_0x48facc&&_0x48facc[_0xf2e5('0x14')](_0xf2e5('0x9')))return;_0xf2e5('0x0')==_0x5afa4a[_0xf2e5('0x1')]&&(_0x3fd7d4['isBlock'](_0x3a4c3e)&&!_0x3fd7d4[_0xf2e5('0x8')](_0x3a4c3e)&&(_0x3a4c3e['nextSibling']||_0x323059[_0xf2e5('0x11')]?_0x54b8c9&&_0x54b8c9[_0xf2e5('0x23')]==_0x3a4c3e||(_0x54b8c9=_0x3a4c3e,_0x551de2(_0x5afa4a[_0xf2e5('0x24')]),_0x3dd4bb=!0x0):_0x53a576=_0x53a576||_0x5afa4a[_0xf2e5('0x24')]));}function _0x551de2(_0x19a1cb){const _0x3b3977=_0x390ba9[_0xf2e5('0x1b')]['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x417517}),_0x123cdd=_0x390ba9['mapper'][_0xf2e5('0x1a')](_0x19a1cb);_0x438449&&_0x107a68[_0xf2e5('0xb')][_0xf2e5('0x22')](_0x561542['markerName'])&&_0x390ba9[_0xf2e5('0x1b')][_0xf2e5('0x20')](_0xf2e5('0x10'),_0x3b3977),_0x390ba9[_0xf2e5('0x1b')][_0xf2e5('0x16')](_0x123cdd,_0x3b3977),_0x390ba9[_0xf2e5('0x18')][_0xf2e5('0x1d')](_0x3b3977,_0x561542[_0xf2e5('0x6')]);}_0x1b990e||_0x3dd4bb||!_0x53a576||_0x551de2(_0x53a576);};}
|