@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240130.0 → 0.0.0-nightly-20240201.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/build/translations/ro.js +1 -1
- package/lang/translations/ro.po +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14fc=['enableCommand','plugins','has','requires','TrackChangesEditing','editor','get','afterInit','toggleTableCaption'];(function(_0x1760da,_0x14fc1d){const _0x580918=function(_0x446907){while(--_0x446907){_0x1760da['push'](_0x1760da['shift']());}};_0x580918(++_0x14fc1d);}(_0x14fc,0xc6));const _0x5809=function(_0x1760da,_0x14fc1d){_0x1760da=_0x1760da-0x0;let _0x580918=_0x14fc[_0x1760da];return _0x580918;};import{Plugin as _0x2fbe3a}from'ckeditor5/src/core.js';import _0x4eec6c from'./table.js';export default class Nt extends _0x2fbe3a{static get[_0x5809('0x3')](){return[_0x4eec6c];}[_0x5809('0x7')](){const _0x51f8eb=this[_0x5809('0x5')];if(!_0x51f8eb['plugins'][_0x5809('0x2')]('TableCaptionEditing'))return;_0x51f8eb[_0x5809('0x1')][_0x5809('0x6')](_0x5809('0x4'))[_0x5809('0x0')](_0x5809('0x8'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5068=['reduce','redo','add','suggestion:formatBlock:tablePasteCell','createPositionBefore','formatBlock','plugins','documentSelection','rowInsertionRanges','editor','tableCellPadding','document','type','markerToHighlight','afterInit','*Replace\x20table\x20cells*','getSelectionAffectedTableCells','createRangeIn','get','filter','change','removeColumns','getRange','hasSuggestion','length','tablePasteCell','suggestion-td','discard','column','keys','every','columnInsertionIndexes','includes','remove','tableCellBackgroundColor','getItems','getAttributes','high','_createdBatches','insertion','ck-suggestion-marker--active','locale','createRange','map','some','root','markMultiRangeBlockFormat','trackChanges','has','low','table','markerName','getContainedElement','Users','editing','tableCellBorderWidth','clipboardOutput','findAncestor','startsWith','deletion','row','entries','getChild','set','first','createTableWalker','suggestionLoaded','accept','tablePasteColumn','tableCell','name','batch','ck-suggestion-marker','model','setAttribute','insertColumns','showSuggestionHighlights','differ','commands','wrap','isInContent','tablePaste','getRanges','getSuggestions','_suggestionFactory','tableCellBorderStyle','for','columns','_splitMarkerName','deletionRanges','ck-suggestion-marker-insertion','elementToElement','getTableIfOnlyTableInContent','activeMarkers','getChangedMarkers','markMultiRangeDeletion','registerCustomCallback','_replaceTableSlotCell','suggestion','element','from','tableCellSuggestion','unwrap','editingDowncast','getColumns','updateMarker','insert','insertContent','next','markers','forceDefaultExecution','TableClipboard','removeMarker','subType','$graveyard','getChildren','tableCellHorizontalAlignment','columnInsertionRanges','createElement','suggestionUnloaded','isEqual','previousSibling','_isForcedDefaultExecutionBlock','getSuggestionCallback','stop','dataDowncast','selection','tableCellVerticalAlignment','move','rootName','listenTo','containsRange','isEmpty','start','removeRows','oldRange','getAllAdjacentSuggestions','getRows','_getCoordsForCells','markerAttributes','_descriptionFactory','newRange','tablePasteChainId','createRangeOn','attributes','author','registerDescriptionCallback','last','cells','rowInsertionIndexes','paragraph','fromEntries','getRowIndexes','rows','end','markMultiRangeInsertion','push','getMarkers','conversion','join','registerPostFixer','position','schema','getSuggestion','previous','insertRows','tablePasteRow'];(function(_0x40f0ec,_0x506858){const _0x462ffc=function(_0x596bb1){while(--_0x596bb1){_0x40f0ec['push'](_0x40f0ec['shift']());}};_0x462ffc(++_0x506858);}(_0x5068,0x175));const _0x462f=function(_0x40f0ec,_0x506858){_0x40f0ec=_0x40f0ec-0x0;let _0x462ffc=_0x5068[_0x40f0ec];return _0x462ffc;};import{getTranslation as _0xf13c80}from'../utils/common-translations.js';import{Plugin as _0x1f7411}from'ckeditor5/src/core.js';import{uid as _0x45a4ba,priorities as _0x51b782}from'ckeditor5/src/utils.js';import _0x22e901 from'./table.js';const fe=[_0x462f('0x10'),'tableCellBorderColor',_0x462f('0x2e'),_0x462f('0x4d'),_0x462f('0x58'),_0x462f('0xa2'),_0x462f('0x8a')],be=Object[_0x462f('0x70')](fe[_0x462f('0x4')](_0x538d38=>[_0x538d38,null]));export default class At extends _0x1f7411{static get['requires'](){return[_0x22e901];}[_0x462f('0x8e')](){const _0x2ececd=this[_0x462f('0x89')];if(!_0x2ececd[_0x462f('0x86')]['has'](_0x462f('0x48')))return;const _0x2bae16=_0x2ececd['plugins'][_0x462f('0x92')]('TrackChangesEditing'),_0x24ee0b=_0x2ececd[_0x462f('0x86')][_0x462f('0x92')]('TableUtils'),_0x377472=_0x2ececd['plugins'][_0x462f('0x92')](_0x22e901),_0x24c3f2=_0x2ececd['plugins'][_0x462f('0x92')](_0x462f('0x48'));_0x377472['_tablePostFixingSubtypes']['push'](_0x462f('0x7f'),'tablePasteColumn'),_0x2ececd[_0x462f('0x22')][_0x462f('0x7b')]['register'](_0x462f('0x3e'),{'allowIn':_0x462f('0x1e'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x2ececd[_0x462f('0x77')][_0x462f('0x34')]({'model':_0x462f('0x3e'),'view':'suggestion-td'});let _0x479d2a=null;_0x2ececd['model']['on'](_0x462f('0x44'),(_0x590b7b,_0x3f915a)=>{const [_0x19215f,_0x428e91]=_0x3f915a,_0x4aa200=_0x3f915a[_0x3f915a[_0x462f('0x98')]-0x1];_0x4aa200&&_0x4aa200[_0x462f('0x47')]||_0x2bae16[_0x462f('0x53')]||this[_0x462f('0x89')][_0x462f('0x27')][_0x462f('0x92')](_0x462f('0x8'))['value']&&function(_0x3fdf33,_0x39f467,_0x2dc434,_0x5f4d5a,_0x3df040){if(_0x39f467&&!_0x39f467['is'](_0x462f('0x87')))return!0x1;const _0x4fadf2=_0x3df040[_0x462f('0x35')](_0x3fdf33,_0x2dc434);if(!_0x4fadf2||!de(_0x4fadf2,void 0x0,_0x5f4d5a))return!0x1;const _0x1f7846=_0x5f4d5a[_0x462f('0x90')](_0x2dc434[_0x462f('0x8b')][_0x462f('0x57')]);if(!_0x1f7846['length'])return!0x1;const _0x2e211c=_0x1f7846[0x0]['findAncestor']('table'),_0x10852d=_0x5f4d5a[_0x462f('0x71')](_0x1f7846),_0x3237b8=_0x5f4d5a['getColumnIndexes'](_0x1f7846),_0x33ddce={'startRow':_0x10852d[_0x462f('0x19')],'endRow':_0x10852d[_0x462f('0x6c')],'startColumn':_0x3237b8[_0x462f('0x19')],'endColumn':_0x3237b8['last']};return 0x1==_0x1f7846[_0x462f('0x98')]&&(_0x33ddce['endRow']+=_0x5f4d5a[_0x462f('0x62')](_0x4fadf2)-0x1,_0x33ddce['endColumn']+=_0x5f4d5a[_0x462f('0x41')](_0x4fadf2)-0x1),de(_0x2e211c,_0x33ddce,_0x5f4d5a);}(_0x19215f,_0x428e91,_0x2ececd['model'],_0x24ee0b,_0x24c3f2)&&(_0x590b7b['stop'](),_0x479d2a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2ececd[_0x462f('0x22')][_0x462f('0x94')](()=>{_0x2ececd['model'][_0x462f('0x44')](_0x3f915a[0x0],_0x3f915a[0x1],_0x3f915a[0x2],{'forceDefaultExecution':!0x0});const _0x4c7f85=_0x45a4ba(),{rowInsertionRanges:_0x37dddd,columnInsertionRanges:_0x401916,insertionRanges:_0x2701fa,deletionRanges:_0x4432a6,cells:_0x4ceb5c}=_0x479d2a;_0x37dddd['length']&&_0x2bae16['markMultiRangeInsertion'](_0x37dddd,_0x462f('0x7f'),{'tablePasteChainId':_0x4c7f85}),_0x401916[_0x462f('0x98')]&&_0x2bae16[_0x462f('0x74')](_0x401916,_0x462f('0x1d'),{'tablePasteChainId':_0x4c7f85}),_0x2701fa[_0x462f('0x98')]&&_0x2bae16[_0x462f('0x74')](_0x2701fa,_0x462f('0x2a'),{'tablePasteChainId':_0x4c7f85,'skipNestingCheck':!0x0}),_0x4432a6[_0x462f('0x98')]&&_0x2bae16[_0x462f('0x38')](_0x4432a6,_0x462f('0x2a'),{'tablePasteChainId':_0x4c7f85,'skipNestingCheck':!0x0});const _0x120bea=_0x2bae16[_0x462f('0x7')](_0x4ceb5c[_0x462f('0x4')](({element:_0x3e1869})=>_0x3e1869),{'formatGroupId':_0x45a4ba()},[],_0x462f('0x99'),{'tablePasteChainId':_0x4c7f85});if(_0x120bea){const _0x265a30=_0x120bea['getMarkers'](),_0x2be7aa=[];for(const {element:_0x16a7a6,attributes:_0x3c8927}of _0x4ceb5c){if(!_0x3c8927)continue;const _0x3962e4=_0x2ececd[_0x462f('0x22')][_0x462f('0x68')](_0x16a7a6),_0x460208=_0x265a30['find'](_0x5da88b=>_0x5da88b[_0x462f('0x96')]()[_0x462f('0x51')](_0x3962e4));_0x460208&&_0x2be7aa[_0x462f('0x75')]([_0x460208['name'],_0x3c8927]);}_0x2be7aa['length']&&_0x120bea[_0x462f('0x23')](_0x462f('0x64'),Object[_0x462f('0x70')](_0x2be7aa));}_0x479d2a=null;}));},{'priority':_0x51b782['high']+0xa}),_0x2ececd[_0x462f('0x86')][_0x462f('0x92')](_0x462f('0x48'))['on'](_0x462f('0x3a'),(_0x1927c6,_0x3b65b4)=>{const [_0x10cfd6,_0x426223,,_0x2fea1d]=_0x3b65b4;if(!_0x479d2a)return;_0x1927c6[_0x462f('0x55')]();const _0x369ad2=_0x10cfd6['cell'],_0x56ad98=_0x426223,_0x21b775=ge(_0x369ad2),_0x5900b5=ge(_0x56ad98);_0x1927c6['return']=_0x369ad2;let _0x2901d0=null,_0x52613c=null;if(_0x5900b5||_0x21b775){if(_0x21b775&&!_0x5900b5){_0x2fea1d[_0x462f('0xa1')](_0x369ad2[_0x462f('0x17')](0x0));for(const _0x413f02 of Array['from'](_0x56ad98[_0x462f('0x4c')]()))_0x2fea1d[_0x462f('0x43')](_0x413f02,_0x369ad2,'end');const _0x1926e3=_0x479d2a[_0x462f('0x6e')][_0x462f('0xa0')](_0x10cfd6[_0x462f('0x15')]),_0xb0b6a0=_0x479d2a[_0x462f('0x9f')][_0x462f('0xa0')](_0x10cfd6[_0x462f('0x9c')]);_0x1926e3||_0xb0b6a0||(_0x2901d0=_0x2fea1d['createRangeIn'](_0x369ad2));}else _0x5900b5&&!_0x21b775&&(_0x52613c=_0x2fea1d[_0x462f('0x91')](_0x369ad2));}else{const _0x4e0a6e=_0x2fea1d['createElement']('tableCellSuggestion'),_0x5b46ba=_0x2fea1d[_0x462f('0x4f')](_0x462f('0x3e'));_0x2fea1d[_0x462f('0x28')](_0x2fea1d[_0x462f('0x91')](_0x369ad2),_0x5b46ba),_0x2fea1d[_0x462f('0x43')](_0x4e0a6e,_0x369ad2,0x0);for(const _0x93bf56 of Array[_0x462f('0x3d')](_0x56ad98[_0x462f('0x4c')]()))_0x2fea1d[_0x462f('0x43')](_0x93bf56,_0x4e0a6e,_0x462f('0x73'));_0x2901d0=_0x2fea1d[_0x462f('0x68')](_0x4e0a6e),_0x52613c=_0x2fea1d[_0x462f('0x68')](_0x5b46ba);}const _0x52592f=Array[_0x462f('0x3d')](_0x56ad98[_0x462f('0xa4')]())['filter'](([_0x7dc831])=>fe[_0x462f('0xa0')](_0x7dc831));_0x479d2a['cells']['push']({'element':_0x369ad2,'attributes':_0x52592f['length']?Object[_0x462f('0x70')](_0x52592f):null}),_0x2901d0&&_0x479d2a['insertionRanges'][_0x462f('0x75')](_0x2901d0),_0x52613c&&_0x479d2a[_0x462f('0x32')]['push'](_0x52613c);},{'priority':_0x462f('0xa5')}),_0x24ee0b['on'](_0x462f('0x24'),(_0x2f200f,_0x19ea3a)=>{const [_0x3bd08a,_0x4baaba={}]=_0x19ea3a;if(!_0x479d2a)return;const _0x53145a=_0x4baaba['at']||0x0,_0x46e03f=_0x4baaba[_0x462f('0x30')]||0x1;_0x479d2a[_0x462f('0x9f')]=new Array(_0x46e03f)['fill'](_0x53145a)['map']((_0x8a00a3,_0x154832)=>_0x8a00a3+_0x154832);for(const {cell:_0xef6c4a}of _0x24ee0b[_0x462f('0x1a')](_0x3bd08a,{'startColumn':_0x53145a,'endColumn':_0x53145a+_0x46e03f-0x1}))_0x479d2a[_0x462f('0x4e')][_0x462f('0x75')](_0x2ececd[_0x462f('0x22')][_0x462f('0x68')](_0xef6c4a));},{'priority':'low'}),_0x24ee0b['on'](_0x462f('0x7e'),(_0x83971b,_0x523082)=>{const [_0x5adf30,_0x44e0b0={}]=_0x523082;if(!_0x479d2a)return;const _0x5e7764=_0x44e0b0['at']||0x0,_0x2ff767=_0x44e0b0[_0x462f('0x72')]||0x1;_0x479d2a[_0x462f('0x6e')]=new Array(_0x2ff767)['fill'](_0x5e7764)[_0x462f('0x4')]((_0x36d746,_0x5295ec)=>_0x36d746+_0x5295ec);for(const {cell:_0x24dc7f}of _0x24ee0b[_0x462f('0x1a')](_0x5adf30,{'startRow':_0x5e7764,'endRow':_0x5e7764+_0x2ff767-0x1}))_0x479d2a[_0x462f('0x88')][_0x462f('0x75')](_0x2ececd[_0x462f('0x22')][_0x462f('0x68')](_0x24dc7f));},{'priority':_0x462f('0xa')}),_0x2bae16[_0x462f('0x65')][_0x462f('0x6b')](_0x22eaf9=>{if(_0x22eaf9[_0x462f('0x4a')]&&_0x22eaf9[_0x462f('0x4a')]['startsWith'](_0x462f('0x2a')))return _0x22eaf9[_0x462f('0x7d')]?{}:{'type':'insertion','content':_0xf13c80(_0x2ececd[_0x462f('0x2')],_0x462f('0x8f'))};});const _0x4e9e6b=()=>!0x1;for(const _0x56e49e of[_0x462f('0x2a'),_0x462f('0x1d'),'tablePasteRow',_0x462f('0x99')])_0x2bae16[_0x462f('0x2d')][_0x462f('0x39')](_0x462f('0x0'),_0x56e49e,'join',_0x4e9e6b),_0x2bae16['_suggestionFactory'][_0x462f('0x39')](_0x462f('0x14'),_0x56e49e,'join',_0x4e9e6b),_0x2bae16[_0x462f('0x2d')][_0x462f('0x39')](_0x462f('0x85'),_0x56e49e,_0x462f('0x78'),_0x4e9e6b);_0x2bae16[_0x462f('0x2d')]['registerCustomCallback'](_0x462f('0x85'),'tablePasteCell',_0x462f('0x9b'),_0x4e9e6b),_0x2bae16[_0x462f('0x2d')][_0x462f('0x39')](_0x462f('0x85'),_0x462f('0x99'),_0x462f('0x1c'),(_0xb7edab,_0x19efe7,_0x4a7ab2)=>{const _0x174e7d=_0xb7edab[_0x462f('0x4')](_0x2d3975=>_0x2d3975[_0x462f('0xd')]())['filter'](_0x288845=>_0x288845),_0x26a7e2=new Map(_0x174e7d[_0x462f('0x4')](_0x52bea8=>[_0x52bea8,null]));if(_0x479d2a)for(const {element:_0x46a81d,attributes:_0x2ac1c6}of _0x479d2a[_0x462f('0x6d')])_0x2ac1c6&&_0x26a7e2[_0x462f('0x18')](_0x46a81d,_0x2ac1c6);else{if(_0x4a7ab2&&_0x4a7ab2[_0x462f('0x64')])for(const [_0x549f6a,_0x209972]of Object[_0x462f('0x16')](_0x4a7ab2[_0x462f('0x64')])){const _0x19b3ee=_0x2ececd[_0x462f('0x22')][_0x462f('0x46')][_0x462f('0x92')](_0x549f6a),_0x7e7b62=_0x19b3ee?_0x19b3ee[_0x462f('0x96')]()[_0x462f('0xd')]():null;_0x7e7b62&&_0x26a7e2['set'](_0x7e7b62,_0x209972);}}_0x2ececd[_0x462f('0x22')][_0x462f('0x94')](_0x2a7785=>{for(const [_0x596516,_0x1fde0e]of _0x26a7e2)_0x2a7785['setAttributes']({...be,..._0x1fde0e},_0x596516);});});const _0x27f9b2=(_0x7e103f,_0x64c1a6)=>{_0x2bae16[_0x462f('0x2d')][_0x462f('0x39')](_0x7e103f,_0x462f('0x2a'),_0x64c1a6,(_0x1554b9,_0x1ab314,_0x27fb76)=>{_0x2ececd[_0x462f('0x22')][_0x462f('0x94')](_0x2430dc=>{const _0x5de3eb=[];for(const _0x586b50 of _0x1554b9){const _0x321e21=_0x586b50[_0x462f('0x5e')]['nodeAfter'];_0x321e21['is'](_0x462f('0x3c'),_0x462f('0x3e'))&&_0x5de3eb[_0x462f('0x75')](_0x321e21);}_0x2bae16[_0x462f('0x2d')][_0x462f('0x54')](_0x7e103f,null,_0x64c1a6)(_0x1554b9,_0x1ab314,_0x27fb76);for(const _0x39c852 of _0x5de3eb)_0x462f('0x4b')!=_0x39c852[_0x462f('0x6')][_0x462f('0x5a')]&&_0x2430dc['unwrap'](_0x39c852);});});};_0x27f9b2(_0x462f('0x0'),_0x462f('0x1c')),_0x27f9b2(_0x462f('0x0'),'discard'),_0x27f9b2(_0x462f('0x14'),_0x462f('0x1c')),_0x27f9b2('deletion','discard'),_0x2bae16[_0x462f('0x2d')]['registerCustomCallback'](_0x462f('0x0'),_0x462f('0x7f'),_0x462f('0x9b'),_0x1812f9=>{const _0x3f4916=_0x1812f9[_0x462f('0x4')](_0x308522=>_0x308522[_0x462f('0xd')]()),_0x5498b6=_0x3f4916[0x0][_0x462f('0x12')](_0x462f('0xb')),{minRow:_0x1a34f7,maxRow:_0x340a11}=_0x377472[_0x462f('0x63')](_0x3f4916);_0x24ee0b[_0x462f('0x5f')](_0x5498b6,{'at':_0x1a34f7,'rows':_0x340a11-_0x1a34f7+0x1});}),_0x2bae16[_0x462f('0x2d')]['registerCustomCallback'](_0x462f('0x0'),_0x462f('0x1d'),_0x462f('0x9b'),_0x4e1278=>{const _0x495e82=_0x4e1278['map'](_0x889cea=>_0x889cea[_0x462f('0xd')]()),_0x25d08f=_0x495e82[0x0][_0x462f('0x12')](_0x462f('0xb')),{minColumn:_0x1d5a59,maxColumn:_0x10a1e1}=_0x377472['_getCoordsForCells'](_0x495e82);_0x24ee0b[_0x462f('0x95')](_0x25d08f,{'at':_0x1d5a59,'columns':_0x10a1e1-_0x1d5a59+0x1});});const _0xbab9d3=(_0x1ee85d,_0x2f53b7)=>{if(!_0x2f53b7['subType']||!_0x2f53b7[_0x462f('0x4a')][_0x462f('0x13')](_0x462f('0x2a')))return;const _0x4d54b9=_0x2f53b7[_0x462f('0x69')][_0x462f('0x67')],_0x4e9ccb=_0x2bae16[_0x462f('0x2c')]()[_0x462f('0x93')](_0x5e2117=>_0x5e2117[_0x462f('0x29')]&&_0x5e2117[_0x462f('0x69')]&&_0x5e2117['attributes'][_0x462f('0x67')]==_0x4d54b9);_0x4e9ccb[_0x462f('0x98')]&&_0x2f53b7[_0x462f('0x61')]()['length']!=_0x4e9ccb[_0x462f('0x98')]&&_0x4e9ccb[_0x462f('0x80')]((_0x2a5b81,_0xa5d60e)=>(_0x2a5b81[_0x462f('0x45')]=_0xa5d60e,_0xa5d60e[_0x462f('0x7d')]=_0x2a5b81,_0xa5d60e));};function _0xe4d228(_0x265674,_0x3f18a2=!0x0){const {id:_0x51ba5f}=_0x2bae16['_splitMarkerName'](_0x265674[_0x462f('0xc')]),_0x1dcf9c=[_0x462f('0x21'),_0x462f('0x33')],_0x1906e3=_0x2bae16[_0x462f('0x36')][_0x462f('0xa0')](_0x265674[_0x462f('0xc')]);return _0x1906e3&&_0x1dcf9c[_0x462f('0x75')](_0x462f('0x1')),{'classes':_0x1dcf9c,'attributes':{'data-suggestion':_0x51ba5f},'priority':_0x1906e3&&_0x3f18a2?0xbc2:0xbb8};}_0x2bae16['on'](_0x462f('0x1b'),_0xbab9d3,{'priority':'high'}),_0x2bae16['on'](_0x462f('0x50'),_0xbab9d3,{'priority':'high'}),_0x2ececd['model'][_0x462f('0x8b')][_0x462f('0x79')](()=>{let _0x27026c=!0x1;const _0x54e3d0=Array[_0x462f('0x3d')](_0x2ececd[_0x462f('0x22')][_0x462f('0x8b')][_0x462f('0x26')][_0x462f('0x37')]());for(const {name:_0x2c6f11,data:_0x3f5a96}of _0x54e3d0){const {group:_0x5c2c03,type:_0x345e51,id:_0x31f500}=_0x2bae16['_splitMarkerName'](_0x2c6f11);if(_0x462f('0x3b')!=_0x5c2c03||_0x462f('0x14')!=_0x345e51||_0x3f5a96[_0x462f('0x60')])continue;if(!_0x2bae16[_0x462f('0x97')](_0x31f500))continue;const _0x537a39=_0x2bae16[_0x462f('0x7c')](_0x31f500)['getRanges'](),_0xda85bb=_0x2ececd[_0x462f('0x86')]['get'](_0x462f('0xe'))['me'];for(const _0xc94dc8 of _0x2bae16['getSuggestions']()){if(!_0xc94dc8[_0x462f('0x29')]||_0xc94dc8[_0x462f('0x6a')]!=_0xda85bb)continue;if(_0x462f('0x85')!=_0xc94dc8['type']||_0x462f('0x99')!=_0xc94dc8[_0x462f('0x4a')])continue;if(_0xc94dc8[_0x462f('0x2b')]()[_0x462f('0x9e')](_0x49d176=>_0x537a39[_0x462f('0x5')](_0x5af386=>_0x5af386['containsRange'](_0x49d176,!0x0))))for(const _0x7c3b85 of _0xc94dc8[_0x462f('0x61')]())_0x7c3b85[_0x462f('0x29')]&&(_0x7c3b85[_0x462f('0x9b')](),_0x27026c=!0x0);}}return _0x27026c;}),_0x2ececd[_0x462f('0x22')]['document'][_0x462f('0x79')](_0x1b84e4=>{const _0x43e518=_0x2ececd[_0x462f('0x27')][_0x462f('0x92')](_0x462f('0x81'));if(!_0x43e518||!_0x43e518[_0x462f('0xa6')][_0x462f('0x9')](_0x1b84e4[_0x462f('0x20')]))return!0x1;let _0x36f948=!0x1;const _0x2f8781=_0x2ececd[_0x462f('0x86')][_0x462f('0x92')](_0x462f('0xe'))['me'],_0x13efd6=_0x2ececd[_0x462f('0x22')][_0x462f('0x8b')][_0x462f('0x26')]['getChanges'](),_0x4fe3dd=Array[_0x462f('0x3d')](_0x2ececd[_0x462f('0x22')][_0x462f('0x8b')][_0x462f('0x26')][_0x462f('0x37')]())[_0x462f('0x93')](({name:_0x1de2e8,data:_0x36b1f5})=>{const {group:_0x18decb,subType:_0x287711,authorId:_0x3f2741}=_0x2bae16[_0x462f('0x31')](_0x1de2e8);return'suggestion'==_0x18decb&&'tablePaste'==_0x287711&&_0x3f2741==_0x2f8781['id']&&!_0x36b1f5[_0x462f('0x60')];});for(const _0x573fcd of _0x13efd6){if('insert'!=_0x573fcd[_0x462f('0x8c')]||'tableCellSuggestion'!=_0x573fcd[_0x462f('0x1f')]||0x1!=_0x573fcd[_0x462f('0x98')])continue;const _0x498b1c=_0x1b84e4[_0x462f('0x3')](_0x573fcd[_0x462f('0x7a')],_0x573fcd[_0x462f('0x7a')]['getShiftedBy'](0x1));if(!_0x4fe3dd['find'](({data:_0x1b8003})=>_0x1b8003[_0x462f('0x66')][_0x462f('0x51')](_0x498b1c)))for(const {name:_0x34e02b,data:_0x4e22b0}of _0x4fe3dd)if(_0x498b1c[_0x462f('0x5c')](_0x4e22b0['newRange'])){_0x1b84e4[_0x462f('0x42')](_0x34e02b,{'range':_0x498b1c}),_0x36f948=!0x0;break;}}return _0x36f948;}),_0x2ececd[_0x462f('0x22')][_0x462f('0x8b')][_0x462f('0x79')](_0x639be=>{let _0xd1fc81=!0x1;const _0xf50111=_0x2ececd['plugins'][_0x462f('0x92')]('Users')['me'],_0x6e124b=_0x2bae16[_0x462f('0x2c')]()[_0x462f('0x93')](_0x55ff1d=>_0x55ff1d[_0x462f('0x29')]&&_0x55ff1d[_0x462f('0x6a')]==_0xf50111),_0x583995=new Set(),_0x45291c=new Set();for(const _0x209ee3 of _0x6e124b)if(_0x462f('0x2a')==_0x209ee3[_0x462f('0x4a')])for(const _0x432c14 of _0x209ee3[_0x462f('0x76')]()){const _0x42bd0d=_0x432c14[_0x462f('0x96')]()[_0x462f('0xd')]();if(_0x42bd0d){if(_0x42bd0d['is'](_0x462f('0x3c'),_0x462f('0x3e'))&&ge(_0x42bd0d)){_0x209ee3[_0x462f('0x49')](_0x432c14[_0x462f('0x1f')]),_0x583995[_0x462f('0x82')](_0x42bd0d),_0xd1fc81=!0x0;const _0x5a2464=_0x42bd0d['nextSibling'],_0x11f30a=_0x42bd0d[_0x462f('0x52')],_0x39f340=_0x5a2464&&_0x5a2464['is'](_0x462f('0x3c'),_0x462f('0x3e')),_0x5a3f7b=_0x11f30a&&_0x11f30a['is']('element','tableCellSuggestion');_0x39f340&&!_0x583995['has'](_0x5a2464)&&_0x45291c[_0x462f('0x82')](_0x5a2464),_0x5a3f7b&&!_0x583995[_0x462f('0x9')](_0x11f30a)&&_0x45291c[_0x462f('0x82')](_0x11f30a);}else _0x42bd0d['is'](_0x462f('0x3c'),_0x462f('0x6f'))&&_0x42bd0d[_0x462f('0x5d')]&&(_0x209ee3[_0x462f('0x49')](_0x432c14[_0x462f('0x1f')]),_0xd1fc81=!0x0);}}else{if(_0x462f('0x99')==_0x209ee3['subType']){if(!_0x209ee3['attributes']||!_0x209ee3[_0x462f('0x69')][_0x462f('0x67')])continue;const _0x592012=_0x209ee3[_0x462f('0x69')][_0x462f('0x64')];if(_0x592012&&Object[_0x462f('0x9d')](_0x592012)[_0x462f('0x98')])continue;const _0x5dea10=_0x209ee3['attributes']['tablePasteChainId'];let _0x5965e1=!0x0,_0x1b730c=!0x0;for(const _0x1495f0 of _0x6e124b)if(_0x1495f0[_0x462f('0x4a')]&&_0x1495f0[_0x462f('0x4a')][_0x462f('0x13')]('tablePaste')){if(!_0x1495f0[_0x462f('0x69')]['tablePasteChainId']){_0x1b730c=!0x1;break;}if(_0x1495f0['id']!=_0x209ee3['id']&&_0x1495f0[_0x462f('0x69')][_0x462f('0x67')]==_0x5dea10){_0x5965e1=!0x1;break;}}_0x1b730c&&_0x5965e1&&(_0x209ee3['removeMarkers'](),_0xd1fc81=!0x0);}}for(const _0xfd63a9 of _0x583995)_0x639be['remove'](_0xfd63a9);for(const _0x2fdea6 of _0x45291c)_0x639be[_0x462f('0x3f')](_0x2fdea6);return _0xd1fc81;}),_0x2ececd[_0x462f('0x77')]['for'](_0x462f('0x40'))[_0x462f('0x8d')]({'model':_0x462f('0x83'),'view':(_0x5b1ed5,_0x166681)=>_0xe4d228(_0x5b1ed5),'converterPriority':_0x462f('0xa5')}),_0x2ececd[_0x462f('0x77')][_0x462f('0x2f')](_0x462f('0x56'))['markerToHighlight']({'model':_0x462f('0x83'),'view':(_0x1c81fb,_0x58d7a1)=>_0x58d7a1['options'][_0x462f('0x25')]?_0xe4d228(_0x1c81fb,!0x1):null,'converterPriority':_0x462f('0xa5')});const _0x3fd505=_0x2ececd[_0x462f('0xf')]['view'];this[_0x462f('0x5b')](_0x3fd505[_0x462f('0x8b')],_0x462f('0x11'),(_0x6d28d5,_0x18d4ad)=>{const _0x406985=[];for(const _0x1baa6a of _0x3fd505['createRangeIn'](_0x18d4ad['content'])[_0x462f('0xa3')]())_0x1baa6a['is'](_0x462f('0x3c'),_0x462f('0x9a'))&&_0x406985[_0x462f('0x75')](_0x1baa6a);_0x3fd505[_0x462f('0x94')](_0x3a96b1=>{for(const _0x5c7de2 of _0x406985)_0x3a96b1[_0x462f('0x59')](_0x3a96b1[_0x462f('0x91')](_0x5c7de2),_0x3a96b1[_0x462f('0x84')](_0x5c7de2)),_0x3a96b1[_0x462f('0xa1')](_0x5c7de2);});});}}function ge(_0x5a7e0c){if(_0x5a7e0c[_0x462f('0x5d')])return!0x0;const _0x38a2e6=_0x5a7e0c[_0x462f('0x17')](0x0);return _0x38a2e6['is'](_0x462f('0x3c'),_0x462f('0x6f'))&&_0x38a2e6[_0x462f('0x5d')];}function de(_0x19fab9,_0x2751a2={},_0xe047d){for(const {isAnchor:_0x4041f4,cellHeight:_0x57db98,cellWidth:_0x1ee321}of _0xe047d['createTableWalker'](_0x19fab9,{'includeAllSlots':!0x0,..._0x2751a2}))if(!_0x4041f4||0x1!=_0x57db98||0x1!=_0x1ee321)return!0x1;return!0x0;}
|
|
23
|
+
const _0x29a0=['$graveyard','getMarkers','removeRows','tablePasteColumn','getRanges','tableCellBackgroundColor','selection','content','schema','markMultiRangeInsertion','startsWith','position','tableCellPadding','push','root','accept','deletionRanges','previousSibling','start','previous','has','includes','getSuggestions','isInContent','model','markerAttributes','getChildren','getShiftedBy','fill','conversion','columnInsertionIndexes','insertRows','_getCoordsForCells','subType','activeMarkers','differ','getChild','nodeAfter','isEqual','endRow','hasSuggestion','change','deletion','nextSibling','discard','insertion','forceDefaultExecution','getAttributes','createElement','afterInit','rowInsertionIndexes','_replaceTableSlotCell','getColumns','setAttribute','insertContent','updateMarker','type','_isForcedDefaultExecutionBlock','tablePasteChainId','TableClipboard','tableCellBorderWidth','cell','find','_tablePostFixingSubtypes','newRange','editor','name','suggestionUnloaded','tableCellBorderColor','batch','ck-suggestion-marker','removeMarkers','getRows','paragraph','end','isEmpty','some','suggestion:formatBlock:tablePasteCell','markerToHighlight','join','createRangeOn','value','editingDowncast','first','editing','ck-suggestion-marker--active','markerName','table','attributes','add','remove','stop','ck-suggestion-marker-insertion','columnInsertionRanges','map','tableCellBorderStyle','endColumn','tablePasteCell','filter','getRange','last','tableCellSuggestion','tablePasteRow','wrap','registerPostFixer','*Replace\x20table\x20cells*','suggestion-td','getSuggestion','getSuggestionCallback','high','trackChanges','clipboardOutput','containsRange','columns','dataDowncast','insert','findAncestor','row','markMultiRangeDeletion','TrackChangesEditing','fromEntries','getItems','low','getSelectionAffectedTableCells','_splitMarkerName','getAllAdjacentSuggestions','createPositionBefore','formatBlock','markMultiRangeBlockFormat','removeMarker','for','createRangeIn','setAttributes','insertionRanges','createTableWalker','elementToElement','rowInsertionRanges','getRowIndexes','oldRange','keys','documentSelection','plugins','view','element','getTableIfOnlyTableInContent','insertColumns','listenTo','set','get','_suggestionFactory','entries','suggestion','author','options','getContainedElement','Users','from','removeColumns','registerCustomCallback','createRange','length','locale','registerDescriptionCallback','document','commands','tablePaste','_createdBatches'];(function(_0x352dee,_0x29a025){const _0x44fc01=function(_0x54e3ce){while(--_0x54e3ce){_0x352dee['push'](_0x352dee['shift']());}};_0x44fc01(++_0x29a025);}(_0x29a0,0x143));const _0x44fc=function(_0x352dee,_0x29a025){_0x352dee=_0x352dee-0x0;let _0x44fc01=_0x29a0[_0x352dee];return _0x44fc01;};import{getTranslation as _0x33709a}from'../utils/common-translations.js';import{Plugin as _0x3eeabe}from'ckeditor5/src/core.js';import{uid as _0x36d651,priorities as _0x4928b1}from'ckeditor5/src/utils.js';import _0x15e5cc from'./table.js';const fe=[_0x44fc('0x47'),_0x44fc('0x4f'),_0x44fc('0x6a'),'tableCellHorizontalAlignment','tableCellVerticalAlignment',_0x44fc('0x10'),_0x44fc('0x17')],be=Object[_0x44fc('0x83')](fe['map'](_0x43e47c=>[_0x43e47c,null]));export default class At extends _0x3eeabe{static get['requires'](){return[_0x15e5cc];}[_0x44fc('0x3c')](){const _0x262469=this['editor'];if(!_0x262469[_0x44fc('0x98')][_0x44fc('0x1f')]('TableClipboard'))return;const _0x19208d=_0x262469['plugins'][_0x44fc('0x9f')](_0x44fc('0x82')),_0x3dacc5=_0x262469[_0x44fc('0x98')][_0x44fc('0x9f')]('TableUtils'),_0xfa7bfb=_0x262469[_0x44fc('0x98')]['get'](_0x15e5cc),_0x1b1ed3=_0x262469[_0x44fc('0x98')]['get']('TableClipboard');_0xfa7bfb[_0x44fc('0x4a')]['push'](_0x44fc('0x71'),_0x44fc('0xe')),_0x262469[_0x44fc('0x23')][_0x44fc('0x13')]['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x262469['conversion'][_0x44fc('0x92')]({'model':_0x44fc('0x70'),'view':_0x44fc('0x75')});let _0x2dcb2f=null;_0x262469['model']['on']('insertContent',(_0x4a87a9,_0x217c5d)=>{const [_0x4dff44,_0x203431]=_0x217c5d,_0x1f16d5=_0x217c5d[_0x217c5d[_0x44fc('0x4')]-0x1];_0x1f16d5&&_0x1f16d5[_0x44fc('0x39')]||_0x19208d[_0x44fc('0x44')]||this[_0x44fc('0x4c')]['commands'][_0x44fc('0x9f')](_0x44fc('0x79'))[_0x44fc('0x5c')]&&function(_0x3c91d1,_0x2cd331,_0x2cf55d,_0x3367c8,_0x5c2c29){if(_0x2cd331&&!_0x2cd331['is'](_0x44fc('0x97')))return!0x1;const _0x217213=_0x5c2c29[_0x44fc('0x9b')](_0x3c91d1,_0x2cf55d);if(!_0x217213||!de(_0x217213,void 0x0,_0x3367c8))return!0x1;const _0x5d941d=_0x3367c8[_0x44fc('0x86')](_0x2cf55d['document'][_0x44fc('0x11')]);if(!_0x5d941d[_0x44fc('0x4')])return!0x1;const _0x453d5b=_0x5d941d[0x0][_0x44fc('0x7f')](_0x44fc('0x62')),_0x3c6752=_0x3367c8[_0x44fc('0x94')](_0x5d941d),_0x276040=_0x3367c8['getColumnIndexes'](_0x5d941d),_0x521ce3={'startRow':_0x3c6752[_0x44fc('0x5e')],'endRow':_0x3c6752['last'],'startColumn':_0x276040['first'],'endColumn':_0x276040[_0x44fc('0x6f')]};return 0x1==_0x5d941d[_0x44fc('0x4')]&&(_0x521ce3[_0x44fc('0x32')]+=_0x3367c8[_0x44fc('0x53')](_0x217213)-0x1,_0x521ce3[_0x44fc('0x6b')]+=_0x3367c8[_0x44fc('0x3f')](_0x217213)-0x1),de(_0x453d5b,_0x521ce3,_0x3367c8);}(_0x4dff44,_0x203431,_0x262469[_0x44fc('0x23')],_0x3dacc5,_0x1b1ed3)&&(_0x4a87a9[_0x44fc('0x66')](),_0x2dcb2f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x262469[_0x44fc('0x23')][_0x44fc('0x34')](()=>{_0x262469[_0x44fc('0x23')][_0x44fc('0x41')](_0x217c5d[0x0],_0x217c5d[0x1],_0x217c5d[0x2],{'forceDefaultExecution':!0x0});const _0x136a3f=_0x36d651(),{rowInsertionRanges:_0x22d685,columnInsertionRanges:_0x8c80f3,insertionRanges:_0xecf501,deletionRanges:_0x33080c,cells:_0x183f8f}=_0x2dcb2f;_0x22d685[_0x44fc('0x4')]&&_0x19208d[_0x44fc('0x14')](_0x22d685,'tablePasteRow',{'tablePasteChainId':_0x136a3f}),_0x8c80f3[_0x44fc('0x4')]&&_0x19208d[_0x44fc('0x14')](_0x8c80f3,_0x44fc('0xe'),{'tablePasteChainId':_0x136a3f}),_0xecf501['length']&&_0x19208d[_0x44fc('0x14')](_0xecf501,'tablePaste',{'tablePasteChainId':_0x136a3f,'skipNestingCheck':!0x0}),_0x33080c[_0x44fc('0x4')]&&_0x19208d[_0x44fc('0x81')](_0x33080c,_0x44fc('0x9'),{'tablePasteChainId':_0x136a3f,'skipNestingCheck':!0x0});const _0x324e7f=_0x19208d[_0x44fc('0x8b')](_0x183f8f['map'](({element:_0x15f890})=>_0x15f890),{'formatGroupId':_0x36d651()},[],_0x44fc('0x6c'),{'tablePasteChainId':_0x136a3f});if(_0x324e7f){const _0xb15773=_0x324e7f[_0x44fc('0xc')](),_0x498e7a=[];for(const {element:_0x567da9,attributes:_0x542e02}of _0x183f8f){if(!_0x542e02)continue;const _0x42e9e9=_0x262469[_0x44fc('0x23')][_0x44fc('0x5b')](_0x567da9),_0x5d1fb2=_0xb15773[_0x44fc('0x49')](_0x29f21f=>_0x29f21f[_0x44fc('0x6e')]()['isEqual'](_0x42e9e9));_0x5d1fb2&&_0x498e7a[_0x44fc('0x18')]([_0x5d1fb2['name'],_0x542e02]);}_0x498e7a[_0x44fc('0x4')]&&_0x324e7f[_0x44fc('0x40')](_0x44fc('0x24'),Object[_0x44fc('0x83')](_0x498e7a));}_0x2dcb2f=null;}));},{'priority':_0x4928b1['high']+0xa}),_0x262469[_0x44fc('0x98')]['get'](_0x44fc('0x46'))['on'](_0x44fc('0x3e'),(_0x37f0a3,_0x493e59)=>{const [_0x312605,_0x2ec734,,_0x2d155d]=_0x493e59;if(!_0x2dcb2f)return;_0x37f0a3['stop']();const _0x23ad27=_0x312605[_0x44fc('0x48')],_0x241843=_0x2ec734,_0x522b6c=ge(_0x23ad27),_0x16852d=ge(_0x241843);_0x37f0a3['return']=_0x23ad27;let _0x408292=null,_0x404a23=null;if(_0x16852d||_0x522b6c){if(_0x522b6c&&!_0x16852d){_0x2d155d['remove'](_0x23ad27[_0x44fc('0x2f')](0x0));for(const _0x141996 of Array[_0x44fc('0x0')](_0x241843[_0x44fc('0x25')]()))_0x2d155d[_0x44fc('0x7e')](_0x141996,_0x23ad27,_0x44fc('0x55'));const _0x3ffc9f=_0x2dcb2f[_0x44fc('0x3d')][_0x44fc('0x20')](_0x312605[_0x44fc('0x80')]),_0x54aaa6=_0x2dcb2f[_0x44fc('0x29')]['includes'](_0x312605['column']);_0x3ffc9f||_0x54aaa6||(_0x408292=_0x2d155d[_0x44fc('0x8e')](_0x23ad27));}else _0x16852d&&!_0x522b6c&&(_0x404a23=_0x2d155d[_0x44fc('0x8e')](_0x23ad27));}else{const _0x1b530c=_0x2d155d[_0x44fc('0x3b')](_0x44fc('0x70')),_0x5e4ac8=_0x2d155d['createElement'](_0x44fc('0x70'));_0x2d155d[_0x44fc('0x72')](_0x2d155d['createRangeIn'](_0x23ad27),_0x5e4ac8),_0x2d155d[_0x44fc('0x7e')](_0x1b530c,_0x23ad27,0x0);for(const _0x91a088 of Array['from'](_0x241843[_0x44fc('0x25')]()))_0x2d155d[_0x44fc('0x7e')](_0x91a088,_0x1b530c,'end');_0x408292=_0x2d155d[_0x44fc('0x5b')](_0x1b530c),_0x404a23=_0x2d155d['createRangeOn'](_0x5e4ac8);}const _0x47e500=Array['from'](_0x241843[_0x44fc('0x3a')]())[_0x44fc('0x6d')](([_0x1ba8a2])=>fe[_0x44fc('0x20')](_0x1ba8a2));_0x2dcb2f['cells'][_0x44fc('0x18')]({'element':_0x23ad27,'attributes':_0x47e500[_0x44fc('0x4')]?Object['fromEntries'](_0x47e500):null}),_0x408292&&_0x2dcb2f[_0x44fc('0x90')]['push'](_0x408292),_0x404a23&&_0x2dcb2f[_0x44fc('0x1b')][_0x44fc('0x18')](_0x404a23);},{'priority':_0x44fc('0x78')}),_0x3dacc5['on'](_0x44fc('0x9c'),(_0x139405,_0x319642)=>{const [_0x5ce193,_0x487b30={}]=_0x319642;if(!_0x2dcb2f)return;const _0x152fd5=_0x487b30['at']||0x0,_0x453ac5=_0x487b30[_0x44fc('0x7c')]||0x1;_0x2dcb2f[_0x44fc('0x29')]=new Array(_0x453ac5)[_0x44fc('0x27')](_0x152fd5)[_0x44fc('0x69')]((_0x47fe08,_0x4ce37d)=>_0x47fe08+_0x4ce37d);for(const {cell:_0x1d4eb4}of _0x3dacc5[_0x44fc('0x91')](_0x5ce193,{'startColumn':_0x152fd5,'endColumn':_0x152fd5+_0x453ac5-0x1}))_0x2dcb2f[_0x44fc('0x68')][_0x44fc('0x18')](_0x262469[_0x44fc('0x23')]['createRangeOn'](_0x1d4eb4));},{'priority':_0x44fc('0x85')}),_0x3dacc5['on'](_0x44fc('0x2a'),(_0x249215,_0x423b94)=>{const [_0x3af304,_0x381866={}]=_0x423b94;if(!_0x2dcb2f)return;const _0x48295d=_0x381866['at']||0x0,_0x42d150=_0x381866['rows']||0x1;_0x2dcb2f[_0x44fc('0x3d')]=new Array(_0x42d150)[_0x44fc('0x27')](_0x48295d)['map']((_0x47501e,_0x127492)=>_0x47501e+_0x127492);for(const {cell:_0x282f8b}of _0x3dacc5[_0x44fc('0x91')](_0x3af304,{'startRow':_0x48295d,'endRow':_0x48295d+_0x42d150-0x1}))_0x2dcb2f[_0x44fc('0x93')][_0x44fc('0x18')](_0x262469[_0x44fc('0x23')][_0x44fc('0x5b')](_0x282f8b));},{'priority':_0x44fc('0x85')}),_0x19208d['_descriptionFactory'][_0x44fc('0x6')](_0x9b1b3=>{if(_0x9b1b3[_0x44fc('0x2c')]&&_0x9b1b3['subType'][_0x44fc('0x15')](_0x44fc('0x9')))return _0x9b1b3['previous']?{}:{'type':'insertion','content':_0x33709a(_0x262469[_0x44fc('0x5')],_0x44fc('0x74'))};});const _0x26279b=()=>!0x1;for(const _0x1f6c4b of[_0x44fc('0x9'),_0x44fc('0xe'),_0x44fc('0x71'),_0x44fc('0x6c')])_0x19208d['_suggestionFactory'][_0x44fc('0x2')]('insertion',_0x1f6c4b,_0x44fc('0x5a'),_0x26279b),_0x19208d[_0x44fc('0xa0')]['registerCustomCallback'](_0x44fc('0x35'),_0x1f6c4b,_0x44fc('0x5a'),_0x26279b),_0x19208d[_0x44fc('0xa0')][_0x44fc('0x2')](_0x44fc('0x8a'),_0x1f6c4b,_0x44fc('0x5a'),_0x26279b);_0x19208d['_suggestionFactory']['registerCustomCallback'](_0x44fc('0x8a'),'tablePasteCell',_0x44fc('0x37'),_0x26279b),_0x19208d[_0x44fc('0xa0')][_0x44fc('0x2')]('formatBlock',_0x44fc('0x6c'),'accept',(_0x30c7c8,_0x265e57,_0x57da20)=>{const _0x397dac=_0x30c7c8[_0x44fc('0x69')](_0x1c61c8=>_0x1c61c8['getContainedElement']())[_0x44fc('0x6d')](_0x175a81=>_0x175a81),_0x15e8e6=new Map(_0x397dac[_0x44fc('0x69')](_0x20d114=>[_0x20d114,null]));if(_0x2dcb2f)for(const {element:_0x3d3c14,attributes:_0x191f78}of _0x2dcb2f['cells'])_0x191f78&&_0x15e8e6['set'](_0x3d3c14,_0x191f78);else{if(_0x57da20&&_0x57da20[_0x44fc('0x24')])for(const [_0x27517e,_0x23d394]of Object[_0x44fc('0xa1')](_0x57da20[_0x44fc('0x24')])){const _0x2c22e3=_0x262469[_0x44fc('0x23')]['markers'][_0x44fc('0x9f')](_0x27517e),_0x26a581=_0x2c22e3?_0x2c22e3['getRange']()[_0x44fc('0xa5')]():null;_0x26a581&&_0x15e8e6[_0x44fc('0x9e')](_0x26a581,_0x23d394);}}_0x262469[_0x44fc('0x23')][_0x44fc('0x34')](_0x15d260=>{for(const [_0x35ceb1,_0x13cd28]of _0x15e8e6)_0x15d260[_0x44fc('0x8f')]({...be,..._0x13cd28},_0x35ceb1);});});const _0x1aa84a=(_0x197ed8,_0x52cdfa)=>{_0x19208d[_0x44fc('0xa0')][_0x44fc('0x2')](_0x197ed8,_0x44fc('0x9'),_0x52cdfa,(_0x2c0847,_0x8714ec,_0x35a5fb)=>{_0x262469[_0x44fc('0x23')][_0x44fc('0x34')](_0x3bf3b6=>{const _0x3dea7b=[];for(const _0x1a845a of _0x2c0847){const _0x85c6f1=_0x1a845a[_0x44fc('0x1d')][_0x44fc('0x30')];_0x85c6f1['is'](_0x44fc('0x9a'),_0x44fc('0x70'))&&_0x3dea7b['push'](_0x85c6f1);}_0x19208d[_0x44fc('0xa0')][_0x44fc('0x77')](_0x197ed8,null,_0x52cdfa)(_0x2c0847,_0x8714ec,_0x35a5fb);for(const _0x1c456b of _0x3dea7b)_0x44fc('0xb')!=_0x1c456b[_0x44fc('0x19')]['rootName']&&_0x3bf3b6['unwrap'](_0x1c456b);});});};_0x1aa84a(_0x44fc('0x38'),_0x44fc('0x1a')),_0x1aa84a('insertion',_0x44fc('0x37')),_0x1aa84a(_0x44fc('0x35'),'accept'),_0x1aa84a(_0x44fc('0x35'),_0x44fc('0x37')),_0x19208d[_0x44fc('0xa0')]['registerCustomCallback'](_0x44fc('0x38'),_0x44fc('0x71'),_0x44fc('0x37'),_0x4cb831=>{const _0x73ab7=_0x4cb831['map'](_0x4801db=>_0x4801db[_0x44fc('0xa5')]()),_0x141e8e=_0x73ab7[0x0][_0x44fc('0x7f')]('table'),{minRow:_0x1109f2,maxRow:_0x8b666e}=_0xfa7bfb[_0x44fc('0x2b')](_0x73ab7);_0x3dacc5[_0x44fc('0xd')](_0x141e8e,{'at':_0x1109f2,'rows':_0x8b666e-_0x1109f2+0x1});}),_0x19208d['_suggestionFactory']['registerCustomCallback'](_0x44fc('0x38'),'tablePasteColumn','discard',_0x5fe761=>{const _0x56c9ad=_0x5fe761[_0x44fc('0x69')](_0x59fe4c=>_0x59fe4c['getContainedElement']()),_0x56bca0=_0x56c9ad[0x0]['findAncestor'](_0x44fc('0x62')),{minColumn:_0x4e2e86,maxColumn:_0x59b895}=_0xfa7bfb[_0x44fc('0x2b')](_0x56c9ad);_0x3dacc5[_0x44fc('0x1')](_0x56bca0,{'at':_0x4e2e86,'columns':_0x59b895-_0x4e2e86+0x1});});const _0x30be06=(_0x5ab4db,_0x156c2a)=>{if(!_0x156c2a[_0x44fc('0x2c')]||!_0x156c2a['subType'][_0x44fc('0x15')](_0x44fc('0x9')))return;const _0x3d3faf=_0x156c2a[_0x44fc('0x63')][_0x44fc('0x45')],_0x10caac=_0x19208d[_0x44fc('0x21')]()[_0x44fc('0x6d')](_0x3d96a1=>_0x3d96a1[_0x44fc('0x22')]&&_0x3d96a1[_0x44fc('0x63')]&&_0x3d96a1['attributes'][_0x44fc('0x45')]==_0x3d3faf);_0x10caac[_0x44fc('0x4')]&&_0x156c2a['getAllAdjacentSuggestions']()['length']!=_0x10caac[_0x44fc('0x4')]&&_0x10caac['reduce']((_0x840af6,_0x497335)=>(_0x840af6['next']=_0x497335,_0x497335[_0x44fc('0x1e')]=_0x840af6,_0x497335));};function _0xe59dff(_0x3a0b64,_0x20b591=!0x0){const {id:_0x4d84e9}=_0x19208d['_splitMarkerName'](_0x3a0b64['markerName']),_0x1d543e=[_0x44fc('0x51'),_0x44fc('0x67')],_0x41647d=_0x19208d[_0x44fc('0x2d')][_0x44fc('0x20')](_0x3a0b64[_0x44fc('0x61')]);return _0x41647d&&_0x1d543e[_0x44fc('0x18')](_0x44fc('0x60')),{'classes':_0x1d543e,'attributes':{'data-suggestion':_0x4d84e9},'priority':_0x41647d&&_0x20b591?0xbc2:0xbb8};}_0x19208d['on']('suggestionLoaded',_0x30be06,{'priority':_0x44fc('0x78')}),_0x19208d['on'](_0x44fc('0x4e'),_0x30be06,{'priority':'high'}),_0x262469[_0x44fc('0x23')][_0x44fc('0x7')][_0x44fc('0x73')](()=>{let _0x4e520c=!0x1;const _0x1f21ac=Array[_0x44fc('0x0')](_0x262469[_0x44fc('0x23')][_0x44fc('0x7')]['differ']['getChangedMarkers']());for(const {name:_0x3da3f2,data:_0x37e14e}of _0x1f21ac){const {group:_0x2276f4,type:_0x1515e3,id:_0x403073}=_0x19208d[_0x44fc('0x87')](_0x3da3f2);if(_0x44fc('0xa2')!=_0x2276f4||'deletion'!=_0x1515e3||_0x37e14e[_0x44fc('0x95')])continue;if(!_0x19208d[_0x44fc('0x33')](_0x403073))continue;const _0x5a7272=_0x19208d[_0x44fc('0x76')](_0x403073)[_0x44fc('0xf')](),_0x5020f3=_0x262469[_0x44fc('0x98')][_0x44fc('0x9f')](_0x44fc('0xa6'))['me'];for(const _0x7d2f6e of _0x19208d[_0x44fc('0x21')]()){if(!_0x7d2f6e[_0x44fc('0x22')]||_0x7d2f6e[_0x44fc('0xa3')]!=_0x5020f3)continue;if(_0x44fc('0x8a')!=_0x7d2f6e[_0x44fc('0x43')]||_0x44fc('0x6c')!=_0x7d2f6e[_0x44fc('0x2c')])continue;if(_0x7d2f6e[_0x44fc('0xf')]()['every'](_0xf0ee68=>_0x5a7272[_0x44fc('0x57')](_0x390bae=>_0x390bae[_0x44fc('0x7b')](_0xf0ee68,!0x0))))for(const _0x350e58 of _0x7d2f6e[_0x44fc('0x88')]())_0x350e58[_0x44fc('0x22')]&&(_0x350e58[_0x44fc('0x37')](),_0x4e520c=!0x0);}}return _0x4e520c;}),_0x262469[_0x44fc('0x23')][_0x44fc('0x7')][_0x44fc('0x73')](_0x3fad2e=>{const _0x596d6d=_0x262469[_0x44fc('0x8')][_0x44fc('0x9f')]('redo');if(!_0x596d6d||!_0x596d6d[_0x44fc('0xa')]['has'](_0x3fad2e[_0x44fc('0x50')]))return!0x1;let _0x327f33=!0x1;const _0x22413c=_0x262469[_0x44fc('0x98')][_0x44fc('0x9f')]('Users')['me'],_0x3077a1=_0x262469[_0x44fc('0x23')]['document'][_0x44fc('0x2e')]['getChanges'](),_0x4700c6=Array[_0x44fc('0x0')](_0x262469[_0x44fc('0x23')][_0x44fc('0x7')]['differ']['getChangedMarkers']())[_0x44fc('0x6d')](({name:_0x57887e,data:_0x4e0854})=>{const {group:_0x205b05,subType:_0x165241,authorId:_0x39144c}=_0x19208d[_0x44fc('0x87')](_0x57887e);return _0x44fc('0xa2')==_0x205b05&&_0x44fc('0x9')==_0x165241&&_0x39144c==_0x22413c['id']&&!_0x4e0854[_0x44fc('0x95')];});for(const _0x296f54 of _0x3077a1){if(_0x44fc('0x7e')!=_0x296f54[_0x44fc('0x43')]||_0x44fc('0x70')!=_0x296f54['name']||0x1!=_0x296f54[_0x44fc('0x4')])continue;const _0x3a0628=_0x3fad2e[_0x44fc('0x3')](_0x296f54[_0x44fc('0x16')],_0x296f54[_0x44fc('0x16')][_0x44fc('0x26')](0x1));if(!_0x4700c6[_0x44fc('0x49')](({data:_0xfe314a})=>_0xfe314a[_0x44fc('0x4b')][_0x44fc('0x31')](_0x3a0628)))for(const {name:_0x32d88c,data:_0x32fea8}of _0x4700c6)if(_0x3a0628['containsRange'](_0x32fea8[_0x44fc('0x4b')])){_0x3fad2e[_0x44fc('0x42')](_0x32d88c,{'range':_0x3a0628}),_0x327f33=!0x0;break;}}return _0x327f33;}),_0x262469[_0x44fc('0x23')][_0x44fc('0x7')][_0x44fc('0x73')](_0x3fbb17=>{let _0x1f3a14=!0x1;const _0x912414=_0x262469['plugins'][_0x44fc('0x9f')]('Users')['me'],_0x257cad=_0x19208d['getSuggestions']()[_0x44fc('0x6d')](_0x5a9b93=>_0x5a9b93[_0x44fc('0x22')]&&_0x5a9b93['author']==_0x912414),_0x5781cc=new Set(),_0x2d990e=new Set();for(const _0x111f09 of _0x257cad)if(_0x44fc('0x9')==_0x111f09[_0x44fc('0x2c')])for(const _0x2fb7e3 of _0x111f09[_0x44fc('0xc')]()){const _0x5ec434=_0x2fb7e3[_0x44fc('0x6e')]()[_0x44fc('0xa5')]();if(_0x5ec434){if(_0x5ec434['is'](_0x44fc('0x9a'),_0x44fc('0x70'))&&ge(_0x5ec434)){_0x111f09[_0x44fc('0x8c')](_0x2fb7e3[_0x44fc('0x4d')]),_0x5781cc[_0x44fc('0x64')](_0x5ec434),_0x1f3a14=!0x0;const _0x1903be=_0x5ec434[_0x44fc('0x36')],_0x38c46d=_0x5ec434[_0x44fc('0x1c')],_0x4f2c50=_0x1903be&&_0x1903be['is']('element','tableCellSuggestion'),_0x4c693f=_0x38c46d&&_0x38c46d['is'](_0x44fc('0x9a'),_0x44fc('0x70'));_0x4f2c50&&!_0x5781cc['has'](_0x1903be)&&_0x2d990e['add'](_0x1903be),_0x4c693f&&!_0x5781cc['has'](_0x38c46d)&&_0x2d990e[_0x44fc('0x64')](_0x38c46d);}else _0x5ec434['is'](_0x44fc('0x9a'),'paragraph')&&_0x5ec434[_0x44fc('0x56')]&&(_0x111f09[_0x44fc('0x8c')](_0x2fb7e3[_0x44fc('0x4d')]),_0x1f3a14=!0x0);}}else{if(_0x44fc('0x6c')==_0x111f09[_0x44fc('0x2c')]){if(!_0x111f09[_0x44fc('0x63')]||!_0x111f09['attributes'][_0x44fc('0x45')])continue;const _0x4f0817=_0x111f09[_0x44fc('0x63')][_0x44fc('0x24')];if(_0x4f0817&&Object[_0x44fc('0x96')](_0x4f0817)[_0x44fc('0x4')])continue;const _0x285a2c=_0x111f09[_0x44fc('0x63')]['tablePasteChainId'];let _0x538d1d=!0x0,_0x10c104=!0x0;for(const _0x443bc2 of _0x257cad)if(_0x443bc2[_0x44fc('0x2c')]&&_0x443bc2[_0x44fc('0x2c')][_0x44fc('0x15')]('tablePaste')){if(!_0x443bc2[_0x44fc('0x63')][_0x44fc('0x45')]){_0x10c104=!0x1;break;}if(_0x443bc2['id']!=_0x111f09['id']&&_0x443bc2[_0x44fc('0x63')]['tablePasteChainId']==_0x285a2c){_0x538d1d=!0x1;break;}}_0x10c104&&_0x538d1d&&(_0x111f09[_0x44fc('0x52')](),_0x1f3a14=!0x0);}}for(const _0x3d0a7d of _0x5781cc)_0x3fbb17[_0x44fc('0x65')](_0x3d0a7d);for(const _0x3cd098 of _0x2d990e)_0x3fbb17['unwrap'](_0x3cd098);return _0x1f3a14;}),_0x262469[_0x44fc('0x28')][_0x44fc('0x8d')](_0x44fc('0x5d'))[_0x44fc('0x59')]({'model':_0x44fc('0x58'),'view':(_0xf761cc,_0x212343)=>_0xe59dff(_0xf761cc),'converterPriority':_0x44fc('0x78')}),_0x262469[_0x44fc('0x28')][_0x44fc('0x8d')](_0x44fc('0x7d'))[_0x44fc('0x59')]({'model':_0x44fc('0x58'),'view':(_0x24232c,_0x23ab8f)=>_0x23ab8f[_0x44fc('0xa4')]['showSuggestionHighlights']?_0xe59dff(_0x24232c,!0x1):null,'converterPriority':_0x44fc('0x78')});const _0x3a66b3=_0x262469[_0x44fc('0x5f')][_0x44fc('0x99')];this[_0x44fc('0x9d')](_0x3a66b3[_0x44fc('0x7')],_0x44fc('0x7a'),(_0x25fe82,_0x31cc37)=>{const _0x286088=[];for(const _0x3dee99 of _0x3a66b3[_0x44fc('0x8e')](_0x31cc37[_0x44fc('0x12')])[_0x44fc('0x84')]())_0x3dee99['is'](_0x44fc('0x9a'),_0x44fc('0x75'))&&_0x286088['push'](_0x3dee99);_0x3a66b3[_0x44fc('0x34')](_0xae1ac1=>{for(const _0x4a0700 of _0x286088)_0xae1ac1['move'](_0xae1ac1[_0x44fc('0x8e')](_0x4a0700),_0xae1ac1[_0x44fc('0x89')](_0x4a0700)),_0xae1ac1['remove'](_0x4a0700);});});}}function ge(_0x53bdc4){if(_0x53bdc4[_0x44fc('0x56')])return!0x0;const _0x14787d=_0x53bdc4[_0x44fc('0x2f')](0x0);return _0x14787d['is'](_0x44fc('0x9a'),_0x44fc('0x54'))&&_0x14787d[_0x44fc('0x56')];}function de(_0x44b04a,_0x4f946d={},_0x2495a8){for(const {isAnchor:_0x446e6e,cellHeight:_0xb305f1,cellWidth:_0x2ebac9}of _0x2495a8['createTableWalker'](_0x44b04a,{'includeAllSlots':!0x0,..._0x4f946d}))if(!_0x446e6e||0x1!=_0xb305f1||0x1!=_0x2ebac9)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x168f=['resizeTable','resizeTableWidth','registerCustomCallback','has','get','handleSuggestionDescription','document','getSuggestionCallback','TableColumnResizeEditing','handleResizeTableWidthCommand','TrackChangesEditing','subType','getSuggestions','columnWidths','table','plugins','afterInit','*Format:*\x20resize\x20table','bind','tableWidth','getTableColumnsWidths','change','discard','format','getColumnGroupElement','markBlockFormat','_descriptionFactory','formatBlock','_suggestionFactory','data','commandParams','accept','formatInline','getSelectedElement','type','enableCommand','author','model','locale','editor'];(function(_0x240211,_0x168fff){const _0x295a19=function(_0xaaa866){while(--_0xaaa866){_0x240211['push'](_0x240211['shift']());}};_0x295a19(++_0x168fff);}(_0x168f,0xfb));const _0x295a=function(_0x240211,_0x168fff){_0x240211=_0x240211-0x0;let _0x295a19=_0x168f[_0x240211];return _0x295a19;};import{Plugin as _0x1dbdc0}from'ckeditor5/src/core.js';import{getTranslation as _0x24e0e4}from'../utils/common-translations.js';export default class It extends _0x1dbdc0{[_0x295a('0x5')](){if(!this[_0x295a('0x1c')][_0x295a('0x4')][_0x295a('0x20')](_0x295a('0x25')))return;const _0x40612d=this[_0x295a('0x1c')][_0x295a('0x4')][_0x295a('0x21')]('TrackChangesEditing');_0x40612d[_0x295a('0x18')](_0x295a('0x1e'),this['handleResizeTableWidthCommand'][_0x295a('0x7')](this)),_0x40612d[_0x295a('0x11')][_0x295a('0x1f')]('formatBlock',_0x295a('0x1d'),_0x295a('0x14'),_0x40612d[_0x295a('0x11')]['getSuggestionCallback'](_0x295a('0x10'),null,_0x295a('0xb'))),_0x40612d[_0x295a('0x11')][_0x295a('0x1f')](_0x295a('0x10'),_0x295a('0x1d'),_0x295a('0xb'),_0x40612d[_0x295a('0x11')][_0x295a('0x24')](_0x295a('0x10'),null,_0x295a('0x14'))),_0x40612d[_0x295a('0xf')]['registerDescriptionCallback'](this[_0x295a('0x22')][_0x295a('0x7')](this));}[_0x295a('0x26')](_0x176814,_0x2ed655){const _0x5a1a70=this[_0x295a('0x1c')]['plugins']['get'](_0x295a('0x27')),_0x413c8a=this[_0x295a('0x1c')][_0x295a('0x4')][_0x295a('0x21')]('TableColumnResizeEditing'),_0x50c10b=_0x2ed655[_0x295a('0x3')]||this['editor']['model'][_0x295a('0x23')]['selection'][_0x295a('0x16')]();this['editor'][_0x295a('0x1a')][_0x295a('0xa')](()=>{const _0x58fdad=_0x413c8a[_0x295a('0xd')](_0x50c10b);let _0x525800=_0x58fdad?_0x413c8a[_0x295a('0x9')](_0x58fdad):null,_0x284886=_0x50c10b['getAttribute'](_0x295a('0x8'))||null;const _0x4943ba=_0x2ed655[_0x295a('0x8')]||_0x284886,_0x26c468=_0x2ed655['columnWidths']||_0x525800,_0x2f5f90=this[_0x295a('0x1c')]['plugins']['get']('Users')['me'];for(const _0x120c0e of _0x5a1a70[_0x295a('0x1')]()){const _0x1b652c=_0x120c0e['getContainedElement']();if(_0x295a('0x1d')===_0x120c0e[_0x295a('0x0')]&&_0x1b652c===_0x50c10b){_0x120c0e[_0x295a('0x19')]!==_0x2f5f90&&_0x120c0e[_0x295a('0xb')]();const _0xe1cb67=_0x120c0e[_0x295a('0x12')][_0x295a('0x13')];_0x284886=_0xe1cb67[0x0][_0x295a('0x8')],_0x525800=_0xe1cb67[0x0][_0x295a('0x2')];break;}}_0x176814({'table':_0x50c10b,'tableWidth':_0x4943ba,'columnWidths':_0x26c468}),_0x5a1a70[_0x295a('0xe')](_0x50c10b,{'commandName':_0x295a('0x1e'),'commandParams':[{'tableWidth':_0x284886,'columnWidths':_0x525800}],'formatGroupId':_0x295a('0x1d')},[],_0x295a('0x1d'));});}['handleSuggestionDescription'](_0x40aad4){if(_0x295a('0x10')!=_0x40aad4[_0x295a('0x17')]&&_0x295a('0x15')!=_0x40aad4[_0x295a('0x17')])return;const {data:_0x33b715}=_0x40aad4;if(_0x33b715&&_0x295a('0x1d')===_0x33b715['formatGroupId']){const _0x14c7a2=_0x295a('0x6');return{'type':_0x295a('0xc'),'content':_0x24e0e4(this[_0x295a('0x1c')][_0x295a('0x1b')],_0x14c7a2)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a80=['setTableColumnHeader','_handleLegacySuggestions','editing','mapper','_acceptFormatSuggestionCallbackFactory','setAttribute','createTableWalker','locale','_suggestionFactory','type','name','get','formatBlock','writer','requires','ck-suggestion-marker-','commandName','addMarker:suggestion','_descriptionFactory','removeAttribute','data','registerDescriptionCallback','removeMarker:suggestion','registerCustomCallback','forceValue','addClass','downcastDispatcher','_enableDefaultAttributesIntegration','getSuggestion','activeMarkers','format','setTableRowHeader','nodeBefore','FORMAT_HEADER_ROW','registerAttributeLabel','FORMAT_HEADER_COLUMN','removeClass','headingRows','commandParams','plugins','stop','_splitMarkerName','bindElementToMarker','consume','ck-suggestion-marker--active','parent','FORMAT_REGULAR_ROW','end','toViewElement','has','cell','getCellLocation','options','start','includes','headingColumns','accept','_registerLegacyDescription','markerName','item','afterInit','highest','data-suggestion','*Format:*\x20%0','unbindElementFromMarkerName','TrackChangesEditing','editor','markerRange','TableUtils'];(function(_0x1685c4,_0x2a8008){const _0x484712=function(_0x59ed40){while(--_0x59ed40){_0x1685c4['push'](_0x1685c4['shift']());}};_0x484712(++_0x2a8008);}(_0x2a80,0xc2));const _0x4847=function(_0x1685c4,_0x2a8008){_0x1685c4=_0x1685c4-0x0;let _0x484712=_0x2a80[_0x1685c4];return _0x484712;};import{Plugin as _0x589e55}from'ckeditor5/src/core.js';import _0x224424 from'./table.js';import{getTranslation as _0x34311f}from'../utils/common-translations.js';export default class St extends _0x589e55{static get[_0x4847('0x1b')](){return[_0x224424];}[_0x4847('0x4')](){const _0x4ceb9e=this[_0x4847('0xa')];if(!_0x4ceb9e[_0x4847('0x34')][_0x4847('0x3e')]('TableEditing'))return;const _0x178b35=_0x4ceb9e[_0x4847('0x14')],_0x5a25e9=_0x4ceb9e['plugins'][_0x4847('0x18')](_0x4847('0x9'));_0x5a25e9[_0x4847('0x28')](_0x4847('0x2c'),[],[_0x4847('0x32')]),_0x5a25e9['_enableDefaultAttributesIntegration']('setTableColumnHeader',[],[_0x4847('0x44')]),_0x5a25e9[_0x4847('0x1f')][_0x4847('0x2f')](_0x4847('0x32'),_0x34311f(_0x178b35,_0x4847('0x2e'))),_0x5a25e9[_0x4847('0x1f')][_0x4847('0x2f')]('headingColumns',_0x34311f(_0x178b35,_0x4847('0x30'))),this[_0x4847('0xe')]();}[_0x4847('0xe')](){const _0x725a8c=this[_0x4847('0xa')]['plugins'][_0x4847('0x18')](_0x4847('0x9')),_0x408d73=this[_0x4847('0xa')][_0x4847('0x34')]['get'](_0x4847('0xc')),_0x3fcacc=this[_0x4847('0xa')][_0x4847('0x34')][_0x4847('0x18')](_0x224424)[_0x4847('0x11')]();function _0xca12f1({showActiveMarker:_0x4f771c=!0x0,setDataAttribute:_0x387996=!0x0}={}){return(_0x53c289,_0x2d2884,_0x2826f5)=>{const {type:_0x56a075,id:_0xb6731a}=_0x725a8c[_0x4847('0x36')](_0x2d2884[_0x4847('0x2')]),_0x539d0e=_0x725a8c[_0x4847('0x29')](_0xb6731a),_0x52091d=_0x539d0e[_0x4847('0x21')];if(_0x4847('0x19')!=_0x539d0e[_0x4847('0x16')]||!_0x52091d||_0x4847('0xd')!=_0x52091d[_0x4847('0x1d')])return;if(_0x2d2884[_0x4847('0x3')])return void _0x53c289[_0x4847('0x35')]();if(!_0x2826f5['consumable'][_0x4847('0x38')](_0x2d2884[_0x4847('0xb')],_0x53c289[_0x4847('0x17')]))return;const _0x1ff96b=_0x2d2884[_0x4847('0xb')][_0x4847('0x42')]['nodeAfter'],_0x468e3a=_0x2d2884['markerRange'][_0x4847('0x3c')][_0x4847('0x2d')],_0x44b38b=_0x1ff96b[_0x4847('0x3a')][_0x4847('0x3a')],{column:_0x3f2edd}=_0x408d73['getCellLocation'](_0x1ff96b),{column:_0x4c2f9f}=_0x408d73[_0x4847('0x40')](_0x468e3a);for(let _0x509943=_0x3f2edd;_0x509943<=_0x4c2f9f;_0x509943++){const _0x51c101=_0x408d73[_0x4847('0x13')](_0x44b38b,{'column':_0x509943,'includeAllSlots':!0x1});for(const _0x20b8a8 of _0x51c101){const _0x47ca9b=_0x20b8a8[_0x4847('0x3f')],_0x357f9b=_0x2826f5[_0x4847('0x10')][_0x4847('0x3d')](_0x47ca9b);_0x2826f5[_0x4847('0x1a')][_0x4847('0x26')](_0x4847('0x1c')+_0x56a075,_0x357f9b),_0x387996&&_0x2826f5[_0x4847('0x1a')][_0x4847('0x12')](_0x4847('0x6'),_0xb6731a,_0x357f9b),_0x2826f5[_0x4847('0x10')][_0x4847('0x37')](_0x357f9b,_0x2d2884[_0x4847('0x2')]),_0x4f771c&&(_0x725a8c[_0x4847('0x2a')][_0x4847('0x43')](_0x2d2884[_0x4847('0x2')])?_0x2826f5[_0x4847('0x1a')][_0x4847('0x26')](_0x4847('0x39'),_0x357f9b):_0x2826f5[_0x4847('0x1a')]['removeClass'](_0x4847('0x39'),_0x357f9b));}}};}_0x725a8c['_suggestionFactory'][_0x4847('0x24')](_0x4847('0x19'),_0x4847('0x2c'),_0x4847('0x0'),_0x3fcacc),_0x725a8c[_0x4847('0x15')][_0x4847('0x24')]('formatBlock',_0x4847('0xd'),_0x4847('0x0'),_0x3fcacc),this[_0x4847('0xa')][_0x4847('0xf')]['downcastDispatcher']['on'](_0x4847('0x1e'),_0xca12f1(),{'priority':_0x4847('0x5')}),this[_0x4847('0xa')]['data'][_0x4847('0x27')]['on'](_0x4847('0x1e'),(_0x441bd0,_0x2fc421,_0x590fa9)=>{_0x590fa9[_0x4847('0x41')]['showSuggestionHighlights']&&_0xca12f1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x441bd0,_0x2fc421,_0x590fa9);},{'priority':_0x4847('0x5')}),this[_0x4847('0xa')][_0x4847('0xf')][_0x4847('0x27')]['on'](_0x4847('0x23'),(_0x367a9e,_0x226ec4,_0x31cff4)=>{const {type:_0x4db784,id:_0xc81e77}=_0x725a8c[_0x4847('0x36')](_0x226ec4[_0x4847('0x2')]),_0x37507f=_0x725a8c[_0x4847('0x29')](_0xc81e77),_0x31638b=_0x37507f['data'];if(_0x4847('0x19')!=_0x37507f[_0x4847('0x16')]||!_0x31638b||_0x4847('0xd')!=_0x31638b[_0x4847('0x1d')])return;const _0x314b03=_0x31cff4[_0x4847('0x10')]['markerNameToElements'](_0x226ec4[_0x4847('0x2')]);if(_0x314b03)for(const _0x4095eb of _0x314b03)_0x31cff4[_0x4847('0x1a')][_0x4847('0x31')](_0x4847('0x1c')+_0x4db784,_0x4095eb),_0x31cff4[_0x4847('0x1a')][_0x4847('0x31')](_0x4847('0x39'),_0x4095eb),_0x31cff4[_0x4847('0x1a')][_0x4847('0x20')]('data-suggestion',_0x4095eb),_0x31cff4['mapper'][_0x4847('0x8')](_0x4095eb,_0x226ec4[_0x4847('0x2')]);},{'priority':'highest'}),this[_0x4847('0x1')]();}[_0x4847('0x1')](){const _0x45af32=this[_0x4847('0xa')],_0x520336=_0x45af32[_0x4847('0x14')];function _0x577cb4(_0xc95119){return{'type':_0x4847('0x2b'),'content':_0x34311f(_0x520336,_0x4847('0x7'),_0xc95119)};}_0x45af32[_0x4847('0x34')][_0x4847('0x18')](_0x4847('0x9'))[_0x4847('0x1f')][_0x4847('0x22')](_0x56d509=>{if(_0x4847('0x19')!=_0x56d509[_0x4847('0x16')])return;const {data:_0x40ccab}=_0x56d509;if(_0x40ccab){if(_0x4847('0x2c')==_0x40ccab[_0x4847('0x1d')]){const _0x3b9b55=_0x40ccab[_0x4847('0x33')][0x0][_0x4847('0x25')];return _0x577cb4(_0x34311f(_0x520336,_0x3b9b55?_0x4847('0x2e'):_0x4847('0x3b')));}if(_0x4847('0xd')==_0x40ccab['commandName']){const _0x5ee644=_0x40ccab['commandParams'][0x0][_0x4847('0x25')];return _0x577cb4(_0x34311f(_0x520336,_0x5ee644?_0x4847('0x30'):'FORMAT_REGULAR_COLUMN'));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf52f=['plugins','get','value','getSelectionAffectedTableCells','stop','afterInit','isInContent','_descriptionFactory','registerCustomCallback','locale','detach','accept','commands','getAncestors','splitTableCellHorizontally','findAncestor','has','mergeTableCellLeft','getCellLocation','requires','length','model','containsRange','root','mergeTableCells','formatInline','createTableWalker','direction','_suggestionFactory','registerDescriptionCallback','_isForcedDefaultExecutionBlock','_tablePostFixingSubtypes','format','add','_areMergableCells','_areSelectedCellsMergable','from','getRanges','*Merge\x20cells*','map','TrackChangesEditing','TableUtils','fromRange','trackChanges','formatBlock','table','size','getSuggestions','subType','$graveyard','*Split\x20cell:*\x20vertically','document','commandName','push','deletion','find','low','execute','insertion','setSelection','selection','cell','type','element','*Split\x20cell:*\x20horizontally','markBlockFormat','markMultiRangeBlockFormat','_acceptFormatSuggestionCallbackFactory','return','forceDefaultExecution','tableCell','mergeTableCellRight','set:isEnabled','mergeTableCellDown','author','highest','enableCommand','splitTableCellVertically','editor','filter','change'];(function(_0x2f4d97,_0xf52fbd){const _0x713743=function(_0x1d6532){while(--_0x1d6532){_0x2f4d97['push'](_0x2f4d97['shift']());}};_0x713743(++_0xf52fbd);}(_0xf52f,0x12a));const _0x7137=function(_0x2f4d97,_0xf52fbd){_0x2f4d97=_0x2f4d97-0x0;let _0x713743=_0xf52f[_0x2f4d97];return _0x713743;};import{Plugin as _0x10aa96}from'ckeditor5/src/core.js';import _0xde422c from'./table.js';import{LiveRange as _0x300509}from'ckeditor5/src/engine.js';import{getTranslation as _0x4a5877}from'../utils/common-translations.js';export default class jt extends _0x10aa96{static get[_0x7137('0x2d')](){return[_0xde422c];}[_0x7137('0x1f')](){const _0x44c950=this['editor'],_0x506777=_0x44c950[_0x7137('0x2f')][_0x7137('0x4d')]['selection'],_0x29bff6=_0x44c950[_0x7137('0x23')];if(!_0x44c950[_0x7137('0x1a')][_0x7137('0x2a')]('TableEditing'))return;const _0x3e58e5=_0x44c950[_0x7137('0x1a')]['get'](_0x7137('0x42')),_0x298bf9=_0x44c950[_0x7137('0x1a')][_0x7137('0x1b')](_0x7137('0x43')),_0x4e70b6=_0x44c950[_0x7137('0x1a')]['get'](_0xde422c);_0x4e70b6[_0x7137('0x39')][_0x7137('0x4f')](_0x7137('0x32')),_0x3e58e5[_0x7137('0x15')]('mergeTableCells',()=>{const _0x3d41b6=_0x298bf9[_0x7137('0x1d')](_0x44c950[_0x7137('0x2f')][_0x7137('0x4d')][_0x7137('0x5')]);_0x44c950[_0x7137('0x2f')][_0x7137('0x19')](()=>{_0x3e58e5[_0x7137('0xb')](_0x3d41b6,{'commandName':'mergeTableCells','commandParams':[]},[],_0x7137('0x32'));});}),_0x44c950[_0x7137('0x26')][_0x7137('0x1b')]('mergeTableCells')['on'](_0x7137('0x2'),(_0x5acb21,_0x513606)=>{_0x44c950[_0x7137('0x26')][_0x7137('0x1b')](_0x7137('0x45'))[_0x7137('0x1c')]&&(_0x513606[_0x7137('0x2e')]>0x0&&_0x513606[_0x513606[_0x7137('0x2e')]-0x1]&&_0x513606[_0x513606['length']-0x1][_0x7137('0xe')]||_0x3e58e5[_0x7137('0x38')]||this[_0x7137('0x3d')]()||_0x5acb21[_0x7137('0x1e')]());},{'priority':_0x7137('0x14')});for(const _0x4b95fc of['mergeTableCellUp','mergeTableCellRight',_0x7137('0x12'),_0x7137('0x2b')]){const _0x255b15=_0x44c950[_0x7137('0x26')]['get'](_0x4b95fc);_0x3e58e5[_0x7137('0x15')](_0x4b95fc,()=>{const _0x38b944=_0x44c950[_0x7137('0x2f')][_0x7137('0x4d')][_0x7137('0x5')]['getFirstPosition']()[_0x7137('0x27')]()[_0x7137('0x0')](_0x4d9b33=>_0x4d9b33['is'](_0x7137('0x8'),_0x7137('0xf'))),_0x372a72=_0x255b15[_0x7137('0x1c')];_0x44c950[_0x7137('0x2f')][_0x7137('0x19')](()=>{_0x3e58e5['markMultiRangeBlockFormat']([_0x38b944,_0x372a72],{'commandName':'mergeTableCells','commandParams':[]},[],_0x7137('0x32'));});});}for(const _0x3f443c of['splitTableCellVertically',_0x7137('0x28')]){const _0x30a2db=_0x44c950[_0x7137('0x26')][_0x7137('0x1b')](_0x3f443c);_0x3e58e5['enableCommand'](_0x3f443c,()=>{const _0x2f7d15=_0x298bf9[_0x7137('0x1d')](_0x44c950[_0x7137('0x2f')][_0x7137('0x4d')]['selection'])[0x0],_0x44c0f6=_0x2f7d15[_0x7137('0x29')](_0x7137('0x47')),{column:_0x542b5a,row:_0x3573e4}=_0x298bf9[_0x7137('0x2c')](_0x2f7d15);let _0x2fea94=[];if('horizontally'==_0x30a2db[_0x7137('0x35')]){const _0x1c3be0=_0x298bf9['createTableWalker'](_0x44c0f6,{'startRow':_0x3573e4,'endRow':_0x3573e4,'includeAllSlots':!0x0});_0x2fea94=Array['from'](_0x1c3be0)['map'](_0x4bd064=>_0x4bd064[_0x7137('0x6')]);}else{const _0x1469a9=_0x298bf9[_0x7137('0x34')](_0x44c0f6,{'column':_0x542b5a,'includeAllSlots':!0x0});_0x2fea94=Array[_0x7137('0x3e')](_0x1469a9)['map'](_0x12915b=>_0x12915b[_0x7137('0x6')]);}_0x44c950[_0x7137('0x2f')][_0x7137('0x19')](_0x285627=>{_0x3e58e5[_0x7137('0xa')](_0x285627['createRangeOn'](_0x2f7d15),{'commandName':_0x3f443c,'commandParams':[]},_0x2fea94,_0x3f443c);});});}_0x3e58e5[_0x7137('0x21')]['registerDescriptionCallback'](_0x4c53e9=>{if('formatBlock'!=_0x4c53e9[_0x7137('0x7')]&&'formatInline'!=_0x4c53e9[_0x7137('0x7')])return;const {data:_0x1a5091}=_0x4c53e9;return _0x1a5091&&_0x7137('0x32')==_0x1a5091[_0x7137('0x4e')]?{'type':_0x7137('0x3a'),'content':_0x4a5877(_0x29bff6,_0x7137('0x40'))}:void 0x0;}),_0x3e58e5['_descriptionFactory'][_0x7137('0x37')](_0xcf23c6=>{if(_0x7137('0x46')!=_0xcf23c6['type']&&_0x7137('0x33')!=_0xcf23c6['type'])return;const {data:_0x50e9ea}=_0xcf23c6;return _0x50e9ea?_0x7137('0x16')==_0x50e9ea[_0x7137('0x4e')]?{'type':_0x7137('0x3a'),'content':_0x4a5877(_0x29bff6,_0x7137('0x4c'))}:_0x7137('0x28')==_0x50e9ea[_0x7137('0x4e')]?{'type':_0x7137('0x3a'),'content':_0x4a5877(_0x29bff6,_0x7137('0x9'))}:void 0x0:void 0x0;});const _0x5b358c=_0x4e70b6[_0x7137('0xc')]();for(const _0xefb621 of['mergeTableCellUp',_0x7137('0x10'),_0x7137('0x12'),'mergeTableCellLeft'])_0x3e58e5[_0x7137('0x36')][_0x7137('0x22')](_0x7137('0x46'),_0xefb621,_0x7137('0x25'),_0x5b358c);for(const _0x3a9aa8 of[_0x7137('0x16'),_0x7137('0x28')])_0x3e58e5['_suggestionFactory'][_0x7137('0x22')](_0x7137('0x46'),_0x3a9aa8,'accept',_0x5b358c);_0x3e58e5['_suggestionFactory'][_0x7137('0x22')]('formatBlock',_0x7137('0x32'),_0x7137('0x25'),_0x295031=>{_0x44c950[_0x7137('0x2f')][_0x7137('0x19')](_0xc1a5d9=>{const _0x517deb=Array['from'](_0x506777[_0x7137('0x3f')]())[_0x7137('0x41')](_0x381dc3=>_0x300509[_0x7137('0x44')](_0x381dc3));_0xc1a5d9['setSelection'](_0x295031),_0x44c950[_0x7137('0x26')][_0x7137('0x1b')](_0x7137('0x32'))['refresh'](),_0x44c950[_0x7137('0x2')](_0x7137('0x32'),{'forceDefaultExecution':!0x0});const _0x4c76d0=_0x517deb[_0x7137('0x18')](_0x8734d4=>_0x7137('0x4b')!=_0x8734d4[_0x7137('0x31')]['rootName']);_0x4c76d0['length']>0x0&&_0xc1a5d9[_0x7137('0x4')](_0x4c76d0);for(const _0x24cc33 of _0x517deb)_0x24cc33[_0x7137('0x24')]();});});for(const _0x1a535a of['mergeTableCellUp',_0x7137('0x12'),'mergeTableCellLeft',_0x7137('0x10')]){const _0x2b3ea8=_0x44c950[_0x7137('0x26')][_0x7137('0x1b')](_0x1a535a);_0x2b3ea8['on'](_0x7137('0x11'),(_0x481386,_0x57b8d6,_0x49611e)=>{if(_0x49611e){const _0x4e07dc=_0x44c950[_0x7137('0x2f')][_0x7137('0x4d')][_0x7137('0x5')]['getFirstPosition']()[_0x7137('0x27')]()[_0x7137('0x0')](_0x1b2cdf=>_0x1b2cdf['is'](_0x7137('0x8'),_0x7137('0xf')));this['_areMergableCells'](_0x2b3ea8[_0x7137('0x1c')],_0x4e07dc)||(_0x481386[_0x7137('0xd')]=!0x1,_0x481386[_0x7137('0x1e')]());}},{'priority':_0x7137('0x1')});}}[_0x7137('0x3d')](){const _0x3fbdcc=this[_0x7137('0x17')]['commands'][_0x7137('0x1b')](_0x7137('0x32')),_0x304b27=this[_0x7137('0x17')][_0x7137('0x1a')]['get'](_0x7137('0x43'));if(!_0x3fbdcc['isEnabled'])return!0x1;const _0x401b0f=_0x304b27['getSelectionAffectedTableCells'](this[_0x7137('0x17')][_0x7137('0x2f')][_0x7137('0x4d')]['selection']);for(const _0x135019 of _0x401b0f)for(const _0x2aa353 of _0x401b0f)if(_0x135019!=_0x2aa353&&!this[_0x7137('0x3c')](_0x135019,_0x2aa353))return!0x1;return!0x0;}['_areMergableCells'](_0x3f8023,_0x218159){const _0x3e8299=this[_0x7137('0x17')][_0x7137('0x1a')][_0x7137('0x1b')](_0x7137('0x42')),_0x2df241=this['editor']['model']['createRangeOn'](_0x3f8023),_0x2b0db6=this[_0x7137('0x17')][_0x7137('0x2f')]['createRangeOn'](_0x218159),_0x45b1a4=new Set(),_0xb1045e=new Set();for(const _0x5dc6e7 of _0x3e8299[_0x7137('0x49')]())if((_0x7137('0x3')==_0x5dc6e7['type']||_0x7137('0x50')==_0x5dc6e7[_0x7137('0x7')]||_0x7137('0x32')==_0x5dc6e7[_0x7137('0x4a')])&&_0x5dc6e7[_0x7137('0x20')])for(const _0xf7fd3e of _0x5dc6e7[_0x7137('0x3f')]())_0xf7fd3e[_0x7137('0x30')](_0x2df241,!0x0)&&_0x45b1a4[_0x7137('0x3b')](_0x5dc6e7['type']+':'+_0x5dc6e7[_0x7137('0x13')]['id']),_0xf7fd3e['containsRange'](_0x2b0db6,!0x0)&&_0xb1045e[_0x7137('0x3b')](_0x5dc6e7[_0x7137('0x7')]+':'+_0x5dc6e7['author']['id']);if(_0x45b1a4[_0x7137('0x48')]!=_0xb1045e[_0x7137('0x48')])return!0x1;for(const _0x44de1f of _0x45b1a4)if(!_0xb1045e[_0x7137('0x2a')](_0x44de1f))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x85ad=['insertTableOfContents','registerElementLabel','plugins','ELEMENT_TABLE_OF_CONTENTS','locale','tableOfContents','get','afterInit','TrackChangesEditing','enableCommand'];(function(_0x25ac7f,_0x85adf8){const _0x15b327=function(_0x5d1f5f){while(--_0x5d1f5f){_0x25ac7f['push'](_0x25ac7f['shift']());}};_0x15b327(++_0x85adf8);}(_0x85ad,0x102));const _0x15b3=function(_0x25ac7f,_0x85adf8){_0x25ac7f=_0x25ac7f-0x0;let _0x15b327=_0x85ad[_0x25ac7f];return _0x15b327;};import{Plugin as _0x2869af}from'ckeditor5/src/core.js';import{getTranslation as _0x5150e6}from'../utils/common-translations.js';export default class _t extends _0x2869af{[_0x15b3('0x9')](){const _0x1782db=this['editor'];if(!_0x1782db['commands'][_0x15b3('0x8')](_0x15b3('0x2')))return;_0x1782db[_0x15b3('0x4')]['get']('TrackChangesEditing')[_0x15b3('0x1')]('insertTableOfContents');const _0x2319bd=_0x1782db['plugins'][_0x15b3('0x8')](_0x15b3('0x0')),_0x5ec99e=_0x1782db[_0x15b3('0x6')];_0x2319bd['_descriptionFactory'][_0x15b3('0x3')](_0x15b3('0x7'),_0xaf89c0=>_0x5150e6(_0x5ec99e,_0x15b3('0x5'),_0xaf89c0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b97=['findAncestor','editor','TrackChangesEditing','getAttribute','tableCellProperties','TableUtils','table','pluginName','setAttribute','tableProperties','_descriptionFactory','getSuggestionCallback','tableCellBorderColor','tableBorderStyle','formatBlock','handleDiscardAction','_getSuggestion','*Format:*\x20change\x20table\x20properties','afterInit','change','_handlePropertyChange','_suggestionFactory','nodeAfter','format','plugins','registerDescriptionCallback','TrackChangesTableProperties','tableCellVerticalAlignment','subType','join','getSelectionAffectedTableCells','discard','tableCellBorderStyle','locale','get','registerCustomCallback','tableCellHeight','document','handleSuggestionDescription','tableHeight','enqueueChange','getContainedElement','tableCellBorderWidth','getSuggestions','tableCellPadding','accept','tableBackgroundColor','TablePropertiesEditing','model','enableCommand','tableCellHorizontalAlignment','getFirstPosition'];(function(_0x13a1bf,_0x2b97a8){const _0x48aae8=function(_0x4c8a4a){while(--_0x4c8a4a){_0x13a1bf['push'](_0x13a1bf['shift']());}};_0x48aae8(++_0x2b97a8);}(_0x2b97,0xb6));const _0x48aa=function(_0x13a1bf,_0x2b97a8){_0x13a1bf=_0x13a1bf-0x0;let _0x48aae8=_0x2b97[_0x13a1bf];return _0x48aae8;};import{Plugin as _0x1a810f}from'ckeditor5/src/core.js';import{getTranslation as _0x2c2033}from'../utils/common-translations.js';export default class Mt extends _0x1a810f{constructor(_0x3f331f){super(_0x3f331f),this['tableProperties']=['tableBorderColor',_0x48aa('0x27'),'tableBorderWidth','tableAlignment','tableWidth',_0x48aa('0xd'),_0x48aa('0x14')],this[_0x48aa('0x1e')]=[_0x48aa('0x26'),_0x48aa('0x6'),_0x48aa('0x10'),_0x48aa('0x12'),'tableCellWidth',_0x48aa('0xa'),'tableCellBackgroundColor',_0x48aa('0x18'),_0x48aa('0x1')];}static get[_0x48aa('0x21')](){return _0x48aa('0x0');}[_0x48aa('0x2c')](){const _0x5f213d=this[_0x48aa('0x1b')]['plugins'][_0x48aa('0x8')](_0x48aa('0x1c'));if(this['editor'][_0x48aa('0x32')]['has'](_0x48aa('0x15'))){for(const _0x317ebe of this[_0x48aa('0x23')])_0x5f213d[_0x48aa('0x17')](_0x317ebe,(_0x331ca2,_0x22d1eb)=>{const _0x1d74aa=this[_0x48aa('0x1b')][_0x48aa('0x16')][_0x48aa('0xb')]['selection'][_0x48aa('0x19')]()[_0x48aa('0x1a')](_0x48aa('0x20'));this[_0x48aa('0x2e')](_0x317ebe,[_0x1d74aa],this[_0x48aa('0x23')],_0x48aa('0x23'),_0x331ca2,_0x22d1eb);});_0x5f213d[_0x48aa('0x2f')]['registerCustomCallback']('formatBlock',_0x48aa('0x23'),_0x48aa('0x13'),_0x5f213d[_0x48aa('0x2f')][_0x48aa('0x25')](_0x48aa('0x28'),null,'discard')),_0x5f213d['_suggestionFactory'][_0x48aa('0x9')](_0x48aa('0x28'),_0x48aa('0x23'),_0x48aa('0x5'),(_0x360186,_0x47d776)=>this['handleDiscardAction'](this[_0x48aa('0x23')],_0x360186,_0x47d776)),_0x5f213d[_0x48aa('0x2f')]['registerCustomCallback'](_0x48aa('0x28'),'tableProperties',_0x48aa('0x3'),()=>!0x1);}if(this[_0x48aa('0x1b')][_0x48aa('0x32')]['has']('TableCellPropertiesEditing')){for(const _0x343ba0 of this[_0x48aa('0x1e')])_0x5f213d[_0x48aa('0x17')](_0x343ba0,(_0x2d7800,_0x49008a)=>{const _0x265df1=this[_0x48aa('0x1b')][_0x48aa('0x32')][_0x48aa('0x8')](_0x48aa('0x1f'))[_0x48aa('0x4')](this[_0x48aa('0x1b')][_0x48aa('0x16')][_0x48aa('0xb')]['selection']);this[_0x48aa('0x2e')](_0x343ba0,_0x265df1,this[_0x48aa('0x1e')],_0x48aa('0x1e'),_0x2d7800,_0x49008a);});_0x5f213d['_suggestionFactory'][_0x48aa('0x9')](_0x48aa('0x28'),_0x48aa('0x1e'),'accept',_0x5f213d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5f213d[_0x48aa('0x2f')][_0x48aa('0x9')](_0x48aa('0x28'),'tableCellProperties','discard',(_0x2cdef2,_0xde32ad)=>this[_0x48aa('0x29')](this[_0x48aa('0x1e')],_0x2cdef2,_0xde32ad)),_0x5f213d['_suggestionFactory'][_0x48aa('0x9')](_0x48aa('0x28'),_0x48aa('0x1e'),_0x48aa('0x3'),()=>!0x1);}_0x5f213d[_0x48aa('0x24')][_0x48aa('0x33')](_0x21883c=>this[_0x48aa('0xc')](_0x21883c));}[_0x48aa('0x2e')](_0x530d00,_0x2a5348,_0x2e21d4,_0x217b04,_0x4da29b,_0x480df1){const _0x580ca7=this[_0x48aa('0x1b')]['plugins'][_0x48aa('0x8')](_0x48aa('0x1c'));this[_0x48aa('0x1b')][_0x48aa('0x16')][_0x48aa('0xe')](_0x480df1['batch'],()=>{for(const _0x14d703 of _0x2a5348){if(this[_0x48aa('0x2a')](_0x14d703,_0x217b04))_0x4da29b(_0x480df1);else{const _0x5a7991={};for(const _0x306a1e of _0x2e21d4){const _0x55b13c=_0x14d703[_0x48aa('0x1d')](_0x306a1e);void 0x0!==_0x55b13c&&(_0x5a7991[_0x306a1e]=_0x55b13c);}_0x4da29b(_0x480df1),_0x580ca7['markBlockFormat'](_0x14d703,{'commandParams':[_0x5a7991]},[],_0x217b04);}}});}[_0x48aa('0x29')](_0xde5b94,_0x20cc08,_0x5a1e3a){const _0x3a347a=_0x20cc08[0x0]['start'][_0x48aa('0x30')],_0x5741a3=_0x5a1e3a['commandParams'][0x0];this[_0x48aa('0x1b')][_0x48aa('0x16')][_0x48aa('0x2d')](_0xda4070=>{for(const _0x38137f of _0xde5b94)void 0x0!==_0x5741a3[_0x38137f]?_0xda4070[_0x48aa('0x22')](_0x38137f,_0x5741a3[_0x38137f],_0x3a347a):_0xda4070['removeAttribute'](_0x38137f,_0x3a347a);});}[_0x48aa('0xc')](_0x24a691){if(_0x24a691['data'])switch(_0x24a691[_0x48aa('0x2')]){case'tableProperties':return{'type':_0x48aa('0x31'),'content':_0x2c2033(this[_0x48aa('0x1b')][_0x48aa('0x7')],_0x48aa('0x2b'))};case _0x48aa('0x1e'):return{'type':_0x48aa('0x31'),'content':_0x2c2033(this[_0x48aa('0x1b')]['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x48aa('0x2a')](_0x55c7e8,_0x518b69){const _0x396c94=this[_0x48aa('0x1b')][_0x48aa('0x32')][_0x48aa('0x8')](_0x48aa('0x1c'));for(const _0xf86634 of _0x396c94[_0x48aa('0x11')]({'skipNotAttached':!0x0})){const _0x347de5=_0xf86634[_0x48aa('0xf')]();if(_0xf86634[_0x48aa('0x2')]===_0x518b69&&_0x347de5===_0x55c7e8)return _0xf86634;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bf5=['insertTemplate','get','plugins','TrackChangesEditing','editor'];(function(_0x124377,_0x2bf5af){const _0x171147=function(_0x54fbeb){while(--_0x54fbeb){_0x124377['push'](_0x124377['shift']());}};_0x171147(++_0x2bf5af);}(_0x2bf5,0xb0));const _0x1711=function(_0x124377,_0x2bf5af){_0x124377=_0x124377-0x0;let _0x171147=_0x2bf5[_0x124377];return _0x171147;};import{Plugin as _0x217ef0}from'ckeditor5/src/core.js';export default class vt extends _0x217ef0{['afterInit'](){const _0x54216c=this[_0x1711('0x3')];_0x54216c[_0x1711('0x1')]['has']('Template')&&_0x54216c[_0x1711('0x1')][_0x1711('0x0')](_0x1711('0x2'))['enableCommand'](_0x1711('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x523e=['isEqual','document','start','getNearestSelectionRange','forward','plugins','registerElementLabel','newRange','differ','_splitMarkerName','afterInit','has','TrackChangesEditing','model','end','registerPostFixer','nodeBefore','title-content','removeMarker','get','from','Title','locale','isTouching','isCollapsed','suggestion'];(function(_0x373a85,_0x523ec){const _0x18bd26=function(_0x4ab4d9){while(--_0x4ab4d9){_0x373a85['push'](_0x373a85['shift']());}};_0x18bd26(++_0x523ec);}(_0x523e,0x14c));const _0x18bd=function(_0x373a85,_0x523ec){_0x373a85=_0x373a85-0x0;let _0x18bd26=_0x523e[_0x373a85];return _0x18bd26;};import{Plugin as _0x177c69}from'ckeditor5/src/core.js';import{getTranslation as _0x46b6b7}from'../utils/common-translations.js';export default class Ct extends _0x177c69{[_0x18bd('0x10')](){const _0x1247e7=this['editor'];if(!_0x1247e7[_0x18bd('0xb')][_0x18bd('0x11')](_0x18bd('0x1')))return;const _0x42bee6=_0x1247e7[_0x18bd('0xb')][_0x18bd('0x19')](_0x18bd('0x12'));_0x42bee6['_descriptionFactory'][_0x18bd('0xc')](_0x18bd('0x17'),()=>_0x46b6b7(_0x1247e7[_0x18bd('0x2')],'ELEMENT_TITLE')),_0x1247e7[_0x18bd('0x13')][_0x18bd('0x7')][_0x18bd('0x15')](_0x1b2776=>{let _0x452d0c=!0x1;const _0x1e2715=Array[_0x18bd('0x0')](_0x1247e7[_0x18bd('0x13')][_0x18bd('0x7')][_0x18bd('0xe')]['getChangedMarkers']());for(const {name:_0x1a3364,data:_0x2c8e20}of _0x1e2715){const {group:_0x5440a6}=_0x42bee6[_0x18bd('0xf')](_0x1a3364);if(_0x18bd('0x5')!==_0x5440a6||!_0x2c8e20[_0x18bd('0xd')])continue;const _0x577188=_0x2c8e20[_0x18bd('0xd')],_0x38db55=_0x577188[_0x18bd('0x14')][_0x18bd('0x16')];if(!_0x38db55||!_0x38db55['is']('element',_0x18bd('0x17')))continue;if(!_0x577188[_0x18bd('0x8')][_0x18bd('0x3')](_0x577188[_0x18bd('0x14')]))continue;const _0x54c164=_0x1247e7['model']['schema'][_0x18bd('0x9')](_0x577188[_0x18bd('0x14')],_0x18bd('0xa'));if(_0x54c164&&_0x54c164[_0x18bd('0x4')]){const _0x44fc9d=_0x1b2776['createRange'](_0x577188[_0x18bd('0x8')],_0x54c164[_0x18bd('0x8')]);_0x44fc9d[_0x18bd('0x6')](_0x577188)||(_0x1b2776['updateMarker'](_0x1a3364,{'range':_0x44fc9d}),_0x452d0c=!0x0);}_0x452d0c||(_0x1b2776[_0x18bd('0x18')](_0x1a3364),_0x452d0c=!0x0);}return _0x452d0c;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c4d=['afterInit','redo','editor','plugins','get'];(function(_0x47d65d,_0x4c4de8){const _0x19da7b=function(_0x560d76){while(--_0x560d76){_0x47d65d['push'](_0x47d65d['shift']());}};_0x19da7b(++_0x4c4de8);}(_0x4c4d,0x192));const _0x19da=function(_0x47d65d,_0x4c4de8){_0x47d65d=_0x47d65d-0x0;let _0x19da7b=_0x4c4d[_0x47d65d];return _0x19da7b;};import{Plugin as _0x1da287}from'ckeditor5/src/core.js';export default class Dt extends _0x1da287{[_0x19da('0x3')](){const _0x5e80ab=this[_0x19da('0x0')],_0x167fe4=_0x5e80ab[_0x19da('0x1')][_0x19da('0x2')]('TrackChangesEditing');_0x5e80ab['plugins']['has']('UndoEditing')&&(_0x167fe4['enableCommand']('undo'),_0x167fe4['enableCommand'](_0x19da('0x4')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d25=['get','getCustomProperty','type','name','listIndent','isLimit','parent','isContent','test','item','includes','addHighlight','markerRange','mapper','span','markerName','previousPosition','toViewElement','isBlock','activeMarkers','toViewPosition','push','isAtEnd','getItems','nextSibling','consumable','element','addClass','start','hasAttribute','ck-suggestion-marker-','TrackChangesEditing','writer','schema','getAttribute','elementEnd','listItem'];(function(_0x2da7ee,_0x4d25aa){const _0x255d98=function(_0x371353){while(--_0x371353){_0x2da7ee['push'](_0x2da7ee['shift']());}};_0x255d98(++_0x4d25aa);}(_0x4d25,0x123));const _0x255d=function(_0x2da7ee,_0x4d25aa){_0x2da7ee=_0x2da7ee-0x0;let _0x255d98=_0x4d25[_0x2da7ee];return _0x255d98;};export function getRangesWithAttribute(_0x2f7ec6,_0x3a26c3,_0x5ec468){const _0xc3f17=[];for(const _0x45bce4 of _0x3a26c3[_0x255d('0x1c')]())_0x45bce4[_0x255d('0x22')](_0x2f7ec6)&&_0xc3f17[_0x255d('0x1a')](_0x5ec468['createRangeOn'](_0x45bce4));return _0xc3f17;}export function getElementsAffectedByListItemRename(_0x4deff0){const _0x5d312a=[];if(_0x4deff0['is'](_0x255d('0x1f'),'listItem')){let _0x5ec0d0=_0x4deff0[_0x255d('0x1d')];for(;_0x5ec0d0&&_0x5ec0d0['is']('element',_0x255d('0x4'))&&_0x5ec0d0[_0x255d('0x2')](_0x255d('0x9'))>0x0;)_0x5d312a[_0x255d('0x1a')](_0x5ec0d0),_0x5ec0d0=_0x5ec0d0[_0x255d('0x1d')];}return _0x5d312a;}export function downcastSplitMergeMarker(_0x36f9ac,_0x2b6fbf,{showActiveMarker:_0x462e7e=!0x0}={}){const _0x20a70b=_0x36f9ac['plugins'][_0x255d('0x5')](_0x255d('0x24'));return(_0x392d6c,_0x430aee,_0x293522)=>{if(!_0x293522[_0x255d('0x1e')][_0x255d('0xd')](_0x430aee[_0x255d('0x11')],_0x392d6c[_0x255d('0x8')]))return;const _0x4b2003=_0x430aee[_0x255d('0x11')]['getWalker'](),_0x3c5932=_0x430aee['markerRange'][_0x255d('0x21')],_0x4a32bd=_0x36f9ac['model'][_0x255d('0x1')];let _0x4d8338=null,_0x3b22be=null,_0x49c05b=!0x1,_0x286aad=!0x1;for(const _0x3cd7b1 of _0x4b2003){const _0x34a547=_0x3cd7b1[_0x255d('0xe')];_0x49c05b=_0x49c05b||_0x4a32bd[_0x255d('0xc')](_0x34a547);const _0x5ac5f2=_0x293522[_0x255d('0x12')][_0x255d('0x16')](_0x34a547);if(_0x5ac5f2&&_0x5ac5f2[_0x255d('0x6')](_0x255d('0x10')))return;_0x255d('0x3')==_0x3cd7b1[_0x255d('0x7')]&&(_0x4a32bd[_0x255d('0x17')](_0x34a547)&&!_0x4a32bd[_0x255d('0xa')](_0x34a547)&&(_0x34a547[_0x255d('0x1d')]||_0x3c5932[_0x255d('0x1b')]?_0x4d8338&&_0x4d8338[_0x255d('0xb')]==_0x34a547||(_0x4d8338=_0x34a547,_0x181ac4(_0x3cd7b1[_0x255d('0x15')]),_0x286aad=!0x0):_0x3b22be=_0x3b22be||_0x3cd7b1[_0x255d('0x15')]));}function _0x181ac4(_0x3b7d0a){const _0x3fb7f8=_0x293522[_0x255d('0x0')]['createUIElement'](_0x255d('0x13'),{'class':_0x255d('0x23')+_0x2b6fbf}),_0x1fd0a9=_0x293522[_0x255d('0x12')][_0x255d('0x19')](_0x3b7d0a);_0x462e7e&&_0x20a70b[_0x255d('0x18')][_0x255d('0xf')](_0x430aee[_0x255d('0x14')])&&_0x293522[_0x255d('0x0')][_0x255d('0x20')]('ck-suggestion-marker--active',_0x3fb7f8),_0x293522['writer']['insert'](_0x1fd0a9,_0x3fb7f8),_0x293522['mapper']['bindElementToMarker'](_0x3fb7f8,_0x430aee['markerName']);}_0x49c05b||_0x286aad||!_0x3b22be||_0x181ac4(_0x3b22be);};}
|