@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231215.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xc4ec=['suggestionLoaded','join','suggestionUnloaded','commands','removeMarker','add','getAllAdjacentSuggestions','newRange','cell','columnInsertionRanges','createRangeIn','move','tableCellHorizontalAlignment','*Replace\x20table\x20cells*','endRow','stop','containsRange','markerName','tablePasteCell','differ','has','nodeAfter','discard','registerPostFixer','includes','markerAttributes','some','end','deletionRanges','showSuggestionHighlights','map','editor','getMarkers','markMultiRangeBlockFormat','_getCoordsForCells','document','suggestion','_isForcedDefaultExecutionBlock','unwrap','conversion','element','insertRows','getContainedElement','findAncestor','subType','next','selection','registerDescriptionCallback','ck-suggestion-marker-insertion','plugins','removeMarkers','wrap','_suggestionFactory','createTableWalker','removeColumns','editingDowncast','insertColumns','Users','getSuggestions','markMultiRangeInsertion','getColumns','tableCellBorderStyle','get','TableClipboard','author','tablePasteChainId','tableCellSuggestion','insertion','isInContent','_createdBatches','find','markMultiRangeDeletion','name','paragraph','for','activeMarkers','tablePasteRow','markerToHighlight','high','createElement','tableCellBackgroundColor','getItems','isEqual','getTableIfOnlyTableInContent','isEmpty','last','every','register','getSuggestionCallback','getRange','cells','reduce','columns','value','insertionRanges','registerCustomCallback','oldRange','getChild','model','type','return','set','push','$graveyard','locale','setAttributes','_descriptionFactory','_tablePostFixingSubtypes','suggestion:formatBlock:tablePasteCell','_splitMarkerName','previousSibling','schema','getRows','ck-suggestion-marker--active','getChangedMarkers','ck-suggestion-marker','fill','content','from','TableUtils','insert','createPositionBefore','trackChanges','elementToElement','position','keys','redo','table','_replaceTableSlotCell','getRanges','dataDowncast','markers','insertContent','previous','rowInsertionIndexes','row','formatBlock','tableCellVerticalAlignment','getSuggestion','createRangeOn','forceDefaultExecution','tablePasteColumn','tableCellBorderWidth','deletion','start','view','removeRows','length','updateMarker','tablePaste','hasSuggestion','accept','remove','getChildren','columnInsertionIndexes','rowInsertionRanges','tableCell','fromEntries','getRowIndexes','tableCellPadding','attributes','first','batch','startsWith','requires','change','filter'];(function(_0x10f7eb,_0xc4ec75){const _0x16ae4f=function(_0x57d0b3){while(--_0x57d0b3){_0x10f7eb['push'](_0x10f7eb['shift']());}};_0x16ae4f(++_0xc4ec75);}(_0xc4ec,0xab));const _0x16ae=function(_0x10f7eb,_0xc4ec75){_0x10f7eb=_0x10f7eb-0x0;let _0x16ae4f=_0xc4ec[_0x10f7eb];return _0x16ae4f;};import{getTranslation as _0x53f94}from'../utils/common-translations';import{Plugin as _0x5baecc}from'ckeditor5/src/core';import{uid as _0x179fd7,priorities as _0x57fde8}from'ckeditor5/src/utils';import _0x4f44a5 from'./table';const le=[_0x16ae('0x8a'),'tableCellBorderColor',_0x16ae('0x39'),_0x16ae('0x8'),_0x16ae('0x85'),_0x16ae('0x4c'),_0x16ae('0x9b')],ae=Object[_0x16ae('0x99')](le['map'](_0x4b4612=>[_0x4b4612,null]));export default class At extends _0x5baecc{static get[_0x16ae('0xa0')](){return[_0x4f44a5];}['afterInit'](){const _0x230f52=this[_0x16ae('0x1b')];if(!_0x230f52[_0x16ae('0x2d')]['has'](_0x16ae('0x3b')))return;const _0x54c99a=_0x230f52['plugins']['get']('TrackChangesEditing'),_0x110d6f=_0x230f52[_0x16ae('0x2d')][_0x16ae('0x3a')](_0x16ae('0x73')),_0x57349d=_0x230f52['plugins'][_0x16ae('0x3a')](_0x4f44a5),_0x416e33=_0x230f52['plugins'][_0x16ae('0x3a')](_0x16ae('0x3b'));_0x57349d[_0x16ae('0x67')]['push'](_0x16ae('0x48'),_0x16ae('0x89')),_0x230f52[_0x16ae('0x5e')][_0x16ae('0x6b')][_0x16ae('0x53')](_0x16ae('0x3e'),{'allowIn':_0x16ae('0x98'),'allowContentOf':_0x16ae('0x98'),'isLimit':!0x0}),_0x230f52[_0x16ae('0x23')][_0x16ae('0x77')]({'model':_0x16ae('0x3e'),'view':'suggestion-td'});let _0x158d48=null;_0x230f52[_0x16ae('0x5e')]['on'](_0x16ae('0x80'),(_0xe1bfe5,_0x4c2242)=>{const [_0x2b4afc,_0x47746c]=_0x4c2242,_0x3ba99b=_0x4c2242[_0x4c2242[_0x16ae('0x8f')]-0x1];_0x3ba99b&&_0x3ba99b[_0x16ae('0x88')]||_0x54c99a[_0x16ae('0x21')]||this[_0x16ae('0x1b')][_0x16ae('0xa6')][_0x16ae('0x3a')](_0x16ae('0x76'))[_0x16ae('0x59')]&&function(_0x400dcb,_0x6bab5c,_0x2b2a28,_0xf0866c,_0x91a55f){if(_0x6bab5c&&!_0x6bab5c['is']('documentSelection'))return!0x1;const _0x29dff6=_0x91a55f[_0x16ae('0x4f')](_0x400dcb,_0x2b2a28);if(!_0x29dff6||!fe(_0x29dff6,void 0x0,_0xf0866c))return!0x1;const _0x21a6c0=_0xf0866c['getSelectionAffectedTableCells'](_0x2b2a28[_0x16ae('0x1f')][_0x16ae('0x2a')]);if(!_0x21a6c0[_0x16ae('0x8f')])return!0x1;const _0x3c1082=_0x21a6c0[0x0][_0x16ae('0x27')](_0x16ae('0x7b')),_0x50b155=_0xf0866c[_0x16ae('0x9a')](_0x21a6c0),_0x8a656b=_0xf0866c['getColumnIndexes'](_0x21a6c0),_0x515a45={'startRow':_0x50b155[_0x16ae('0x9d')],'endRow':_0x50b155[_0x16ae('0x51')],'startColumn':_0x8a656b[_0x16ae('0x9d')],'endColumn':_0x8a656b[_0x16ae('0x51')]};return 0x1==_0x21a6c0[_0x16ae('0x8f')]&&(_0x515a45[_0x16ae('0xa')]+=_0xf0866c[_0x16ae('0x6c')](_0x29dff6)-0x1,_0x515a45['endColumn']+=_0xf0866c[_0x16ae('0x38')](_0x29dff6)-0x1),fe(_0x3c1082,_0x515a45,_0xf0866c);}(_0x2b4afc,_0x47746c,_0x230f52['model'],_0x110d6f,_0x416e33)&&(_0xe1bfe5[_0x16ae('0xb')](),_0x158d48={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x230f52['model'][_0x16ae('0xa1')](()=>{_0x230f52['model'][_0x16ae('0x80')](_0x4c2242[0x0],_0x4c2242[0x1],_0x4c2242[0x2],{'forceDefaultExecution':!0x0});const _0x4521f8=_0x179fd7(),{rowInsertionRanges:_0x580639,columnInsertionRanges:_0x1edfde,insertionRanges:_0x464288,deletionRanges:_0x38393d,cells:_0x590a05}=_0x158d48;_0x580639[_0x16ae('0x8f')]&&_0x54c99a[_0x16ae('0x37')](_0x580639,'tablePasteRow',{'tablePasteChainId':_0x4521f8}),_0x1edfde['length']&&_0x54c99a[_0x16ae('0x37')](_0x1edfde,_0x16ae('0x89'),{'tablePasteChainId':_0x4521f8}),_0x464288[_0x16ae('0x8f')]&&_0x54c99a[_0x16ae('0x37')](_0x464288,_0x16ae('0x91'),{'tablePasteChainId':_0x4521f8,'skipNestingCheck':!0x0}),_0x38393d[_0x16ae('0x8f')]&&_0x54c99a[_0x16ae('0x43')](_0x38393d,_0x16ae('0x91'),{'tablePasteChainId':_0x4521f8,'skipNestingCheck':!0x0});const _0x39ec68=_0x54c99a[_0x16ae('0x1d')](_0x590a05[_0x16ae('0x1a')](({element:_0xc6afd3})=>_0xc6afd3),{'formatGroupId':_0x179fd7()},[],_0x16ae('0xe'),{'tablePasteChainId':_0x4521f8});if(_0x39ec68){const _0x591e2e=_0x39ec68[_0x16ae('0x1c')](),_0x4aa1b0=[];for(const {element:_0x54073b,attributes:_0x2dcd96}of _0x590a05){if(!_0x2dcd96)continue;const _0x16370d=_0x230f52[_0x16ae('0x5e')][_0x16ae('0x87')](_0x54073b),_0xae3c45=_0x591e2e[_0x16ae('0x42')](_0x14b0e5=>_0x14b0e5['getRange']()[_0x16ae('0x4e')](_0x16370d));_0xae3c45&&_0x4aa1b0[_0x16ae('0x62')]([_0xae3c45[_0x16ae('0x44')],_0x2dcd96]);}_0x4aa1b0['length']&&_0x39ec68['setAttribute']('markerAttributes',Object[_0x16ae('0x99')](_0x4aa1b0));}_0x158d48=null;}));},{'priority':_0x57fde8[_0x16ae('0x4a')]+0xa}),_0x230f52[_0x16ae('0x2d')][_0x16ae('0x3a')](_0x16ae('0x3b'))['on'](_0x16ae('0x7c'),(_0x4d298a,_0x1df5d4)=>{const [_0xb58a14,_0x3ad70d,,_0x535283]=_0x1df5d4;if(!_0x158d48)return;_0x4d298a['stop']();const _0x171393=_0xb58a14[_0x16ae('0x4')],_0x18f7a1=_0x3ad70d,_0x5ed6fd=ce(_0x171393),_0x391c8f=ce(_0x18f7a1);_0x4d298a[_0x16ae('0x60')]=_0x171393;let _0x490672=null,_0x5a3fa1=null;if(_0x391c8f||_0x5ed6fd){if(_0x5ed6fd&&!_0x391c8f){_0x535283[_0x16ae('0x94')](_0x171393[_0x16ae('0x5d')](0x0));for(const _0x1663ff of Array[_0x16ae('0x72')](_0x18f7a1[_0x16ae('0x95')]()))_0x535283[_0x16ae('0x74')](_0x1663ff,_0x171393,_0x16ae('0x17'));const _0x212e43=_0x158d48[_0x16ae('0x82')][_0x16ae('0x14')](_0xb58a14[_0x16ae('0x83')]),_0x7acfe8=_0x158d48['columnInsertionIndexes'][_0x16ae('0x14')](_0xb58a14['column']);_0x212e43||_0x7acfe8||(_0x490672=_0x535283[_0x16ae('0x6')](_0x171393));}else _0x391c8f&&!_0x5ed6fd&&(_0x5a3fa1=_0x535283[_0x16ae('0x6')](_0x171393));}else{const _0x25e9d8=_0x535283['createElement'](_0x16ae('0x3e')),_0x368f82=_0x535283[_0x16ae('0x4b')](_0x16ae('0x3e'));_0x535283[_0x16ae('0x2f')](_0x535283[_0x16ae('0x6')](_0x171393),_0x368f82),_0x535283[_0x16ae('0x74')](_0x25e9d8,_0x171393,0x0);for(const _0x47d3eb of Array[_0x16ae('0x72')](_0x18f7a1[_0x16ae('0x95')]()))_0x535283[_0x16ae('0x74')](_0x47d3eb,_0x25e9d8,'end');_0x490672=_0x535283[_0x16ae('0x87')](_0x25e9d8),_0x5a3fa1=_0x535283[_0x16ae('0x87')](_0x368f82);}const _0x294d68=Array[_0x16ae('0x72')](_0x18f7a1['getAttributes']())[_0x16ae('0xa2')](([_0x22f9e7])=>le[_0x16ae('0x14')](_0x22f9e7));_0x158d48[_0x16ae('0x56')][_0x16ae('0x62')]({'element':_0x171393,'attributes':_0x294d68['length']?Object[_0x16ae('0x99')](_0x294d68):null}),_0x490672&&_0x158d48[_0x16ae('0x5a')][_0x16ae('0x62')](_0x490672),_0x5a3fa1&&_0x158d48[_0x16ae('0x18')][_0x16ae('0x62')](_0x5a3fa1);},{'priority':_0x16ae('0x4a')}),_0x110d6f['on'](_0x16ae('0x34'),(_0x2076bf,_0x5c4058)=>{const [_0x3c3660,_0x234b48={}]=_0x5c4058;if(!_0x158d48)return;const _0x45c317=_0x234b48['at']||0x0,_0x32e45f=_0x234b48[_0x16ae('0x58')]||0x1;_0x158d48[_0x16ae('0x96')]=new Array(_0x32e45f)[_0x16ae('0x70')](_0x45c317)[_0x16ae('0x1a')]((_0x5aaaa0,_0x15b7bb)=>_0x5aaaa0+_0x15b7bb);for(const {cell:_0x1b9cc9}of _0x110d6f[_0x16ae('0x31')](_0x3c3660,{'startColumn':_0x45c317,'endColumn':_0x45c317+_0x32e45f-0x1}))_0x158d48[_0x16ae('0x5')][_0x16ae('0x62')](_0x230f52[_0x16ae('0x5e')]['createRangeOn'](_0x1b9cc9));},{'priority':'low'}),_0x110d6f['on'](_0x16ae('0x25'),(_0x3a9620,_0x4a374e)=>{const [_0x2c599b,_0x40a65a={}]=_0x4a374e;if(!_0x158d48)return;const _0x5783bd=_0x40a65a['at']||0x0,_0x497a26=_0x40a65a['rows']||0x1;_0x158d48[_0x16ae('0x82')]=new Array(_0x497a26)[_0x16ae('0x70')](_0x5783bd)['map']((_0x137cf5,_0x211d11)=>_0x137cf5+_0x211d11);for(const {cell:_0x572e69}of _0x110d6f[_0x16ae('0x31')](_0x2c599b,{'startRow':_0x5783bd,'endRow':_0x5783bd+_0x497a26-0x1}))_0x158d48[_0x16ae('0x97')][_0x16ae('0x62')](_0x230f52[_0x16ae('0x5e')][_0x16ae('0x87')](_0x572e69));},{'priority':'low'}),_0x54c99a[_0x16ae('0x66')][_0x16ae('0x2b')](_0x21075c=>{if(_0x21075c[_0x16ae('0x28')]&&_0x21075c['subType'][_0x16ae('0x9f')](_0x16ae('0x91')))return _0x21075c[_0x16ae('0x81')]?{}:{'type':_0x16ae('0x3f'),'content':_0x53f94(_0x230f52[_0x16ae('0x64')],_0x16ae('0x9'))};});const _0x3c4a90=()=>!0x1;for(const _0x3504c6 of[_0x16ae('0x91'),_0x16ae('0x89'),'tablePasteRow',_0x16ae('0xe')])_0x54c99a[_0x16ae('0x30')][_0x16ae('0x5b')](_0x16ae('0x3f'),_0x3504c6,'join',_0x3c4a90),_0x54c99a[_0x16ae('0x30')]['registerCustomCallback'](_0x16ae('0x8b'),_0x3504c6,_0x16ae('0xa4'),_0x3c4a90),_0x54c99a['_suggestionFactory'][_0x16ae('0x5b')](_0x16ae('0x84'),_0x3504c6,'join',_0x3c4a90);_0x54c99a[_0x16ae('0x30')][_0x16ae('0x5b')]('formatBlock',_0x16ae('0xe'),_0x16ae('0x12'),_0x3c4a90),_0x54c99a[_0x16ae('0x30')]['registerCustomCallback']('formatBlock',_0x16ae('0xe'),_0x16ae('0x93'),(_0x3f2e3a,_0x3d7d3f,_0x2fed8e)=>{const _0x3f2213=_0x3f2e3a[_0x16ae('0x1a')](_0x2f6616=>_0x2f6616[_0x16ae('0x26')]())['filter'](_0xfaa9c2=>_0xfaa9c2),_0x2ee665=new Map(_0x3f2213[_0x16ae('0x1a')](_0x24211e=>[_0x24211e,null]));if(_0x158d48)for(const {element:_0x22824a,attributes:_0x3d2a1e}of _0x158d48['cells'])_0x3d2a1e&&_0x2ee665[_0x16ae('0x61')](_0x22824a,_0x3d2a1e);else{if(_0x2fed8e&&_0x2fed8e['markerAttributes'])for(const [_0x1ef53f,_0x2748dc]of Object['entries'](_0x2fed8e[_0x16ae('0x15')])){const _0x4877cf=_0x230f52[_0x16ae('0x5e')][_0x16ae('0x7f')]['get'](_0x1ef53f),_0x5071fe=_0x4877cf?_0x4877cf[_0x16ae('0x55')]()[_0x16ae('0x26')]():null;_0x5071fe&&_0x2ee665['set'](_0x5071fe,_0x2748dc);}}_0x230f52[_0x16ae('0x5e')][_0x16ae('0xa1')](_0x29e1c9=>{for(const [_0x307bbf,_0x160346]of _0x2ee665)_0x29e1c9[_0x16ae('0x65')]({...ae,..._0x160346},_0x307bbf);});});const _0x3dd8af=(_0x110dfe,_0x572499)=>{_0x54c99a[_0x16ae('0x30')]['registerCustomCallback'](_0x110dfe,_0x16ae('0x91'),_0x572499,(_0x28713d,_0x227762,_0x154d28)=>{_0x230f52['model'][_0x16ae('0xa1')](_0x42f413=>{const _0x1b1bfe=[];for(const _0x1968e3 of _0x28713d){const _0x5dfd97=_0x1968e3[_0x16ae('0x8c')][_0x16ae('0x11')];_0x5dfd97['is']('element',_0x16ae('0x3e'))&&_0x1b1bfe['push'](_0x5dfd97);}_0x54c99a[_0x16ae('0x30')][_0x16ae('0x54')](_0x110dfe,null,_0x572499)(_0x28713d,_0x227762,_0x154d28);for(const _0x307c03 of _0x1b1bfe)_0x16ae('0x63')!=_0x307c03['root']['rootName']&&_0x42f413['unwrap'](_0x307c03);});});};_0x3dd8af(_0x16ae('0x3f'),_0x16ae('0x93')),_0x3dd8af(_0x16ae('0x3f'),_0x16ae('0x12')),_0x3dd8af('deletion',_0x16ae('0x93')),_0x3dd8af(_0x16ae('0x8b'),'discard'),_0x54c99a[_0x16ae('0x30')][_0x16ae('0x5b')](_0x16ae('0x3f'),_0x16ae('0x48'),_0x16ae('0x12'),_0x22d23f=>{const _0x51f9e3=_0x22d23f[_0x16ae('0x1a')](_0x70d179=>_0x70d179['getContainedElement']()),_0x58273a=_0x51f9e3[0x0][_0x16ae('0x27')](_0x16ae('0x7b')),{minRow:_0x215095,maxRow:_0x541d0f}=_0x57349d[_0x16ae('0x1e')](_0x51f9e3);_0x110d6f[_0x16ae('0x8e')](_0x58273a,{'at':_0x215095,'rows':_0x541d0f-_0x215095+0x1});}),_0x54c99a[_0x16ae('0x30')]['registerCustomCallback'](_0x16ae('0x3f'),_0x16ae('0x89'),_0x16ae('0x12'),_0x397f52=>{const _0x4068fd=_0x397f52[_0x16ae('0x1a')](_0x4abdba=>_0x4abdba[_0x16ae('0x26')]()),_0x521561=_0x4068fd[0x0]['findAncestor'](_0x16ae('0x7b')),{minColumn:_0x40a2da,maxColumn:_0x1a46cc}=_0x57349d['_getCoordsForCells'](_0x4068fd);_0x110d6f[_0x16ae('0x32')](_0x521561,{'at':_0x40a2da,'columns':_0x1a46cc-_0x40a2da+0x1});});const _0x58414c=(_0x2988bf,_0x7ecd99)=>{if(!_0x7ecd99[_0x16ae('0x28')]||!_0x7ecd99[_0x16ae('0x28')]['startsWith'](_0x16ae('0x91')))return;const _0x413841=_0x7ecd99['attributes'][_0x16ae('0x3d')],_0x246a23=_0x54c99a[_0x16ae('0x36')]()[_0x16ae('0xa2')](_0xb076c=>_0xb076c[_0x16ae('0x40')]&&_0xb076c[_0x16ae('0x9c')]&&_0xb076c[_0x16ae('0x9c')][_0x16ae('0x3d')]==_0x413841);_0x246a23[_0x16ae('0x8f')]&&_0x7ecd99[_0x16ae('0x2')]()[_0x16ae('0x8f')]!=_0x246a23[_0x16ae('0x8f')]&&_0x246a23[_0x16ae('0x57')]((_0x336143,_0x2e9ca7)=>(_0x336143[_0x16ae('0x29')]=_0x2e9ca7,_0x2e9ca7['previous']=_0x336143,_0x2e9ca7));};function _0x16fa38(_0x11230c,_0x24376d=!0x0){const {id:_0x3a40f7}=_0x54c99a[_0x16ae('0x69')](_0x11230c[_0x16ae('0xd')]),_0x4a3909=[_0x16ae('0x6f'),_0x16ae('0x2c')],_0x4e9899=_0x54c99a[_0x16ae('0x47')]['includes'](_0x11230c['markerName']);return _0x4e9899&&_0x4a3909[_0x16ae('0x62')](_0x16ae('0x6d')),{'classes':_0x4a3909,'attributes':{'data-suggestion':_0x3a40f7},'priority':_0x4e9899&&_0x24376d?0xbc2:0xbb8};}_0x54c99a['on'](_0x16ae('0xa3'),_0x58414c,{'priority':'high'}),_0x54c99a['on'](_0x16ae('0xa5'),_0x58414c,{'priority':_0x16ae('0x4a')}),_0x230f52[_0x16ae('0x5e')]['document']['registerPostFixer'](()=>{let _0x22dcfe=!0x1;const _0x234333=Array[_0x16ae('0x72')](_0x230f52[_0x16ae('0x5e')][_0x16ae('0x1f')][_0x16ae('0xf')][_0x16ae('0x6e')]());for(const {name:_0x2d0d6b,data:_0x150b8e}of _0x234333){const {group:_0x297755,type:_0x161951,id:_0x4e028c}=_0x54c99a['_splitMarkerName'](_0x2d0d6b);if(_0x16ae('0x20')!=_0x297755||_0x16ae('0x8b')!=_0x161951||_0x150b8e[_0x16ae('0x5c')])continue;if(!_0x54c99a[_0x16ae('0x92')](_0x4e028c))continue;const _0x59f78f=_0x54c99a[_0x16ae('0x86')](_0x4e028c)['getRanges'](),_0x17fbcd=_0x230f52[_0x16ae('0x2d')]['get'](_0x16ae('0x35'))['me'];for(const _0x37ccd3 of _0x54c99a['getSuggestions']()){if(!_0x37ccd3['isInContent']||_0x37ccd3['author']!=_0x17fbcd)continue;if(_0x16ae('0x84')!=_0x37ccd3[_0x16ae('0x5f')]||_0x16ae('0xe')!=_0x37ccd3[_0x16ae('0x28')])continue;if(_0x37ccd3[_0x16ae('0x7d')]()[_0x16ae('0x52')](_0x52d66a=>_0x59f78f[_0x16ae('0x16')](_0x59f0c6=>_0x59f0c6[_0x16ae('0xc')](_0x52d66a,!0x0))))for(const _0x381e10 of _0x37ccd3[_0x16ae('0x2')]())_0x381e10[_0x16ae('0x40')]&&(_0x381e10[_0x16ae('0x12')](),_0x22dcfe=!0x0);}}return _0x22dcfe;}),_0x230f52['model'][_0x16ae('0x1f')]['registerPostFixer'](_0x1c4647=>{const _0x153819=_0x230f52[_0x16ae('0xa6')][_0x16ae('0x3a')](_0x16ae('0x7a'));if(!_0x153819||!_0x153819[_0x16ae('0x41')][_0x16ae('0x10')](_0x1c4647[_0x16ae('0x9e')]))return!0x1;let _0x210f42=!0x1;const _0x32490a=_0x230f52[_0x16ae('0x2d')]['get'](_0x16ae('0x35'))['me'],_0x197213=_0x230f52['model'][_0x16ae('0x1f')][_0x16ae('0xf')]['getChanges'](),_0x5671ad=Array[_0x16ae('0x72')](_0x230f52[_0x16ae('0x5e')]['document'][_0x16ae('0xf')][_0x16ae('0x6e')]())['filter'](({name:_0x344166,data:_0x1b176b})=>{const {group:_0x1f9e26,subType:_0x445e84,authorId:_0x1c2f3a}=_0x54c99a[_0x16ae('0x69')](_0x344166);return _0x16ae('0x20')==_0x1f9e26&&'tablePaste'==_0x445e84&&_0x1c2f3a==_0x32490a['id']&&!_0x1b176b[_0x16ae('0x5c')];});for(const _0x2f2206 of _0x197213){if(_0x16ae('0x74')!=_0x2f2206[_0x16ae('0x5f')]||'tableCellSuggestion'!=_0x2f2206['name']||0x1!=_0x2f2206[_0x16ae('0x8f')])continue;const _0x428088=_0x1c4647['createRange'](_0x2f2206['position'],_0x2f2206[_0x16ae('0x78')]['getShiftedBy'](0x1));if(!_0x5671ad[_0x16ae('0x42')](({data:_0x533078})=>_0x533078['newRange'][_0x16ae('0x4e')](_0x428088)))for(const {name:_0x4e2c88,data:_0x53dbde}of _0x5671ad)if(_0x428088[_0x16ae('0xc')](_0x53dbde[_0x16ae('0x3')])){_0x1c4647[_0x16ae('0x90')](_0x4e2c88,{'range':_0x428088}),_0x210f42=!0x0;break;}}return _0x210f42;}),_0x230f52[_0x16ae('0x5e')]['document'][_0x16ae('0x13')](_0x16d904=>{let _0x5e2e45=!0x1;const _0x58ef81=_0x230f52[_0x16ae('0x2d')][_0x16ae('0x3a')](_0x16ae('0x35'))['me'],_0x46d6de=_0x54c99a[_0x16ae('0x36')]()[_0x16ae('0xa2')](_0xf38796=>_0xf38796[_0x16ae('0x40')]&&_0xf38796[_0x16ae('0x3c')]==_0x58ef81),_0x318a60=new Set(),_0x515ff6=new Set();for(const _0x49fbe4 of _0x46d6de)if(_0x16ae('0x91')==_0x49fbe4[_0x16ae('0x28')])for(const _0x55ae79 of _0x49fbe4['getMarkers']()){const _0x44a25c=_0x55ae79[_0x16ae('0x55')]()['getContainedElement']();if(_0x44a25c){if(_0x44a25c['is']('element',_0x16ae('0x3e'))&&ce(_0x44a25c)){_0x49fbe4[_0x16ae('0x0')](_0x55ae79[_0x16ae('0x44')]),_0x318a60[_0x16ae('0x1')](_0x44a25c),_0x5e2e45=!0x0;const _0x1a4f59=_0x44a25c['nextSibling'],_0x1e5344=_0x44a25c[_0x16ae('0x6a')],_0x3441fc=_0x1a4f59&&_0x1a4f59['is']('element',_0x16ae('0x3e')),_0x4f4a21=_0x1e5344&&_0x1e5344['is']('element',_0x16ae('0x3e'));_0x3441fc&&!_0x318a60[_0x16ae('0x10')](_0x1a4f59)&&_0x515ff6['add'](_0x1a4f59),_0x4f4a21&&!_0x318a60[_0x16ae('0x10')](_0x1e5344)&&_0x515ff6[_0x16ae('0x1')](_0x1e5344);}else _0x44a25c['is'](_0x16ae('0x24'),_0x16ae('0x45'))&&_0x44a25c['isEmpty']&&(_0x49fbe4['removeMarker'](_0x55ae79[_0x16ae('0x44')]),_0x5e2e45=!0x0);}}else{if('tablePasteCell'==_0x49fbe4[_0x16ae('0x28')]){if(!_0x49fbe4['attributes']||!_0x49fbe4[_0x16ae('0x9c')][_0x16ae('0x3d')])continue;const _0x4ce3d1=_0x49fbe4[_0x16ae('0x9c')][_0x16ae('0x15')];if(_0x4ce3d1&&Object[_0x16ae('0x79')](_0x4ce3d1)[_0x16ae('0x8f')])continue;const _0x40dbaf=_0x49fbe4[_0x16ae('0x9c')][_0x16ae('0x3d')];let _0x2746fb=!0x0,_0x5e235b=!0x0;for(const _0x17c981 of _0x46d6de)if(_0x17c981[_0x16ae('0x28')]&&_0x17c981['subType'][_0x16ae('0x9f')](_0x16ae('0x91'))){if(!_0x17c981['attributes'][_0x16ae('0x3d')]){_0x5e235b=!0x1;break;}if(_0x17c981['id']!=_0x49fbe4['id']&&_0x17c981[_0x16ae('0x9c')][_0x16ae('0x3d')]==_0x40dbaf){_0x2746fb=!0x1;break;}}_0x5e235b&&_0x2746fb&&(_0x49fbe4[_0x16ae('0x2e')](),_0x5e2e45=!0x0);}}for(const _0x435a6d of _0x318a60)_0x16d904['remove'](_0x435a6d);for(const _0x45c254 of _0x515ff6)_0x16d904[_0x16ae('0x22')](_0x45c254);return _0x5e2e45;}),_0x230f52[_0x16ae('0x23')][_0x16ae('0x46')](_0x16ae('0x33'))[_0x16ae('0x49')]({'model':_0x16ae('0x68'),'view':(_0x5c9a21,_0x31e596)=>_0x16fa38(_0x5c9a21),'converterPriority':_0x16ae('0x4a')}),_0x230f52['conversion']['for'](_0x16ae('0x7e'))[_0x16ae('0x49')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4e0e8d,_0x4b51da)=>_0x4b51da['options'][_0x16ae('0x19')]?_0x16fa38(_0x4e0e8d,!0x1):null,'converterPriority':_0x16ae('0x4a')});const _0x2641d0=_0x230f52['editing'][_0x16ae('0x8d')];this['listenTo'](_0x2641d0[_0x16ae('0x1f')],'clipboardOutput',(_0x568354,_0x271a61)=>{const _0x13d948=[];for(const _0x5d1967 of _0x2641d0[_0x16ae('0x6')](_0x271a61[_0x16ae('0x71')])[_0x16ae('0x4d')]())_0x5d1967['is'](_0x16ae('0x24'),'suggestion-td')&&_0x13d948['push'](_0x5d1967);_0x2641d0['change'](_0x453055=>{for(const _0x254a56 of _0x13d948)_0x453055[_0x16ae('0x7')](_0x453055[_0x16ae('0x6')](_0x254a56),_0x453055[_0x16ae('0x75')](_0x254a56)),_0x453055['remove'](_0x254a56);});});}}function ce(_0x28e3f0){if(_0x28e3f0[_0x16ae('0x50')])return!0x0;const _0x52762b=_0x28e3f0[_0x16ae('0x5d')](0x0);return _0x52762b['is']('element',_0x16ae('0x45'))&&_0x52762b[_0x16ae('0x50')];}function fe(_0xb86d80,_0x4f6f05={},_0x264405){for(const {isAnchor:_0x5d8278,cellHeight:_0x485dcc,cellWidth:_0x3acb52}of _0x264405[_0x16ae('0x31')](_0xb86d80,{'includeAllSlots':!0x0,..._0x4f6f05}))if(!_0x5d8278||0x1!=_0x485dcc||0x1!=_0x3acb52)return!0x1;return!0x0;}
|
|
23
|
+
const _0x222c=['suggestionLoaded','formatBlock','from','keys','dataDowncast','_getCoordsForCells','createPositionBefore','getColumns','join','tablePasteRow','map','_suggestionFactory','tableCellBorderColor','removeColumns','tablePasteCell','conversion','ck-suggestion-marker','getChangedMarkers','getMarkers','commands','subType','markerAttributes','columnInsertionIndexes','find','getChildren','markMultiRangeInsertion','view','ck-suggestion-marker-insertion','startsWith','rootName','deletionRanges','type','listenTo','set','redo','getContainedElement','nextSibling','registerPostFixer','findAncestor','tableCellSuggestion','getSuggestions','remove','tablePasteChainId','removeRows','getRows','move','plugins','columnInsertionRanges','editingDowncast','rowInsertionIndexes','markers','cell','suggestion','TableClipboard','getSuggestionCallback','tableCellBorderStyle','unwrap','options','insert','fromEntries','getItems','next','isEqual','markMultiRangeBlockFormat','name','row','nodeAfter','start','createRangeIn','isEmpty','tablePasteColumn','previousSibling','ck-suggestion-marker--active','cells','createRangeOn','getRanges','isInContent','low','for','accept','setAttribute','oldRange','getColumnIndexes','columns','batch','register','requires','get','tableCellBackgroundColor','add','_isForcedDefaultExecutionBlock','$graveyard','wrap','_tablePostFixingSubtypes','tableCellBorderWidth','Users','removeMarker','length','containsRange','first','registerDescriptionCallback','markerName','markMultiRangeDeletion','stop','deletion','clipboardOutput','insertionRanges','setAttributes','end','registerCustomCallback','document','newRange','removeMarkers','TableUtils','tableCellHorizontalAlignment','getAllAdjacentSuggestions','attributes','element','includes','TrackChangesEditing','schema','insertColumns','author','markerToHighlight','tableCellVerticalAlignment','getRange','model','paragraph','suggestionUnloaded','suggestion-td','getChild','change','content','previous','column','insertion','root','trackChanges','push','_replaceTableSlotCell','activeMarkers','_splitMarkerName','return','locale','high','getAttributes','forceDefaultExecution','fill','suggestion:formatBlock:tablePasteCell','hasSuggestion','editing','getTableIfOnlyTableInContent','updateMarker','discard','has','createTableWalker','getSuggestion','table','tablePaste','_descriptionFactory','filter','createElement','tableCell','entries','*Replace\x20table\x20cells*','some'];(function(_0x3c0ab4,_0x222c98){const _0x489613=function(_0x1a0aa2){while(--_0x1a0aa2){_0x3c0ab4['push'](_0x3c0ab4['shift']());}};_0x489613(++_0x222c98);}(_0x222c,0x160));const _0x4896=function(_0x3c0ab4,_0x222c98){_0x3c0ab4=_0x3c0ab4-0x0;let _0x489613=_0x222c[_0x3c0ab4];return _0x489613;};import{getTranslation as _0x363950}from'../utils/common-translations';import{Plugin as _0x207070}from'ckeditor5/src/core';import{uid as _0x32e1fe,priorities as _0x555eb0}from'ckeditor5/src/utils';import _0x3e64db from'./table';const le=[_0x4896('0x4a'),_0x4896('0x9e'),_0x4896('0x23'),_0x4896('0x5e'),_0x4896('0x68'),_0x4896('0x44'),'tableCellPadding'],ae=Object[_0x4896('0x27')](le[_0x4896('0x9c')](_0x578ce8=>[_0x578ce8,null]));export default class At extends _0x207070{static get[_0x4896('0x42')](){return[_0x3e64db];}['afterInit'](){const _0x415d49=this['editor'];if(!_0x415d49['plugins'][_0x4896('0x86')]('TableClipboard'))return;const _0xeae1c6=_0x415d49[_0x4896('0x1a')][_0x4896('0x43')](_0x4896('0x63')),_0xf915fa=_0x415d49[_0x4896('0x1a')]['get'](_0x4896('0x5d')),_0x121203=_0x415d49['plugins']['get'](_0x3e64db),_0x132433=_0x415d49[_0x4896('0x1a')][_0x4896('0x43')](_0x4896('0x21'));_0x121203[_0x4896('0x49')]['push'](_0x4896('0x9b'),_0x4896('0x32')),_0x415d49[_0x4896('0x6a')][_0x4896('0x64')][_0x4896('0x41')](_0x4896('0x13'),{'allowIn':_0x4896('0x8e'),'allowContentOf':_0x4896('0x8e'),'isLimit':!0x0}),_0x415d49[_0x4896('0xa1')]['elementToElement']({'model':_0x4896('0x13'),'view':_0x4896('0x6d')});let _0x1f41c6=null;_0x415d49[_0x4896('0x6a')]['on']('insertContent',(_0x438a50,_0x4511d8)=>{const [_0x36ef33,_0x2bb802]=_0x4511d8,_0x2ba134=_0x4511d8[_0x4511d8[_0x4896('0x4d')]-0x1];_0x2ba134&&_0x2ba134[_0x4896('0x7e')]||_0xeae1c6[_0x4896('0x46')]||this['editor'][_0x4896('0xa5')][_0x4896('0x43')](_0x4896('0x75'))['value']&&function(_0x1bd3e8,_0x35facf,_0x1b86b3,_0x2154d2,_0x28a7c4){if(_0x35facf&&!_0x35facf['is']('documentSelection'))return!0x1;const _0x1b9974=_0x28a7c4[_0x4896('0x83')](_0x1bd3e8,_0x1b86b3);if(!_0x1b9974||!fe(_0x1b9974,void 0x0,_0x2154d2))return!0x1;const _0x5a8ec0=_0x2154d2['getSelectionAffectedTableCells'](_0x1b86b3[_0x4896('0x5a')]['selection']);if(!_0x5a8ec0[_0x4896('0x4d')])return!0x1;const _0x31b754=_0x5a8ec0[0x0]['findAncestor'](_0x4896('0x89')),_0x4d9d0f=_0x2154d2['getRowIndexes'](_0x5a8ec0),_0x377e87=_0x2154d2[_0x4896('0x3e')](_0x5a8ec0),_0x1a1bbf={'startRow':_0x4d9d0f[_0x4896('0x4f')],'endRow':_0x4d9d0f['last'],'startColumn':_0x377e87[_0x4896('0x4f')],'endColumn':_0x377e87['last']};return 0x1==_0x5a8ec0[_0x4896('0x4d')]&&(_0x1a1bbf['endRow']+=_0x2154d2[_0x4896('0x18')](_0x1b9974)-0x1,_0x1a1bbf['endColumn']+=_0x2154d2[_0x4896('0x99')](_0x1b9974)-0x1),fe(_0x31b754,_0x1a1bbf,_0x2154d2);}(_0x36ef33,_0x2bb802,_0x415d49['model'],_0xf915fa,_0x132433)&&(_0x438a50['stop'](),_0x1f41c6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x415d49[_0x4896('0x6a')][_0x4896('0x6f')](()=>{_0x415d49['model']['insertContent'](_0x4511d8[0x0],_0x4511d8[0x1],_0x4511d8[0x2],{'forceDefaultExecution':!0x0});const _0x8f5a41=_0x32e1fe(),{rowInsertionRanges:_0x3b76c2,columnInsertionRanges:_0x45c30b,insertionRanges:_0x9ac4f8,deletionRanges:_0x2f82c2,cells:_0x279a4a}=_0x1f41c6;_0x3b76c2['length']&&_0xeae1c6['markMultiRangeInsertion'](_0x3b76c2,_0x4896('0x9b'),{'tablePasteChainId':_0x8f5a41}),_0x45c30b['length']&&_0xeae1c6[_0x4896('0x5')](_0x45c30b,_0x4896('0x32'),{'tablePasteChainId':_0x8f5a41}),_0x9ac4f8[_0x4896('0x4d')]&&_0xeae1c6[_0x4896('0x5')](_0x9ac4f8,_0x4896('0x8a'),{'tablePasteChainId':_0x8f5a41,'skipNestingCheck':!0x0}),_0x2f82c2[_0x4896('0x4d')]&&_0xeae1c6[_0x4896('0x52')](_0x2f82c2,_0x4896('0x8a'),{'tablePasteChainId':_0x8f5a41,'skipNestingCheck':!0x0});const _0x35718f=_0xeae1c6[_0x4896('0x2b')](_0x279a4a[_0x4896('0x9c')](({element:_0x10495c})=>_0x10495c),{'formatGroupId':_0x32e1fe()},[],_0x4896('0xa0'),{'tablePasteChainId':_0x8f5a41});if(_0x35718f){const _0x12da49=_0x35718f[_0x4896('0xa4')](),_0x337d49=[];for(const {element:_0x1aba55,attributes:_0xbd8c56}of _0x279a4a){if(!_0xbd8c56)continue;const _0x2b705a=_0x415d49['model'][_0x4896('0x36')](_0x1aba55),_0x447fd0=_0x12da49[_0x4896('0x3')](_0x2f59e5=>_0x2f59e5[_0x4896('0x69')]()[_0x4896('0x2a')](_0x2b705a));_0x447fd0&&_0x337d49[_0x4896('0x76')]([_0x447fd0[_0x4896('0x2c')],_0xbd8c56]);}_0x337d49[_0x4896('0x4d')]&&_0x35718f[_0x4896('0x3c')](_0x4896('0x1'),Object[_0x4896('0x27')](_0x337d49));}_0x1f41c6=null;}));},{'priority':_0x555eb0[_0x4896('0x7c')]+0xa}),_0x415d49[_0x4896('0x1a')][_0x4896('0x43')](_0x4896('0x21'))['on'](_0x4896('0x77'),(_0x1c242b,_0x49fc3f)=>{const [_0x12ebe4,_0x4e41db,,_0x4dd74a]=_0x49fc3f;if(!_0x1f41c6)return;_0x1c242b[_0x4896('0x53')]();const _0x50a7d6=_0x12ebe4[_0x4896('0x1f')],_0x3c7d9f=_0x4e41db,_0x105e2d=ce(_0x50a7d6),_0x48d954=ce(_0x3c7d9f);_0x1c242b[_0x4896('0x7a')]=_0x50a7d6;let _0x1a2f5b=null,_0x5ad66a=null;if(_0x48d954||_0x105e2d){if(_0x105e2d&&!_0x48d954){_0x4dd74a['remove'](_0x50a7d6[_0x4896('0x6e')](0x0));for(const _0x52fc55 of Array[_0x4896('0x94')](_0x3c7d9f[_0x4896('0x4')]()))_0x4dd74a[_0x4896('0x26')](_0x52fc55,_0x50a7d6,'end');const _0x8a6a7f=_0x1f41c6[_0x4896('0x1d')]['includes'](_0x12ebe4[_0x4896('0x2d')]),_0xe05833=_0x1f41c6['columnInsertionIndexes'][_0x4896('0x62')](_0x12ebe4[_0x4896('0x72')]);_0x8a6a7f||_0xe05833||(_0x1a2f5b=_0x4dd74a[_0x4896('0x30')](_0x50a7d6));}else _0x48d954&&!_0x105e2d&&(_0x5ad66a=_0x4dd74a['createRangeIn'](_0x50a7d6));}else{const _0x53bfa6=_0x4dd74a[_0x4896('0x8d')](_0x4896('0x13')),_0xf9de6b=_0x4dd74a[_0x4896('0x8d')](_0x4896('0x13'));_0x4dd74a[_0x4896('0x48')](_0x4dd74a['createRangeIn'](_0x50a7d6),_0xf9de6b),_0x4dd74a['insert'](_0x53bfa6,_0x50a7d6,0x0);for(const _0x90a3b8 of Array[_0x4896('0x94')](_0x3c7d9f['getChildren']()))_0x4dd74a[_0x4896('0x26')](_0x90a3b8,_0x53bfa6,_0x4896('0x58'));_0x1a2f5b=_0x4dd74a[_0x4896('0x36')](_0x53bfa6),_0x5ad66a=_0x4dd74a['createRangeOn'](_0xf9de6b);}const _0x3e2cd8=Array['from'](_0x3c7d9f[_0x4896('0x7d')]())['filter'](([_0x1cacec])=>le[_0x4896('0x62')](_0x1cacec));_0x1f41c6['cells'][_0x4896('0x76')]({'element':_0x50a7d6,'attributes':_0x3e2cd8['length']?Object[_0x4896('0x27')](_0x3e2cd8):null}),_0x1a2f5b&&_0x1f41c6[_0x4896('0x56')][_0x4896('0x76')](_0x1a2f5b),_0x5ad66a&&_0x1f41c6[_0x4896('0xa')][_0x4896('0x76')](_0x5ad66a);},{'priority':_0x4896('0x7c')}),_0xf915fa['on'](_0x4896('0x65'),(_0x17a92e,_0x5c6786)=>{const [_0x207668,_0x3122df={}]=_0x5c6786;if(!_0x1f41c6)return;const _0x21d64d=_0x3122df['at']||0x0,_0x360548=_0x3122df[_0x4896('0x3f')]||0x1;_0x1f41c6[_0x4896('0x2')]=new Array(_0x360548)['fill'](_0x21d64d)['map']((_0x5ba23c,_0x10c3d7)=>_0x5ba23c+_0x10c3d7);for(const {cell:_0x3ba977}of _0xf915fa[_0x4896('0x87')](_0x207668,{'startColumn':_0x21d64d,'endColumn':_0x21d64d+_0x360548-0x1}))_0x1f41c6[_0x4896('0x1b')][_0x4896('0x76')](_0x415d49[_0x4896('0x6a')]['createRangeOn'](_0x3ba977));},{'priority':_0x4896('0x39')}),_0xf915fa['on']('insertRows',(_0x303460,_0x33c1c7)=>{const [_0x58e8b0,_0x855ac2={}]=_0x33c1c7;if(!_0x1f41c6)return;const _0x9d67b4=_0x855ac2['at']||0x0,_0x4fe087=_0x855ac2['rows']||0x1;_0x1f41c6[_0x4896('0x1d')]=new Array(_0x4fe087)[_0x4896('0x7f')](_0x9d67b4)[_0x4896('0x9c')]((_0x470b24,_0x3d92e4)=>_0x470b24+_0x3d92e4);for(const {cell:_0xb98521}of _0xf915fa[_0x4896('0x87')](_0x58e8b0,{'startRow':_0x9d67b4,'endRow':_0x9d67b4+_0x4fe087-0x1}))_0x1f41c6['rowInsertionRanges'][_0x4896('0x76')](_0x415d49['model'][_0x4896('0x36')](_0xb98521));},{'priority':'low'}),_0xeae1c6[_0x4896('0x8b')][_0x4896('0x50')](_0x10dd4d=>{if(_0x10dd4d['subType']&&_0x10dd4d['subType'][_0x4896('0x8')](_0x4896('0x8a')))return _0x10dd4d[_0x4896('0x71')]?{}:{'type':_0x4896('0x73'),'content':_0x363950(_0x415d49[_0x4896('0x7b')],_0x4896('0x90'))};});const _0x1d7873=()=>!0x1;for(const _0x561c88 of[_0x4896('0x8a'),'tablePasteColumn',_0x4896('0x9b'),_0x4896('0xa0')])_0xeae1c6[_0x4896('0x9d')][_0x4896('0x59')](_0x4896('0x73'),_0x561c88,_0x4896('0x9a'),_0x1d7873),_0xeae1c6[_0x4896('0x9d')][_0x4896('0x59')](_0x4896('0x54'),_0x561c88,_0x4896('0x9a'),_0x1d7873),_0xeae1c6['_suggestionFactory'][_0x4896('0x59')](_0x4896('0x93'),_0x561c88,'join',_0x1d7873);_0xeae1c6[_0x4896('0x9d')][_0x4896('0x59')](_0x4896('0x93'),_0x4896('0xa0'),_0x4896('0x85'),_0x1d7873),_0xeae1c6[_0x4896('0x9d')][_0x4896('0x59')](_0x4896('0x93'),'tablePasteCell','accept',(_0x1dc5f2,_0xc45a26,_0x9be0b3)=>{const _0x3764ec=_0x1dc5f2[_0x4896('0x9c')](_0x545cd4=>_0x545cd4[_0x4896('0xf')]())['filter'](_0x88a42f=>_0x88a42f),_0x5d8fa1=new Map(_0x3764ec[_0x4896('0x9c')](_0x457662=>[_0x457662,null]));if(_0x1f41c6)for(const {element:_0x12eea6,attributes:_0x440f73}of _0x1f41c6[_0x4896('0x35')])_0x440f73&&_0x5d8fa1[_0x4896('0xd')](_0x12eea6,_0x440f73);else{if(_0x9be0b3&&_0x9be0b3[_0x4896('0x1')])for(const [_0x275c85,_0x146d8b]of Object[_0x4896('0x8f')](_0x9be0b3[_0x4896('0x1')])){const _0x37a762=_0x415d49['model'][_0x4896('0x1e')][_0x4896('0x43')](_0x275c85),_0x31ce07=_0x37a762?_0x37a762[_0x4896('0x69')]()[_0x4896('0xf')]():null;_0x31ce07&&_0x5d8fa1[_0x4896('0xd')](_0x31ce07,_0x146d8b);}}_0x415d49['model'][_0x4896('0x6f')](_0x76b991=>{for(const [_0x3db5c4,_0x4333bb]of _0x5d8fa1)_0x76b991[_0x4896('0x57')]({...ae,..._0x4333bb},_0x3db5c4);});});const _0xdfcc64=(_0x460c38,_0x4ad722)=>{_0xeae1c6[_0x4896('0x9d')][_0x4896('0x59')](_0x460c38,'tablePaste',_0x4ad722,(_0x4455b4,_0x593a04,_0x34310b)=>{_0x415d49['model']['change'](_0x4ca310=>{const _0x1bda19=[];for(const _0x5ba0f4 of _0x4455b4){const _0x20bd31=_0x5ba0f4[_0x4896('0x2f')][_0x4896('0x2e')];_0x20bd31['is'](_0x4896('0x61'),_0x4896('0x13'))&&_0x1bda19['push'](_0x20bd31);}_0xeae1c6[_0x4896('0x9d')][_0x4896('0x22')](_0x460c38,null,_0x4ad722)(_0x4455b4,_0x593a04,_0x34310b);for(const _0x4ed836 of _0x1bda19)_0x4896('0x47')!=_0x4ed836[_0x4896('0x74')][_0x4896('0x9')]&&_0x4ca310[_0x4896('0x24')](_0x4ed836);});});};_0xdfcc64(_0x4896('0x73'),_0x4896('0x3b')),_0xdfcc64(_0x4896('0x73'),_0x4896('0x85')),_0xdfcc64(_0x4896('0x54'),_0x4896('0x3b')),_0xdfcc64(_0x4896('0x54'),_0x4896('0x85')),_0xeae1c6[_0x4896('0x9d')][_0x4896('0x59')](_0x4896('0x73'),'tablePasteRow',_0x4896('0x85'),_0x350a9a=>{const _0x562e28=_0x350a9a['map'](_0x539f20=>_0x539f20['getContainedElement']()),_0x4c8566=_0x562e28[0x0][_0x4896('0x12')](_0x4896('0x89')),{minRow:_0x391537,maxRow:_0x531648}=_0x121203[_0x4896('0x97')](_0x562e28);_0xf915fa[_0x4896('0x17')](_0x4c8566,{'at':_0x391537,'rows':_0x531648-_0x391537+0x1});}),_0xeae1c6[_0x4896('0x9d')]['registerCustomCallback'](_0x4896('0x73'),_0x4896('0x32'),_0x4896('0x85'),_0xf0139=>{const _0x3ce65d=_0xf0139['map'](_0x513479=>_0x513479[_0x4896('0xf')]()),_0x4d60f1=_0x3ce65d[0x0][_0x4896('0x12')](_0x4896('0x89')),{minColumn:_0x5e2919,maxColumn:_0x464137}=_0x121203['_getCoordsForCells'](_0x3ce65d);_0xf915fa[_0x4896('0x9f')](_0x4d60f1,{'at':_0x5e2919,'columns':_0x464137-_0x5e2919+0x1});});const _0x432628=(_0x30c204,_0x41b7af)=>{if(!_0x41b7af['subType']||!_0x41b7af[_0x4896('0x0')][_0x4896('0x8')](_0x4896('0x8a')))return;const _0x5be90d=_0x41b7af['attributes'][_0x4896('0x16')],_0x5c38ee=_0xeae1c6['getSuggestions']()[_0x4896('0x8c')](_0x4085b3=>_0x4085b3['isInContent']&&_0x4085b3['attributes']&&_0x4085b3[_0x4896('0x60')]['tablePasteChainId']==_0x5be90d);_0x5c38ee['length']&&_0x41b7af['getAllAdjacentSuggestions']()[_0x4896('0x4d')]!=_0x5c38ee[_0x4896('0x4d')]&&_0x5c38ee['reduce']((_0x17954f,_0xde0dbb)=>(_0x17954f[_0x4896('0x29')]=_0xde0dbb,_0xde0dbb[_0x4896('0x71')]=_0x17954f,_0xde0dbb));};function _0xa96171(_0x56fdac,_0x3864f0=!0x0){const {id:_0x181cab}=_0xeae1c6[_0x4896('0x79')](_0x56fdac[_0x4896('0x51')]),_0x3e08cf=[_0x4896('0xa2'),_0x4896('0x7')],_0x71d5f5=_0xeae1c6[_0x4896('0x78')][_0x4896('0x62')](_0x56fdac[_0x4896('0x51')]);return _0x71d5f5&&_0x3e08cf[_0x4896('0x76')](_0x4896('0x34')),{'classes':_0x3e08cf,'attributes':{'data-suggestion':_0x181cab},'priority':_0x71d5f5&&_0x3864f0?0xbc2:0xbb8};}_0xeae1c6['on'](_0x4896('0x92'),_0x432628,{'priority':'high'}),_0xeae1c6['on'](_0x4896('0x6c'),_0x432628,{'priority':_0x4896('0x7c')}),_0x415d49['model'][_0x4896('0x5a')][_0x4896('0x11')](()=>{let _0x3ed7dd=!0x1;const _0x1d0b9f=Array[_0x4896('0x94')](_0x415d49['model'][_0x4896('0x5a')]['differ'][_0x4896('0xa3')]());for(const {name:_0x1b6aaa,data:_0x9d8c0}of _0x1d0b9f){const {group:_0x43695c,type:_0xd131a0,id:_0x123a61}=_0xeae1c6['_splitMarkerName'](_0x1b6aaa);if('suggestion'!=_0x43695c||_0x4896('0x54')!=_0xd131a0||_0x9d8c0[_0x4896('0x3d')])continue;if(!_0xeae1c6[_0x4896('0x81')](_0x123a61))continue;const _0xea27d8=_0xeae1c6[_0x4896('0x88')](_0x123a61)[_0x4896('0x37')](),_0x34f123=_0x415d49[_0x4896('0x1a')][_0x4896('0x43')](_0x4896('0x4b'))['me'];for(const _0x1cf5e8 of _0xeae1c6[_0x4896('0x14')]()){if(!_0x1cf5e8[_0x4896('0x38')]||_0x1cf5e8['author']!=_0x34f123)continue;if('formatBlock'!=_0x1cf5e8['type']||_0x4896('0xa0')!=_0x1cf5e8[_0x4896('0x0')])continue;if(_0x1cf5e8['getRanges']()['every'](_0x143a67=>_0xea27d8[_0x4896('0x91')](_0x1211a9=>_0x1211a9['containsRange'](_0x143a67,!0x0))))for(const _0x3b81c2 of _0x1cf5e8[_0x4896('0x5f')]())_0x3b81c2[_0x4896('0x38')]&&(_0x3b81c2['discard'](),_0x3ed7dd=!0x0);}}return _0x3ed7dd;}),_0x415d49['model'][_0x4896('0x5a')][_0x4896('0x11')](_0x1c0a94=>{const _0x5bf114=_0x415d49['commands']['get'](_0x4896('0xe'));if(!_0x5bf114||!_0x5bf114['_createdBatches'][_0x4896('0x86')](_0x1c0a94[_0x4896('0x40')]))return!0x1;let _0xab294c=!0x1;const _0x4aaa42=_0x415d49[_0x4896('0x1a')][_0x4896('0x43')](_0x4896('0x4b'))['me'],_0x5dfe09=_0x415d49[_0x4896('0x6a')][_0x4896('0x5a')]['differ']['getChanges'](),_0x48bc8a=Array[_0x4896('0x94')](_0x415d49[_0x4896('0x6a')][_0x4896('0x5a')]['differ'][_0x4896('0xa3')]())[_0x4896('0x8c')](({name:_0x1efea4,data:_0x43293e})=>{const {group:_0x5b5dab,subType:_0x1040d5,authorId:_0x43489a}=_0xeae1c6[_0x4896('0x79')](_0x1efea4);return _0x4896('0x20')==_0x5b5dab&&_0x4896('0x8a')==_0x1040d5&&_0x43489a==_0x4aaa42['id']&&!_0x43293e['oldRange'];});for(const _0x1d0579 of _0x5dfe09){if(_0x4896('0x26')!=_0x1d0579[_0x4896('0xb')]||_0x4896('0x13')!=_0x1d0579['name']||0x1!=_0x1d0579[_0x4896('0x4d')])continue;const _0x1b48c3=_0x1c0a94['createRange'](_0x1d0579['position'],_0x1d0579['position']['getShiftedBy'](0x1));if(!_0x48bc8a[_0x4896('0x3')](({data:_0x6aed2})=>_0x6aed2['newRange'][_0x4896('0x2a')](_0x1b48c3)))for(const {name:_0x2fc889,data:_0x1ea78d}of _0x48bc8a)if(_0x1b48c3[_0x4896('0x4e')](_0x1ea78d[_0x4896('0x5b')])){_0x1c0a94[_0x4896('0x84')](_0x2fc889,{'range':_0x1b48c3}),_0xab294c=!0x0;break;}}return _0xab294c;}),_0x415d49[_0x4896('0x6a')][_0x4896('0x5a')]['registerPostFixer'](_0x433ceb=>{let _0x381a4a=!0x1;const _0x4f3ff4=_0x415d49[_0x4896('0x1a')]['get'](_0x4896('0x4b'))['me'],_0x271e23=_0xeae1c6['getSuggestions']()[_0x4896('0x8c')](_0x5a1188=>_0x5a1188[_0x4896('0x38')]&&_0x5a1188[_0x4896('0x66')]==_0x4f3ff4),_0x19c4ae=new Set(),_0x2fd5e5=new Set();for(const _0x2fdcf9 of _0x271e23)if(_0x4896('0x8a')==_0x2fdcf9['subType'])for(const _0x354790 of _0x2fdcf9[_0x4896('0xa4')]()){const _0x549546=_0x354790['getRange']()[_0x4896('0xf')]();if(_0x549546){if(_0x549546['is'](_0x4896('0x61'),_0x4896('0x13'))&&ce(_0x549546)){_0x2fdcf9['removeMarker'](_0x354790['name']),_0x19c4ae[_0x4896('0x45')](_0x549546),_0x381a4a=!0x0;const _0x2a4377=_0x549546[_0x4896('0x10')],_0x2700bd=_0x549546[_0x4896('0x33')],_0x475757=_0x2a4377&&_0x2a4377['is']('element',_0x4896('0x13')),_0x2aebf5=_0x2700bd&&_0x2700bd['is'](_0x4896('0x61'),_0x4896('0x13'));_0x475757&&!_0x19c4ae[_0x4896('0x86')](_0x2a4377)&&_0x2fd5e5['add'](_0x2a4377),_0x2aebf5&&!_0x19c4ae[_0x4896('0x86')](_0x2700bd)&&_0x2fd5e5[_0x4896('0x45')](_0x2700bd);}else _0x549546['is'](_0x4896('0x61'),'paragraph')&&_0x549546[_0x4896('0x31')]&&(_0x2fdcf9[_0x4896('0x4c')](_0x354790['name']),_0x381a4a=!0x0);}}else{if(_0x4896('0xa0')==_0x2fdcf9[_0x4896('0x0')]){if(!_0x2fdcf9['attributes']||!_0x2fdcf9[_0x4896('0x60')][_0x4896('0x16')])continue;const _0x5a6ab1=_0x2fdcf9['attributes'][_0x4896('0x1')];if(_0x5a6ab1&&Object[_0x4896('0x95')](_0x5a6ab1)['length'])continue;const _0x5574d0=_0x2fdcf9[_0x4896('0x60')][_0x4896('0x16')];let _0x499bbd=!0x0,_0xa1d0d4=!0x0;for(const _0x4ad304 of _0x271e23)if(_0x4ad304[_0x4896('0x0')]&&_0x4ad304[_0x4896('0x0')][_0x4896('0x8')](_0x4896('0x8a'))){if(!_0x4ad304['attributes'][_0x4896('0x16')]){_0xa1d0d4=!0x1;break;}if(_0x4ad304['id']!=_0x2fdcf9['id']&&_0x4ad304[_0x4896('0x60')][_0x4896('0x16')]==_0x5574d0){_0x499bbd=!0x1;break;}}_0xa1d0d4&&_0x499bbd&&(_0x2fdcf9[_0x4896('0x5c')](),_0x381a4a=!0x0);}}for(const _0x286729 of _0x19c4ae)_0x433ceb[_0x4896('0x15')](_0x286729);for(const _0x3c9d05 of _0x2fd5e5)_0x433ceb[_0x4896('0x24')](_0x3c9d05);return _0x381a4a;}),_0x415d49[_0x4896('0xa1')][_0x4896('0x3a')](_0x4896('0x1c'))[_0x4896('0x67')]({'model':_0x4896('0x80'),'view':(_0x4b5dc5,_0x196141)=>_0xa96171(_0x4b5dc5),'converterPriority':'high'}),_0x415d49[_0x4896('0xa1')][_0x4896('0x3a')](_0x4896('0x96'))['markerToHighlight']({'model':_0x4896('0x80'),'view':(_0x5bb7c4,_0x434cec)=>_0x434cec[_0x4896('0x25')]['showSuggestionHighlights']?_0xa96171(_0x5bb7c4,!0x1):null,'converterPriority':'high'});const _0x362c5f=_0x415d49[_0x4896('0x82')][_0x4896('0x6')];this[_0x4896('0xc')](_0x362c5f['document'],_0x4896('0x55'),(_0x407a75,_0x398aa5)=>{const _0x986dc8=[];for(const _0x2838c4 of _0x362c5f['createRangeIn'](_0x398aa5[_0x4896('0x70')])[_0x4896('0x28')]())_0x2838c4['is']('element',_0x4896('0x6d'))&&_0x986dc8[_0x4896('0x76')](_0x2838c4);_0x362c5f[_0x4896('0x6f')](_0x532fd8=>{for(const _0x1ac36b of _0x986dc8)_0x532fd8[_0x4896('0x19')](_0x532fd8[_0x4896('0x30')](_0x1ac36b),_0x532fd8[_0x4896('0x98')](_0x1ac36b)),_0x532fd8[_0x4896('0x15')](_0x1ac36b);});});}}function ce(_0x2eef3a){if(_0x2eef3a['isEmpty'])return!0x0;const _0x4c783f=_0x2eef3a[_0x4896('0x6e')](0x0);return _0x4c783f['is'](_0x4896('0x61'),_0x4896('0x6b'))&&_0x4c783f[_0x4896('0x31')];}function fe(_0x15604b,_0x7e2598={},_0x3a75f2){for(const {isAnchor:_0x2d1aa5,cellHeight:_0x539bb7,cellWidth:_0x26462f}of _0x3a75f2['createTableWalker'](_0x15604b,{'includeAllSlots':!0x0,..._0x7e2598}))if(!_0x2d1aa5||0x1!=_0x539bb7||0x1!=_0x26462f)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56e2=['locale','resizeTableWidth','discard','resizeTable','getSuggestionCallback','formatInline','has','getTableColumnsWidths','get','registerDescriptionCallback','type','_suggestionFactory','columnWidths','handleResizeTableWidthCommand','editor','enableCommand','commandParams','model','_descriptionFactory','formatBlock','TableColumnResizeEditing','change','plugins','markBlockFormat','handleSuggestionDescription','registerCustomCallback','selection','document','format','getContainedElement','getAttribute','accept','TrackChangesEditing','author','bind','Users','formatGroupId','afterInit','tableWidth','*Format:*\x20resize\x20table'];(function(_0x3b39c8,_0x56e239){const _0x314da8=function(_0xd9c22a){while(--_0xd9c22a){_0x3b39c8['push'](_0x3b39c8['shift']());}};_0x314da8(++_0x56e239);}(_0x56e2,0x15d));const _0x314d=function(_0x3b39c8,_0x56e239){_0x3b39c8=_0x3b39c8-0x0;let _0x314da8=_0x56e2[_0x3b39c8];return _0x314da8;};import{Plugin as _0x36fa7a}from'ckeditor5/src/core';import{getTranslation as _0x393613}from'../utils/common-translations';export default class It extends _0x36fa7a{[_0x314d('0x8')](){if(!this[_0x314d('0x19')][_0x314d('0x21')][_0x314d('0x11')]('TableColumnResizeEditing'))return;const _0x2b4e82=this[_0x314d('0x19')]['plugins'][_0x314d('0x13')](_0x314d('0x3'));_0x2b4e82[_0x314d('0x1a')](_0x314d('0xc'),this[_0x314d('0x18')][_0x314d('0x5')](this)),_0x2b4e82[_0x314d('0x16')][_0x314d('0x24')](_0x314d('0x1e'),_0x314d('0xe'),'accept',_0x2b4e82[_0x314d('0x16')][_0x314d('0xf')](_0x314d('0x1e'),null,_0x314d('0xd'))),_0x2b4e82[_0x314d('0x16')]['registerCustomCallback'](_0x314d('0x1e'),_0x314d('0xe'),_0x314d('0xd'),_0x2b4e82[_0x314d('0x16')][_0x314d('0xf')]('formatBlock',null,_0x314d('0x2'))),_0x2b4e82[_0x314d('0x1d')][_0x314d('0x14')](this[_0x314d('0x23')]['bind'](this));}['handleResizeTableWidthCommand'](_0xda0ad7,_0x4aa187){const _0x19c879=this[_0x314d('0x19')]['plugins'][_0x314d('0x13')](_0x314d('0x3')),_0x366ff7=this[_0x314d('0x19')][_0x314d('0x21')][_0x314d('0x13')](_0x314d('0x1f')),_0x118beb=_0x4aa187['table']||this[_0x314d('0x19')]['model'][_0x314d('0x26')][_0x314d('0x25')]['getSelectedElement']();this[_0x314d('0x19')][_0x314d('0x1c')][_0x314d('0x20')](()=>{const _0x1eb814=_0x366ff7['getColumnGroupElement'](_0x118beb);let _0x52f202=_0x1eb814?_0x366ff7[_0x314d('0x12')](_0x1eb814):null,_0x8bfd65=_0x118beb[_0x314d('0x1')](_0x314d('0x9'))||null;const _0x1c6236=_0x4aa187[_0x314d('0x9')]||_0x8bfd65,_0x3856aa=_0x4aa187[_0x314d('0x17')]||_0x52f202,_0x56626b=this[_0x314d('0x19')][_0x314d('0x21')][_0x314d('0x13')](_0x314d('0x6'))['me'];for(const _0x395bce of _0x19c879['getSuggestions']()){const _0x1781a7=_0x395bce[_0x314d('0x0')]();if('resizeTable'===_0x395bce['subType']&&_0x1781a7===_0x118beb){_0x395bce[_0x314d('0x4')]!==_0x56626b&&_0x395bce[_0x314d('0xd')]();const _0x8912ad=_0x395bce['data'][_0x314d('0x1b')];_0x8bfd65=_0x8912ad[0x0][_0x314d('0x9')],_0x52f202=_0x8912ad[0x0][_0x314d('0x17')];break;}}_0xda0ad7({'table':_0x118beb,'tableWidth':_0x1c6236,'columnWidths':_0x3856aa}),_0x19c879[_0x314d('0x22')](_0x118beb,{'commandName':_0x314d('0xc'),'commandParams':[{'tableWidth':_0x8bfd65,'columnWidths':_0x52f202}],'formatGroupId':_0x314d('0xe')},[],'resizeTable');});}['handleSuggestionDescription'](_0x5809a9){if('formatBlock'!=_0x5809a9[_0x314d('0x15')]&&_0x314d('0x10')!=_0x5809a9[_0x314d('0x15')])return;const {data:_0x2c3bc0}=_0x5809a9;if(_0x2c3bc0&&_0x314d('0xe')===_0x2c3bc0[_0x314d('0x7')]){const _0x34b6a6=_0x314d('0xa');return{'type':_0x314d('0x27'),'content':_0x393613(this[_0x314d('0x19')][_0x314d('0xb')],_0x34b6a6)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ce5=['getSuggestion','consume','get','TableUtils','bindElementToMarker','_splitMarkerName','registerCustomCallback','FORMAT_REGULAR_COLUMN','ck-suggestion-marker--active','_acceptFormatSuggestionCallbackFactory','_enableDefaultAttributesIntegration','writer','afterInit','markerName','nodeBefore','FORMAT_REGULAR_ROW','options','has','data-suggestion','registerAttributeLabel','TrackChangesEditing','addMarker:suggestion','format','item','addClass','consumable','cell','markerRange','editor','showSuggestionHighlights','requires','FORMAT_HEADER_ROW','toViewElement','parent','setTableRowHeader','accept','type','_handleLegacySuggestions','FORMAT_HEADER_COLUMN','removeClass','createTableWalker','commandParams','_registerLegacyDescription','editing','formatBlock','registerDescriptionCallback','data','downcastDispatcher','TableEditing','headingColumns','plugins','commandName','forceValue','locale','highest','setTableColumnHeader','unbindElementFromMarkerName','setAttribute','getCellLocation','end','mapper','nodeAfter','_descriptionFactory'];(function(_0x886b,_0x1ce513){const _0x4e79c5=function(_0x4b248e){while(--_0x4b248e){_0x886b['push'](_0x886b['shift']());}};_0x4e79c5(++_0x1ce513);}(_0x1ce5,0x64));const _0x4e79=function(_0x886b,_0x1ce513){_0x886b=_0x886b-0x0;let _0x4e79c5=_0x1ce5[_0x886b];return _0x4e79c5;};import{Plugin as _0x132ed7}from'ckeditor5/src/core';import _0x581a95 from'./table';import{getTranslation as _0x57a21e}from'../utils/common-translations';export default class St extends _0x132ed7{static get[_0x4e79('0x38')](){return[_0x581a95];}[_0x4e79('0x26')](){const _0x306baf=this[_0x4e79('0x36')];if(!_0x306baf['plugins'][_0x4e79('0x2b')](_0x4e79('0xb')))return;const _0x2e4b91=_0x306baf[_0x4e79('0x10')],_0x231afd=_0x306baf[_0x4e79('0xd')]['get'](_0x4e79('0x2e'));_0x231afd[_0x4e79('0x24')](_0x4e79('0x3c'),[],['headingRows']),_0x231afd['_enableDefaultAttributesIntegration'](_0x4e79('0x12'),[],[_0x4e79('0xc')]),_0x231afd[_0x4e79('0x19')][_0x4e79('0x2d')]('headingRows',_0x57a21e(_0x2e4b91,_0x4e79('0x39'))),_0x231afd[_0x4e79('0x19')][_0x4e79('0x2d')](_0x4e79('0xc'),_0x57a21e(_0x2e4b91,'FORMAT_HEADER_COLUMN')),this[_0x4e79('0x0')]();}[_0x4e79('0x0')](){const _0x56c1ad=this[_0x4e79('0x36')][_0x4e79('0xd')][_0x4e79('0x1c')](_0x4e79('0x2e')),_0xf823c2=this[_0x4e79('0x36')][_0x4e79('0xd')][_0x4e79('0x1c')](_0x4e79('0x1d')),_0x5d435f=this[_0x4e79('0x36')]['plugins'][_0x4e79('0x1c')](_0x581a95)[_0x4e79('0x23')]();function _0x4a2b51({showActiveMarker:_0x2d87ce=!0x0,setDataAttribute:_0x539716=!0x0}={}){return(_0x47e5b8,_0x3f7ecf,_0x5b6f41)=>{const {type:_0x537fdc,id:_0x297bf9}=_0x56c1ad['_splitMarkerName'](_0x3f7ecf[_0x4e79('0x27')]),_0x511a16=_0x56c1ad[_0x4e79('0x1a')](_0x297bf9),_0x290f87=_0x511a16[_0x4e79('0x9')];if(_0x4e79('0x7')!=_0x511a16[_0x4e79('0x3e')]||!_0x290f87||_0x4e79('0x12')!=_0x290f87[_0x4e79('0xe')])return;if(_0x3f7ecf[_0x4e79('0x31')])return void _0x47e5b8['stop']();if(!_0x5b6f41[_0x4e79('0x33')][_0x4e79('0x1b')](_0x3f7ecf[_0x4e79('0x35')],_0x47e5b8['name']))return;const _0x17aa1f=_0x3f7ecf[_0x4e79('0x35')]['start'][_0x4e79('0x18')],_0x577d4e=_0x3f7ecf['markerRange'][_0x4e79('0x16')][_0x4e79('0x28')],_0x59ffdb=_0x17aa1f[_0x4e79('0x3b')][_0x4e79('0x3b')],{column:_0x370dd5}=_0xf823c2[_0x4e79('0x15')](_0x17aa1f),{column:_0x2ba212}=_0xf823c2[_0x4e79('0x15')](_0x577d4e);for(let _0x16d316=_0x370dd5;_0x16d316<=_0x2ba212;_0x16d316++){const _0x122d4f=_0xf823c2[_0x4e79('0x3')](_0x59ffdb,{'column':_0x16d316,'includeAllSlots':!0x1});for(const _0x4b808e of _0x122d4f){const _0x46c084=_0x4b808e[_0x4e79('0x34')],_0x39c3e6=_0x5b6f41[_0x4e79('0x17')][_0x4e79('0x3a')](_0x46c084);_0x5b6f41[_0x4e79('0x25')][_0x4e79('0x32')]('ck-suggestion-marker-'+_0x537fdc,_0x39c3e6),_0x539716&&_0x5b6f41[_0x4e79('0x25')][_0x4e79('0x14')](_0x4e79('0x2c'),_0x297bf9,_0x39c3e6),_0x5b6f41[_0x4e79('0x17')][_0x4e79('0x1e')](_0x39c3e6,_0x3f7ecf['markerName']),_0x2d87ce&&(_0x56c1ad['activeMarkers']['includes'](_0x3f7ecf[_0x4e79('0x27')])?_0x5b6f41[_0x4e79('0x25')][_0x4e79('0x32')]('ck-suggestion-marker--active',_0x39c3e6):_0x5b6f41['writer'][_0x4e79('0x2')]('ck-suggestion-marker--active',_0x39c3e6));}}};}_0x56c1ad['_suggestionFactory'][_0x4e79('0x20')](_0x4e79('0x7'),'setTableRowHeader',_0x4e79('0x3d'),_0x5d435f),_0x56c1ad['_suggestionFactory'][_0x4e79('0x20')](_0x4e79('0x7'),'setTableColumnHeader',_0x4e79('0x3d'),_0x5d435f),this[_0x4e79('0x36')]['editing'][_0x4e79('0xa')]['on'](_0x4e79('0x2f'),_0x4a2b51(),{'priority':_0x4e79('0x11')}),this[_0x4e79('0x36')]['data']['downcastDispatcher']['on'](_0x4e79('0x2f'),(_0xdc1359,_0x66f3e3,_0x46c90a)=>{_0x46c90a[_0x4e79('0x2a')][_0x4e79('0x37')]&&_0x4a2b51({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xdc1359,_0x66f3e3,_0x46c90a);},{'priority':_0x4e79('0x11')}),this['editor'][_0x4e79('0x6')]['downcastDispatcher']['on']('removeMarker:suggestion',(_0x26345e,_0x336b40,_0x23f30d)=>{const {type:_0x2026a8,id:_0x3a6c21}=_0x56c1ad[_0x4e79('0x1f')](_0x336b40[_0x4e79('0x27')]),_0x2bf057=_0x56c1ad['getSuggestion'](_0x3a6c21),_0x2044db=_0x2bf057[_0x4e79('0x9')];if('formatBlock'!=_0x2bf057[_0x4e79('0x3e')]||!_0x2044db||_0x4e79('0x12')!=_0x2044db['commandName'])return;const _0x2668e7=_0x23f30d[_0x4e79('0x17')]['markerNameToElements'](_0x336b40[_0x4e79('0x27')]);if(_0x2668e7)for(const _0x16d339 of _0x2668e7)_0x23f30d[_0x4e79('0x25')]['removeClass']('ck-suggestion-marker-'+_0x2026a8,_0x16d339),_0x23f30d[_0x4e79('0x25')][_0x4e79('0x2')](_0x4e79('0x22'),_0x16d339),_0x23f30d[_0x4e79('0x25')]['removeAttribute'](_0x4e79('0x2c'),_0x16d339),_0x23f30d['mapper'][_0x4e79('0x13')](_0x16d339,_0x336b40['markerName']);},{'priority':_0x4e79('0x11')}),this[_0x4e79('0x5')]();}['_registerLegacyDescription'](){const _0x16c492=this[_0x4e79('0x36')],_0x383f8d=_0x16c492[_0x4e79('0x10')];function _0x5311b9(_0x1bf36d){return{'type':_0x4e79('0x30'),'content':_0x57a21e(_0x383f8d,'*Format:*\x20%0',_0x1bf36d)};}_0x16c492[_0x4e79('0xd')][_0x4e79('0x1c')](_0x4e79('0x2e'))['_descriptionFactory'][_0x4e79('0x8')](_0x148270=>{if('formatBlock'!=_0x148270[_0x4e79('0x3e')])return;const {data:_0x22d8c7}=_0x148270;if(_0x22d8c7){if('setTableRowHeader'==_0x22d8c7[_0x4e79('0xe')]){const _0x12086f=_0x22d8c7[_0x4e79('0x4')][0x0][_0x4e79('0xf')];return _0x5311b9(_0x57a21e(_0x383f8d,_0x12086f?_0x4e79('0x39'):_0x4e79('0x29')));}if('setTableColumnHeader'==_0x22d8c7[_0x4e79('0xe')]){const _0x5a079d=_0x22d8c7[_0x4e79('0x4')][0x0][_0x4e79('0xf')];return _0x5311b9(_0x57a21e(_0x383f8d,_0x5a079d?_0x4e79('0x1'):_0x4e79('0x21')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48bb=['get','formatInline','*Merge\x20cells*','plugins','isInContent','registerDescriptionCallback','from','mergeTableCellUp','commands','*Split\x20cell:*\x20horizontally','accept','enableCommand','TableUtils','add','createTableWalker','mergeTableCellRight','document','locale','commandName','_areSelectedCellsMergable','_areMergableCells','rootName','horizontally','getSuggestions','mergeTableCells','isEnabled','*Split\x20cell:*\x20vertically','_suggestionFactory','selection','forceDefaultExecution','type','getAncestors','deletion','change','formatBlock','detach','TrackChangesEditing','low','fromRange','_descriptionFactory','find','filter','registerCustomCallback','cell','has','tableCell','_isForcedDefaultExecutionBlock','editor','set:isEnabled','TableEditing','_acceptFormatSuggestionCallbackFactory','containsRange','$graveyard','size','afterInit','stop','subType','insertion','push','getFirstPosition','requires','setSelection','trackChanges','getSelectionAffectedTableCells','map','getCellLocation','length','value','refresh','markMultiRangeBlockFormat','findAncestor','format','mergeTableCellDown','markBlockFormat','createRangeOn','getRanges','model','splitTableCellVertically','mergeTableCellLeft','author','splitTableCellHorizontally'];(function(_0x577fb9,_0x48bbf2){const _0x4609aa=function(_0x32f176){while(--_0x32f176){_0x577fb9['push'](_0x577fb9['shift']());}};_0x4609aa(++_0x48bbf2);}(_0x48bb,0x1d3));const _0x4609=function(_0x577fb9,_0x48bbf2){_0x577fb9=_0x577fb9-0x0;let _0x4609aa=_0x48bb[_0x577fb9];return _0x4609aa;};import{Plugin as _0x4e537b}from'ckeditor5/src/core';import _0x43a704 from'./table';import{LiveRange as _0x1651ef}from'ckeditor5/src/engine';import{getTranslation as _0x7e5345}from'../utils/common-translations';export default class yt extends _0x4e537b{static get[_0x4609('0x4f')](){return[_0x43a704];}[_0x4609('0x49')](){const _0x208e79=this[_0x4609('0x42')],_0x2d2b66=_0x208e79['model'][_0x4609('0x23')][_0x4609('0x2f')],_0xe73d43=_0x208e79[_0x4609('0x24')];if(!_0x208e79[_0x4609('0x16')][_0x4609('0x3f')](_0x4609('0x44')))return;const _0x404a06=_0x208e79[_0x4609('0x16')][_0x4609('0x13')](_0x4609('0x37')),_0xf1e627=_0x208e79[_0x4609('0x16')]['get'](_0x4609('0x1f')),_0xb057bb=_0x208e79[_0x4609('0x16')][_0x4609('0x13')](_0x43a704);_0xb057bb['_tablePostFixingSubtypes'][_0x4609('0x4d')](_0x4609('0x2b')),_0x404a06[_0x4609('0x1e')](_0x4609('0x2b'),()=>{const _0x409d76=_0xf1e627['getSelectionAffectedTableCells'](_0x208e79[_0x4609('0xe')][_0x4609('0x23')][_0x4609('0x2f')]);_0x208e79[_0x4609('0xe')]['change'](()=>{_0x404a06[_0x4609('0x7')](_0x409d76,{'commandName':_0x4609('0x2b'),'commandParams':[]},[],'mergeTableCells');});}),_0x208e79[_0x4609('0x1b')][_0x4609('0x13')]('mergeTableCells')['on']('execute',(_0xd83ca3,_0xfa7dfd)=>{_0x208e79['commands'][_0x4609('0x13')](_0x4609('0x0'))['value']&&(_0xfa7dfd[_0x4609('0x4')]>0x0&&_0xfa7dfd[_0xfa7dfd[_0x4609('0x4')]-0x1]&&_0xfa7dfd[_0xfa7dfd[_0x4609('0x4')]-0x1][_0x4609('0x30')]||_0x404a06[_0x4609('0x41')]||this[_0x4609('0x26')]()||_0xd83ca3[_0x4609('0x4a')]());},{'priority':'highest'});for(const _0x47ea44 of[_0x4609('0x1a'),'mergeTableCellRight',_0x4609('0xa'),_0x4609('0x10')]){const _0x17116c=_0x208e79[_0x4609('0x1b')]['get'](_0x47ea44);_0x404a06[_0x4609('0x1e')](_0x47ea44,()=>{const _0x2c35a0=_0x208e79[_0x4609('0xe')]['document'][_0x4609('0x2f')][_0x4609('0x4e')]()[_0x4609('0x32')]()['find'](_0x3c4eef=>_0x3c4eef['is']('element',_0x4609('0x40'))),_0x5a8e01=_0x17116c['value'];_0x208e79['model'][_0x4609('0x34')](()=>{_0x404a06['markMultiRangeBlockFormat']([_0x2c35a0,_0x5a8e01],{'commandName':_0x4609('0x2b'),'commandParams':[]},[],_0x4609('0x2b'));});});}for(const _0x39e08b of[_0x4609('0xf'),_0x4609('0x12')]){const _0x383de6=_0x208e79['commands'][_0x4609('0x13')](_0x39e08b);_0x404a06['enableCommand'](_0x39e08b,()=>{const _0x3837ab=_0xf1e627[_0x4609('0x1')](_0x208e79[_0x4609('0xe')][_0x4609('0x23')]['selection'])[0x0],_0xd67b8f=_0x3837ab[_0x4609('0x8')]('table'),{column:_0x3ff23b,row:_0x3f98f5}=_0xf1e627[_0x4609('0x3')](_0x3837ab);let _0x13bf60=[];if(_0x4609('0x29')==_0x383de6['direction']){const _0x395421=_0xf1e627[_0x4609('0x21')](_0xd67b8f,{'startRow':_0x3f98f5,'endRow':_0x3f98f5,'includeAllSlots':!0x0});_0x13bf60=Array[_0x4609('0x19')](_0x395421)['map'](_0x3780f5=>_0x3780f5[_0x4609('0x3e')]);}else{const _0xf97008=_0xf1e627['createTableWalker'](_0xd67b8f,{'column':_0x3ff23b,'includeAllSlots':!0x0});_0x13bf60=Array['from'](_0xf97008)['map'](_0x29a4f8=>_0x29a4f8['cell']);}_0x208e79[_0x4609('0xe')]['change'](_0x14da0d=>{_0x404a06[_0x4609('0xb')](_0x14da0d['createRangeOn'](_0x3837ab),{'commandName':_0x39e08b,'commandParams':[]},_0x13bf60,_0x39e08b);});});}_0x404a06[_0x4609('0x3a')][_0x4609('0x18')](_0x48dd3f=>{if(_0x4609('0x35')!=_0x48dd3f[_0x4609('0x31')]&&_0x4609('0x14')!=_0x48dd3f[_0x4609('0x31')])return;const {data:_0x5bceb2}=_0x48dd3f;return _0x5bceb2&&'mergeTableCells'==_0x5bceb2['commandName']?{'type':'format','content':_0x7e5345(_0xe73d43,_0x4609('0x15'))}:void 0x0;}),_0x404a06['_descriptionFactory'][_0x4609('0x18')](_0x18a529=>{if(_0x4609('0x35')!=_0x18a529['type']&&'formatInline'!=_0x18a529[_0x4609('0x31')])return;const {data:_0x418e0a}=_0x18a529;return _0x418e0a?'splitTableCellVertically'==_0x418e0a[_0x4609('0x25')]?{'type':_0x4609('0x9'),'content':_0x7e5345(_0xe73d43,_0x4609('0x2d'))}:_0x4609('0x12')==_0x418e0a[_0x4609('0x25')]?{'type':_0x4609('0x9'),'content':_0x7e5345(_0xe73d43,_0x4609('0x1c'))}:void 0x0:void 0x0;});const _0x5ada9b=_0xb057bb[_0x4609('0x45')]();for(const _0x2eb300 of['mergeTableCellUp',_0x4609('0x22'),'mergeTableCellDown',_0x4609('0x10')])_0x404a06[_0x4609('0x2e')][_0x4609('0x3d')]('formatBlock',_0x2eb300,'accept',_0x5ada9b);for(const _0x282191 of['splitTableCellVertically','splitTableCellHorizontally'])_0x404a06[_0x4609('0x2e')][_0x4609('0x3d')](_0x4609('0x35'),_0x282191,_0x4609('0x1d'),_0x5ada9b);_0x404a06[_0x4609('0x2e')][_0x4609('0x3d')](_0x4609('0x35'),_0x4609('0x2b'),_0x4609('0x1d'),_0x57c949=>{_0x208e79['model'][_0x4609('0x34')](_0x8b88ea=>{const _0x1d9e12=Array[_0x4609('0x19')](_0x2d2b66[_0x4609('0xd')]())[_0x4609('0x2')](_0x2be19c=>_0x1651ef[_0x4609('0x39')](_0x2be19c));_0x8b88ea[_0x4609('0x50')](_0x57c949),_0x208e79[_0x4609('0x1b')]['get']('mergeTableCells')[_0x4609('0x6')](),_0x208e79['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x527d62=_0x1d9e12[_0x4609('0x3c')](_0x313b16=>_0x4609('0x47')!=_0x313b16['root'][_0x4609('0x28')]);_0x527d62[_0x4609('0x4')]>0x0&&_0x8b88ea['setSelection'](_0x527d62);for(const _0x1b9cdc of _0x1d9e12)_0x1b9cdc[_0x4609('0x36')]();});});for(const _0x19c1c6 of['mergeTableCellUp',_0x4609('0xa'),_0x4609('0x10'),'mergeTableCellRight']){const _0x14ed13=_0x208e79[_0x4609('0x1b')]['get'](_0x19c1c6);_0x14ed13['on'](_0x4609('0x43'),(_0x1374db,_0x4df63a,_0x2904bf)=>{if(_0x2904bf){const _0x53e385=_0x208e79[_0x4609('0xe')][_0x4609('0x23')][_0x4609('0x2f')][_0x4609('0x4e')]()[_0x4609('0x32')]()[_0x4609('0x3b')](_0x150beb=>_0x150beb['is']('element',_0x4609('0x40')));this[_0x4609('0x27')](_0x14ed13[_0x4609('0x5')],_0x53e385)||(_0x1374db['return']=!0x1,_0x1374db[_0x4609('0x4a')]());}},{'priority':_0x4609('0x38')});}}['_areSelectedCellsMergable'](){const _0x8e7d2a=this[_0x4609('0x42')]['commands'][_0x4609('0x13')]('mergeTableCells'),_0x24e4d7=this[_0x4609('0x42')][_0x4609('0x16')][_0x4609('0x13')]('TableUtils');if(!_0x8e7d2a[_0x4609('0x2c')])return!0x1;const _0x16d273=_0x24e4d7['getSelectionAffectedTableCells'](this['editor'][_0x4609('0xe')]['document'][_0x4609('0x2f')]);for(const _0x3f12be of _0x16d273)for(const _0x2c698 of _0x16d273)if(_0x3f12be!=_0x2c698&&!this[_0x4609('0x27')](_0x3f12be,_0x2c698))return!0x1;return!0x0;}[_0x4609('0x27')](_0x44f3ac,_0x2ed3cf){const _0x3780df=this['editor']['plugins'][_0x4609('0x13')]('TrackChangesEditing'),_0xbf4c57=this['editor']['model'][_0x4609('0xc')](_0x44f3ac),_0x2171d9=this['editor'][_0x4609('0xe')][_0x4609('0xc')](_0x2ed3cf),_0x4e78ac=new Set(),_0x40e193=new Set();for(const _0x1b7462 of _0x3780df[_0x4609('0x2a')]())if((_0x4609('0x4c')==_0x1b7462['type']||_0x4609('0x33')==_0x1b7462['type']||_0x4609('0x2b')==_0x1b7462[_0x4609('0x4b')])&&_0x1b7462[_0x4609('0x17')])for(const _0xfc508c of _0x1b7462[_0x4609('0xd')]())_0xfc508c[_0x4609('0x46')](_0xbf4c57,!0x0)&&_0x4e78ac[_0x4609('0x20')](_0x1b7462[_0x4609('0x31')]+':'+_0x1b7462[_0x4609('0x11')]['id']),_0xfc508c['containsRange'](_0x2171d9,!0x0)&&_0x40e193[_0x4609('0x20')](_0x1b7462[_0x4609('0x31')]+':'+_0x1b7462[_0x4609('0x11')]['id']);if(_0x4e78ac[_0x4609('0x48')]!=_0x40e193['size'])return!0x1;for(const _0x45da47 of _0x4e78ac)if(!_0x40e193[_0x4609('0x3f')](_0x45da47))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3eda=['commands','editor','enableCommand','_descriptionFactory','plugins','registerElementLabel','get','insertTableOfContents','TrackChangesEditing'];(function(_0x5cecd7,_0x3eda94){const _0x10be78=function(_0x1d12b3){while(--_0x1d12b3){_0x5cecd7['push'](_0x5cecd7['shift']());}};_0x10be78(++_0x3eda94);}(_0x3eda,0x1ea));const _0x10be=function(_0x5cecd7,_0x3eda94){_0x5cecd7=_0x5cecd7-0x0;let _0x10be78=_0x3eda[_0x5cecd7];return _0x10be78;};import{Plugin as _0x461dec}from'ckeditor5/src/core';import{getTranslation as _0x26e1b7}from'../utils/common-translations';export default class Ct extends _0x461dec{['afterInit'](){const _0x3ef22b=this[_0x10be('0x6')];if(!_0x3ef22b[_0x10be('0x5')]['get']('insertTableOfContents'))return;_0x3ef22b[_0x10be('0x0')][_0x10be('0x2')](_0x10be('0x4'))[_0x10be('0x7')](_0x10be('0x3'));const _0x18e99f=_0x3ef22b[_0x10be('0x0')][_0x10be('0x2')](_0x10be('0x4')),_0x363304=_0x3ef22b['locale'];_0x18e99f[_0x10be('0x8')][_0x10be('0x1')]('tableOfContents',_0x449605=>_0x26e1b7(_0x363304,'ELEMENT_TABLE_OF_CONTENTS',_0x449605));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x400a=['start','TablePropertiesEditing','tableCellProperties','tableCellBorderColor','join','accept','tableCellBorderStyle','change','tableBorderWidth','getContainedElement','getSuggestionCallback','discard','model','TableCellPropertiesEditing','afterInit','locale','tableBackgroundColor','removeAttribute','TableUtils','*Format:*\x20change\x20table\x20cell\x20properties','_handlePropertyChange','_getSuggestion','handleDiscardAction','tableCellVerticalAlignment','handleSuggestionDescription','tableCellPadding','findAncestor','format','nodeAfter','selection','tableCellWidth','tableProperties','_descriptionFactory','editor','document','tableBorderColor','table','enableCommand','TrackChangesEditing','getSelectionAffectedTableCells','getSuggestions','TrackChangesTableProperties','tableCellBackgroundColor','registerCustomCallback','pluginName','formatBlock','subType','_suggestionFactory','get','tableHeight','plugins','commandParams','tableCellBorderWidth','tableCellHorizontalAlignment','has'];(function(_0x2fb957,_0x400a37){const _0x4f43af=function(_0x330488){while(--_0x330488){_0x2fb957['push'](_0x2fb957['shift']());}};_0x4f43af(++_0x400a37);}(_0x400a,0x12c));const _0x4f43=function(_0x2fb957,_0x400a37){_0x2fb957=_0x2fb957-0x0;let _0x4f43af=_0x400a[_0x2fb957];return _0x4f43af;};import{Plugin as _0x4ab12c}from'ckeditor5/src/core';import{getTranslation as _0x2ad820}from'../utils/common-translations';export default class Mt extends _0x4ab12c{constructor(_0x373bc0){super(_0x373bc0),this[_0x4f43('0x6')]=[_0x4f43('0xa'),'tableBorderStyle',_0x4f43('0x26'),'tableAlignment','tableWidth',_0x4f43('0x18'),_0x4f43('0x2e')],this[_0x4f43('0x20')]=[_0x4f43('0x21'),_0x4f43('0x24'),_0x4f43('0x1b'),_0x4f43('0x0'),_0x4f43('0x5'),'tableCellHeight',_0x4f43('0x11'),_0x4f43('0x1c'),_0x4f43('0x35')];}static get[_0x4f43('0x13')](){return _0x4f43('0x10');}[_0x4f43('0x2c')](){const _0x297900=this[_0x4f43('0x8')][_0x4f43('0x19')][_0x4f43('0x17')]('TrackChangesEditing');if(this['editor']['plugins']['has'](_0x4f43('0x1f'))){for(const _0x14550d of this[_0x4f43('0x6')])_0x297900[_0x4f43('0xc')](_0x14550d,(_0x316913,_0x465644)=>{const _0x24111c=this[_0x4f43('0x8')]['model']['document'][_0x4f43('0x4')]['getFirstPosition']()[_0x4f43('0x1')](_0x4f43('0xb'));this['_handlePropertyChange'](_0x14550d,[_0x24111c],this[_0x4f43('0x6')],'tableProperties',_0x316913,_0x465644);});_0x297900[_0x4f43('0x16')]['registerCustomCallback'](_0x4f43('0x14'),_0x4f43('0x6'),'accept',_0x297900[_0x4f43('0x16')]['getSuggestionCallback'](_0x4f43('0x14'),null,_0x4f43('0x29'))),_0x297900['_suggestionFactory'][_0x4f43('0x12')]('formatBlock',_0x4f43('0x6'),_0x4f43('0x29'),(_0x426b1b,_0x293511)=>this['handleDiscardAction'](this[_0x4f43('0x6')],_0x426b1b,_0x293511)),_0x297900[_0x4f43('0x16')]['registerCustomCallback'](_0x4f43('0x14'),_0x4f43('0x6'),'join',()=>!0x1);}if(this[_0x4f43('0x8')][_0x4f43('0x19')][_0x4f43('0x1d')](_0x4f43('0x2b'))){for(const _0x5ae477 of this['tableCellProperties'])_0x297900[_0x4f43('0xc')](_0x5ae477,(_0x132772,_0x95dc5)=>{const _0x213ee7=this[_0x4f43('0x8')][_0x4f43('0x19')][_0x4f43('0x17')](_0x4f43('0x30'))[_0x4f43('0xe')](this[_0x4f43('0x8')][_0x4f43('0x2a')][_0x4f43('0x9')][_0x4f43('0x4')]);this[_0x4f43('0x32')](_0x5ae477,_0x213ee7,this[_0x4f43('0x20')],'tableCellProperties',_0x132772,_0x95dc5);});_0x297900['_suggestionFactory'][_0x4f43('0x12')]('formatBlock',_0x4f43('0x20'),_0x4f43('0x23'),_0x297900['_suggestionFactory'][_0x4f43('0x28')](_0x4f43('0x14'),null,'discard')),_0x297900[_0x4f43('0x16')][_0x4f43('0x12')](_0x4f43('0x14'),_0x4f43('0x20'),_0x4f43('0x29'),(_0x582010,_0x131794)=>this['handleDiscardAction'](this['tableCellProperties'],_0x582010,_0x131794)),_0x297900[_0x4f43('0x16')][_0x4f43('0x12')](_0x4f43('0x14'),_0x4f43('0x20'),_0x4f43('0x22'),()=>!0x1);}_0x297900[_0x4f43('0x7')]['registerDescriptionCallback'](_0x25c149=>this[_0x4f43('0x36')](_0x25c149));}[_0x4f43('0x32')](_0x26f27b,_0x44db7a,_0x2cc4f4,_0x363bfc,_0x4aa1b1,_0x203fc7){const _0x57f2d4=this[_0x4f43('0x8')][_0x4f43('0x19')]['get'](_0x4f43('0xd'));this[_0x4f43('0x8')][_0x4f43('0x2a')]['enqueueChange'](_0x203fc7['batch'],()=>{for(const _0x24a3e7 of _0x44db7a){if(this[_0x4f43('0x33')](_0x24a3e7,_0x363bfc))_0x4aa1b1(_0x203fc7);else{const _0xff6458={};for(const _0x4b78a2 of _0x2cc4f4){const _0x16e517=_0x24a3e7['getAttribute'](_0x4b78a2);void 0x0!==_0x16e517&&(_0xff6458[_0x4b78a2]=_0x16e517);}_0x4aa1b1(_0x203fc7),_0x57f2d4['markBlockFormat'](_0x24a3e7,{'commandParams':[_0xff6458]},[],_0x363bfc);}}});}[_0x4f43('0x34')](_0x4b2d2b,_0x7d2ca8,_0x58e3eb){const _0x5abcf6=_0x7d2ca8[0x0][_0x4f43('0x1e')][_0x4f43('0x3')],_0x3974f4=_0x58e3eb[_0x4f43('0x1a')][0x0];this['editor'][_0x4f43('0x2a')][_0x4f43('0x25')](_0x1ae69b=>{for(const _0x1d1b8e of _0x4b2d2b)void 0x0!==_0x3974f4[_0x1d1b8e]?_0x1ae69b['setAttribute'](_0x1d1b8e,_0x3974f4[_0x1d1b8e],_0x5abcf6):_0x1ae69b[_0x4f43('0x2f')](_0x1d1b8e,_0x5abcf6);});}[_0x4f43('0x36')](_0x3e9ada){if(_0x3e9ada['data'])switch(_0x3e9ada[_0x4f43('0x15')]){case'tableProperties':return{'type':_0x4f43('0x2'),'content':_0x2ad820(this[_0x4f43('0x8')][_0x4f43('0x2d')],'*Format:*\x20change\x20table\x20properties')};case _0x4f43('0x20'):return{'type':_0x4f43('0x2'),'content':_0x2ad820(this[_0x4f43('0x8')][_0x4f43('0x2d')],_0x4f43('0x31'))};}}['_getSuggestion'](_0x20da24,_0xb161ba){const _0x5ead7a=this['editor']['plugins'][_0x4f43('0x17')]('TrackChangesEditing');for(const _0x52dd78 of _0x5ead7a[_0x4f43('0xf')]({'skipNotAttached':!0x0})){const _0x1bcc3f=_0x52dd78[_0x4f43('0x27')]();if(_0x52dd78[_0x4f43('0x15')]===_0xb161ba&&_0x1bcc3f===_0x20da24)return _0x52dd78;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3408=['enableCommand','has','TrackChangesEditing','plugins','insertTemplate'];(function(_0x6d76f8,_0x3408a5){const _0x49e324=function(_0x32eca3){while(--_0x32eca3){_0x6d76f8['push'](_0x6d76f8['shift']());}};_0x49e324(++_0x3408a5);}(_0x3408,0x80));const _0x49e3=function(_0x6d76f8,_0x3408a5){_0x6d76f8=_0x6d76f8-0x0;let _0x49e324=_0x3408[_0x6d76f8];return _0x49e324;};import{Plugin as _0x3c019b}from'ckeditor5/src/core';export default class vt extends _0x3c019b{['afterInit'](){const _0x752a3b=this['editor'];_0x752a3b[_0x49e3('0x0')][_0x49e3('0x3')]('Template')&&_0x752a3b['plugins']['get'](_0x49e3('0x4'))[_0x49e3('0x2')](_0x49e3('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5569=['editor','updateMarker','isCollapsed','TrackChangesEditing','schema','removeMarker','getChangedMarkers','nodeBefore','forward','element','_descriptionFactory','differ','suggestion','isTouching','registerElementLabel','model','start','_splitMarkerName','ELEMENT_TITLE','createRange','plugins','newRange','Title','title-content','locale','end','getNearestSelectionRange','get','from'];(function(_0x5cdd29,_0x55699e){const _0x24777f=function(_0xecbcb6){while(--_0xecbcb6){_0x5cdd29['push'](_0x5cdd29['shift']());}};_0x24777f(++_0x55699e);}(_0x5569,0x1ea));const _0x2477=function(_0x5cdd29,_0x55699e){_0x5cdd29=_0x5cdd29-0x0;let _0x24777f=_0x5569[_0x5cdd29];return _0x24777f;};import{Plugin as _0x1cf1c7}from'ckeditor5/src/core';import{getTranslation as _0x49d797}from'../utils/common-translations';export default class _t extends _0x1cf1c7{['afterInit'](){const _0x433db2=this[_0x2477('0x3')];if(!_0x433db2[_0x2477('0x17')]['has'](_0x2477('0x19')))return;const _0x2b8406=_0x433db2[_0x2477('0x17')][_0x2477('0x1')](_0x2477('0x6'));_0x2b8406[_0x2477('0xd')][_0x2477('0x11')](_0x2477('0x1a'),()=>_0x49d797(_0x433db2[_0x2477('0x1b')],_0x2477('0x15'))),_0x433db2[_0x2477('0x12')]['document']['registerPostFixer'](_0x1575a0=>{let _0x19161e=!0x1;const _0x5182e7=Array[_0x2477('0x2')](_0x433db2[_0x2477('0x12')]['document'][_0x2477('0xe')][_0x2477('0x9')]());for(const {name:_0x18afc0,data:_0x3a6318}of _0x5182e7){const {group:_0x208c79}=_0x2b8406[_0x2477('0x14')](_0x18afc0);if(_0x2477('0xf')!==_0x208c79||!_0x3a6318[_0x2477('0x18')])continue;const _0x5d25b1=_0x3a6318[_0x2477('0x18')],_0x4ebd74=_0x5d25b1[_0x2477('0x1c')][_0x2477('0xa')];if(!_0x4ebd74||!_0x4ebd74['is'](_0x2477('0xc'),_0x2477('0x1a')))continue;if(!_0x5d25b1[_0x2477('0x13')][_0x2477('0x10')](_0x5d25b1[_0x2477('0x1c')]))continue;const _0x38ce5a=_0x433db2['model'][_0x2477('0x7')][_0x2477('0x0')](_0x5d25b1[_0x2477('0x1c')],_0x2477('0xb'));if(_0x38ce5a&&_0x38ce5a[_0x2477('0x5')]){const _0x5551e3=_0x1575a0[_0x2477('0x16')](_0x5d25b1[_0x2477('0x13')],_0x38ce5a['start']);_0x5551e3['isEqual'](_0x5d25b1)||(_0x1575a0[_0x2477('0x4')](_0x18afc0,{'range':_0x5551e3}),_0x19161e=!0x0);}_0x19161e||(_0x1575a0[_0x2477('0x8')](_0x18afc0),_0x19161e=!0x0);}return _0x19161e;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d63=['editor','afterInit','plugins','has','UndoEditing','TrackChangesEditing','enableCommand','undo'];(function(_0x20532,_0x3d63da){const _0x5ddb72=function(_0x5e9895){while(--_0x5e9895){_0x20532['push'](_0x20532['shift']());}};_0x5ddb72(++_0x3d63da);}(_0x3d63,0x64));const _0x5ddb=function(_0x20532,_0x3d63da){_0x20532=_0x20532-0x0;let _0x5ddb72=_0x3d63[_0x20532];return _0x5ddb72;};import{Plugin as _0xf42559}from'ckeditor5/src/core';export default class Dt extends _0xf42559{[_0x5ddb('0x5')](){const _0x1aed34=this[_0x5ddb('0x4')],_0x552e16=_0x1aed34[_0x5ddb('0x6')]['get'](_0x5ddb('0x1'));_0x1aed34[_0x5ddb('0x6')][_0x5ddb('0x7')](_0x5ddb('0x0'))&&(_0x552e16[_0x5ddb('0x2')](_0x5ddb('0x3')),_0x552e16[_0x5ddb('0x2')]('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5cf2=['createUIElement','test','listIndent','markerRange','getAttribute','getWalker','isContent','start','mapper','get','element','hasAttribute','createRangeOn','writer','name','parent','nextSibling','isBlock','toViewElement','addClass','push','previousPosition','markerName','model','ck-suggestion-marker--active','isLimit','includes','getItems','insert','listItem','elementEnd','bindElementToMarker','item','isAtEnd','type','toViewPosition','schema','getCustomProperty'];(function(_0x51f342,_0x5cf294){const _0x234c9a=function(_0x310df5){while(--_0x310df5){_0x51f342['push'](_0x51f342['shift']());}};_0x234c9a(++_0x5cf294);}(_0x5cf2,0x1bc));const _0x234c=function(_0x51f342,_0x5cf294){_0x51f342=_0x51f342-0x0;let _0x234c9a=_0x5cf2[_0x51f342];return _0x234c9a;};export function getRangesWithAttribute(_0x122f6d,_0x133fe2,_0x3ad2aa){const _0x45d4be=[];for(const _0x2812e0 of _0x133fe2[_0x234c('0x1')]())_0x2812e0[_0x234c('0x17')](_0x122f6d)&&_0x45d4be['push'](_0x3ad2aa[_0x234c('0x18')](_0x2812e0));return _0x45d4be;}export function getElementsAffectedByListItemRename(_0x94f59e){const _0x3cb8c7=[];if(_0x94f59e['is'](_0x234c('0x16'),'listItem')){let _0x359445=_0x94f59e[_0x234c('0x1c')];for(;_0x359445&&_0x359445['is'](_0x234c('0x16'),_0x234c('0x3'))&&_0x359445[_0x234c('0x10')](_0x234c('0xe'))>0x0;)_0x3cb8c7[_0x234c('0x20')](_0x359445),_0x359445=_0x359445['nextSibling'];}return _0x3cb8c7;}export function downcastSplitMergeMarker(_0x2daa64,_0x4dc9fb,{showActiveMarker:_0x249a67=!0x0}={}){const _0x183fff=_0x2daa64['plugins'][_0x234c('0x15')]('TrackChangesEditing');return(_0xe80eb2,_0x2504e8,_0x3b6e61)=>{if(!_0x3b6e61['consumable'][_0x234c('0xd')](_0x2504e8[_0x234c('0xf')],_0xe80eb2[_0x234c('0x1a')]))return;const _0x35d907=_0x2504e8[_0x234c('0xf')][_0x234c('0x11')](),_0x3c85b9=_0x2504e8[_0x234c('0xf')][_0x234c('0x13')],_0x30e0c8=_0x2daa64[_0x234c('0x23')][_0x234c('0xa')];let _0x4dae4=null,_0xf4cc1f=null,_0x602b61=!0x1,_0x498975=!0x1;for(const _0x9e5fae of _0x35d907){const _0x10caae=_0x9e5fae[_0x234c('0x6')];_0x602b61=_0x602b61||_0x30e0c8[_0x234c('0x12')](_0x10caae);const _0x5bdb34=_0x3b6e61[_0x234c('0x14')][_0x234c('0x1e')](_0x10caae);if(_0x5bdb34&&_0x5bdb34[_0x234c('0xb')]('addHighlight'))return;_0x234c('0x4')==_0x9e5fae[_0x234c('0x8')]&&(_0x30e0c8[_0x234c('0x1d')](_0x10caae)&&!_0x30e0c8[_0x234c('0x25')](_0x10caae)&&(_0x10caae['nextSibling']||_0x3c85b9[_0x234c('0x7')]?_0x4dae4&&_0x4dae4[_0x234c('0x1b')]==_0x10caae||(_0x4dae4=_0x10caae,_0x4206d0(_0x9e5fae[_0x234c('0x21')]),_0x498975=!0x0):_0xf4cc1f=_0xf4cc1f||_0x9e5fae[_0x234c('0x21')]));}function _0x4206d0(_0x52cec4){const _0x3f2487=_0x3b6e61['writer'][_0x234c('0xc')]('span',{'class':'ck-suggestion-marker-'+_0x4dc9fb}),_0x4bb130=_0x3b6e61[_0x234c('0x14')][_0x234c('0x9')](_0x52cec4);_0x249a67&&_0x183fff['activeMarkers'][_0x234c('0x0')](_0x2504e8[_0x234c('0x22')])&&_0x3b6e61[_0x234c('0x19')][_0x234c('0x1f')](_0x234c('0x24'),_0x3f2487),_0x3b6e61['writer'][_0x234c('0x2')](_0x4bb130,_0x3f2487),_0x3b6e61[_0x234c('0x14')][_0x234c('0x5')](_0x3f2487,_0x2504e8[_0x234c('0x22')]);}_0x602b61||_0x498975||!_0xf4cc1f||_0x4206d0(_0xf4cc1f);};}
|