@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231207.0 → 0.0.0-nightly-20231209.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 _0x45d6=['afterInit','rowInsertionIndexes','deletion','some','createElement','getRanges','rows','paragraph','getChangedMarkers','removeMarker','tablePasteChainId','return','name','first','schema','unwrap','suggestion','getColumns','deletionRanges','*Replace\x20table\x20cells*','plugins','suggestion:formatBlock:tablePasteCell','startsWith','forceDefaultExecution','tableCellHorizontalAlignment','removeColumns','activeMarkers','subType','insertRows','tableCellPadding','high','ck-suggestion-marker','differ','Users','suggestionLoaded','accept','endColumn','editing','suggestionUnloaded','ck-suggestion-marker-insertion','getAttributes','set','editingDowncast','getTableIfOnlyTableInContent','type','registerCustomCallback','cell','markMultiRangeBlockFormat','join','model','setAttributes','change','getShiftedBy','registerDescriptionCallback','content','_isForcedDefaultExecutionBlock','locale','entries','removeMarkers','map','createTableWalker','insertColumns','createRange','element','row','oldRange','tableCell','remove','start','containsRange','registerPostFixer','move','insertion','low','getRowIndexes','_getCoordsForCells','conversion','tableCellBorderWidth','columnInsertionIndexes','getSuggestions','createPositionBefore','stop','isInContent','tableCellSuggestion','previousSibling','insert','push','commands','getMarkers','markerToHighlight','getSuggestion','dataDowncast','discard','register','documentSelection','getContainedElement','findAncestor','markerAttributes','ck-suggestion-marker--active','insertContent','suggestion-td','keys','tablePasteRow','getRows','cells','nodeAfter','_splitMarkerName','isEqual','fromEntries','_replaceTableSlotCell','add','formatBlock','endRow','getAllAdjacentSuggestions','getRange','author','get','from','includes','tableCellBackgroundColor','setAttribute','removeRows','fill','has','document','length','columns','markMultiRangeInsertion','table','createRangeIn','tableCellVerticalAlignment','column','root','last','previous','attributes','tablePaste','markMultiRangeDeletion','hasSuggestion','getSelectionAffectedTableCells','next','newRange','createRangeOn','tableCellBorderStyle','_descriptionFactory','getChild','trackChanges','tablePasteColumn','filter','requires','isEmpty','editor','_suggestionFactory','wrap','getSuggestionCallback','_createdBatches','nextSibling','getChildren','TrackChangesEditing','elementToElement','tablePasteCell','find'];(function(_0x1e6dbe,_0x45d672){const _0x288c9f=function(_0x136f6b){while(--_0x136f6b){_0x1e6dbe['push'](_0x1e6dbe['shift']());}};_0x288c9f(++_0x45d672);}(_0x45d6,0xe3));const _0x288c=function(_0x1e6dbe,_0x45d672){_0x1e6dbe=_0x1e6dbe-0x0;let _0x288c9f=_0x45d6[_0x1e6dbe];return _0x288c9f;};import{getTranslation as _0x5b0105}from'../utils/common-translations';import{Plugin as _0xcde7e9}from'ckeditor5/src/core';import{uid as _0x5b05f8,priorities as _0x4ae691}from'ckeditor5/src/utils';import _0x4821cd from'./table';const le=[_0x288c('0xc'),'tableCellBorderColor',_0x288c('0x4e'),_0x288c('0x79'),_0x288c('0x41'),_0x288c('0x36'),_0x288c('0x7e')],ae=Object[_0x288c('0x2b')](le[_0x288c('0x9c')](_0x11f52a=>[_0x11f52a,null]));export default class At extends _0xcde7e9{static get[_0x288c('0x54')](){return[_0x4821cd];}[_0x288c('0x61')](){const _0x243c05=this[_0x288c('0x56')];if(!_0x243c05[_0x288c('0x75')][_0x288c('0x3a')]('TableClipboard'))return;const _0x3e757e=_0x243c05[_0x288c('0x75')][_0x288c('0x33')](_0x288c('0x5d')),_0x4c1de4=_0x243c05[_0x288c('0x75')][_0x288c('0x33')]('TableUtils'),_0x375e73=_0x243c05['plugins'][_0x288c('0x33')](_0x4821cd),_0x1bd276=_0x243c05[_0x288c('0x75')][_0x288c('0x33')]('TableClipboard');_0x375e73['_tablePostFixingSubtypes'][_0x288c('0x15')]('tablePasteRow',_0x288c('0x52')),_0x243c05[_0x288c('0x92')][_0x288c('0x6f')][_0x288c('0x1c')](_0x288c('0x12'),{'allowIn':'tableCell','allowContentOf':_0x288c('0x1'),'isLimit':!0x0}),_0x243c05[_0x288c('0xb')][_0x288c('0x5e')]({'model':_0x288c('0x12'),'view':_0x288c('0x23')});let _0x21ebb8=null;_0x243c05[_0x288c('0x92')]['on'](_0x288c('0x22'),(_0x4257a5,_0x2fcb6e)=>{const [_0x6ad663,_0xa0c672]=_0x2fcb6e,_0x401c89=_0x2fcb6e[_0x2fcb6e[_0x288c('0x3c')]-0x1];_0x401c89&&_0x401c89[_0x288c('0x78')]||_0x3e757e[_0x288c('0x98')]||this['editor'][_0x288c('0x16')][_0x288c('0x33')](_0x288c('0x51'))['value']&&function(_0x57698f,_0x46329d,_0x2c2a40,_0x9aac43,_0xf45173){if(_0x46329d&&!_0x46329d['is'](_0x288c('0x1d')))return!0x1;const _0x2bf749=_0xf45173[_0x288c('0x8c')](_0x57698f,_0x2c2a40);if(!_0x2bf749||!fe(_0x2bf749,void 0x0,_0x9aac43))return!0x1;const _0x502f76=_0x9aac43[_0x288c('0x4a')](_0x2c2a40['document']['selection']);if(!_0x502f76['length'])return!0x1;const _0xafccd3=_0x502f76[0x0][_0x288c('0x1f')]('table'),_0x3aa429=_0x9aac43[_0x288c('0x9')](_0x502f76),_0xfb4597=_0x9aac43['getColumnIndexes'](_0x502f76),_0x250054={'startRow':_0x3aa429[_0x288c('0x6e')],'endRow':_0x3aa429[_0x288c('0x44')],'startColumn':_0xfb4597[_0x288c('0x6e')],'endColumn':_0xfb4597[_0x288c('0x44')]};return 0x1==_0x502f76[_0x288c('0x3c')]&&(_0x250054[_0x288c('0x2f')]+=_0x9aac43[_0x288c('0x26')](_0x2bf749)-0x1,_0x250054[_0x288c('0x85')]+=_0x9aac43[_0x288c('0x72')](_0x2bf749)-0x1),fe(_0xafccd3,_0x250054,_0x9aac43);}(_0x6ad663,_0xa0c672,_0x243c05[_0x288c('0x92')],_0x4c1de4,_0x1bd276)&&(_0x4257a5[_0x288c('0x10')](),_0x21ebb8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x243c05[_0x288c('0x92')][_0x288c('0x94')](()=>{_0x243c05['model'][_0x288c('0x22')](_0x2fcb6e[0x0],_0x2fcb6e[0x1],_0x2fcb6e[0x2],{'forceDefaultExecution':!0x0});const _0x4580ce=_0x5b05f8(),{rowInsertionRanges:_0x1cb6ed,columnInsertionRanges:_0x208fb0,insertionRanges:_0x5480a6,deletionRanges:_0x1abf10,cells:_0x5f426d}=_0x21ebb8;_0x1cb6ed[_0x288c('0x3c')]&&_0x3e757e[_0x288c('0x3e')](_0x1cb6ed,_0x288c('0x25'),{'tablePasteChainId':_0x4580ce}),_0x208fb0[_0x288c('0x3c')]&&_0x3e757e[_0x288c('0x3e')](_0x208fb0,_0x288c('0x52'),{'tablePasteChainId':_0x4580ce}),_0x5480a6[_0x288c('0x3c')]&&_0x3e757e[_0x288c('0x3e')](_0x5480a6,_0x288c('0x47'),{'tablePasteChainId':_0x4580ce,'skipNestingCheck':!0x0}),_0x1abf10[_0x288c('0x3c')]&&_0x3e757e[_0x288c('0x48')](_0x1abf10,_0x288c('0x47'),{'tablePasteChainId':_0x4580ce,'skipNestingCheck':!0x0});const _0x52bf9f=_0x3e757e[_0x288c('0x90')](_0x5f426d[_0x288c('0x9c')](({element:_0x2ac63e})=>_0x2ac63e),{'formatGroupId':_0x5b05f8()},[],_0x288c('0x5f'),{'tablePasteChainId':_0x4580ce});if(_0x52bf9f){const _0x4e66bc=_0x52bf9f[_0x288c('0x17')](),_0x57a1cc=[];for(const {element:_0x374126,attributes:_0x31e921}of _0x5f426d){if(!_0x31e921)continue;const _0x2193f4=_0x243c05[_0x288c('0x92')]['createRangeOn'](_0x374126),_0x5f1d18=_0x4e66bc[_0x288c('0x60')](_0x2f9b4e=>_0x2f9b4e[_0x288c('0x31')]()['isEqual'](_0x2193f4));_0x5f1d18&&_0x57a1cc['push']([_0x5f1d18['name'],_0x31e921]);}_0x57a1cc[_0x288c('0x3c')]&&_0x52bf9f[_0x288c('0x37')](_0x288c('0x20'),Object[_0x288c('0x2b')](_0x57a1cc));}_0x21ebb8=null;}));},{'priority':_0x4ae691['high']+0xa}),_0x243c05[_0x288c('0x75')][_0x288c('0x33')]('TableClipboard')['on'](_0x288c('0x2c'),(_0x5d7675,_0x46ddd0)=>{const [_0x5a51f8,_0x1f7505,,_0x1332b9]=_0x46ddd0;if(!_0x21ebb8)return;_0x5d7675[_0x288c('0x10')]();const _0x35f8f2=_0x5a51f8[_0x288c('0x8f')],_0x4834c4=_0x1f7505,_0x1a1e36=ce(_0x35f8f2),_0x1b27a9=ce(_0x4834c4);_0x5d7675[_0x288c('0x6c')]=_0x35f8f2;let _0xca7a74=null,_0x2ba1c1=null;if(_0x1b27a9||_0x1a1e36){if(_0x1a1e36&&!_0x1b27a9){_0x1332b9[_0x288c('0x2')](_0x35f8f2[_0x288c('0x50')](0x0));for(const _0x59ea82 of Array['from'](_0x4834c4['getChildren']()))_0x1332b9['insert'](_0x59ea82,_0x35f8f2,'end');const _0x300a9b=_0x21ebb8[_0x288c('0x62')][_0x288c('0x35')](_0x5a51f8[_0x288c('0xa1')]),_0x3cfa17=_0x21ebb8[_0x288c('0xd')][_0x288c('0x35')](_0x5a51f8[_0x288c('0x42')]);_0x300a9b||_0x3cfa17||(_0xca7a74=_0x1332b9[_0x288c('0x40')](_0x35f8f2));}else _0x1b27a9&&!_0x1a1e36&&(_0x2ba1c1=_0x1332b9[_0x288c('0x40')](_0x35f8f2));}else{const _0x557829=_0x1332b9['createElement'](_0x288c('0x12')),_0x5defa8=_0x1332b9[_0x288c('0x65')](_0x288c('0x12'));_0x1332b9[_0x288c('0x58')](_0x1332b9[_0x288c('0x40')](_0x35f8f2),_0x5defa8),_0x1332b9[_0x288c('0x14')](_0x557829,_0x35f8f2,0x0);for(const _0x27057c of Array[_0x288c('0x34')](_0x4834c4[_0x288c('0x5c')]()))_0x1332b9['insert'](_0x27057c,_0x557829,'end');_0xca7a74=_0x1332b9[_0x288c('0x4d')](_0x557829),_0x2ba1c1=_0x1332b9[_0x288c('0x4d')](_0x5defa8);}const _0x47f688=Array[_0x288c('0x34')](_0x4834c4[_0x288c('0x89')]())[_0x288c('0x53')](([_0x4974d9])=>le[_0x288c('0x35')](_0x4974d9));_0x21ebb8[_0x288c('0x27')][_0x288c('0x15')]({'element':_0x35f8f2,'attributes':_0x47f688[_0x288c('0x3c')]?Object['fromEntries'](_0x47f688):null}),_0xca7a74&&_0x21ebb8['insertionRanges']['push'](_0xca7a74),_0x2ba1c1&&_0x21ebb8[_0x288c('0x73')][_0x288c('0x15')](_0x2ba1c1);},{'priority':_0x288c('0x7f')}),_0x4c1de4['on'](_0x288c('0x9e'),(_0x416e80,_0x4b4ebb)=>{const [_0x1f6320,_0xfd38a1={}]=_0x4b4ebb;if(!_0x21ebb8)return;const _0xe7ccc0=_0xfd38a1['at']||0x0,_0x33853b=_0xfd38a1[_0x288c('0x3d')]||0x1;_0x21ebb8[_0x288c('0xd')]=new Array(_0x33853b)[_0x288c('0x39')](_0xe7ccc0)['map']((_0x3d6c00,_0xd8b9d3)=>_0x3d6c00+_0xd8b9d3);for(const {cell:_0x444d1f}of _0x4c1de4['createTableWalker'](_0x1f6320,{'startColumn':_0xe7ccc0,'endColumn':_0xe7ccc0+_0x33853b-0x1}))_0x21ebb8['columnInsertionRanges'][_0x288c('0x15')](_0x243c05[_0x288c('0x92')][_0x288c('0x4d')](_0x444d1f));},{'priority':_0x288c('0x8')}),_0x4c1de4['on'](_0x288c('0x7d'),(_0x4c4e8a,_0xb9f1ab)=>{const [_0x1571c2,_0x5b48a2={}]=_0xb9f1ab;if(!_0x21ebb8)return;const _0x1308c1=_0x5b48a2['at']||0x0,_0xd0462d=_0x5b48a2[_0x288c('0x67')]||0x1;_0x21ebb8[_0x288c('0x62')]=new Array(_0xd0462d)[_0x288c('0x39')](_0x1308c1)['map']((_0x328072,_0xe647ac)=>_0x328072+_0xe647ac);for(const {cell:_0x3746ae}of _0x4c1de4[_0x288c('0x9d')](_0x1571c2,{'startRow':_0x1308c1,'endRow':_0x1308c1+_0xd0462d-0x1}))_0x21ebb8['rowInsertionRanges'][_0x288c('0x15')](_0x243c05['model'][_0x288c('0x4d')](_0x3746ae));},{'priority':_0x288c('0x8')}),_0x3e757e[_0x288c('0x4f')][_0x288c('0x96')](_0x43688d=>{if(_0x43688d['subType']&&_0x43688d[_0x288c('0x7c')]['startsWith'](_0x288c('0x47')))return _0x43688d[_0x288c('0x45')]?{}:{'type':_0x288c('0x7'),'content':_0x5b0105(_0x243c05[_0x288c('0x99')],_0x288c('0x74'))};});const _0xe54d3b=()=>!0x1;for(const _0x464124 of['tablePaste',_0x288c('0x52'),'tablePasteRow',_0x288c('0x5f')])_0x3e757e['_suggestionFactory'][_0x288c('0x8e')](_0x288c('0x7'),_0x464124,'join',_0xe54d3b),_0x3e757e[_0x288c('0x57')]['registerCustomCallback'](_0x288c('0x63'),_0x464124,'join',_0xe54d3b),_0x3e757e[_0x288c('0x57')][_0x288c('0x8e')](_0x288c('0x2e'),_0x464124,_0x288c('0x91'),_0xe54d3b);_0x3e757e[_0x288c('0x57')][_0x288c('0x8e')](_0x288c('0x2e'),'tablePasteCell',_0x288c('0x1b'),_0xe54d3b),_0x3e757e[_0x288c('0x57')]['registerCustomCallback'](_0x288c('0x2e'),_0x288c('0x5f'),_0x288c('0x84'),(_0x51e6de,_0x51358b,_0x2f0388)=>{const _0x48d6d8=_0x51e6de['map'](_0x441421=>_0x441421['getContainedElement']())[_0x288c('0x53')](_0x40b813=>_0x40b813),_0x4bff3c=new Map(_0x48d6d8[_0x288c('0x9c')](_0x1dcea9=>[_0x1dcea9,null]));if(_0x21ebb8)for(const {element:_0x507c3c,attributes:_0x48dcfb}of _0x21ebb8[_0x288c('0x27')])_0x48dcfb&&_0x4bff3c[_0x288c('0x8a')](_0x507c3c,_0x48dcfb);else{if(_0x2f0388&&_0x2f0388[_0x288c('0x20')])for(const [_0x41c4fa,_0x1f0273]of Object[_0x288c('0x9a')](_0x2f0388[_0x288c('0x20')])){const _0x17455b=_0x243c05['model']['markers'][_0x288c('0x33')](_0x41c4fa),_0x20bd4f=_0x17455b?_0x17455b['getRange']()[_0x288c('0x1e')]():null;_0x20bd4f&&_0x4bff3c[_0x288c('0x8a')](_0x20bd4f,_0x1f0273);}}_0x243c05[_0x288c('0x92')][_0x288c('0x94')](_0x1a30c0=>{for(const [_0xf6a32b,_0x137f99]of _0x4bff3c)_0x1a30c0[_0x288c('0x93')]({...ae,..._0x137f99},_0xf6a32b);});});const _0x47f820=(_0x46da7a,_0x143984)=>{_0x3e757e[_0x288c('0x57')]['registerCustomCallback'](_0x46da7a,_0x288c('0x47'),_0x143984,(_0x5ce3f5,_0x150e39,_0xa8799c)=>{_0x243c05[_0x288c('0x92')]['change'](_0x53d86c=>{const _0x51b8a4=[];for(const _0x26b2f0 of _0x5ce3f5){const _0x1acd02=_0x26b2f0[_0x288c('0x3')][_0x288c('0x28')];_0x1acd02['is'](_0x288c('0xa0'),'tableCellSuggestion')&&_0x51b8a4[_0x288c('0x15')](_0x1acd02);}_0x3e757e[_0x288c('0x57')][_0x288c('0x59')](_0x46da7a,null,_0x143984)(_0x5ce3f5,_0x150e39,_0xa8799c);for(const _0x525ba3 of _0x51b8a4)'$graveyard'!=_0x525ba3[_0x288c('0x43')]['rootName']&&_0x53d86c['unwrap'](_0x525ba3);});});};_0x47f820(_0x288c('0x7'),_0x288c('0x84')),_0x47f820(_0x288c('0x7'),_0x288c('0x1b')),_0x47f820(_0x288c('0x63'),_0x288c('0x84')),_0x47f820(_0x288c('0x63'),'discard'),_0x3e757e[_0x288c('0x57')][_0x288c('0x8e')]('insertion',_0x288c('0x25'),_0x288c('0x1b'),_0x8e6411=>{const _0x336fec=_0x8e6411[_0x288c('0x9c')](_0x38005f=>_0x38005f[_0x288c('0x1e')]()),_0x5d197e=_0x336fec[0x0][_0x288c('0x1f')](_0x288c('0x3f')),{minRow:_0x2547a7,maxRow:_0xbc96ae}=_0x375e73[_0x288c('0xa')](_0x336fec);_0x4c1de4[_0x288c('0x38')](_0x5d197e,{'at':_0x2547a7,'rows':_0xbc96ae-_0x2547a7+0x1});}),_0x3e757e[_0x288c('0x57')][_0x288c('0x8e')](_0x288c('0x7'),_0x288c('0x52'),_0x288c('0x1b'),_0x374248=>{const _0xa743f2=_0x374248[_0x288c('0x9c')](_0x30daa8=>_0x30daa8['getContainedElement']()),_0x3f581a=_0xa743f2[0x0][_0x288c('0x1f')](_0x288c('0x3f')),{minColumn:_0x4d0b26,maxColumn:_0x297bee}=_0x375e73[_0x288c('0xa')](_0xa743f2);_0x4c1de4[_0x288c('0x7a')](_0x3f581a,{'at':_0x4d0b26,'columns':_0x297bee-_0x4d0b26+0x1});});const _0x3947b0=(_0x2208cc,_0x2820dd)=>{if(!_0x2820dd[_0x288c('0x7c')]||!_0x2820dd[_0x288c('0x7c')][_0x288c('0x77')](_0x288c('0x47')))return;const _0x40e691=_0x2820dd[_0x288c('0x46')][_0x288c('0x6b')],_0x3dfdd7=_0x3e757e[_0x288c('0xe')]()[_0x288c('0x53')](_0x1b00cc=>_0x1b00cc[_0x288c('0x11')]&&_0x1b00cc['attributes']&&_0x1b00cc[_0x288c('0x46')][_0x288c('0x6b')]==_0x40e691);_0x3dfdd7[_0x288c('0x3c')]&&_0x2820dd[_0x288c('0x30')]()['length']!=_0x3dfdd7[_0x288c('0x3c')]&&_0x3dfdd7['reduce']((_0x1da742,_0x439736)=>(_0x1da742[_0x288c('0x4b')]=_0x439736,_0x439736[_0x288c('0x45')]=_0x1da742,_0x439736));};function _0x5bb49a(_0x49dfd4,_0x3993bc=!0x0){const {id:_0x21f34d}=_0x3e757e[_0x288c('0x29')](_0x49dfd4['markerName']),_0x2a5676=[_0x288c('0x80'),_0x288c('0x88')],_0x591a7d=_0x3e757e[_0x288c('0x7b')]['includes'](_0x49dfd4['markerName']);return _0x591a7d&&_0x2a5676['push'](_0x288c('0x21')),{'classes':_0x2a5676,'attributes':{'data-suggestion':_0x21f34d},'priority':_0x591a7d&&_0x3993bc?0xbc2:0xbb8};}_0x3e757e['on'](_0x288c('0x83'),_0x3947b0,{'priority':_0x288c('0x7f')}),_0x3e757e['on'](_0x288c('0x87'),_0x3947b0,{'priority':_0x288c('0x7f')}),_0x243c05[_0x288c('0x92')][_0x288c('0x3b')][_0x288c('0x5')](()=>{let _0x3dfaca=!0x1;const _0x1e8e2a=Array[_0x288c('0x34')](_0x243c05['model'][_0x288c('0x3b')][_0x288c('0x81')][_0x288c('0x69')]());for(const {name:_0xb55bec,data:_0x3f757e}of _0x1e8e2a){const {group:_0x1813ca,type:_0x5ad217,id:_0x4bbcf0}=_0x3e757e['_splitMarkerName'](_0xb55bec);if(_0x288c('0x71')!=_0x1813ca||_0x288c('0x63')!=_0x5ad217||_0x3f757e[_0x288c('0x0')])continue;if(!_0x3e757e[_0x288c('0x49')](_0x4bbcf0))continue;const _0x72b903=_0x3e757e[_0x288c('0x19')](_0x4bbcf0)[_0x288c('0x66')](),_0x5d5079=_0x243c05[_0x288c('0x75')]['get'](_0x288c('0x82'))['me'];for(const _0x1319ce of _0x3e757e[_0x288c('0xe')]()){if(!_0x1319ce[_0x288c('0x11')]||_0x1319ce[_0x288c('0x32')]!=_0x5d5079)continue;if('formatBlock'!=_0x1319ce[_0x288c('0x8d')]||'tablePasteCell'!=_0x1319ce[_0x288c('0x7c')])continue;if(_0x1319ce[_0x288c('0x66')]()['every'](_0x5d6cb6=>_0x72b903[_0x288c('0x64')](_0x3fe6ad=>_0x3fe6ad[_0x288c('0x4')](_0x5d6cb6,!0x0))))for(const _0x511a5b of _0x1319ce[_0x288c('0x30')]())_0x511a5b['isInContent']&&(_0x511a5b[_0x288c('0x1b')](),_0x3dfaca=!0x0);}}return _0x3dfaca;}),_0x243c05[_0x288c('0x92')][_0x288c('0x3b')][_0x288c('0x5')](_0x29401c=>{const _0x4ff584=_0x243c05['commands']['get']('redo');if(!_0x4ff584||!_0x4ff584[_0x288c('0x5a')]['has'](_0x29401c['batch']))return!0x1;let _0x2fdef1=!0x1;const _0x136772=_0x243c05['plugins'][_0x288c('0x33')](_0x288c('0x82'))['me'],_0x45fdbe=_0x243c05[_0x288c('0x92')][_0x288c('0x3b')]['differ']['getChanges'](),_0x1e0831=Array[_0x288c('0x34')](_0x243c05[_0x288c('0x92')][_0x288c('0x3b')][_0x288c('0x81')][_0x288c('0x69')]())[_0x288c('0x53')](({name:_0x6ebf40,data:_0x3e85ba})=>{const {group:_0x2f7fe2,subType:_0x500791,authorId:_0x8e9938}=_0x3e757e[_0x288c('0x29')](_0x6ebf40);return _0x288c('0x71')==_0x2f7fe2&&_0x288c('0x47')==_0x500791&&_0x8e9938==_0x136772['id']&&!_0x3e85ba['oldRange'];});for(const _0x39b3f5 of _0x45fdbe){if(_0x288c('0x14')!=_0x39b3f5['type']||_0x288c('0x12')!=_0x39b3f5[_0x288c('0x6d')]||0x1!=_0x39b3f5[_0x288c('0x3c')])continue;const _0x4e8f31=_0x29401c[_0x288c('0x9f')](_0x39b3f5['position'],_0x39b3f5['position'][_0x288c('0x95')](0x1));if(!_0x1e0831[_0x288c('0x60')](({data:_0x2fe013})=>_0x2fe013[_0x288c('0x4c')][_0x288c('0x2a')](_0x4e8f31)))for(const {name:_0x192214,data:_0x1f889a}of _0x1e0831)if(_0x4e8f31['containsRange'](_0x1f889a['newRange'])){_0x29401c['updateMarker'](_0x192214,{'range':_0x4e8f31}),_0x2fdef1=!0x0;break;}}return _0x2fdef1;}),_0x243c05[_0x288c('0x92')][_0x288c('0x3b')]['registerPostFixer'](_0x24ea72=>{let _0x14c3f1=!0x1;const _0x176410=_0x243c05[_0x288c('0x75')][_0x288c('0x33')](_0x288c('0x82'))['me'],_0x677cf5=_0x3e757e[_0x288c('0xe')]()[_0x288c('0x53')](_0x127e00=>_0x127e00['isInContent']&&_0x127e00[_0x288c('0x32')]==_0x176410),_0x29ae04=new Set(),_0x4d0376=new Set();for(const _0x45c9bc of _0x677cf5)if('tablePaste'==_0x45c9bc[_0x288c('0x7c')])for(const _0xc2430b of _0x45c9bc['getMarkers']()){const _0x5adf7f=_0xc2430b[_0x288c('0x31')]()[_0x288c('0x1e')]();if(_0x5adf7f){if(_0x5adf7f['is']('element',_0x288c('0x12'))&&ce(_0x5adf7f)){_0x45c9bc[_0x288c('0x6a')](_0xc2430b[_0x288c('0x6d')]),_0x29ae04[_0x288c('0x2d')](_0x5adf7f),_0x14c3f1=!0x0;const _0x30a8cd=_0x5adf7f[_0x288c('0x5b')],_0x411ff0=_0x5adf7f[_0x288c('0x13')],_0x2ec4ef=_0x30a8cd&&_0x30a8cd['is']('element',_0x288c('0x12')),_0x281375=_0x411ff0&&_0x411ff0['is']('element',_0x288c('0x12'));_0x2ec4ef&&!_0x29ae04['has'](_0x30a8cd)&&_0x4d0376[_0x288c('0x2d')](_0x30a8cd),_0x281375&&!_0x29ae04[_0x288c('0x3a')](_0x411ff0)&&_0x4d0376['add'](_0x411ff0);}else _0x5adf7f['is']('element',_0x288c('0x68'))&&_0x5adf7f['isEmpty']&&(_0x45c9bc['removeMarker'](_0xc2430b[_0x288c('0x6d')]),_0x14c3f1=!0x0);}}else{if('tablePasteCell'==_0x45c9bc[_0x288c('0x7c')]){if(!_0x45c9bc[_0x288c('0x46')]||!_0x45c9bc[_0x288c('0x46')][_0x288c('0x6b')])continue;const _0x475619=_0x45c9bc['attributes'][_0x288c('0x20')];if(_0x475619&&Object[_0x288c('0x24')](_0x475619)[_0x288c('0x3c')])continue;const _0xfd0c6c=_0x45c9bc[_0x288c('0x46')][_0x288c('0x6b')];let _0x131730=!0x0,_0x59725c=!0x0;for(const _0x6ffe8a of _0x677cf5)if(_0x6ffe8a[_0x288c('0x7c')]&&_0x6ffe8a[_0x288c('0x7c')][_0x288c('0x77')]('tablePaste')){if(!_0x6ffe8a[_0x288c('0x46')][_0x288c('0x6b')]){_0x59725c=!0x1;break;}if(_0x6ffe8a['id']!=_0x45c9bc['id']&&_0x6ffe8a[_0x288c('0x46')]['tablePasteChainId']==_0xfd0c6c){_0x131730=!0x1;break;}}_0x59725c&&_0x131730&&(_0x45c9bc[_0x288c('0x9b')](),_0x14c3f1=!0x0);}}for(const _0x5ea877 of _0x29ae04)_0x24ea72[_0x288c('0x2')](_0x5ea877);for(const _0x5426a2 of _0x4d0376)_0x24ea72[_0x288c('0x70')](_0x5426a2);return _0x14c3f1;}),_0x243c05['conversion']['for'](_0x288c('0x8b'))[_0x288c('0x18')]({'model':_0x288c('0x76'),'view':(_0x1a1250,_0xa7e5d2)=>_0x5bb49a(_0x1a1250),'converterPriority':_0x288c('0x7f')}),_0x243c05[_0x288c('0xb')]['for'](_0x288c('0x1a'))[_0x288c('0x18')]({'model':_0x288c('0x76'),'view':(_0x501212,_0x54f024)=>_0x54f024['options']['showSuggestionHighlights']?_0x5bb49a(_0x501212,!0x1):null,'converterPriority':_0x288c('0x7f')});const _0x478071=_0x243c05[_0x288c('0x86')]['view'];this['listenTo'](_0x478071['document'],'clipboardOutput',(_0x3c6a2a,_0x1773c7)=>{const _0x409018=[];for(const _0x31cd94 of _0x478071[_0x288c('0x40')](_0x1773c7[_0x288c('0x97')])['getItems']())_0x31cd94['is']('element',_0x288c('0x23'))&&_0x409018[_0x288c('0x15')](_0x31cd94);_0x478071[_0x288c('0x94')](_0x1ba1bd=>{for(const _0x16c883 of _0x409018)_0x1ba1bd[_0x288c('0x6')](_0x1ba1bd[_0x288c('0x40')](_0x16c883),_0x1ba1bd[_0x288c('0xf')](_0x16c883)),_0x1ba1bd[_0x288c('0x2')](_0x16c883);});});}}function ce(_0x4b3764){if(_0x4b3764[_0x288c('0x55')])return!0x0;const _0x503e5d=_0x4b3764[_0x288c('0x50')](0x0);return _0x503e5d['is'](_0x288c('0xa0'),_0x288c('0x68'))&&_0x503e5d[_0x288c('0x55')];}function fe(_0x850d73,_0x57046d={},_0x5619de){for(const {isAnchor:_0x4e621f,cellHeight:_0x9e47e,cellWidth:_0x25d43c}of _0x5619de[_0x288c('0x9d')](_0x850d73,{'includeAllSlots':!0x0,..._0x57046d}))if(!_0x4e621f||0x1!=_0x9e47e||0x1!=_0x25d43c)return!0x1;return!0x0;}
|
|
23
|
+
const _0x4739=['author','wrap','TableClipboard','registerCustomCallback','documentSelection','getAttributes','subType','tablePaste','accept','paragraph','from','insertContent','commands','clipboardOutput','end','differ','*Replace\x20table\x20cells*','getChanges','unwrap','markMultiRangeBlockFormat','removeMarker','getChangedMarkers','nodeAfter','discard','name','document','getRange','_replaceTableSlotCell','getSuggestionCallback','set','join','batch','low','createRangeOn','editingDowncast','tablePasteChainId','last','insertRows','add','tableCell','register','insertion','afterInit','createTableWalker','createElement','registerPostFixer','tableCellBorderColor','oldRange','getSelectionAffectedTableCells','has','rootName','fromEntries','getShiftedBy','nextSibling','insertionRanges','columnInsertionRanges','markMultiRangeDeletion','rowInsertionRanges','tablePasteCell','listenTo','conversion','registerDescriptionCallback','_splitMarkerName','tablePasteColumn','suggestionUnloaded','containsRange','get','root','hasSuggestion','deletionRanges','filter','TrackChangesEditing','suggestion','markers','rows','change','markerToHighlight','type','tableCellHorizontalAlignment','cells','getColumnIndexes','find','columnInsertionIndexes','length','options','previous','getRows','push','createRangeIn','requires','content','findAncestor','first','deletion','getItems','map','includes','isEqual','$graveyard','getMarkers','keys','reduce','value','tableCellPadding','getTableIfOnlyTableInContent','createRange','endRow','insert','editor','suggestion:formatBlock:tablePasteCell','entries','startsWith','stop','isEmpty','plugins','tablePasteRow','getSuggestion','elementToElement','getRanges','position','formatBlock','isInContent','getSuggestions','column','remove','locale','for','attributes','activeMarkers','markerName','trackChanges','setAttribute','table','removeColumns','_isForcedDefaultExecutionBlock','markMultiRangeInsertion','newRange','tableCellBorderWidth','selection','view','_suggestionFactory','high','editing','model','Users','tableCellSuggestion','suggestion-td','markerAttributes','updateMarker','getContainedElement','rowInsertionIndexes','element','start','setAttributes','_getCoordsForCells'];(function(_0x482b39,_0x4739fc){const _0x52ccd3=function(_0x268e51){while(--_0x268e51){_0x482b39['push'](_0x482b39['shift']());}};_0x52ccd3(++_0x4739fc);}(_0x4739,0x193));const _0x52cc=function(_0x482b39,_0x4739fc){_0x482b39=_0x482b39-0x0;let _0x52ccd3=_0x4739[_0x482b39];return _0x52ccd3;};import{getTranslation as _0x5b4a3d}from'../utils/common-translations';import{Plugin as _0x5469f2}from'ckeditor5/src/core';import{uid as _0x20d95b,priorities as _0x221b97}from'ckeditor5/src/utils';import _0x54e6bd from'./table';const le=[_0x52cc('0x2c'),_0x52cc('0x6c'),'tableCellBorderStyle',_0x52cc('0x8c'),'tableCellVerticalAlignment','tableCellBackgroundColor',_0x52cc('0xa')],ae=Object[_0x52cc('0x71')](le[_0x52cc('0x2')](_0x439b16=>[_0x439b16,null]));export default class At extends _0x5469f2{static get[_0x52cc('0x97')](){return[_0x54e6bd];}[_0x52cc('0x68')](){const _0x167f8c=this[_0x52cc('0xf')];if(!_0x167f8c[_0x52cc('0x15')]['has'](_0x52cc('0x40')))return;const _0x29954c=_0x167f8c[_0x52cc('0x15')]['get'](_0x52cc('0x85')),_0x41c9e2=_0x167f8c['plugins']['get']('TableUtils'),_0x21721d=_0x167f8c[_0x52cc('0x15')]['get'](_0x54e6bd),_0x1877fc=_0x167f8c[_0x52cc('0x15')][_0x52cc('0x80')]('TableClipboard');_0x21721d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x167f8c[_0x52cc('0x32')]['schema'][_0x52cc('0x66')](_0x52cc('0x34'),{'allowIn':_0x52cc('0x65'),'allowContentOf':_0x52cc('0x65'),'isLimit':!0x0}),_0x167f8c[_0x52cc('0x7a')][_0x52cc('0x18')]({'model':_0x52cc('0x34'),'view':_0x52cc('0x35')});let _0x32ffb2=null;_0x167f8c[_0x52cc('0x32')]['on']('insertContent',(_0x1b1a79,_0x4f92fa)=>{const [_0x4e0218,_0xa65370]=_0x4f92fa,_0x444877=_0x4f92fa[_0x4f92fa[_0x52cc('0x91')]-0x1];_0x444877&&_0x444877['forceDefaultExecution']||_0x29954c[_0x52cc('0x29')]||this[_0x52cc('0xf')][_0x52cc('0x4a')][_0x52cc('0x80')](_0x52cc('0x25'))[_0x52cc('0x9')]&&function(_0x1ccd70,_0x28a21f,_0x1339c9,_0x16b768,_0x337fdf){if(_0x28a21f&&!_0x28a21f['is'](_0x52cc('0x42')))return!0x1;const _0xacb27a=_0x337fdf[_0x52cc('0xb')](_0x1ccd70,_0x1339c9);if(!_0xacb27a||!fe(_0xacb27a,void 0x0,_0x16b768))return!0x1;const _0x16c154=_0x16b768[_0x52cc('0x6e')](_0x1339c9[_0x52cc('0x57')][_0x52cc('0x2d')]);if(!_0x16c154[_0x52cc('0x91')])return!0x1;const _0x13ea3b=_0x16c154[0x0][_0x52cc('0x99')](_0x52cc('0x27')),_0x3ac8d8=_0x16b768['getRowIndexes'](_0x16c154),_0x88f7fc=_0x16b768[_0x52cc('0x8e')](_0x16c154),_0x2ec5d0={'startRow':_0x3ac8d8[_0x52cc('0x9a')],'endRow':_0x3ac8d8[_0x52cc('0x62')],'startColumn':_0x88f7fc['first'],'endColumn':_0x88f7fc['last']};return 0x1==_0x16c154[_0x52cc('0x91')]&&(_0x2ec5d0[_0x52cc('0xd')]+=_0x16b768[_0x52cc('0x94')](_0xacb27a)-0x1,_0x2ec5d0['endColumn']+=_0x16b768['getColumns'](_0xacb27a)-0x1),fe(_0x13ea3b,_0x2ec5d0,_0x16b768);}(_0x4e0218,_0xa65370,_0x167f8c[_0x52cc('0x32')],_0x41c9e2,_0x1877fc)&&(_0x1b1a79[_0x52cc('0x13')](),_0x32ffb2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x167f8c[_0x52cc('0x32')][_0x52cc('0x89')](()=>{_0x167f8c['model'][_0x52cc('0x49')](_0x4f92fa[0x0],_0x4f92fa[0x1],_0x4f92fa[0x2],{'forceDefaultExecution':!0x0});const _0x50a28e=_0x20d95b(),{rowInsertionRanges:_0x4e4ee5,columnInsertionRanges:_0x3e55a0,insertionRanges:_0xa5583e,deletionRanges:_0x28063f,cells:_0x55b157}=_0x32ffb2;_0x4e4ee5[_0x52cc('0x91')]&&_0x29954c['markMultiRangeInsertion'](_0x4e4ee5,_0x52cc('0x16'),{'tablePasteChainId':_0x50a28e}),_0x3e55a0[_0x52cc('0x91')]&&_0x29954c[_0x52cc('0x2a')](_0x3e55a0,_0x52cc('0x7d'),{'tablePasteChainId':_0x50a28e}),_0xa5583e['length']&&_0x29954c[_0x52cc('0x2a')](_0xa5583e,_0x52cc('0x45'),{'tablePasteChainId':_0x50a28e,'skipNestingCheck':!0x0}),_0x28063f['length']&&_0x29954c[_0x52cc('0x76')](_0x28063f,_0x52cc('0x45'),{'tablePasteChainId':_0x50a28e,'skipNestingCheck':!0x0});const _0x404d6b=_0x29954c[_0x52cc('0x51')](_0x55b157[_0x52cc('0x2')](({element:_0xe7925a})=>_0xe7925a),{'formatGroupId':_0x20d95b()},[],'tablePasteCell',{'tablePasteChainId':_0x50a28e});if(_0x404d6b){const _0x1c3075=_0x404d6b[_0x52cc('0x6')](),_0x2f8251=[];for(const {element:_0x3e91ae,attributes:_0x4a4b5c}of _0x55b157){if(!_0x4a4b5c)continue;const _0x3f8508=_0x167f8c[_0x52cc('0x32')][_0x52cc('0x5f')](_0x3e91ae),_0x4ed09b=_0x1c3075[_0x52cc('0x8f')](_0x4aa5e0=>_0x4aa5e0[_0x52cc('0x58')]()[_0x52cc('0x4')](_0x3f8508));_0x4ed09b&&_0x2f8251[_0x52cc('0x95')]([_0x4ed09b[_0x52cc('0x56')],_0x4a4b5c]);}_0x2f8251[_0x52cc('0x91')]&&_0x404d6b[_0x52cc('0x26')](_0x52cc('0x36'),Object[_0x52cc('0x71')](_0x2f8251));}_0x32ffb2=null;}));},{'priority':_0x221b97[_0x52cc('0x30')]+0xa}),_0x167f8c[_0x52cc('0x15')][_0x52cc('0x80')]('TableClipboard')['on'](_0x52cc('0x59'),(_0x57c31c,_0x5179b6)=>{const [_0x113e7d,_0x93f9e9,,_0xf91234]=_0x5179b6;if(!_0x32ffb2)return;_0x57c31c[_0x52cc('0x13')]();const _0x18b43d=_0x113e7d['cell'],_0x168b49=_0x93f9e9,_0x1ffb88=ce(_0x18b43d),_0x237706=ce(_0x168b49);_0x57c31c['return']=_0x18b43d;let _0x89f2ef=null,_0x1f5d1e=null;if(_0x237706||_0x1ffb88){if(_0x1ffb88&&!_0x237706){_0xf91234['remove'](_0x18b43d['getChild'](0x0));for(const _0x40d1ff of Array['from'](_0x168b49['getChildren']()))_0xf91234[_0x52cc('0xe')](_0x40d1ff,_0x18b43d,_0x52cc('0x4c'));const _0xd8573a=_0x32ffb2[_0x52cc('0x39')][_0x52cc('0x3')](_0x113e7d['row']),_0x544d5c=_0x32ffb2[_0x52cc('0x90')]['includes'](_0x113e7d[_0x52cc('0x1e')]);_0xd8573a||_0x544d5c||(_0x89f2ef=_0xf91234[_0x52cc('0x96')](_0x18b43d));}else _0x237706&&!_0x1ffb88&&(_0x1f5d1e=_0xf91234['createRangeIn'](_0x18b43d));}else{const _0x4cac11=_0xf91234[_0x52cc('0x6a')](_0x52cc('0x34')),_0x442b75=_0xf91234[_0x52cc('0x6a')](_0x52cc('0x34'));_0xf91234[_0x52cc('0x3f')](_0xf91234[_0x52cc('0x96')](_0x18b43d),_0x442b75),_0xf91234[_0x52cc('0xe')](_0x4cac11,_0x18b43d,0x0);for(const _0x158f35 of Array[_0x52cc('0x48')](_0x168b49['getChildren']()))_0xf91234['insert'](_0x158f35,_0x4cac11,_0x52cc('0x4c'));_0x89f2ef=_0xf91234[_0x52cc('0x5f')](_0x4cac11),_0x1f5d1e=_0xf91234[_0x52cc('0x5f')](_0x442b75);}const _0x2f76aa=Array[_0x52cc('0x48')](_0x168b49[_0x52cc('0x43')]())[_0x52cc('0x84')](([_0x42dd40])=>le[_0x52cc('0x3')](_0x42dd40));_0x32ffb2[_0x52cc('0x8d')][_0x52cc('0x95')]({'element':_0x18b43d,'attributes':_0x2f76aa[_0x52cc('0x91')]?Object[_0x52cc('0x71')](_0x2f76aa):null}),_0x89f2ef&&_0x32ffb2[_0x52cc('0x74')][_0x52cc('0x95')](_0x89f2ef),_0x1f5d1e&&_0x32ffb2[_0x52cc('0x83')][_0x52cc('0x95')](_0x1f5d1e);},{'priority':_0x52cc('0x30')}),_0x41c9e2['on']('insertColumns',(_0x28c6cc,_0x3a34eb)=>{const [_0x15f365,_0xd6376={}]=_0x3a34eb;if(!_0x32ffb2)return;const _0x16dc2d=_0xd6376['at']||0x0,_0x11d1f6=_0xd6376['columns']||0x1;_0x32ffb2['columnInsertionIndexes']=new Array(_0x11d1f6)['fill'](_0x16dc2d)[_0x52cc('0x2')]((_0x9f6bde,_0xcdbb3)=>_0x9f6bde+_0xcdbb3);for(const {cell:_0x522557}of _0x41c9e2['createTableWalker'](_0x15f365,{'startColumn':_0x16dc2d,'endColumn':_0x16dc2d+_0x11d1f6-0x1}))_0x32ffb2[_0x52cc('0x75')][_0x52cc('0x95')](_0x167f8c[_0x52cc('0x32')][_0x52cc('0x5f')](_0x522557));},{'priority':_0x52cc('0x5e')}),_0x41c9e2['on'](_0x52cc('0x63'),(_0x151037,_0x39b1d0)=>{const [_0x266c85,_0x24ce71={}]=_0x39b1d0;if(!_0x32ffb2)return;const _0x145eb9=_0x24ce71['at']||0x0,_0x471d8a=_0x24ce71[_0x52cc('0x88')]||0x1;_0x32ffb2[_0x52cc('0x39')]=new Array(_0x471d8a)['fill'](_0x145eb9)[_0x52cc('0x2')]((_0x17db42,_0x1fa961)=>_0x17db42+_0x1fa961);for(const {cell:_0x2912c7}of _0x41c9e2[_0x52cc('0x69')](_0x266c85,{'startRow':_0x145eb9,'endRow':_0x145eb9+_0x471d8a-0x1}))_0x32ffb2[_0x52cc('0x77')][_0x52cc('0x95')](_0x167f8c[_0x52cc('0x32')]['createRangeOn'](_0x2912c7));},{'priority':_0x52cc('0x5e')}),_0x29954c['_descriptionFactory'][_0x52cc('0x7b')](_0x1d40fc=>{if(_0x1d40fc[_0x52cc('0x44')]&&_0x1d40fc['subType'][_0x52cc('0x12')](_0x52cc('0x45')))return _0x1d40fc['previous']?{}:{'type':_0x52cc('0x67'),'content':_0x5b4a3d(_0x167f8c[_0x52cc('0x20')],_0x52cc('0x4e'))};});const _0x341d4f=()=>!0x1;for(const _0x338851 of['tablePaste',_0x52cc('0x7d'),_0x52cc('0x16'),'tablePasteCell'])_0x29954c[_0x52cc('0x2f')][_0x52cc('0x41')](_0x52cc('0x67'),_0x338851,_0x52cc('0x5c'),_0x341d4f),_0x29954c[_0x52cc('0x2f')]['registerCustomCallback']('deletion',_0x338851,_0x52cc('0x5c'),_0x341d4f),_0x29954c['_suggestionFactory'][_0x52cc('0x41')](_0x52cc('0x1b'),_0x338851,_0x52cc('0x5c'),_0x341d4f);_0x29954c[_0x52cc('0x2f')][_0x52cc('0x41')](_0x52cc('0x1b'),_0x52cc('0x78'),_0x52cc('0x55'),_0x341d4f),_0x29954c[_0x52cc('0x2f')][_0x52cc('0x41')](_0x52cc('0x1b'),'tablePasteCell','accept',(_0x1783a2,_0x5238a8,_0xea226f)=>{const _0x591871=_0x1783a2[_0x52cc('0x2')](_0x1f165b=>_0x1f165b[_0x52cc('0x38')]())[_0x52cc('0x84')](_0x2180a4=>_0x2180a4),_0x8340db=new Map(_0x591871[_0x52cc('0x2')](_0x21d3c2=>[_0x21d3c2,null]));if(_0x32ffb2)for(const {element:_0x1e3977,attributes:_0x344d38}of _0x32ffb2['cells'])_0x344d38&&_0x8340db[_0x52cc('0x5b')](_0x1e3977,_0x344d38);else{if(_0xea226f&&_0xea226f[_0x52cc('0x36')])for(const [_0x2ad7e2,_0x6e685e]of Object[_0x52cc('0x11')](_0xea226f[_0x52cc('0x36')])){const _0x38dc62=_0x167f8c[_0x52cc('0x32')][_0x52cc('0x87')][_0x52cc('0x80')](_0x2ad7e2),_0x1d2381=_0x38dc62?_0x38dc62[_0x52cc('0x58')]()[_0x52cc('0x38')]():null;_0x1d2381&&_0x8340db[_0x52cc('0x5b')](_0x1d2381,_0x6e685e);}}_0x167f8c['model'][_0x52cc('0x89')](_0x2e3203=>{for(const [_0x480812,_0x268c01]of _0x8340db)_0x2e3203[_0x52cc('0x3c')]({...ae,..._0x268c01},_0x480812);});});const _0x4246db=(_0x4e07bc,_0x30f84a)=>{_0x29954c[_0x52cc('0x2f')][_0x52cc('0x41')](_0x4e07bc,_0x52cc('0x45'),_0x30f84a,(_0xe21422,_0x1a440e,_0x3bfa1e)=>{_0x167f8c[_0x52cc('0x32')]['change'](_0x49c939=>{const _0x16e7b9=[];for(const _0x3f825f of _0xe21422){const _0x14642f=_0x3f825f[_0x52cc('0x3b')][_0x52cc('0x54')];_0x14642f['is'](_0x52cc('0x3a'),_0x52cc('0x34'))&&_0x16e7b9[_0x52cc('0x95')](_0x14642f);}_0x29954c[_0x52cc('0x2f')][_0x52cc('0x5a')](_0x4e07bc,null,_0x30f84a)(_0xe21422,_0x1a440e,_0x3bfa1e);for(const _0x428b44 of _0x16e7b9)_0x52cc('0x5')!=_0x428b44[_0x52cc('0x81')][_0x52cc('0x70')]&&_0x49c939[_0x52cc('0x50')](_0x428b44);});});};_0x4246db(_0x52cc('0x67'),_0x52cc('0x46')),_0x4246db(_0x52cc('0x67'),_0x52cc('0x55')),_0x4246db(_0x52cc('0x0'),_0x52cc('0x46')),_0x4246db(_0x52cc('0x0'),_0x52cc('0x55')),_0x29954c[_0x52cc('0x2f')][_0x52cc('0x41')]('insertion',_0x52cc('0x16'),'discard',_0x1e03aa=>{const _0x3311be=_0x1e03aa[_0x52cc('0x2')](_0x575e27=>_0x575e27[_0x52cc('0x38')]()),_0x333c06=_0x3311be[0x0]['findAncestor']('table'),{minRow:_0x4260d1,maxRow:_0x273863}=_0x21721d['_getCoordsForCells'](_0x3311be);_0x41c9e2['removeRows'](_0x333c06,{'at':_0x4260d1,'rows':_0x273863-_0x4260d1+0x1});}),_0x29954c['_suggestionFactory'][_0x52cc('0x41')](_0x52cc('0x67'),'tablePasteColumn','discard',_0x611cdd=>{const _0x9ce072=_0x611cdd['map'](_0x40a89b=>_0x40a89b['getContainedElement']()),_0x18a4fa=_0x9ce072[0x0][_0x52cc('0x99')](_0x52cc('0x27')),{minColumn:_0x8caf62,maxColumn:_0x323c62}=_0x21721d[_0x52cc('0x3d')](_0x9ce072);_0x41c9e2[_0x52cc('0x28')](_0x18a4fa,{'at':_0x8caf62,'columns':_0x323c62-_0x8caf62+0x1});});const _0x2d6195=(_0x4e0a46,_0x300f78)=>{if(!_0x300f78[_0x52cc('0x44')]||!_0x300f78['subType']['startsWith'](_0x52cc('0x45')))return;const _0xb5baa9=_0x300f78[_0x52cc('0x22')][_0x52cc('0x61')],_0x19ef6d=_0x29954c[_0x52cc('0x1d')]()['filter'](_0x1abe6b=>_0x1abe6b['isInContent']&&_0x1abe6b[_0x52cc('0x22')]&&_0x1abe6b[_0x52cc('0x22')][_0x52cc('0x61')]==_0xb5baa9);_0x19ef6d[_0x52cc('0x91')]&&_0x300f78['getAllAdjacentSuggestions']()[_0x52cc('0x91')]!=_0x19ef6d[_0x52cc('0x91')]&&_0x19ef6d[_0x52cc('0x8')]((_0x10f6eb,_0x285dac)=>(_0x10f6eb['next']=_0x285dac,_0x285dac[_0x52cc('0x93')]=_0x10f6eb,_0x285dac));};function _0x5e063b(_0x579941,_0x2429f2=!0x0){const {id:_0x1dc35b}=_0x29954c['_splitMarkerName'](_0x579941[_0x52cc('0x24')]),_0x288f76=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4493fb=_0x29954c[_0x52cc('0x23')][_0x52cc('0x3')](_0x579941[_0x52cc('0x24')]);return _0x4493fb&&_0x288f76[_0x52cc('0x95')]('ck-suggestion-marker--active'),{'classes':_0x288f76,'attributes':{'data-suggestion':_0x1dc35b},'priority':_0x4493fb&&_0x2429f2?0xbc2:0xbb8};}_0x29954c['on']('suggestionLoaded',_0x2d6195,{'priority':_0x52cc('0x30')}),_0x29954c['on'](_0x52cc('0x7e'),_0x2d6195,{'priority':'high'}),_0x167f8c['model'][_0x52cc('0x57')][_0x52cc('0x6b')](()=>{let _0xe79e70=!0x1;const _0x392116=Array['from'](_0x167f8c['model'][_0x52cc('0x57')][_0x52cc('0x4d')][_0x52cc('0x53')]());for(const {name:_0x3180c5,data:_0x324ee2}of _0x392116){const {group:_0x5153c0,type:_0x26e221,id:_0x2a8dbf}=_0x29954c['_splitMarkerName'](_0x3180c5);if(_0x52cc('0x86')!=_0x5153c0||'deletion'!=_0x26e221||_0x324ee2['oldRange'])continue;if(!_0x29954c[_0x52cc('0x82')](_0x2a8dbf))continue;const _0x51d645=_0x29954c[_0x52cc('0x17')](_0x2a8dbf)[_0x52cc('0x19')](),_0x17ed2f=_0x167f8c['plugins'][_0x52cc('0x80')]('Users')['me'];for(const _0x14fa24 of _0x29954c['getSuggestions']()){if(!_0x14fa24[_0x52cc('0x1c')]||_0x14fa24[_0x52cc('0x3e')]!=_0x17ed2f)continue;if(_0x52cc('0x1b')!=_0x14fa24[_0x52cc('0x8b')]||_0x52cc('0x78')!=_0x14fa24[_0x52cc('0x44')])continue;if(_0x14fa24['getRanges']()['every'](_0xccb460=>_0x51d645['some'](_0x5e4ba2=>_0x5e4ba2[_0x52cc('0x7f')](_0xccb460,!0x0))))for(const _0x56e1d6 of _0x14fa24['getAllAdjacentSuggestions']())_0x56e1d6[_0x52cc('0x1c')]&&(_0x56e1d6[_0x52cc('0x55')](),_0xe79e70=!0x0);}}return _0xe79e70;}),_0x167f8c[_0x52cc('0x32')][_0x52cc('0x57')][_0x52cc('0x6b')](_0xcbe33c=>{const _0x278122=_0x167f8c[_0x52cc('0x4a')][_0x52cc('0x80')]('redo');if(!_0x278122||!_0x278122['_createdBatches'][_0x52cc('0x6f')](_0xcbe33c[_0x52cc('0x5d')]))return!0x1;let _0x16fdb9=!0x1;const _0x323a3a=_0x167f8c[_0x52cc('0x15')][_0x52cc('0x80')](_0x52cc('0x33'))['me'],_0x1d1012=_0x167f8c[_0x52cc('0x32')][_0x52cc('0x57')][_0x52cc('0x4d')][_0x52cc('0x4f')](),_0x42f548=Array[_0x52cc('0x48')](_0x167f8c[_0x52cc('0x32')]['document'][_0x52cc('0x4d')]['getChangedMarkers']())[_0x52cc('0x84')](({name:_0x13d00d,data:_0x29f904})=>{const {group:_0x4385a5,subType:_0xb9db6b,authorId:_0x134401}=_0x29954c[_0x52cc('0x7c')](_0x13d00d);return'suggestion'==_0x4385a5&&_0x52cc('0x45')==_0xb9db6b&&_0x134401==_0x323a3a['id']&&!_0x29f904[_0x52cc('0x6d')];});for(const _0x5e0be1 of _0x1d1012){if(_0x52cc('0xe')!=_0x5e0be1[_0x52cc('0x8b')]||_0x52cc('0x34')!=_0x5e0be1[_0x52cc('0x56')]||0x1!=_0x5e0be1[_0x52cc('0x91')])continue;const _0x51ef55=_0xcbe33c[_0x52cc('0xc')](_0x5e0be1[_0x52cc('0x1a')],_0x5e0be1[_0x52cc('0x1a')][_0x52cc('0x72')](0x1));if(!_0x42f548[_0x52cc('0x8f')](({data:_0x387abd})=>_0x387abd[_0x52cc('0x2b')][_0x52cc('0x4')](_0x51ef55)))for(const {name:_0x5900ab,data:_0x487673}of _0x42f548)if(_0x51ef55[_0x52cc('0x7f')](_0x487673[_0x52cc('0x2b')])){_0xcbe33c[_0x52cc('0x37')](_0x5900ab,{'range':_0x51ef55}),_0x16fdb9=!0x0;break;}}return _0x16fdb9;}),_0x167f8c[_0x52cc('0x32')][_0x52cc('0x57')][_0x52cc('0x6b')](_0x425c5a=>{let _0x26136c=!0x1;const _0x4253a4=_0x167f8c[_0x52cc('0x15')][_0x52cc('0x80')](_0x52cc('0x33'))['me'],_0x2f500c=_0x29954c[_0x52cc('0x1d')]()[_0x52cc('0x84')](_0x3f3cea=>_0x3f3cea[_0x52cc('0x1c')]&&_0x3f3cea[_0x52cc('0x3e')]==_0x4253a4),_0x31769f=new Set(),_0x3ec9e1=new Set();for(const _0x2ab2aa of _0x2f500c)if(_0x52cc('0x45')==_0x2ab2aa['subType'])for(const _0x2d140d of _0x2ab2aa['getMarkers']()){const _0x516763=_0x2d140d[_0x52cc('0x58')]()[_0x52cc('0x38')]();if(_0x516763){if(_0x516763['is'](_0x52cc('0x3a'),_0x52cc('0x34'))&&ce(_0x516763)){_0x2ab2aa[_0x52cc('0x52')](_0x2d140d['name']),_0x31769f['add'](_0x516763),_0x26136c=!0x0;const _0x14b471=_0x516763[_0x52cc('0x73')],_0x26f1be=_0x516763['previousSibling'],_0x47eab8=_0x14b471&&_0x14b471['is'](_0x52cc('0x3a'),_0x52cc('0x34')),_0x1baf46=_0x26f1be&&_0x26f1be['is'](_0x52cc('0x3a'),_0x52cc('0x34'));_0x47eab8&&!_0x31769f[_0x52cc('0x6f')](_0x14b471)&&_0x3ec9e1['add'](_0x14b471),_0x1baf46&&!_0x31769f[_0x52cc('0x6f')](_0x26f1be)&&_0x3ec9e1[_0x52cc('0x64')](_0x26f1be);}else _0x516763['is'](_0x52cc('0x3a'),_0x52cc('0x47'))&&_0x516763[_0x52cc('0x14')]&&(_0x2ab2aa[_0x52cc('0x52')](_0x2d140d[_0x52cc('0x56')]),_0x26136c=!0x0);}}else{if(_0x52cc('0x78')==_0x2ab2aa[_0x52cc('0x44')]){if(!_0x2ab2aa[_0x52cc('0x22')]||!_0x2ab2aa[_0x52cc('0x22')][_0x52cc('0x61')])continue;const _0x32e855=_0x2ab2aa[_0x52cc('0x22')][_0x52cc('0x36')];if(_0x32e855&&Object[_0x52cc('0x7')](_0x32e855)[_0x52cc('0x91')])continue;const _0x583d27=_0x2ab2aa[_0x52cc('0x22')][_0x52cc('0x61')];let _0x364de4=!0x0,_0x2b538c=!0x0;for(const _0x7c5c61 of _0x2f500c)if(_0x7c5c61[_0x52cc('0x44')]&&_0x7c5c61[_0x52cc('0x44')][_0x52cc('0x12')](_0x52cc('0x45'))){if(!_0x7c5c61[_0x52cc('0x22')]['tablePasteChainId']){_0x2b538c=!0x1;break;}if(_0x7c5c61['id']!=_0x2ab2aa['id']&&_0x7c5c61[_0x52cc('0x22')]['tablePasteChainId']==_0x583d27){_0x364de4=!0x1;break;}}_0x2b538c&&_0x364de4&&(_0x2ab2aa['removeMarkers'](),_0x26136c=!0x0);}}for(const _0x287fde of _0x31769f)_0x425c5a[_0x52cc('0x1f')](_0x287fde);for(const _0x5c2a92 of _0x3ec9e1)_0x425c5a[_0x52cc('0x50')](_0x5c2a92);return _0x26136c;}),_0x167f8c[_0x52cc('0x7a')][_0x52cc('0x21')](_0x52cc('0x60'))[_0x52cc('0x8a')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b46a0,_0x5cbd86)=>_0x5e063b(_0x3b46a0),'converterPriority':_0x52cc('0x30')}),_0x167f8c['conversion']['for']('dataDowncast')[_0x52cc('0x8a')]({'model':_0x52cc('0x10'),'view':(_0x410dc2,_0x1abb91)=>_0x1abb91[_0x52cc('0x92')]['showSuggestionHighlights']?_0x5e063b(_0x410dc2,!0x1):null,'converterPriority':_0x52cc('0x30')});const _0x808aa9=_0x167f8c[_0x52cc('0x31')][_0x52cc('0x2e')];this[_0x52cc('0x79')](_0x808aa9[_0x52cc('0x57')],_0x52cc('0x4b'),(_0x1e49cc,_0x5eb7f2)=>{const _0x4b0ad0=[];for(const _0x35f56f of _0x808aa9['createRangeIn'](_0x5eb7f2[_0x52cc('0x98')])[_0x52cc('0x1')]())_0x35f56f['is']('element','suggestion-td')&&_0x4b0ad0['push'](_0x35f56f);_0x808aa9[_0x52cc('0x89')](_0x2e5ecf=>{for(const _0x1a75a8 of _0x4b0ad0)_0x2e5ecf['move'](_0x2e5ecf[_0x52cc('0x96')](_0x1a75a8),_0x2e5ecf['createPositionBefore'](_0x1a75a8)),_0x2e5ecf[_0x52cc('0x1f')](_0x1a75a8);});});}}function ce(_0x49ff1c){if(_0x49ff1c[_0x52cc('0x14')])return!0x0;const _0x3f3f25=_0x49ff1c['getChild'](0x0);return _0x3f3f25['is'](_0x52cc('0x3a'),_0x52cc('0x47'))&&_0x3f3f25[_0x52cc('0x14')];}function fe(_0x2f682f,_0xdb2dc9={},_0x18486c){for(const {isAnchor:_0x1a2bec,cellHeight:_0x33d9a5,cellWidth:_0xe2db9e}of _0x18486c[_0x52cc('0x69')](_0x2f682f,{'includeAllSlots':!0x0,..._0xdb2dc9}))if(!_0x1a2bec||0x1!=_0x33d9a5||0x1!=_0xe2db9e)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a5d=['TrackChangesEditing','model','getAttribute','editor','_suggestionFactory','handleResizeTableWidthCommand','*Format:*\x20resize\x20table','document','get','resizeTable','afterInit','discard','handleSuggestionDescription','enableCommand','registerCustomCallback','_descriptionFactory','type','getSuggestions','accept','formatInline','has','formatGroupId','subType','resizeTableWidth','format','TableColumnResizeEditing','formatBlock','getColumnGroupElement','plugins','selection','data','getContainedElement','columnWidths','getTableColumnsWidths','tableWidth'];(function(_0x2315a1,_0x4a5d6d){const _0x298a04=function(_0x45d88d){while(--_0x45d88d){_0x2315a1['push'](_0x2315a1['shift']());}};_0x298a04(++_0x4a5d6d);}(_0x4a5d,0xf7));const _0x298a=function(_0x2315a1,_0x4a5d6d){_0x2315a1=_0x2315a1-0x0;let _0x298a04=_0x4a5d[_0x2315a1];return _0x298a04;};import{Plugin as _0x1f91c8}from'ckeditor5/src/core';import{getTranslation as _0x3a0cf6}from'../utils/common-translations';export default class It extends _0x1f91c8{[_0x298a('0x8')](){if(!this['editor'][_0x298a('0x1a')][_0x298a('0x12')](_0x298a('0x17')))return;const _0x21ef87=this[_0x298a('0x1')][_0x298a('0x1a')][_0x298a('0x6')](_0x298a('0x21'));_0x21ef87[_0x298a('0xb')](_0x298a('0x15'),this[_0x298a('0x3')]['bind'](this)),_0x21ef87['_suggestionFactory'][_0x298a('0xc')]('formatBlock','resizeTable',_0x298a('0x10'),_0x21ef87[_0x298a('0x2')]['getSuggestionCallback'](_0x298a('0x18'),null,_0x298a('0x9'))),_0x21ef87[_0x298a('0x2')][_0x298a('0xc')](_0x298a('0x18'),_0x298a('0x7'),'discard',_0x21ef87[_0x298a('0x2')]['getSuggestionCallback'](_0x298a('0x18'),null,'accept')),_0x21ef87[_0x298a('0xd')]['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x14bdb0,_0x59c4f4){const _0x4ab2ee=this['editor'][_0x298a('0x1a')][_0x298a('0x6')](_0x298a('0x21')),_0x8b3baa=this['editor'][_0x298a('0x1a')][_0x298a('0x6')](_0x298a('0x17')),_0x40a084=_0x59c4f4['table']||this[_0x298a('0x1')][_0x298a('0x22')][_0x298a('0x5')][_0x298a('0x1b')]['getSelectedElement']();this[_0x298a('0x1')][_0x298a('0x22')]['change'](()=>{const _0x5a8070=_0x8b3baa[_0x298a('0x19')](_0x40a084);let _0x2c975c=_0x5a8070?_0x8b3baa[_0x298a('0x1f')](_0x5a8070):null,_0x46907a=_0x40a084[_0x298a('0x0')](_0x298a('0x20'))||null;const _0xf86575=_0x59c4f4[_0x298a('0x20')]||_0x46907a,_0x11cddf=_0x59c4f4[_0x298a('0x1e')]||_0x2c975c,_0x16e30b=this['editor']['plugins'][_0x298a('0x6')]('Users')['me'];for(const _0x1b520a of _0x4ab2ee[_0x298a('0xf')]()){const _0x46584c=_0x1b520a[_0x298a('0x1d')]();if(_0x298a('0x7')===_0x1b520a[_0x298a('0x14')]&&_0x46584c===_0x40a084){_0x1b520a['author']!==_0x16e30b&&_0x1b520a[_0x298a('0x9')]();const _0x538c27=_0x1b520a[_0x298a('0x1c')]['commandParams'];_0x46907a=_0x538c27[0x0][_0x298a('0x20')],_0x2c975c=_0x538c27[0x0][_0x298a('0x1e')];break;}}_0x14bdb0({'table':_0x40a084,'tableWidth':_0xf86575,'columnWidths':_0x11cddf}),_0x4ab2ee['markBlockFormat'](_0x40a084,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x46907a,'columnWidths':_0x2c975c}],'formatGroupId':_0x298a('0x7')},[],'resizeTable');});}[_0x298a('0xa')](_0x4e30ff){if('formatBlock'!=_0x4e30ff['type']&&_0x298a('0x11')!=_0x4e30ff[_0x298a('0xe')])return;const {data:_0x75c273}=_0x4e30ff;if(_0x75c273&&_0x298a('0x7')===_0x75c273[_0x298a('0x13')]){const _0x37f07f=_0x298a('0x4');return{'type':_0x298a('0x16'),'content':_0x3a0cf6(this['editor']['locale'],_0x37f07f)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e77=['format','name','end','FORMAT_REGULAR_ROW','commandName','_handleLegacySuggestions','toViewElement','showSuggestionHighlights','formatBlock','markerRange','registerDescriptionCallback','writer','ck-suggestion-marker-','consumable','nodeBefore','addClass','downcastDispatcher','type','requires','TableEditing','TrackChangesEditing','accept','setAttribute','registerCustomCallback','nodeAfter','setTableRowHeader','mapper','data-suggestion','commandParams','markerName','removeMarker:suggestion','_descriptionFactory','editor','cell','FORMAT_HEADER_COLUMN','getSuggestion','bindElementToMarker','activeMarkers','parent','TableUtils','registerAttributeLabel','setTableColumnHeader','headingColumns','get','markerNameToElements','unbindElementFromMarkerName','consume','FORMAT_REGULAR_COLUMN','data','includes','_acceptFormatSuggestionCallbackFactory','_splitMarkerName','_enableDefaultAttributesIntegration','FORMAT_HEADER_ROW','removeClass','headingRows','removeAttribute','afterInit','highest','ck-suggestion-marker--active','has','plugins','forceValue','locale','addMarker:suggestion','getCellLocation'];(function(_0x3afab9,_0x4e77e3){const _0x5274da=function(_0x1223a6){while(--_0x1223a6){_0x3afab9['push'](_0x3afab9['shift']());}};_0x5274da(++_0x4e77e3);}(_0x4e77,0x15b));const _0x5274=function(_0x3afab9,_0x4e77e3){_0x3afab9=_0x3afab9-0x0;let _0x5274da=_0x4e77[_0x3afab9];return _0x5274da;};import{Plugin as _0x568ab3}from'ckeditor5/src/core';import _0x16126b from'./table';import{getTranslation as _0x55777d}from'../utils/common-translations';export default class St extends _0x568ab3{static get[_0x5274('0x1')](){return[_0x16126b];}[_0x5274('0x28')](){const _0x2889ca=this[_0x5274('0xf')];if(!_0x2889ca[_0x5274('0x2c')][_0x5274('0x2b')](_0x5274('0x2')))return;const _0x1c6f49=_0x2889ca[_0x5274('0x2e')],_0x44e4fd=_0x2889ca[_0x5274('0x2c')][_0x5274('0x1a')]('TrackChangesEditing');_0x44e4fd[_0x5274('0x23')](_0x5274('0x8'),[],[_0x5274('0x26')]),_0x44e4fd['_enableDefaultAttributesIntegration']('setTableColumnHeader',[],[_0x5274('0x19')]),_0x44e4fd['_descriptionFactory']['registerAttributeLabel'](_0x5274('0x26'),_0x55777d(_0x1c6f49,_0x5274('0x24'))),_0x44e4fd[_0x5274('0xe')][_0x5274('0x17')](_0x5274('0x19'),_0x55777d(_0x1c6f49,_0x5274('0x11'))),this[_0x5274('0x36')]();}[_0x5274('0x36')](){const _0x5097ce=this[_0x5274('0xf')][_0x5274('0x2c')]['get']('TrackChangesEditing'),_0x10a4fa=this[_0x5274('0xf')][_0x5274('0x2c')]['get'](_0x5274('0x16')),_0x2aed33=this['editor'][_0x5274('0x2c')][_0x5274('0x1a')](_0x16126b)[_0x5274('0x21')]();function _0x332fd({showActiveMarker:_0x8df70f=!0x0,setDataAttribute:_0x360637=!0x0}={}){return(_0x43e95c,_0x3ed304,_0x36f232)=>{const {type:_0x5ad052,id:_0x2e7804}=_0x5097ce[_0x5274('0x22')](_0x3ed304['markerName']),_0x3910c1=_0x5097ce[_0x5274('0x12')](_0x2e7804),_0x58cf55=_0x3910c1[_0x5274('0x1f')];if(_0x5274('0x39')!=_0x3910c1[_0x5274('0x0')]||!_0x58cf55||_0x5274('0x18')!=_0x58cf55['commandName'])return;if(_0x3ed304['item'])return void _0x43e95c['stop']();if(!_0x36f232[_0x5274('0x3e')][_0x5274('0x1d')](_0x3ed304[_0x5274('0x3a')],_0x43e95c[_0x5274('0x32')]))return;const _0x849e70=_0x3ed304['markerRange']['start'][_0x5274('0x7')],_0x205e83=_0x3ed304['markerRange'][_0x5274('0x33')][_0x5274('0x3f')],_0x26c9ab=_0x849e70[_0x5274('0x15')][_0x5274('0x15')],{column:_0x590471}=_0x10a4fa[_0x5274('0x30')](_0x849e70),{column:_0x4d2897}=_0x10a4fa[_0x5274('0x30')](_0x205e83);for(let _0x366fbd=_0x590471;_0x366fbd<=_0x4d2897;_0x366fbd++){const _0x3daf5a=_0x10a4fa['createTableWalker'](_0x26c9ab,{'column':_0x366fbd,'includeAllSlots':!0x1});for(const _0x57ee45 of _0x3daf5a){const _0x8f0df4=_0x57ee45[_0x5274('0x10')],_0x3af31d=_0x36f232['mapper'][_0x5274('0x37')](_0x8f0df4);_0x36f232['writer'][_0x5274('0x40')](_0x5274('0x3d')+_0x5ad052,_0x3af31d),_0x360637&&_0x36f232[_0x5274('0x3c')][_0x5274('0x5')](_0x5274('0xa'),_0x2e7804,_0x3af31d),_0x36f232[_0x5274('0x9')][_0x5274('0x13')](_0x3af31d,_0x3ed304[_0x5274('0xc')]),_0x8df70f&&(_0x5097ce[_0x5274('0x14')][_0x5274('0x20')](_0x3ed304[_0x5274('0xc')])?_0x36f232[_0x5274('0x3c')][_0x5274('0x40')](_0x5274('0x2a'),_0x3af31d):_0x36f232[_0x5274('0x3c')][_0x5274('0x25')]('ck-suggestion-marker--active',_0x3af31d));}}};}_0x5097ce['_suggestionFactory'][_0x5274('0x6')](_0x5274('0x39'),_0x5274('0x8'),_0x5274('0x4'),_0x2aed33),_0x5097ce['_suggestionFactory'][_0x5274('0x6')]('formatBlock',_0x5274('0x18'),_0x5274('0x4'),_0x2aed33),this[_0x5274('0xf')]['editing'][_0x5274('0x41')]['on']('addMarker:suggestion',_0x332fd(),{'priority':_0x5274('0x29')}),this['editor'][_0x5274('0x1f')][_0x5274('0x41')]['on'](_0x5274('0x2f'),(_0x1f2243,_0x41a484,_0x1e1fe3)=>{_0x1e1fe3['options'][_0x5274('0x38')]&&_0x332fd({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1f2243,_0x41a484,_0x1e1fe3);},{'priority':'highest'}),this[_0x5274('0xf')]['editing'][_0x5274('0x41')]['on'](_0x5274('0xd'),(_0x2362c6,_0x163791,_0xb2ec95)=>{const {type:_0x805bd9,id:_0x5f3697}=_0x5097ce[_0x5274('0x22')](_0x163791[_0x5274('0xc')]),_0x496ad6=_0x5097ce[_0x5274('0x12')](_0x5f3697),_0x4edd8f=_0x496ad6[_0x5274('0x1f')];if(_0x5274('0x39')!=_0x496ad6[_0x5274('0x0')]||!_0x4edd8f||_0x5274('0x18')!=_0x4edd8f[_0x5274('0x35')])return;const _0xff9219=_0xb2ec95[_0x5274('0x9')][_0x5274('0x1b')](_0x163791[_0x5274('0xc')]);if(_0xff9219)for(const _0x4f408a of _0xff9219)_0xb2ec95['writer'][_0x5274('0x25')]('ck-suggestion-marker-'+_0x805bd9,_0x4f408a),_0xb2ec95[_0x5274('0x3c')][_0x5274('0x25')](_0x5274('0x2a'),_0x4f408a),_0xb2ec95[_0x5274('0x3c')][_0x5274('0x27')]('data-suggestion',_0x4f408a),_0xb2ec95[_0x5274('0x9')][_0x5274('0x1c')](_0x4f408a,_0x163791[_0x5274('0xc')]);},{'priority':_0x5274('0x29')}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x190111=this[_0x5274('0xf')],_0x414b45=_0x190111[_0x5274('0x2e')];function _0x3077e2(_0x1e2cf9){return{'type':_0x5274('0x31'),'content':_0x55777d(_0x414b45,'*Format:*\x20%0',_0x1e2cf9)};}_0x190111['plugins'][_0x5274('0x1a')](_0x5274('0x3'))[_0x5274('0xe')][_0x5274('0x3b')](_0x292ed5=>{if(_0x5274('0x39')!=_0x292ed5[_0x5274('0x0')])return;const {data:_0x5e6047}=_0x292ed5;if(_0x5e6047){if(_0x5274('0x8')==_0x5e6047[_0x5274('0x35')]){const _0x357785=_0x5e6047[_0x5274('0xb')][0x0][_0x5274('0x2d')];return _0x3077e2(_0x55777d(_0x414b45,_0x357785?_0x5274('0x24'):_0x5274('0x34')));}if('setTableColumnHeader'==_0x5e6047[_0x5274('0x35')]){const _0x2a5fb2=_0x5e6047[_0x5274('0xb')][0x0][_0x5274('0x2d')];return _0x3077e2(_0x55777d(_0x414b45,_0x2a5fb2?_0x5274('0x11'):_0x5274('0x1e')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa479=['detach','from','table','model','TableUtils','setSelection','value','set:isEnabled','createTableWalker','find','_areSelectedCellsMergable','commandName','locale','return','createRangeOn','element','subType','horizontally','getRanges','_areMergableCells','filter','tableCell','refresh','add','mergeTableCellDown','map','getSelectionAffectedTableCells','commands','size','document','getFirstPosition','cell','has','markBlockFormat','registerDescriptionCallback','_acceptFormatSuggestionCallbackFactory','getSuggestions','stop','mergeTableCellUp','author','containsRange','_suggestionFactory','enableCommand','direction','formatBlock','type','formatInline','low','length','insertion','mergeTableCellLeft','accept','selection','editor','plugins','splitTableCellVertically','deletion','_descriptionFactory','get','getAncestors','change','mergeTableCellRight','mergeTableCells','splitTableCellHorizontally','isInContent','*Merge\x20cells*','_isForcedDefaultExecutionBlock','$graveyard','format','execute'];(function(_0x33d8a1,_0xa47932){const _0xd51718=function(_0x2f2cb2){while(--_0x2f2cb2){_0x33d8a1['push'](_0x33d8a1['shift']());}};_0xd51718(++_0xa47932);}(_0xa479,0x13d));const _0xd517=function(_0x33d8a1,_0xa47932){_0x33d8a1=_0x33d8a1-0x0;let _0xd51718=_0xa479[_0x33d8a1];return _0xd51718;};import{Plugin as _0x3aeac5}from'ckeditor5/src/core';import _0x135c6c from'./table';import{LiveRange as _0x5e13cc}from'ckeditor5/src/engine';import{getTranslation as _0x870a3b}from'../utils/common-translations';export default class yt extends _0x3aeac5{static get['requires'](){return[_0x135c6c];}['afterInit'](){const _0x594909=this[_0xd517('0x10')],_0x42408c=_0x594909[_0xd517('0x24')][_0xd517('0x3e')][_0xd517('0xf')],_0x5e72da=_0x594909[_0xd517('0x2d')];if(!_0x594909[_0xd517('0x11')][_0xd517('0x41')]('TableEditing'))return;const _0x20ec45=_0x594909[_0xd517('0x11')][_0xd517('0x15')]('TrackChangesEditing'),_0xc35e09=_0x594909[_0xd517('0x11')][_0xd517('0x15')](_0xd517('0x25')),_0x5633b4=_0x594909[_0xd517('0x11')][_0xd517('0x15')](_0x135c6c);_0x5633b4['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x20ec45[_0xd517('0x5')](_0xd517('0x19'),()=>{const _0x48df2f=_0xc35e09[_0xd517('0x3b')](_0x594909['model'][_0xd517('0x3e')][_0xd517('0xf')]);_0x594909['model'][_0xd517('0x17')](()=>{_0x20ec45['markMultiRangeBlockFormat'](_0x48df2f,{'commandName':_0xd517('0x19'),'commandParams':[]},[],_0xd517('0x19'));});}),_0x594909['commands']['get']('mergeTableCells')['on'](_0xd517('0x20'),(_0x2b8c69,_0x206b45)=>{_0x594909[_0xd517('0x3c')]['get']('trackChanges')[_0xd517('0x27')]&&(_0x206b45[_0xd517('0xb')]>0x0&&_0x206b45[_0x206b45[_0xd517('0xb')]-0x1]&&_0x206b45[_0x206b45['length']-0x1]['forceDefaultExecution']||_0x20ec45[_0xd517('0x1d')]||this[_0xd517('0x2b')]()||_0x2b8c69[_0xd517('0x0')]());},{'priority':'highest'});for(const _0xa610c8 of[_0xd517('0x1'),'mergeTableCellRight',_0xd517('0x39'),_0xd517('0xd')]){const _0x2dd760=_0x594909[_0xd517('0x3c')][_0xd517('0x15')](_0xa610c8);_0x20ec45[_0xd517('0x5')](_0xa610c8,()=>{const _0x490643=_0x594909[_0xd517('0x24')][_0xd517('0x3e')][_0xd517('0xf')][_0xd517('0x3f')]()['getAncestors']()[_0xd517('0x2a')](_0x3af65d=>_0x3af65d['is']('element',_0xd517('0x36'))),_0x264657=_0x2dd760['value'];_0x594909[_0xd517('0x24')]['change'](()=>{_0x20ec45['markMultiRangeBlockFormat']([_0x490643,_0x264657],{'commandName':_0xd517('0x19'),'commandParams':[]},[],_0xd517('0x19'));});});}for(const _0x37fe3a of[_0xd517('0x12'),_0xd517('0x1a')]){const _0x58e193=_0x594909[_0xd517('0x3c')][_0xd517('0x15')](_0x37fe3a);_0x20ec45[_0xd517('0x5')](_0x37fe3a,()=>{const _0x5c4b44=_0xc35e09['getSelectionAffectedTableCells'](_0x594909[_0xd517('0x24')][_0xd517('0x3e')][_0xd517('0xf')])[0x0],_0x3b8dac=_0x5c4b44['findAncestor'](_0xd517('0x23')),{column:_0x266df4,row:_0x275091}=_0xc35e09['getCellLocation'](_0x5c4b44);let _0x3a6428=[];if(_0xd517('0x32')==_0x58e193[_0xd517('0x6')]){const _0x501602=_0xc35e09[_0xd517('0x29')](_0x3b8dac,{'startRow':_0x275091,'endRow':_0x275091,'includeAllSlots':!0x0});_0x3a6428=Array[_0xd517('0x22')](_0x501602)['map'](_0x5021ec=>_0x5021ec['cell']);}else{const _0x2ec8d3=_0xc35e09['createTableWalker'](_0x3b8dac,{'column':_0x266df4,'includeAllSlots':!0x0});_0x3a6428=Array[_0xd517('0x22')](_0x2ec8d3)[_0xd517('0x3a')](_0x5267b4=>_0x5267b4[_0xd517('0x40')]);}_0x594909[_0xd517('0x24')][_0xd517('0x17')](_0x35d09b=>{_0x20ec45[_0xd517('0x42')](_0x35d09b[_0xd517('0x2f')](_0x5c4b44),{'commandName':_0x37fe3a,'commandParams':[]},_0x3a6428,_0x37fe3a);});});}_0x20ec45['_descriptionFactory'][_0xd517('0x43')](_0x228adf=>{if(_0xd517('0x7')!=_0x228adf[_0xd517('0x8')]&&_0xd517('0x9')!=_0x228adf['type'])return;const {data:_0x56cdd}=_0x228adf;return _0x56cdd&&_0xd517('0x19')==_0x56cdd[_0xd517('0x2c')]?{'type':_0xd517('0x1f'),'content':_0x870a3b(_0x5e72da,_0xd517('0x1c'))}:void 0x0;}),_0x20ec45[_0xd517('0x14')][_0xd517('0x43')](_0x47815b=>{if(_0xd517('0x7')!=_0x47815b[_0xd517('0x8')]&&'formatInline'!=_0x47815b['type'])return;const {data:_0x37d507}=_0x47815b;return _0x37d507?_0xd517('0x12')==_0x37d507[_0xd517('0x2c')]?{'type':_0xd517('0x1f'),'content':_0x870a3b(_0x5e72da,'*Split\x20cell:*\x20vertically')}:_0xd517('0x1a')==_0x37d507['commandName']?{'type':_0xd517('0x1f'),'content':_0x870a3b(_0x5e72da,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4a4c19=_0x5633b4[_0xd517('0x44')]();for(const _0x7664b3 of['mergeTableCellUp','mergeTableCellRight',_0xd517('0x39'),_0xd517('0xd')])_0x20ec45[_0xd517('0x4')]['registerCustomCallback'](_0xd517('0x7'),_0x7664b3,_0xd517('0xe'),_0x4a4c19);for(const _0x4985c1 of[_0xd517('0x12'),_0xd517('0x1a')])_0x20ec45[_0xd517('0x4')]['registerCustomCallback']('formatBlock',_0x4985c1,'accept',_0x4a4c19);_0x20ec45['_suggestionFactory']['registerCustomCallback'](_0xd517('0x7'),'mergeTableCells','accept',_0x18eddf=>{_0x594909[_0xd517('0x24')][_0xd517('0x17')](_0x3a1a37=>{const _0x17cfc3=Array[_0xd517('0x22')](_0x42408c[_0xd517('0x33')]())[_0xd517('0x3a')](_0x3aaff0=>_0x5e13cc['fromRange'](_0x3aaff0));_0x3a1a37[_0xd517('0x26')](_0x18eddf),_0x594909['commands'][_0xd517('0x15')](_0xd517('0x19'))[_0xd517('0x37')](),_0x594909[_0xd517('0x20')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x206a7e=_0x17cfc3[_0xd517('0x35')](_0x33022b=>_0xd517('0x1e')!=_0x33022b['root']['rootName']);_0x206a7e['length']>0x0&&_0x3a1a37[_0xd517('0x26')](_0x206a7e);for(const _0xd212f4 of _0x17cfc3)_0xd212f4[_0xd517('0x21')]();});});for(const _0x4c6731 of[_0xd517('0x1'),_0xd517('0x39'),_0xd517('0xd'),_0xd517('0x18')]){const _0x4b5bea=_0x594909['commands'][_0xd517('0x15')](_0x4c6731);_0x4b5bea['on'](_0xd517('0x28'),(_0x5bbcaa,_0x433984,_0x511a9f)=>{if(_0x511a9f){const _0x14e042=_0x594909[_0xd517('0x24')]['document']['selection']['getFirstPosition']()[_0xd517('0x16')]()[_0xd517('0x2a')](_0x518ec5=>_0x518ec5['is'](_0xd517('0x30'),_0xd517('0x36')));this['_areMergableCells'](_0x4b5bea[_0xd517('0x27')],_0x14e042)||(_0x5bbcaa[_0xd517('0x2e')]=!0x1,_0x5bbcaa[_0xd517('0x0')]());}},{'priority':_0xd517('0xa')});}}['_areSelectedCellsMergable'](){const _0x316f12=this[_0xd517('0x10')][_0xd517('0x3c')][_0xd517('0x15')](_0xd517('0x19')),_0x185df9=this['editor']['plugins'][_0xd517('0x15')]('TableUtils');if(!_0x316f12['isEnabled'])return!0x1;const _0x3f2ccb=_0x185df9[_0xd517('0x3b')](this[_0xd517('0x10')][_0xd517('0x24')][_0xd517('0x3e')][_0xd517('0xf')]);for(const _0x59fcc4 of _0x3f2ccb)for(const _0x2bdbb0 of _0x3f2ccb)if(_0x59fcc4!=_0x2bdbb0&&!this[_0xd517('0x34')](_0x59fcc4,_0x2bdbb0))return!0x1;return!0x0;}[_0xd517('0x34')](_0x3f7a1c,_0x4a2c19){const _0x38ec4f=this[_0xd517('0x10')][_0xd517('0x11')][_0xd517('0x15')]('TrackChangesEditing'),_0x210861=this[_0xd517('0x10')][_0xd517('0x24')][_0xd517('0x2f')](_0x3f7a1c),_0x149ca=this['editor'][_0xd517('0x24')][_0xd517('0x2f')](_0x4a2c19),_0x27e4f=new Set(),_0x47a310=new Set();for(const _0x283bc2 of _0x38ec4f[_0xd517('0x45')]())if((_0xd517('0xc')==_0x283bc2[_0xd517('0x8')]||_0xd517('0x13')==_0x283bc2['type']||_0xd517('0x19')==_0x283bc2[_0xd517('0x31')])&&_0x283bc2[_0xd517('0x1b')])for(const _0x43cd46 of _0x283bc2[_0xd517('0x33')]())_0x43cd46[_0xd517('0x3')](_0x210861,!0x0)&&_0x27e4f[_0xd517('0x38')](_0x283bc2['type']+':'+_0x283bc2[_0xd517('0x2')]['id']),_0x43cd46[_0xd517('0x3')](_0x149ca,!0x0)&&_0x47a310['add'](_0x283bc2[_0xd517('0x8')]+':'+_0x283bc2[_0xd517('0x2')]['id']);if(_0x27e4f['size']!=_0x47a310[_0xd517('0x3d')])return!0x1;for(const _0x16313d of _0x27e4f)if(!_0x47a310[_0xd517('0x41')](_0x16313d))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b7a=['get','editor','commands','afterInit','insertTableOfContents','TrackChangesEditing','ELEMENT_TABLE_OF_CONTENTS','tableOfContents','plugins'];(function(_0xf1d40f,_0x1b7a86){const _0x375787=function(_0x40e9f9){while(--_0x40e9f9){_0xf1d40f['push'](_0xf1d40f['shift']());}};_0x375787(++_0x1b7a86);}(_0x1b7a,0xa3));const _0x3757=function(_0xf1d40f,_0x1b7a86){_0xf1d40f=_0xf1d40f-0x0;let _0x375787=_0x1b7a[_0xf1d40f];return _0x375787;};import{Plugin as _0x246f92}from'ckeditor5/src/core';import{getTranslation as _0x15cdcc}from'../utils/common-translations';export default class Ct extends _0x246f92{[_0x3757('0x2')](){const _0x566e56=this[_0x3757('0x0')];if(!_0x566e56[_0x3757('0x1')]['get']('insertTableOfContents'))return;_0x566e56['plugins'][_0x3757('0x8')](_0x3757('0x4'))['enableCommand'](_0x3757('0x3'));const _0x521b12=_0x566e56[_0x3757('0x7')][_0x3757('0x8')](_0x3757('0x4')),_0x36cf4c=_0x566e56['locale'];_0x521b12['_descriptionFactory']['registerElementLabel'](_0x3757('0x6'),_0x27abb7=>_0x15cdcc(_0x36cf4c,_0x3757('0x5'),_0x27abb7));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1170=['getFirstPosition','markBlockFormat','*Format:*\x20change\x20table\x20properties','tableCellWidth','enableCommand','registerDescriptionCallback','nodeAfter','pluginName','_getSuggestion','handleDiscardAction','handleSuggestionDescription','tableBorderWidth','TrackChangesTableProperties','tableCellHorizontalAlignment','format','tableBorderColor','tableCellHeight','tableCellVerticalAlignment','_handlePropertyChange','tableAlignment','TableCellPropertiesEditing','data','findAncestor','accept','commandParams','TableUtils','change','table','tableCellProperties','plugins','getSuggestionCallback','tableProperties','getContainedElement','tableCellBorderWidth','model','setAttribute','discard','tableBorderStyle','tableCellPadding','tableCellBorderStyle','batch','tableHeight','has','TablePropertiesEditing','subType','getSuggestions','_descriptionFactory','registerCustomCallback','get','TrackChangesEditing','document','formatBlock','editor','removeAttribute','selection','locale','tableWidth','_suggestionFactory'];(function(_0x204775,_0x11707){const _0x490ab1=function(_0x43a3bf){while(--_0x43a3bf){_0x204775['push'](_0x204775['shift']());}};_0x490ab1(++_0x11707);}(_0x1170,0xeb));const _0x490a=function(_0x204775,_0x11707){_0x204775=_0x204775-0x0;let _0x490ab1=_0x1170[_0x204775];return _0x490ab1;};import{Plugin as _0x556551}from'ckeditor5/src/core';import{getTranslation as _0x4453fc}from'../utils/common-translations';export default class Mt extends _0x556551{constructor(_0x296a59){super(_0x296a59),this[_0x490a('0x1c')]=[_0x490a('0xc'),_0x490a('0x22'),_0x490a('0x8'),_0x490a('0x10'),_0x490a('0x35'),_0x490a('0x26'),'tableBackgroundColor'],this[_0x490a('0x19')]=['tableCellBorderColor',_0x490a('0x24'),_0x490a('0x1e'),_0x490a('0x23'),_0x490a('0x0'),_0x490a('0xd'),'tableCellBackgroundColor',_0x490a('0xa'),_0x490a('0xe')];}static get[_0x490a('0x4')](){return _0x490a('0x9');}['afterInit'](){const _0x14f236=this[_0x490a('0x31')][_0x490a('0x1a')][_0x490a('0x2d')](_0x490a('0x2e'));if(this[_0x490a('0x31')][_0x490a('0x1a')][_0x490a('0x27')](_0x490a('0x28'))){for(const _0x39ff4f of this[_0x490a('0x1c')])_0x14f236['enableCommand'](_0x39ff4f,(_0x1b54df,_0x34a461)=>{const _0x30ccea=this[_0x490a('0x31')]['model'][_0x490a('0x2f')][_0x490a('0x33')][_0x490a('0x37')]()[_0x490a('0x13')](_0x490a('0x18'));this[_0x490a('0xf')](_0x39ff4f,[_0x30ccea],this[_0x490a('0x1c')],_0x490a('0x1c'),_0x1b54df,_0x34a461);});_0x14f236['_suggestionFactory']['registerCustomCallback'](_0x490a('0x30'),'tableProperties',_0x490a('0x14'),_0x14f236[_0x490a('0x36')]['getSuggestionCallback']('formatBlock',null,_0x490a('0x21'))),_0x14f236[_0x490a('0x36')]['registerCustomCallback']('formatBlock',_0x490a('0x1c'),_0x490a('0x21'),(_0x5d57b9,_0x2b3f5e)=>this['handleDiscardAction'](this[_0x490a('0x1c')],_0x5d57b9,_0x2b3f5e)),_0x14f236[_0x490a('0x36')]['registerCustomCallback'](_0x490a('0x30'),'tableProperties','join',()=>!0x1);}if(this[_0x490a('0x31')][_0x490a('0x1a')][_0x490a('0x27')](_0x490a('0x11'))){for(const _0x472a9d of this['tableCellProperties'])_0x14f236[_0x490a('0x1')](_0x472a9d,(_0x3bea97,_0x120050)=>{const _0x2b1acd=this['editor'][_0x490a('0x1a')][_0x490a('0x2d')](_0x490a('0x16'))['getSelectionAffectedTableCells'](this[_0x490a('0x31')][_0x490a('0x1f')][_0x490a('0x2f')]['selection']);this[_0x490a('0xf')](_0x472a9d,_0x2b1acd,this['tableCellProperties'],_0x490a('0x19'),_0x3bea97,_0x120050);});_0x14f236[_0x490a('0x36')][_0x490a('0x2c')](_0x490a('0x30'),_0x490a('0x19'),_0x490a('0x14'),_0x14f236[_0x490a('0x36')][_0x490a('0x1b')](_0x490a('0x30'),null,_0x490a('0x21'))),_0x14f236[_0x490a('0x36')][_0x490a('0x2c')](_0x490a('0x30'),_0x490a('0x19'),_0x490a('0x21'),(_0x387833,_0x356274)=>this[_0x490a('0x6')](this['tableCellProperties'],_0x387833,_0x356274)),_0x14f236['_suggestionFactory']['registerCustomCallback'](_0x490a('0x30'),_0x490a('0x19'),'join',()=>!0x1);}_0x14f236[_0x490a('0x2b')][_0x490a('0x2')](_0xc0edd4=>this[_0x490a('0x7')](_0xc0edd4));}[_0x490a('0xf')](_0x2bd15e,_0x5cb14d,_0x579ea9,_0x52d9bf,_0x539c4a,_0x28a09a){const _0x4d0c55=this[_0x490a('0x31')][_0x490a('0x1a')]['get']('TrackChangesEditing');this[_0x490a('0x31')][_0x490a('0x1f')]['enqueueChange'](_0x28a09a[_0x490a('0x25')],()=>{for(const _0x539218 of _0x5cb14d){if(this[_0x490a('0x5')](_0x539218,_0x52d9bf))_0x539c4a(_0x28a09a);else{const _0x4d8825={};for(const _0x2bcbc9 of _0x579ea9){const _0x3f197d=_0x539218['getAttribute'](_0x2bcbc9);void 0x0!==_0x3f197d&&(_0x4d8825[_0x2bcbc9]=_0x3f197d);}_0x539c4a(_0x28a09a),_0x4d0c55[_0x490a('0x38')](_0x539218,{'commandParams':[_0x4d8825]},[],_0x52d9bf);}}});}[_0x490a('0x6')](_0x5d9ea9,_0x16e59e,_0x369c48){const _0xddab91=_0x16e59e[0x0]['start'][_0x490a('0x3')],_0x5cdbb3=_0x369c48[_0x490a('0x15')][0x0];this[_0x490a('0x31')]['model'][_0x490a('0x17')](_0x1b46f5=>{for(const _0x57267b of _0x5d9ea9)void 0x0!==_0x5cdbb3[_0x57267b]?_0x1b46f5[_0x490a('0x20')](_0x57267b,_0x5cdbb3[_0x57267b],_0xddab91):_0x1b46f5[_0x490a('0x32')](_0x57267b,_0xddab91);});}['handleSuggestionDescription'](_0x2e7cfc){if(_0x2e7cfc[_0x490a('0x12')])switch(_0x2e7cfc['subType']){case'tableProperties':return{'type':'format','content':_0x4453fc(this[_0x490a('0x31')][_0x490a('0x34')],_0x490a('0x39'))};case'tableCellProperties':return{'type':_0x490a('0xb'),'content':_0x4453fc(this[_0x490a('0x31')][_0x490a('0x34')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x490a('0x5')](_0x2c6e2e,_0x220921){const _0x59149e=this['editor'][_0x490a('0x1a')][_0x490a('0x2d')](_0x490a('0x2e'));for(const _0x1b5c2e of _0x59149e[_0x490a('0x2a')]({'skipNotAttached':!0x0})){const _0x4c7f7b=_0x1b5c2e[_0x490a('0x1d')]();if(_0x1b5c2e[_0x490a('0x29')]===_0x220921&&_0x4c7f7b===_0x2c6e2e)return _0x1b5c2e;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42c5=['Template','afterInit','has','get','TrackChangesEditing','plugins','insertTemplate','editor'];(function(_0x1db3f4,_0x42c569){const _0x31dfaa=function(_0x5bdb53){while(--_0x5bdb53){_0x1db3f4['push'](_0x1db3f4['shift']());}};_0x31dfaa(++_0x42c569);}(_0x42c5,0xe0));const _0x31df=function(_0x1db3f4,_0x42c569){_0x1db3f4=_0x1db3f4-0x0;let _0x31dfaa=_0x42c5[_0x1db3f4];return _0x31dfaa;};import{Plugin as _0x5e17eb}from'ckeditor5/src/core';export default class vt extends _0x5e17eb{[_0x31df('0x1')](){const _0x151de0=this[_0x31df('0x7')];_0x151de0[_0x31df('0x5')][_0x31df('0x2')](_0x31df('0x0'))&&_0x151de0[_0x31df('0x5')][_0x31df('0x3')](_0x31df('0x4'))['enableCommand'](_0x31df('0x6'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4378=['getChangedMarkers','isTouching','model','registerElementLabel','forward','getNearestSelectionRange','title-content','locale','document','differ','newRange','removeMarker','_descriptionFactory','suggestion','createRange','start','isCollapsed','nodeBefore','get','isEqual','end','editor','ELEMENT_TITLE','Title','schema','_splitMarkerName','has'];(function(_0x19994e,_0x437841){const _0x372fec=function(_0x1764a3){while(--_0x1764a3){_0x19994e['push'](_0x19994e['shift']());}};_0x372fec(++_0x437841);}(_0x4378,0xcf));const _0x372f=function(_0x19994e,_0x437841){_0x19994e=_0x19994e-0x0;let _0x372fec=_0x4378[_0x19994e];return _0x372fec;};import{Plugin as _0x1216a0}from'ckeditor5/src/core';import{getTranslation as _0x3d7c93}from'../utils/common-translations';export default class _t extends _0x1216a0{['afterInit'](){const _0x46f89e=this[_0x372f('0x3')];if(!_0x46f89e['plugins'][_0x372f('0x8')](_0x372f('0x5')))return;const _0x23d8c9=_0x46f89e['plugins'][_0x372f('0x0')]('TrackChangesEditing');_0x23d8c9[_0x372f('0x15')][_0x372f('0xc')](_0x372f('0xf'),()=>_0x3d7c93(_0x46f89e[_0x372f('0x10')],_0x372f('0x4'))),_0x46f89e['model'][_0x372f('0x11')]['registerPostFixer'](_0x5d7e11=>{let _0x541465=!0x1;const _0xba5216=Array['from'](_0x46f89e[_0x372f('0xb')][_0x372f('0x11')][_0x372f('0x12')][_0x372f('0x9')]());for(const {name:_0x37cb37,data:_0x292098}of _0xba5216){const {group:_0x421007}=_0x23d8c9[_0x372f('0x7')](_0x37cb37);if(_0x372f('0x16')!==_0x421007||!_0x292098['newRange'])continue;const _0x479e7f=_0x292098[_0x372f('0x13')],_0x284f21=_0x479e7f[_0x372f('0x2')][_0x372f('0x1a')];if(!_0x284f21||!_0x284f21['is']('element','title-content'))continue;if(!_0x479e7f[_0x372f('0x18')][_0x372f('0xa')](_0x479e7f[_0x372f('0x2')]))continue;const _0x225fb6=_0x46f89e[_0x372f('0xb')][_0x372f('0x6')][_0x372f('0xe')](_0x479e7f[_0x372f('0x2')],_0x372f('0xd'));if(_0x225fb6&&_0x225fb6[_0x372f('0x19')]){const _0x367dd9=_0x5d7e11[_0x372f('0x17')](_0x479e7f[_0x372f('0x18')],_0x225fb6[_0x372f('0x18')]);_0x367dd9[_0x372f('0x1')](_0x479e7f)||(_0x5d7e11['updateMarker'](_0x37cb37,{'range':_0x367dd9}),_0x541465=!0x0);}_0x541465||(_0x5d7e11[_0x372f('0x14')](_0x37cb37),_0x541465=!0x0);}return _0x541465;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11ae=['UndoEditing','has','afterInit','get','TrackChangesEditing','enableCommand','plugins'];(function(_0x9d5493,_0x11aef9){const _0x348de4=function(_0x3edd43){while(--_0x3edd43){_0x9d5493['push'](_0x9d5493['shift']());}};_0x348de4(++_0x11aef9);}(_0x11ae,0x8d));const _0x348d=function(_0x9d5493,_0x11aef9){_0x9d5493=_0x9d5493-0x0;let _0x348de4=_0x11ae[_0x9d5493];return _0x348de4;};import{Plugin as _0x2996e2}from'ckeditor5/src/core';export default class Dt extends _0x2996e2{[_0x348d('0x1')](){const _0x531819=this['editor'],_0x3de4a8=_0x531819[_0x348d('0x5')][_0x348d('0x2')](_0x348d('0x3'));_0x531819[_0x348d('0x5')][_0x348d('0x0')](_0x348d('0x6'))&&(_0x3de4a8[_0x348d('0x4')]('undo'),_0x3de4a8[_0x348d('0x4')]('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a07=['name','element','plugins','mapper','hasAttribute','toViewPosition','nextSibling','listIndent','previousPosition','addHighlight','span','createRangeOn','test','isLimit','isBlock','type','getCustomProperty','markerRange','start','getWalker','toViewElement','listItem','item','markerName','isAtEnd','includes','push','writer','model','ck-suggestion-marker--active','isContent','bindElementToMarker','getItems','schema','getAttribute','TrackChangesEditing'];(function(_0x1f2873,_0x4a079b){const _0x579380=function(_0x31cbb5){while(--_0x31cbb5){_0x1f2873['push'](_0x1f2873['shift']());}};_0x579380(++_0x4a079b);}(_0x4a07,0xe6));const _0x5793=function(_0x1f2873,_0x4a079b){_0x1f2873=_0x1f2873-0x0;let _0x579380=_0x4a07[_0x1f2873];return _0x579380;};export function getRangesWithAttribute(_0x22ce5b,_0x19acfb,_0x111fb8){const _0x295222=[];for(const _0x26a814 of _0x19acfb[_0x5793('0x12')]())_0x26a814[_0x5793('0x1a')](_0x22ce5b)&&_0x295222['push'](_0x111fb8[_0x5793('0x21')](_0x26a814));return _0x295222;}export function getElementsAffectedByListItemRename(_0x4059b3){const _0x83a4b1=[];if(_0x4059b3['is'](_0x5793('0x17'),_0x5793('0x7'))){let _0x4b64e0=_0x4059b3[_0x5793('0x1c')];for(;_0x4b64e0&&_0x4b64e0['is'](_0x5793('0x17'),_0x5793('0x7'))&&_0x4b64e0[_0x5793('0x14')](_0x5793('0x1d'))>0x0;)_0x83a4b1[_0x5793('0xc')](_0x4b64e0),_0x4b64e0=_0x4b64e0[_0x5793('0x1c')];}return _0x83a4b1;}export function downcastSplitMergeMarker(_0xa5851a,_0x5acf55,{showActiveMarker:_0x25c626=!0x0}={}){const _0x266d5d=_0xa5851a[_0x5793('0x18')]['get'](_0x5793('0x15'));return(_0x18681f,_0x5bdfd9,_0xb9d42c)=>{if(!_0xb9d42c['consumable'][_0x5793('0x22')](_0x5bdfd9['markerRange'],_0x18681f[_0x5793('0x16')]))return;const _0x1ac9fa=_0x5bdfd9['markerRange'][_0x5793('0x5')](),_0x439e38=_0x5bdfd9[_0x5793('0x3')][_0x5793('0x4')],_0x1b30c3=_0xa5851a[_0x5793('0xe')][_0x5793('0x13')];let _0x461cd9=null,_0x2a22dd=null,_0x350eb6=!0x1,_0x3ed2be=!0x1;for(const _0x2e0870 of _0x1ac9fa){const _0x42166e=_0x2e0870[_0x5793('0x8')];_0x350eb6=_0x350eb6||_0x1b30c3[_0x5793('0x10')](_0x42166e);const _0x75f0d8=_0xb9d42c[_0x5793('0x19')][_0x5793('0x6')](_0x42166e);if(_0x75f0d8&&_0x75f0d8[_0x5793('0x2')](_0x5793('0x1f')))return;'elementEnd'==_0x2e0870[_0x5793('0x1')]&&(_0x1b30c3[_0x5793('0x0')](_0x42166e)&&!_0x1b30c3[_0x5793('0x23')](_0x42166e)&&(_0x42166e[_0x5793('0x1c')]||_0x439e38[_0x5793('0xa')]?_0x461cd9&&_0x461cd9['parent']==_0x42166e||(_0x461cd9=_0x42166e,_0x52da69(_0x2e0870['previousPosition']),_0x3ed2be=!0x0):_0x2a22dd=_0x2a22dd||_0x2e0870[_0x5793('0x1e')]));}function _0x52da69(_0x573c27){const _0x9d81db=_0xb9d42c[_0x5793('0xd')]['createUIElement'](_0x5793('0x20'),{'class':'ck-suggestion-marker-'+_0x5acf55}),_0x242d15=_0xb9d42c[_0x5793('0x19')][_0x5793('0x1b')](_0x573c27);_0x25c626&&_0x266d5d['activeMarkers'][_0x5793('0xb')](_0x5bdfd9[_0x5793('0x9')])&&_0xb9d42c[_0x5793('0xd')]['addClass'](_0x5793('0xf'),_0x9d81db),_0xb9d42c['writer']['insert'](_0x242d15,_0x9d81db),_0xb9d42c[_0x5793('0x19')][_0x5793('0x11')](_0x9d81db,_0x5bdfd9[_0x5793('0x9')]);}_0x350eb6||_0x3ed2be||!_0x2a22dd||_0x52da69(_0x2a22dd);};}
|