@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231011.0 → 0.0.0-nightly-20231012.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/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 _0x31f1=['fill','schema','isInContent','map','suggestion:formatBlock:tablePasteCell','*Replace\x20table\x20cells*','accept','insertContent','showSuggestionHighlights','registerPostFixer','position','editor','tableCellBackgroundColor','join','cell','unwrap','getRows','tablePasteCell','elementToElement','cells','keys','includes','forceDefaultExecution','_suggestionFactory','paragraph','tableCellBorderStyle','getChild','suggestionUnloaded','startsWith','getSuggestion','listenTo','createRangeIn','tableCell','some','add','_tablePostFixingSubtypes','high','ck-suggestion-marker','isEmpty','rowInsertionRanges','insertion','change','conversion','push','length','_splitMarkerName','markerName','tablePasteChainId','return','tableCellBorderWidth','element','row','rowInsertionIndexes','name','remove','ck-suggestion-marker-insertion','trackChanges','last','differ','table','discard','getItems','getAttributes','requires','deletion','tableCellPadding','createTableWalker','TableUtils','dataDowncast','end','tableCellVerticalAlignment','tablePasteRow','_createdBatches','get','suggestion','createElement','markerAttributes','selection','getContainedElement','Users','deletionRanges','_isForcedDefaultExecutionBlock','view','insertColumns','rows','formatBlock','fromEntries','setAttributes','next','updateMarker','removeRows','getRange','markMultiRangeDeletion','first','locale','getSuggestionCallback','find','subType','previous','oldRange','from','TableClipboard','nextSibling','reduce','_descriptionFactory','_getCoordsForCells','columns','getAllAdjacentSuggestions','markMultiRangeInsertion','insert','findAncestor','set','getRanges','editingDowncast','tableCellBorderColor','columnInsertionIndexes','getChanges','attributes','markerToHighlight','filter','low','removeMarker','model','insertRows','document','clipboardOutput','documentSelection','tablePasteColumn','has','getSuggestions','tablePaste','for','isEqual','registerDescriptionCallback','getMarkers','content','getChangedMarkers','removeColumns','author','createRangeOn','entries','markers','getRowIndexes','columnInsertionRanges','getSelectionAffectedTableCells','stop','every','type','newRange','TrackChangesEditing','containsRange','tableCellSuggestion','suggestion-td','redo','setAttribute','endRow','getChildren','move','registerCustomCallback','$graveyard','wrap','plugins','previousSibling','commands','nodeAfter'];(function(_0x4e3a4f,_0x31f140){const _0x42c3e0=function(_0x1847b3){while(--_0x1847b3){_0x4e3a4f['push'](_0x4e3a4f['shift']());}};_0x42c3e0(++_0x31f140);}(_0x31f1,0x1ac));const _0x42c3=function(_0x4e3a4f,_0x31f140){_0x4e3a4f=_0x4e3a4f-0x0;let _0x42c3e0=_0x31f1[_0x4e3a4f];return _0x42c3e0;};import{getTranslation as _0x2a9e1c}from'../utils/common-translations';import{Plugin as _0x15bd7b}from'ckeditor5/src/core';import{uid as _0xa1f25b,priorities as _0x1c2837}from'ckeditor5/src/utils';import _0x5c7aaf from'./table';const le=[_0x42c3('0x74'),_0x42c3('0x10'),_0x42c3('0x5c'),'tableCellHorizontalAlignment',_0x42c3('0x89'),_0x42c3('0x4f'),_0x42c3('0x84')],ae=Object[_0x42c3('0x99')](le[_0x42c3('0x46')](_0x519832=>[_0x519832,null]));export default class wt extends _0x15bd7b{static get[_0x42c3('0x82')](){return[_0x5c7aaf];}['afterInit'](){const _0x198564=this['editor'];if(!_0x198564[_0x42c3('0x3f')][_0x42c3('0x1e')](_0x42c3('0x3')))return;const _0x36f7ee=_0x198564['plugins'][_0x42c3('0x8c')](_0x42c3('0x33')),_0x4e25a3=_0x198564[_0x42c3('0x3f')][_0x42c3('0x8c')](_0x42c3('0x86')),_0x3556c4=_0x198564[_0x42c3('0x3f')][_0x42c3('0x8c')](_0x5c7aaf),_0x2de09c=_0x198564[_0x42c3('0x3f')]['get'](_0x42c3('0x3'));_0x3556c4[_0x42c3('0x66')][_0x42c3('0x6e')](_0x42c3('0x8a'),_0x42c3('0x1d')),_0x198564['model'][_0x42c3('0x44')]['register'](_0x42c3('0x35'),{'allowIn':_0x42c3('0x63'),'allowContentOf':_0x42c3('0x63'),'isLimit':!0x0}),_0x198564['conversion'][_0x42c3('0x55')]({'model':_0x42c3('0x35'),'view':_0x42c3('0x36')});let _0x5063b1=null;_0x198564[_0x42c3('0x18')]['on'](_0x42c3('0x4a'),(_0x3ec91a,_0x3fe4eb)=>{const [_0x4e5397,_0x5a2e95]=_0x3fe4eb,_0x4ccc30=_0x3fe4eb[_0x3fe4eb['length']-0x1];_0x4ccc30&&_0x4ccc30[_0x42c3('0x59')]||_0x36f7ee[_0x42c3('0x94')]||this[_0x42c3('0x4e')][_0x42c3('0x41')][_0x42c3('0x8c')](_0x42c3('0x7b'))['value']&&function(_0x26025a,_0x24d146,_0x1bfa51,_0x134706,_0x3a1889){if(_0x24d146&&!_0x24d146['is'](_0x42c3('0x1c')))return!0x1;const _0x3e6e44=_0x3a1889['getTableIfOnlyTableInContent'](_0x26025a,_0x1bfa51);if(!_0x3e6e44||!fe(_0x3e6e44,void 0x0,_0x134706))return!0x1;const _0x298cb5=_0x134706[_0x42c3('0x2e')](_0x1bfa51['document'][_0x42c3('0x90')]);if(!_0x298cb5[_0x42c3('0x6f')])return!0x1;const _0x335226=_0x298cb5[0x0][_0x42c3('0xc')]('table'),_0x347fa5=_0x134706[_0x42c3('0x2c')](_0x298cb5),_0x2d681e=_0x134706['getColumnIndexes'](_0x298cb5),_0x1535ed={'startRow':_0x347fa5['first'],'endRow':_0x347fa5[_0x42c3('0x7c')],'startColumn':_0x2d681e[_0x42c3('0xa0')],'endColumn':_0x2d681e[_0x42c3('0x7c')]};return 0x1==_0x298cb5[_0x42c3('0x6f')]&&(_0x1535ed[_0x42c3('0x39')]+=_0x134706[_0x42c3('0x53')](_0x3e6e44)-0x1,_0x1535ed['endColumn']+=_0x134706['getColumns'](_0x3e6e44)-0x1),fe(_0x335226,_0x1535ed,_0x134706);}(_0x4e5397,_0x5a2e95,_0x198564[_0x42c3('0x18')],_0x4e25a3,_0x2de09c)&&(_0x3ec91a['stop'](),_0x5063b1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x198564[_0x42c3('0x18')][_0x42c3('0x6c')](()=>{_0x198564[_0x42c3('0x18')][_0x42c3('0x4a')](_0x3fe4eb[0x0],_0x3fe4eb[0x1],_0x3fe4eb[0x2],{'forceDefaultExecution':!0x0});const _0x5006af=_0xa1f25b(),{rowInsertionRanges:_0x52af91,columnInsertionRanges:_0x5c6cae,insertionRanges:_0x568d4b,deletionRanges:_0x57dbbd,cells:_0x1eb677}=_0x5063b1;_0x52af91[_0x42c3('0x6f')]&&_0x36f7ee[_0x42c3('0xa')](_0x52af91,_0x42c3('0x8a'),{'tablePasteChainId':_0x5006af}),_0x5c6cae[_0x42c3('0x6f')]&&_0x36f7ee[_0x42c3('0xa')](_0x5c6cae,'tablePasteColumn',{'tablePasteChainId':_0x5006af}),_0x568d4b[_0x42c3('0x6f')]&&_0x36f7ee[_0x42c3('0xa')](_0x568d4b,_0x42c3('0x20'),{'tablePasteChainId':_0x5006af,'skipNestingCheck':!0x0}),_0x57dbbd['length']&&_0x36f7ee[_0x42c3('0x9f')](_0x57dbbd,_0x42c3('0x20'),{'tablePasteChainId':_0x5006af,'skipNestingCheck':!0x0});const _0x1080bf=_0x36f7ee['markMultiRangeBlockFormat'](_0x1eb677['map'](({element:_0x344f36})=>_0x344f36),{'formatGroupId':_0xa1f25b()},[],'tablePasteCell',{'tablePasteChainId':_0x5006af});if(_0x1080bf){const _0x43fb73=_0x1080bf['getMarkers'](),_0xf1d7e7=[];for(const {element:_0x5e1631,attributes:_0x592a8d}of _0x1eb677){if(!_0x592a8d)continue;const _0x2e63b2=_0x198564[_0x42c3('0x18')][_0x42c3('0x29')](_0x5e1631),_0x5c8c33=_0x43fb73[_0x42c3('0xa3')](_0x2fedc3=>_0x2fedc3[_0x42c3('0x9e')]()['isEqual'](_0x2e63b2));_0x5c8c33&&_0xf1d7e7[_0x42c3('0x6e')]([_0x5c8c33[_0x42c3('0x78')],_0x592a8d]);}_0xf1d7e7['length']&&_0x1080bf[_0x42c3('0x38')]('markerAttributes',Object[_0x42c3('0x99')](_0xf1d7e7));}_0x5063b1=null;}));},{'priority':_0x1c2837[_0x42c3('0x67')]+0xa}),_0x198564['plugins'][_0x42c3('0x8c')]('TableClipboard')['on']('_replaceTableSlotCell',(_0x508b4d,_0x3d9096)=>{const [_0x365366,_0x5138e2,,_0xc83c02]=_0x3d9096;if(!_0x5063b1)return;_0x508b4d[_0x42c3('0x2f')]();const _0x2cf4ff=_0x365366[_0x42c3('0x51')],_0xafcef5=_0x5138e2,_0x205be9=ce(_0x2cf4ff),_0x41f92a=ce(_0xafcef5);_0x508b4d[_0x42c3('0x73')]=_0x2cf4ff;let _0xb6a873=null,_0x4afce1=null;if(_0x41f92a||_0x205be9){if(_0x205be9&&!_0x41f92a){_0xc83c02[_0x42c3('0x79')](_0x2cf4ff['getChild'](0x0));for(const _0x23e445 of Array['from'](_0xafcef5['getChildren']()))_0xc83c02[_0x42c3('0xb')](_0x23e445,_0x2cf4ff,_0x42c3('0x88'));const _0x4c1f06=_0x5063b1['rowInsertionIndexes']['includes'](_0x365366[_0x42c3('0x76')]),_0x36cc45=_0x5063b1['columnInsertionIndexes'][_0x42c3('0x58')](_0x365366['column']);_0x4c1f06||_0x36cc45||(_0xb6a873=_0xc83c02[_0x42c3('0x62')](_0x2cf4ff));}else _0x41f92a&&!_0x205be9&&(_0x4afce1=_0xc83c02['createRangeIn'](_0x2cf4ff));}else{const _0x4cb54b=_0xc83c02[_0x42c3('0x8e')](_0x42c3('0x35')),_0x45b23e=_0xc83c02['createElement'](_0x42c3('0x35'));_0xc83c02[_0x42c3('0x3e')](_0xc83c02['createRangeIn'](_0x2cf4ff),_0x45b23e),_0xc83c02[_0x42c3('0xb')](_0x4cb54b,_0x2cf4ff,0x0);for(const _0xcc3d92 of Array[_0x42c3('0x2')](_0xafcef5[_0x42c3('0x3a')]()))_0xc83c02[_0x42c3('0xb')](_0xcc3d92,_0x4cb54b,_0x42c3('0x88'));_0xb6a873=_0xc83c02[_0x42c3('0x29')](_0x4cb54b),_0x4afce1=_0xc83c02[_0x42c3('0x29')](_0x45b23e);}const _0x54fcea=Array[_0x42c3('0x2')](_0xafcef5[_0x42c3('0x81')]())[_0x42c3('0x15')](([_0xc782fa])=>le[_0x42c3('0x58')](_0xc782fa));_0x5063b1['cells'][_0x42c3('0x6e')]({'element':_0x2cf4ff,'attributes':_0x54fcea[_0x42c3('0x6f')]?Object['fromEntries'](_0x54fcea):null}),_0xb6a873&&_0x5063b1['insertionRanges']['push'](_0xb6a873),_0x4afce1&&_0x5063b1[_0x42c3('0x93')]['push'](_0x4afce1);},{'priority':_0x42c3('0x67')}),_0x4e25a3['on'](_0x42c3('0x96'),(_0xe2786d,_0x340582)=>{const [_0x13a4ad,_0x27b204={}]=_0x340582;if(!_0x5063b1)return;const _0x2cf703=_0x27b204['at']||0x0,_0x5d1791=_0x27b204[_0x42c3('0x8')]||0x1;_0x5063b1[_0x42c3('0x11')]=new Array(_0x5d1791)[_0x42c3('0x43')](_0x2cf703)['map']((_0x875f1b,_0x124714)=>_0x875f1b+_0x124714);for(const {cell:_0x1788f1}of _0x4e25a3[_0x42c3('0x85')](_0x13a4ad,{'startColumn':_0x2cf703,'endColumn':_0x2cf703+_0x5d1791-0x1}))_0x5063b1[_0x42c3('0x2d')][_0x42c3('0x6e')](_0x198564['model'][_0x42c3('0x29')](_0x1788f1));},{'priority':'low'}),_0x4e25a3['on'](_0x42c3('0x19'),(_0x48dc47,_0x46458a)=>{const [_0x40e2d2,_0x2d10fb={}]=_0x46458a;if(!_0x5063b1)return;const _0x1227bd=_0x2d10fb['at']||0x0,_0x22d441=_0x2d10fb[_0x42c3('0x97')]||0x1;_0x5063b1[_0x42c3('0x77')]=new Array(_0x22d441)[_0x42c3('0x43')](_0x1227bd)[_0x42c3('0x46')]((_0x38b68f,_0x17bec2)=>_0x38b68f+_0x17bec2);for(const {cell:_0x221568}of _0x4e25a3[_0x42c3('0x85')](_0x40e2d2,{'startRow':_0x1227bd,'endRow':_0x1227bd+_0x22d441-0x1}))_0x5063b1[_0x42c3('0x6a')][_0x42c3('0x6e')](_0x198564['model']['createRangeOn'](_0x221568));},{'priority':_0x42c3('0x16')}),_0x36f7ee[_0x42c3('0x6')][_0x42c3('0x23')](_0x4ac479=>{if(_0x4ac479[_0x42c3('0xa4')]&&_0x4ac479[_0x42c3('0xa4')][_0x42c3('0x5f')]('tablePaste'))return _0x4ac479['previous']?{}:{'type':_0x42c3('0x6b'),'content':_0x2a9e1c(_0x198564[_0x42c3('0xa1')],_0x42c3('0x48'))};});const _0xd01763=()=>!0x1;for(const _0x2f531e of[_0x42c3('0x20'),_0x42c3('0x1d'),_0x42c3('0x8a'),_0x42c3('0x54')])_0x36f7ee[_0x42c3('0x5a')][_0x42c3('0x3c')](_0x42c3('0x6b'),_0x2f531e,_0x42c3('0x50'),_0xd01763),_0x36f7ee['_suggestionFactory'][_0x42c3('0x3c')](_0x42c3('0x83'),_0x2f531e,'join',_0xd01763),_0x36f7ee[_0x42c3('0x5a')][_0x42c3('0x3c')](_0x42c3('0x98'),_0x2f531e,_0x42c3('0x50'),_0xd01763);_0x36f7ee['_suggestionFactory'][_0x42c3('0x3c')](_0x42c3('0x98'),_0x42c3('0x54'),'discard',_0xd01763),_0x36f7ee[_0x42c3('0x5a')][_0x42c3('0x3c')](_0x42c3('0x98'),_0x42c3('0x54'),_0x42c3('0x49'),(_0x35fe6b,_0x285e37,_0x10cf1e)=>{const _0x3a45cb=_0x35fe6b['map'](_0x133692=>_0x133692[_0x42c3('0x91')]())[_0x42c3('0x15')](_0xd25bf5=>_0xd25bf5),_0x18221f=new Map(_0x3a45cb[_0x42c3('0x46')](_0x34d61f=>[_0x34d61f,null]));if(_0x5063b1)for(const {element:_0x81f5e0,attributes:_0x488387}of _0x5063b1[_0x42c3('0x56')])_0x488387&&_0x18221f[_0x42c3('0xd')](_0x81f5e0,_0x488387);else{if(_0x10cf1e&&_0x10cf1e[_0x42c3('0x8f')])for(const [_0xbc5227,_0x28fbf7]of Object[_0x42c3('0x2a')](_0x10cf1e[_0x42c3('0x8f')])){const _0x45c3cf=_0x198564[_0x42c3('0x18')][_0x42c3('0x2b')][_0x42c3('0x8c')](_0xbc5227),_0x25b9f3=_0x45c3cf?_0x45c3cf[_0x42c3('0x9e')]()[_0x42c3('0x91')]():null;_0x25b9f3&&_0x18221f['set'](_0x25b9f3,_0x28fbf7);}}_0x198564['model'][_0x42c3('0x6c')](_0x12b918=>{for(const [_0x3baf5c,_0x1aadfe]of _0x18221f)_0x12b918[_0x42c3('0x9a')]({...ae,..._0x1aadfe},_0x3baf5c);});});const _0x28c69a=(_0x56a9de,_0x117766)=>{_0x36f7ee[_0x42c3('0x5a')][_0x42c3('0x3c')](_0x56a9de,_0x42c3('0x20'),_0x117766,(_0x5b32ab,_0x5dbba9,_0x45494c)=>{_0x198564['model'][_0x42c3('0x6c')](_0x239058=>{const _0x417204=[];for(const _0x49186c of _0x5b32ab){const _0x2ecf81=_0x49186c['start'][_0x42c3('0x42')];_0x2ecf81['is'](_0x42c3('0x75'),_0x42c3('0x35'))&&_0x417204[_0x42c3('0x6e')](_0x2ecf81);}_0x36f7ee['_suggestionFactory'][_0x42c3('0xa2')](_0x56a9de,null,_0x117766)(_0x5b32ab,_0x5dbba9,_0x45494c);for(const _0x5ed090 of _0x417204)_0x42c3('0x3d')!=_0x5ed090['root']['rootName']&&_0x239058[_0x42c3('0x52')](_0x5ed090);});});};_0x28c69a(_0x42c3('0x6b'),_0x42c3('0x49')),_0x28c69a(_0x42c3('0x6b'),_0x42c3('0x7f')),_0x28c69a('deletion',_0x42c3('0x49')),_0x28c69a('deletion','discard'),_0x36f7ee['_suggestionFactory'][_0x42c3('0x3c')](_0x42c3('0x6b'),_0x42c3('0x8a'),'discard',_0x338076=>{const _0x4a17f4=_0x338076[_0x42c3('0x46')](_0x4b0419=>_0x4b0419[_0x42c3('0x91')]()),_0x5cc0f2=_0x4a17f4[0x0][_0x42c3('0xc')](_0x42c3('0x7e')),{minRow:_0x216a46,maxRow:_0x1c70d6}=_0x3556c4['_getCoordsForCells'](_0x4a17f4);_0x4e25a3[_0x42c3('0x9d')](_0x5cc0f2,{'at':_0x216a46,'rows':_0x1c70d6-_0x216a46+0x1});}),_0x36f7ee[_0x42c3('0x5a')]['registerCustomCallback']('insertion','tablePasteColumn',_0x42c3('0x7f'),_0x337b0f=>{const _0x4cc483=_0x337b0f['map'](_0x1f491a=>_0x1f491a[_0x42c3('0x91')]()),_0x4553af=_0x4cc483[0x0][_0x42c3('0xc')](_0x42c3('0x7e')),{minColumn:_0x12638a,maxColumn:_0x132e6b}=_0x3556c4[_0x42c3('0x7')](_0x4cc483);_0x4e25a3[_0x42c3('0x27')](_0x4553af,{'at':_0x12638a,'columns':_0x132e6b-_0x12638a+0x1});});const _0x41b835=(_0x4ec6e1,_0x23c65a)=>{if(!_0x23c65a[_0x42c3('0xa4')]||!_0x23c65a[_0x42c3('0xa4')][_0x42c3('0x5f')](_0x42c3('0x20')))return;const _0x3f3677=_0x23c65a[_0x42c3('0x13')][_0x42c3('0x72')],_0x5dad5d=_0x36f7ee[_0x42c3('0x1f')]()['filter'](_0x2a9de2=>_0x2a9de2[_0x42c3('0x45')]&&_0x2a9de2[_0x42c3('0x13')]&&_0x2a9de2['attributes']['tablePasteChainId']==_0x3f3677);_0x5dad5d[_0x42c3('0x6f')]&&_0x23c65a[_0x42c3('0x9')]()[_0x42c3('0x6f')]!=_0x5dad5d[_0x42c3('0x6f')]&&_0x5dad5d[_0x42c3('0x5')]((_0xc413df,_0xeb02ac)=>(_0xc413df[_0x42c3('0x9b')]=_0xeb02ac,_0xeb02ac[_0x42c3('0x0')]=_0xc413df,_0xeb02ac));};function _0x2be153(_0x1fa987,_0x2ce122=!0x0){const {id:_0x4f61b6}=_0x36f7ee[_0x42c3('0x70')](_0x1fa987[_0x42c3('0x71')]),_0x5438ae=[_0x42c3('0x68'),_0x42c3('0x7a')],_0x5ee2f7=_0x36f7ee['activeMarkers']['includes'](_0x1fa987['markerName']);return _0x5ee2f7&&_0x5438ae[_0x42c3('0x6e')]('ck-suggestion-marker--active'),{'classes':_0x5438ae,'attributes':{'data-suggestion':_0x4f61b6},'priority':_0x5ee2f7&&_0x2ce122?0xbc2:0xbb8};}_0x36f7ee['on']('suggestionLoaded',_0x41b835,{'priority':'high'}),_0x36f7ee['on'](_0x42c3('0x5e'),_0x41b835,{'priority':_0x42c3('0x67')}),_0x198564[_0x42c3('0x18')][_0x42c3('0x1a')]['registerPostFixer'](()=>{let _0x79c41c=!0x1;const _0x10f5f0=Array[_0x42c3('0x2')](_0x198564[_0x42c3('0x18')]['document']['differ'][_0x42c3('0x26')]());for(const {name:_0x3a5f08,data:_0xb0214e}of _0x10f5f0){const {group:_0x26974c,type:_0x53c948,id:_0x624664}=_0x36f7ee[_0x42c3('0x70')](_0x3a5f08);if(_0x42c3('0x8d')!=_0x26974c||_0x42c3('0x83')!=_0x53c948||_0xb0214e[_0x42c3('0x1')])continue;if(!_0x36f7ee['hasSuggestion'](_0x624664))continue;const _0x5cc2f7=_0x36f7ee[_0x42c3('0x60')](_0x624664)[_0x42c3('0xe')](),_0x27eea2=_0x198564['plugins'][_0x42c3('0x8c')](_0x42c3('0x92'))['me'];for(const _0x2628f0 of _0x36f7ee['getSuggestions']()){if(!_0x2628f0[_0x42c3('0x45')]||_0x2628f0['author']!=_0x27eea2)continue;if('formatBlock'!=_0x2628f0[_0x42c3('0x31')]||_0x42c3('0x54')!=_0x2628f0[_0x42c3('0xa4')])continue;if(_0x2628f0[_0x42c3('0xe')]()[_0x42c3('0x30')](_0x3af731=>_0x5cc2f7[_0x42c3('0x64')](_0x409df4=>_0x409df4[_0x42c3('0x34')](_0x3af731,!0x0))))for(const _0x5be5a0 of _0x2628f0[_0x42c3('0x9')]())_0x5be5a0[_0x42c3('0x45')]&&(_0x5be5a0[_0x42c3('0x7f')](),_0x79c41c=!0x0);}}return _0x79c41c;}),_0x198564[_0x42c3('0x18')][_0x42c3('0x1a')][_0x42c3('0x4c')](_0x50d1b6=>{const _0x333a2b=_0x198564[_0x42c3('0x41')][_0x42c3('0x8c')](_0x42c3('0x37'));if(!_0x333a2b||!_0x333a2b[_0x42c3('0x8b')][_0x42c3('0x1e')](_0x50d1b6['batch']))return!0x1;let _0x47c71f=!0x1;const _0x4947d1=_0x198564[_0x42c3('0x3f')]['get'](_0x42c3('0x92'))['me'],_0x41fc1b=_0x198564[_0x42c3('0x18')][_0x42c3('0x1a')]['differ'][_0x42c3('0x12')](),_0x27cb16=Array['from'](_0x198564[_0x42c3('0x18')][_0x42c3('0x1a')][_0x42c3('0x7d')]['getChangedMarkers']())[_0x42c3('0x15')](({name:_0x42387e,data:_0x5bf084})=>{const {group:_0x4538d4,subType:_0x1651da,authorId:_0x4181fb}=_0x36f7ee[_0x42c3('0x70')](_0x42387e);return _0x42c3('0x8d')==_0x4538d4&&_0x42c3('0x20')==_0x1651da&&_0x4181fb==_0x4947d1['id']&&!_0x5bf084[_0x42c3('0x1')];});for(const _0xa4beb8 of _0x41fc1b){if('insert'!=_0xa4beb8[_0x42c3('0x31')]||_0x42c3('0x35')!=_0xa4beb8[_0x42c3('0x78')]||0x1!=_0xa4beb8[_0x42c3('0x6f')])continue;const _0xeb8e08=_0x50d1b6['createRange'](_0xa4beb8[_0x42c3('0x4d')],_0xa4beb8[_0x42c3('0x4d')]['getShiftedBy'](0x1));if(!_0x27cb16[_0x42c3('0xa3')](({data:_0x200023})=>_0x200023[_0x42c3('0x32')][_0x42c3('0x22')](_0xeb8e08)))for(const {name:_0xf99892,data:_0x321c01}of _0x27cb16)if(_0xeb8e08['containsRange'](_0x321c01[_0x42c3('0x32')])){_0x50d1b6[_0x42c3('0x9c')](_0xf99892,{'range':_0xeb8e08}),_0x47c71f=!0x0;break;}}return _0x47c71f;}),_0x198564[_0x42c3('0x18')]['document'][_0x42c3('0x4c')](_0x26cffb=>{let _0x4e3bd6=!0x1;const _0x2fe7f4=_0x198564[_0x42c3('0x3f')][_0x42c3('0x8c')](_0x42c3('0x92'))['me'],_0x4678ee=_0x36f7ee[_0x42c3('0x1f')]()[_0x42c3('0x15')](_0x286100=>_0x286100[_0x42c3('0x45')]&&_0x286100[_0x42c3('0x28')]==_0x2fe7f4),_0x4455f8=new Set(),_0x45287e=new Set();for(const _0x5e5fa0 of _0x4678ee)if(_0x42c3('0x20')==_0x5e5fa0['subType'])for(const _0x44ef22 of _0x5e5fa0[_0x42c3('0x24')]()){const _0x394a5e=_0x44ef22[_0x42c3('0x9e')]()[_0x42c3('0x91')]();if(_0x394a5e){if(_0x394a5e['is'](_0x42c3('0x75'),'tableCellSuggestion')&&ce(_0x394a5e)){_0x5e5fa0[_0x42c3('0x17')](_0x44ef22[_0x42c3('0x78')]),_0x4455f8[_0x42c3('0x65')](_0x394a5e),_0x4e3bd6=!0x0;const _0x957096=_0x394a5e[_0x42c3('0x4')],_0x2f01a8=_0x394a5e[_0x42c3('0x40')],_0x221cdb=_0x957096&&_0x957096['is'](_0x42c3('0x75'),_0x42c3('0x35')),_0x3315d2=_0x2f01a8&&_0x2f01a8['is'](_0x42c3('0x75'),'tableCellSuggestion');_0x221cdb&&!_0x4455f8[_0x42c3('0x1e')](_0x957096)&&_0x45287e[_0x42c3('0x65')](_0x957096),_0x3315d2&&!_0x4455f8['has'](_0x2f01a8)&&_0x45287e[_0x42c3('0x65')](_0x2f01a8);}else _0x394a5e['is'](_0x42c3('0x75'),'paragraph')&&_0x394a5e[_0x42c3('0x69')]&&(_0x5e5fa0[_0x42c3('0x17')](_0x44ef22[_0x42c3('0x78')]),_0x4e3bd6=!0x0);}}else{if('tablePasteCell'==_0x5e5fa0[_0x42c3('0xa4')]){if(!_0x5e5fa0[_0x42c3('0x13')]||!_0x5e5fa0['attributes'][_0x42c3('0x72')])continue;const _0x14ad23=_0x5e5fa0[_0x42c3('0x13')][_0x42c3('0x8f')];if(_0x14ad23&&Object[_0x42c3('0x57')](_0x14ad23)[_0x42c3('0x6f')])continue;const _0xc62230=_0x5e5fa0[_0x42c3('0x13')][_0x42c3('0x72')];let _0x4b0f20=!0x0,_0x12be91=!0x0;for(const _0x8ebf8d of _0x4678ee)if(_0x8ebf8d['subType']&&_0x8ebf8d[_0x42c3('0xa4')][_0x42c3('0x5f')]('tablePaste')){if(!_0x8ebf8d['attributes']['tablePasteChainId']){_0x12be91=!0x1;break;}if(_0x8ebf8d['id']!=_0x5e5fa0['id']&&_0x8ebf8d[_0x42c3('0x13')][_0x42c3('0x72')]==_0xc62230){_0x4b0f20=!0x1;break;}}_0x12be91&&_0x4b0f20&&(_0x5e5fa0['removeMarkers'](),_0x4e3bd6=!0x0);}}for(const _0x391100 of _0x4455f8)_0x26cffb[_0x42c3('0x79')](_0x391100);for(const _0x4de70f of _0x45287e)_0x26cffb[_0x42c3('0x52')](_0x4de70f);return _0x4e3bd6;}),_0x198564[_0x42c3('0x6d')][_0x42c3('0x21')](_0x42c3('0xf'))[_0x42c3('0x14')]({'model':_0x42c3('0x47'),'view':(_0x5270b7,_0x2abfd2)=>_0x2be153(_0x5270b7),'converterPriority':_0x42c3('0x67')}),_0x198564[_0x42c3('0x6d')][_0x42c3('0x21')](_0x42c3('0x87'))[_0x42c3('0x14')]({'model':_0x42c3('0x47'),'view':(_0x4d47ee,_0x490a32)=>_0x490a32['options'][_0x42c3('0x4b')]?_0x2be153(_0x4d47ee,!0x1):null,'converterPriority':'high'});const _0x223085=_0x198564['editing'][_0x42c3('0x95')];this[_0x42c3('0x61')](_0x223085[_0x42c3('0x1a')],_0x42c3('0x1b'),(_0x294e1e,_0xb7912a)=>{const _0x2700dd=[];for(const _0x247328 of _0x223085['createRangeIn'](_0xb7912a[_0x42c3('0x25')])[_0x42c3('0x80')]())_0x247328['is'](_0x42c3('0x75'),_0x42c3('0x36'))&&_0x2700dd[_0x42c3('0x6e')](_0x247328);_0x223085[_0x42c3('0x6c')](_0x4e5642=>{for(const _0x350635 of _0x2700dd)_0x4e5642[_0x42c3('0x3b')](_0x4e5642['createRangeIn'](_0x350635),_0x4e5642['createPositionBefore'](_0x350635)),_0x4e5642[_0x42c3('0x79')](_0x350635);});});}}function ce(_0x189d01){if(_0x189d01['isEmpty'])return!0x0;const _0x162e7e=_0x189d01[_0x42c3('0x5d')](0x0);return _0x162e7e['is'](_0x42c3('0x75'),_0x42c3('0x5b'))&&_0x162e7e[_0x42c3('0x69')];}function fe(_0x414a1b,_0x3890f3={},_0x10666c){for(const {isAnchor:_0x8c9ad0,cellHeight:_0x101f4a,cellWidth:_0x592b0d}of _0x10666c[_0x42c3('0x85')](_0x414a1b,{'includeAllSlots':!0x0,..._0x3890f3}))if(!_0x8c9ad0||0x1!=_0x101f4a||0x1!=_0x592b0d)return!0x1;return!0x0;}
|
|
23
|
+
const _0x12bd=['getRows','includes','tableCellSuggestion','markerToHighlight','entries','insertionRanges','newRange','root','rowInsertionIndexes','options','name','showSuggestionHighlights','Users','deletionRanges','first','afterInit','rootName','endRow','add','tableCellHorizontalAlignment','createPositionBefore','$graveyard','getRowIndexes','set','for','high','markMultiRangeBlockFormat','next','tablePasteColumn','rows','getSuggestions','differ','tablePasteRow','elementToElement','_createdBatches','getSuggestion','tablePasteCell','tableCellBorderColor','insertColumns','join','length','createTableWalker','suggestionUnloaded','type','move','locale','suggestion-td','TableUtils','createRange','cells','*Replace\x20table\x20cells*','attributes','insertContent','view','removeMarkers','redo','has','oldRange','markMultiRangeDeletion','getRanges','tableCell','getChanges','every','change','createRangeOn','setAttribute','ck-suggestion-marker-insertion','fromEntries','start','nodeAfter','documentSelection','insertRows','createElement','accept','document','tableCellBackgroundColor','insert','last','author','columnInsertionIndexes','unwrap','getChildren','registerDescriptionCallback','_descriptionFactory','tableCellBorderStyle','forceDefaultExecution','paragraph','_isForcedDefaultExecutionBlock','editor','subType','plugins','containsRange','isInContent','discard','_splitMarkerName','map','getAllAdjacentSuggestions','setAttributes','tableCellBorderWidth','listenTo','filter','removeRows','hasSuggestion','insertion','suggestion','isEmpty','cell','stop','getMarkers','getSuggestionCallback','findAncestor','position','formatBlock','model','suggestion:formatBlock:tablePasteCell','tablePasteChainId','markMultiRangeInsertion','remove','registerCustomCallback','deletion','tablePaste','low','push','TrackChangesEditing','_suggestionFactory','from','batch','markerAttributes','updateMarker','value','registerPostFixer','selection','element','previous','getColumnIndexes','TableClipboard','rowInsertionRanges','getContainedElement','_replaceTableSlotCell','commands','get','ck-suggestion-marker--active','startsWith','createRangeIn','isEqual','editingDowncast','getRange','getChangedMarkers','conversion','_getCoordsForCells','find','end','return','getTableIfOnlyTableInContent','editing','wrap','markerName','column','some','markers','previousSibling','getColumns','register','table'];(function(_0x483898,_0x12bdd4){const _0x1af1db=function(_0x21d0c9){while(--_0x21d0c9){_0x483898['push'](_0x483898['shift']());}};_0x1af1db(++_0x12bdd4);}(_0x12bd,0x76));const _0x1af1=function(_0x483898,_0x12bdd4){_0x483898=_0x483898-0x0;let _0x1af1db=_0x12bd[_0x483898];return _0x1af1db;};import{getTranslation as _0x415e9c}from'../utils/common-translations';import{Plugin as _0x539ac7}from'ckeditor5/src/core';import{uid as _0x19fc1f,priorities as _0x3369cb}from'ckeditor5/src/utils';import _0x46247e from'./table';const le=[_0x1af1('0x90'),_0x1af1('0x53'),_0x1af1('0x82'),_0x1af1('0x41'),'tableCellVerticalAlignment',_0x1af1('0x79'),'tableCellPadding'],ae=Object[_0x1af1('0x71')](le[_0x1af1('0x8d')](_0x150c11=>[_0x150c11,null]));export default class wt extends _0x539ac7{static get['requires'](){return[_0x46247e];}[_0x1af1('0x3d')](){const _0x3c81d6=this[_0x1af1('0x86')];if(!_0x3c81d6[_0x1af1('0x88')]['has'](_0x1af1('0x11')))return;const _0x5d8906=_0x3c81d6[_0x1af1('0x88')]['get'](_0x1af1('0x5')),_0x393c9a=_0x3c81d6['plugins'][_0x1af1('0x16')](_0x1af1('0x5d')),_0x47f257=_0x3c81d6['plugins'][_0x1af1('0x16')](_0x46247e),_0x2be902=_0x3c81d6[_0x1af1('0x88')][_0x1af1('0x16')](_0x1af1('0x11'));_0x47f257['_tablePostFixingSubtypes'][_0x1af1('0x4')](_0x1af1('0x4e'),'tablePasteColumn'),_0x3c81d6[_0x1af1('0x9f')]['schema'][_0x1af1('0x2c')]('tableCellSuggestion',{'allowIn':_0x1af1('0x6a'),'allowContentOf':_0x1af1('0x6a'),'isLimit':!0x0}),_0x3c81d6[_0x1af1('0x1e')][_0x1af1('0x4f')]({'model':_0x1af1('0x30'),'view':_0x1af1('0x5c')});let _0x5d29b5=null;_0x3c81d6['model']['on'](_0x1af1('0x62'),(_0x2d95fd,_0x4099e4)=>{const [_0x116667,_0x5b4f3a]=_0x4099e4,_0x2a4070=_0x4099e4[_0x4099e4[_0x1af1('0x56')]-0x1];_0x2a4070&&_0x2a4070[_0x1af1('0x83')]||_0x5d8906[_0x1af1('0x85')]||this[_0x1af1('0x86')][_0x1af1('0x15')][_0x1af1('0x16')]('trackChanges')[_0x1af1('0xb')]&&function(_0x54cd99,_0x46256b,_0x1d5dbe,_0x885788,_0x2e9beb){if(_0x46256b&&!_0x46256b['is'](_0x1af1('0x74')))return!0x1;const _0x412a38=_0x2e9beb[_0x1af1('0x23')](_0x54cd99,_0x1d5dbe);if(!_0x412a38||!fe(_0x412a38,void 0x0,_0x885788))return!0x1;const _0x28db9a=_0x885788['getSelectionAffectedTableCells'](_0x1d5dbe['document'][_0x1af1('0xd')]);if(!_0x28db9a['length'])return!0x1;const _0x408319=_0x28db9a[0x0][_0x1af1('0x9c')](_0x1af1('0x2d')),_0x5116ba=_0x885788[_0x1af1('0x44')](_0x28db9a),_0x534cec=_0x885788[_0x1af1('0x10')](_0x28db9a),_0x5241af={'startRow':_0x5116ba[_0x1af1('0x3c')],'endRow':_0x5116ba[_0x1af1('0x7b')],'startColumn':_0x534cec[_0x1af1('0x3c')],'endColumn':_0x534cec[_0x1af1('0x7b')]};return 0x1==_0x28db9a[_0x1af1('0x56')]&&(_0x5241af[_0x1af1('0x3f')]+=_0x885788[_0x1af1('0x2e')](_0x412a38)-0x1,_0x5241af['endColumn']+=_0x885788[_0x1af1('0x2b')](_0x412a38)-0x1),fe(_0x408319,_0x5241af,_0x885788);}(_0x116667,_0x5b4f3a,_0x3c81d6['model'],_0x393c9a,_0x2be902)&&(_0x2d95fd[_0x1af1('0x99')](),_0x5d29b5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x6d')](()=>{_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x62')](_0x4099e4[0x0],_0x4099e4[0x1],_0x4099e4[0x2],{'forceDefaultExecution':!0x0});const _0x404386=_0x19fc1f(),{rowInsertionRanges:_0x3d95d2,columnInsertionRanges:_0x1a548e,insertionRanges:_0x4e5c3c,deletionRanges:_0x270733,cells:_0x439d38}=_0x5d29b5;_0x3d95d2[_0x1af1('0x56')]&&_0x5d8906[_0x1af1('0xa2')](_0x3d95d2,'tablePasteRow',{'tablePasteChainId':_0x404386}),_0x1a548e[_0x1af1('0x56')]&&_0x5d8906['markMultiRangeInsertion'](_0x1a548e,_0x1af1('0x4a'),{'tablePasteChainId':_0x404386}),_0x4e5c3c['length']&&_0x5d8906[_0x1af1('0xa2')](_0x4e5c3c,_0x1af1('0x2'),{'tablePasteChainId':_0x404386,'skipNestingCheck':!0x0}),_0x270733[_0x1af1('0x56')]&&_0x5d8906[_0x1af1('0x68')](_0x270733,_0x1af1('0x2'),{'tablePasteChainId':_0x404386,'skipNestingCheck':!0x0});const _0x36e239=_0x5d8906[_0x1af1('0x48')](_0x439d38[_0x1af1('0x8d')](({element:_0xc5bd1})=>_0xc5bd1),{'formatGroupId':_0x19fc1f()},[],_0x1af1('0x52'),{'tablePasteChainId':_0x404386});if(_0x36e239){const _0x579755=_0x36e239[_0x1af1('0x9a')](),_0x34a9ff=[];for(const {element:_0x4d0624,attributes:_0x558aa4}of _0x439d38){if(!_0x558aa4)continue;const _0x2f7ec6=_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x6e')](_0x4d0624),_0x10c99b=_0x579755[_0x1af1('0x20')](_0x1cded1=>_0x1cded1['getRange']()[_0x1af1('0x1a')](_0x2f7ec6));_0x10c99b&&_0x34a9ff['push']([_0x10c99b[_0x1af1('0x38')],_0x558aa4]);}_0x34a9ff[_0x1af1('0x56')]&&_0x36e239[_0x1af1('0x6f')]('markerAttributes',Object[_0x1af1('0x71')](_0x34a9ff));}_0x5d29b5=null;}));},{'priority':_0x3369cb['high']+0xa}),_0x3c81d6[_0x1af1('0x88')][_0x1af1('0x16')](_0x1af1('0x11'))['on'](_0x1af1('0x14'),(_0x1b35de,_0x3bc58e)=>{const [_0x373cbc,_0x54a8e8,,_0x226d43]=_0x3bc58e;if(!_0x5d29b5)return;_0x1b35de[_0x1af1('0x99')]();const _0x642463=_0x373cbc[_0x1af1('0x98')],_0x2bb803=_0x54a8e8,_0x4a188b=ce(_0x642463),_0x4c8dcf=ce(_0x2bb803);_0x1b35de[_0x1af1('0x22')]=_0x642463;let _0x517ce2=null,_0x5eee1f=null;if(_0x4c8dcf||_0x4a188b){if(_0x4a188b&&!_0x4c8dcf){_0x226d43[_0x1af1('0xa3')](_0x642463['getChild'](0x0));for(const _0x5be8d7 of Array[_0x1af1('0x7')](_0x2bb803[_0x1af1('0x7f')]()))_0x226d43[_0x1af1('0x7a')](_0x5be8d7,_0x642463,'end');const _0x2087e6=_0x5d29b5[_0x1af1('0x36')][_0x1af1('0x2f')](_0x373cbc['row']),_0x31effd=_0x5d29b5['columnInsertionIndexes'][_0x1af1('0x2f')](_0x373cbc[_0x1af1('0x27')]);_0x2087e6||_0x31effd||(_0x517ce2=_0x226d43[_0x1af1('0x19')](_0x642463));}else _0x4c8dcf&&!_0x4a188b&&(_0x5eee1f=_0x226d43[_0x1af1('0x19')](_0x642463));}else{const _0x461bcd=_0x226d43[_0x1af1('0x76')](_0x1af1('0x30')),_0x1e9d3d=_0x226d43[_0x1af1('0x76')](_0x1af1('0x30'));_0x226d43[_0x1af1('0x25')](_0x226d43[_0x1af1('0x19')](_0x642463),_0x1e9d3d),_0x226d43[_0x1af1('0x7a')](_0x461bcd,_0x642463,0x0);for(const _0x56a6d8 of Array[_0x1af1('0x7')](_0x2bb803[_0x1af1('0x7f')]()))_0x226d43[_0x1af1('0x7a')](_0x56a6d8,_0x461bcd,_0x1af1('0x21'));_0x517ce2=_0x226d43[_0x1af1('0x6e')](_0x461bcd),_0x5eee1f=_0x226d43[_0x1af1('0x6e')](_0x1e9d3d);}const _0x5e7e2f=Array[_0x1af1('0x7')](_0x2bb803['getAttributes']())[_0x1af1('0x92')](([_0x326e15])=>le[_0x1af1('0x2f')](_0x326e15));_0x5d29b5[_0x1af1('0x5f')]['push']({'element':_0x642463,'attributes':_0x5e7e2f[_0x1af1('0x56')]?Object[_0x1af1('0x71')](_0x5e7e2f):null}),_0x517ce2&&_0x5d29b5[_0x1af1('0x33')]['push'](_0x517ce2),_0x5eee1f&&_0x5d29b5[_0x1af1('0x3b')][_0x1af1('0x4')](_0x5eee1f);},{'priority':_0x1af1('0x47')}),_0x393c9a['on'](_0x1af1('0x54'),(_0x1e17d3,_0x52f728)=>{const [_0x491083,_0x289a42={}]=_0x52f728;if(!_0x5d29b5)return;const _0x1f1cad=_0x289a42['at']||0x0,_0x34bbbc=_0x289a42['columns']||0x1;_0x5d29b5[_0x1af1('0x7d')]=new Array(_0x34bbbc)['fill'](_0x1f1cad)[_0x1af1('0x8d')]((_0x51b539,_0x29be28)=>_0x51b539+_0x29be28);for(const {cell:_0x13b128}of _0x393c9a[_0x1af1('0x57')](_0x491083,{'startColumn':_0x1f1cad,'endColumn':_0x1f1cad+_0x34bbbc-0x1}))_0x5d29b5['columnInsertionRanges'][_0x1af1('0x4')](_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x6e')](_0x13b128));},{'priority':_0x1af1('0x3')}),_0x393c9a['on'](_0x1af1('0x75'),(_0x96ccb6,_0x26de40)=>{const [_0x48ea20,_0x1a158f={}]=_0x26de40;if(!_0x5d29b5)return;const _0x7209d6=_0x1a158f['at']||0x0,_0xa5e2c=_0x1a158f[_0x1af1('0x4b')]||0x1;_0x5d29b5[_0x1af1('0x36')]=new Array(_0xa5e2c)['fill'](_0x7209d6)[_0x1af1('0x8d')]((_0x2c63d0,_0x3ed200)=>_0x2c63d0+_0x3ed200);for(const {cell:_0x54bb59}of _0x393c9a[_0x1af1('0x57')](_0x48ea20,{'startRow':_0x7209d6,'endRow':_0x7209d6+_0xa5e2c-0x1}))_0x5d29b5[_0x1af1('0x12')]['push'](_0x3c81d6[_0x1af1('0x9f')]['createRangeOn'](_0x54bb59));},{'priority':_0x1af1('0x3')}),_0x5d8906[_0x1af1('0x81')][_0x1af1('0x80')](_0x573848=>{if(_0x573848[_0x1af1('0x87')]&&_0x573848[_0x1af1('0x87')][_0x1af1('0x18')]('tablePaste'))return _0x573848['previous']?{}:{'type':_0x1af1('0x95'),'content':_0x415e9c(_0x3c81d6[_0x1af1('0x5b')],_0x1af1('0x60'))};});const _0x517604=()=>!0x1;for(const _0x5487f2 of[_0x1af1('0x2'),_0x1af1('0x4a'),_0x1af1('0x4e'),_0x1af1('0x52')])_0x5d8906[_0x1af1('0x6')][_0x1af1('0x0')](_0x1af1('0x95'),_0x5487f2,'join',_0x517604),_0x5d8906[_0x1af1('0x6')]['registerCustomCallback'](_0x1af1('0x1'),_0x5487f2,_0x1af1('0x55'),_0x517604),_0x5d8906[_0x1af1('0x6')]['registerCustomCallback'](_0x1af1('0x9e'),_0x5487f2,'join',_0x517604);_0x5d8906['_suggestionFactory']['registerCustomCallback'](_0x1af1('0x9e'),'tablePasteCell',_0x1af1('0x8b'),_0x517604),_0x5d8906[_0x1af1('0x6')]['registerCustomCallback'](_0x1af1('0x9e'),_0x1af1('0x52'),_0x1af1('0x77'),(_0x413588,_0x2a8f6d,_0x5a08ff)=>{const _0x15ea34=_0x413588[_0x1af1('0x8d')](_0x1c8938=>_0x1c8938[_0x1af1('0x13')]())[_0x1af1('0x92')](_0x23da3e=>_0x23da3e),_0x27d360=new Map(_0x15ea34[_0x1af1('0x8d')](_0x1535ce=>[_0x1535ce,null]));if(_0x5d29b5)for(const {element:_0x32b464,attributes:_0x5c7326}of _0x5d29b5[_0x1af1('0x5f')])_0x5c7326&&_0x27d360[_0x1af1('0x45')](_0x32b464,_0x5c7326);else{if(_0x5a08ff&&_0x5a08ff[_0x1af1('0x9')])for(const [_0x4655a4,_0x531fb6]of Object[_0x1af1('0x32')](_0x5a08ff[_0x1af1('0x9')])){const _0x200cfc=_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x29')]['get'](_0x4655a4),_0x12d08f=_0x200cfc?_0x200cfc[_0x1af1('0x1c')]()['getContainedElement']():null;_0x12d08f&&_0x27d360[_0x1af1('0x45')](_0x12d08f,_0x531fb6);}}_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x6d')](_0x36ecb3=>{for(const [_0x2e45c1,_0x5ec78c]of _0x27d360)_0x36ecb3[_0x1af1('0x8f')]({...ae,..._0x5ec78c},_0x2e45c1);});});const _0x16d74a=(_0xcb8be1,_0x31a532)=>{_0x5d8906[_0x1af1('0x6')]['registerCustomCallback'](_0xcb8be1,_0x1af1('0x2'),_0x31a532,(_0x2f6fe4,_0x577eb7,_0x484f61)=>{_0x3c81d6['model'][_0x1af1('0x6d')](_0x54c3fb=>{const _0x371863=[];for(const _0x3da90b of _0x2f6fe4){const _0x11ff9e=_0x3da90b[_0x1af1('0x72')][_0x1af1('0x73')];_0x11ff9e['is'](_0x1af1('0xe'),_0x1af1('0x30'))&&_0x371863[_0x1af1('0x4')](_0x11ff9e);}_0x5d8906[_0x1af1('0x6')][_0x1af1('0x9b')](_0xcb8be1,null,_0x31a532)(_0x2f6fe4,_0x577eb7,_0x484f61);for(const _0x3525a8 of _0x371863)_0x1af1('0x43')!=_0x3525a8[_0x1af1('0x35')][_0x1af1('0x3e')]&&_0x54c3fb['unwrap'](_0x3525a8);});});};_0x16d74a(_0x1af1('0x95'),'accept'),_0x16d74a(_0x1af1('0x95'),_0x1af1('0x8b')),_0x16d74a(_0x1af1('0x1'),_0x1af1('0x77')),_0x16d74a(_0x1af1('0x1'),'discard'),_0x5d8906[_0x1af1('0x6')][_0x1af1('0x0')](_0x1af1('0x95'),'tablePasteRow',_0x1af1('0x8b'),_0x11c0f6=>{const _0x452eee=_0x11c0f6[_0x1af1('0x8d')](_0x3a1864=>_0x3a1864[_0x1af1('0x13')]()),_0x56533d=_0x452eee[0x0][_0x1af1('0x9c')](_0x1af1('0x2d')),{minRow:_0x15dbd4,maxRow:_0x510d43}=_0x47f257['_getCoordsForCells'](_0x452eee);_0x393c9a[_0x1af1('0x93')](_0x56533d,{'at':_0x15dbd4,'rows':_0x510d43-_0x15dbd4+0x1});}),_0x5d8906[_0x1af1('0x6')]['registerCustomCallback'](_0x1af1('0x95'),_0x1af1('0x4a'),_0x1af1('0x8b'),_0x2d04c8=>{const _0x2c892a=_0x2d04c8[_0x1af1('0x8d')](_0x317b25=>_0x317b25[_0x1af1('0x13')]()),_0x187d6c=_0x2c892a[0x0]['findAncestor']('table'),{minColumn:_0x59d073,maxColumn:_0x15fc29}=_0x47f257[_0x1af1('0x1f')](_0x2c892a);_0x393c9a['removeColumns'](_0x187d6c,{'at':_0x59d073,'columns':_0x15fc29-_0x59d073+0x1});});const _0x297139=(_0x5cf062,_0xa563d9)=>{if(!_0xa563d9[_0x1af1('0x87')]||!_0xa563d9[_0x1af1('0x87')]['startsWith'](_0x1af1('0x2')))return;const _0x2c5c52=_0xa563d9[_0x1af1('0x61')][_0x1af1('0xa1')],_0x5a8aeb=_0x5d8906[_0x1af1('0x4c')]()[_0x1af1('0x92')](_0x45e2a7=>_0x45e2a7[_0x1af1('0x8a')]&&_0x45e2a7[_0x1af1('0x61')]&&_0x45e2a7['attributes'][_0x1af1('0xa1')]==_0x2c5c52);_0x5a8aeb['length']&&_0xa563d9[_0x1af1('0x8e')]()[_0x1af1('0x56')]!=_0x5a8aeb['length']&&_0x5a8aeb['reduce']((_0x317c90,_0x33dab8)=>(_0x317c90[_0x1af1('0x49')]=_0x33dab8,_0x33dab8[_0x1af1('0xf')]=_0x317c90,_0x33dab8));};function _0x2036ab(_0x2ce291,_0x19ad11=!0x0){const {id:_0x4a5bab}=_0x5d8906[_0x1af1('0x8c')](_0x2ce291['markerName']),_0x3ad9ce=['ck-suggestion-marker',_0x1af1('0x70')],_0x91869d=_0x5d8906['activeMarkers'][_0x1af1('0x2f')](_0x2ce291[_0x1af1('0x26')]);return _0x91869d&&_0x3ad9ce['push'](_0x1af1('0x17')),{'classes':_0x3ad9ce,'attributes':{'data-suggestion':_0x4a5bab},'priority':_0x91869d&&_0x19ad11?0xbc2:0xbb8};}_0x5d8906['on']('suggestionLoaded',_0x297139,{'priority':_0x1af1('0x47')}),_0x5d8906['on'](_0x1af1('0x58'),_0x297139,{'priority':'high'}),_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x78')][_0x1af1('0xc')](()=>{let _0x1c9736=!0x1;const _0x5e5cdf=Array[_0x1af1('0x7')](_0x3c81d6['model'][_0x1af1('0x78')][_0x1af1('0x4d')][_0x1af1('0x1d')]());for(const {name:_0x334645,data:_0x39478b}of _0x5e5cdf){const {group:_0x51d1b0,type:_0xdf673b,id:_0x2dc24e}=_0x5d8906[_0x1af1('0x8c')](_0x334645);if(_0x1af1('0x96')!=_0x51d1b0||_0x1af1('0x1')!=_0xdf673b||_0x39478b['oldRange'])continue;if(!_0x5d8906[_0x1af1('0x94')](_0x2dc24e))continue;const _0x103dda=_0x5d8906[_0x1af1('0x51')](_0x2dc24e)[_0x1af1('0x69')](),_0x2f8354=_0x3c81d6[_0x1af1('0x88')]['get']('Users')['me'];for(const _0x8adfe7 of _0x5d8906[_0x1af1('0x4c')]()){if(!_0x8adfe7['isInContent']||_0x8adfe7[_0x1af1('0x7c')]!=_0x2f8354)continue;if(_0x1af1('0x9e')!=_0x8adfe7[_0x1af1('0x59')]||_0x1af1('0x52')!=_0x8adfe7[_0x1af1('0x87')])continue;if(_0x8adfe7['getRanges']()[_0x1af1('0x6c')](_0x50f7e7=>_0x103dda[_0x1af1('0x28')](_0x147a25=>_0x147a25[_0x1af1('0x89')](_0x50f7e7,!0x0))))for(const _0x53f917 of _0x8adfe7[_0x1af1('0x8e')]())_0x53f917[_0x1af1('0x8a')]&&(_0x53f917['discard'](),_0x1c9736=!0x0);}}return _0x1c9736;}),_0x3c81d6['model']['document']['registerPostFixer'](_0x40807c=>{const _0x35ce02=_0x3c81d6['commands'][_0x1af1('0x16')](_0x1af1('0x65'));if(!_0x35ce02||!_0x35ce02[_0x1af1('0x50')][_0x1af1('0x66')](_0x40807c[_0x1af1('0x8')]))return!0x1;let _0x10ca33=!0x1;const _0x368dca=_0x3c81d6[_0x1af1('0x88')]['get']('Users')['me'],_0x26eaed=_0x3c81d6['model'][_0x1af1('0x78')][_0x1af1('0x4d')][_0x1af1('0x6b')](),_0x32bff7=Array[_0x1af1('0x7')](_0x3c81d6[_0x1af1('0x9f')]['document'][_0x1af1('0x4d')][_0x1af1('0x1d')]())[_0x1af1('0x92')](({name:_0x52e93c,data:_0x355f81})=>{const {group:_0x8e6116,subType:_0x54af57,authorId:_0x27e696}=_0x5d8906['_splitMarkerName'](_0x52e93c);return'suggestion'==_0x8e6116&&_0x1af1('0x2')==_0x54af57&&_0x27e696==_0x368dca['id']&&!_0x355f81[_0x1af1('0x67')];});for(const _0x24c8db of _0x26eaed){if(_0x1af1('0x7a')!=_0x24c8db[_0x1af1('0x59')]||'tableCellSuggestion'!=_0x24c8db[_0x1af1('0x38')]||0x1!=_0x24c8db[_0x1af1('0x56')])continue;const _0x589f39=_0x40807c[_0x1af1('0x5e')](_0x24c8db[_0x1af1('0x9d')],_0x24c8db[_0x1af1('0x9d')]['getShiftedBy'](0x1));if(!_0x32bff7[_0x1af1('0x20')](({data:_0x1e096c})=>_0x1e096c[_0x1af1('0x34')][_0x1af1('0x1a')](_0x589f39)))for(const {name:_0x1157e5,data:_0x174c3}of _0x32bff7)if(_0x589f39[_0x1af1('0x89')](_0x174c3[_0x1af1('0x34')])){_0x40807c[_0x1af1('0xa')](_0x1157e5,{'range':_0x589f39}),_0x10ca33=!0x0;break;}}return _0x10ca33;}),_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x78')][_0x1af1('0xc')](_0xf637f5=>{let _0x56fe8d=!0x1;const _0x1f58ac=_0x3c81d6[_0x1af1('0x88')][_0x1af1('0x16')](_0x1af1('0x3a'))['me'],_0x3904ab=_0x5d8906[_0x1af1('0x4c')]()[_0x1af1('0x92')](_0xb02771=>_0xb02771[_0x1af1('0x8a')]&&_0xb02771['author']==_0x1f58ac),_0xa0a387=new Set(),_0x55baa3=new Set();for(const _0x1e15f3 of _0x3904ab)if(_0x1af1('0x2')==_0x1e15f3[_0x1af1('0x87')])for(const _0xdc1439 of _0x1e15f3[_0x1af1('0x9a')]()){const _0x264929=_0xdc1439['getRange']()[_0x1af1('0x13')]();if(_0x264929){if(_0x264929['is'](_0x1af1('0xe'),_0x1af1('0x30'))&&ce(_0x264929)){_0x1e15f3['removeMarker'](_0xdc1439[_0x1af1('0x38')]),_0xa0a387[_0x1af1('0x40')](_0x264929),_0x56fe8d=!0x0;const _0x32ce2f=_0x264929['nextSibling'],_0x3b6420=_0x264929[_0x1af1('0x2a')],_0x1dcd90=_0x32ce2f&&_0x32ce2f['is']('element',_0x1af1('0x30')),_0x244577=_0x3b6420&&_0x3b6420['is'](_0x1af1('0xe'),_0x1af1('0x30'));_0x1dcd90&&!_0xa0a387[_0x1af1('0x66')](_0x32ce2f)&&_0x55baa3['add'](_0x32ce2f),_0x244577&&!_0xa0a387['has'](_0x3b6420)&&_0x55baa3[_0x1af1('0x40')](_0x3b6420);}else _0x264929['is']('element',_0x1af1('0x84'))&&_0x264929['isEmpty']&&(_0x1e15f3['removeMarker'](_0xdc1439[_0x1af1('0x38')]),_0x56fe8d=!0x0);}}else{if(_0x1af1('0x52')==_0x1e15f3['subType']){if(!_0x1e15f3['attributes']||!_0x1e15f3['attributes']['tablePasteChainId'])continue;const _0x41dd4d=_0x1e15f3['attributes'][_0x1af1('0x9')];if(_0x41dd4d&&Object['keys'](_0x41dd4d)['length'])continue;const _0x54b47b=_0x1e15f3[_0x1af1('0x61')][_0x1af1('0xa1')];let _0x217bb1=!0x0,_0x2aa258=!0x0;for(const _0x122a20 of _0x3904ab)if(_0x122a20[_0x1af1('0x87')]&&_0x122a20[_0x1af1('0x87')][_0x1af1('0x18')](_0x1af1('0x2'))){if(!_0x122a20[_0x1af1('0x61')][_0x1af1('0xa1')]){_0x2aa258=!0x1;break;}if(_0x122a20['id']!=_0x1e15f3['id']&&_0x122a20['attributes'][_0x1af1('0xa1')]==_0x54b47b){_0x217bb1=!0x1;break;}}_0x2aa258&&_0x217bb1&&(_0x1e15f3[_0x1af1('0x64')](),_0x56fe8d=!0x0);}}for(const _0x4fe3a2 of _0xa0a387)_0xf637f5[_0x1af1('0xa3')](_0x4fe3a2);for(const _0xe8c5ac of _0x55baa3)_0xf637f5[_0x1af1('0x7e')](_0xe8c5ac);return _0x56fe8d;}),_0x3c81d6[_0x1af1('0x1e')]['for'](_0x1af1('0x1b'))[_0x1af1('0x31')]({'model':_0x1af1('0xa0'),'view':(_0x31ffb6,_0x60b453)=>_0x2036ab(_0x31ffb6),'converterPriority':'high'}),_0x3c81d6[_0x1af1('0x1e')][_0x1af1('0x46')]('dataDowncast')[_0x1af1('0x31')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5774b0,_0x23d53b)=>_0x23d53b[_0x1af1('0x37')][_0x1af1('0x39')]?_0x2036ab(_0x5774b0,!0x1):null,'converterPriority':'high'});const _0x56ed38=_0x3c81d6[_0x1af1('0x24')][_0x1af1('0x63')];this[_0x1af1('0x91')](_0x56ed38[_0x1af1('0x78')],'clipboardOutput',(_0x34775e,_0x6abac4)=>{const _0x114c54=[];for(const _0x53596e of _0x56ed38[_0x1af1('0x19')](_0x6abac4['content'])['getItems']())_0x53596e['is'](_0x1af1('0xe'),_0x1af1('0x5c'))&&_0x114c54[_0x1af1('0x4')](_0x53596e);_0x56ed38[_0x1af1('0x6d')](_0xc43b83=>{for(const _0xffaf66 of _0x114c54)_0xc43b83[_0x1af1('0x5a')](_0xc43b83[_0x1af1('0x19')](_0xffaf66),_0xc43b83[_0x1af1('0x42')](_0xffaf66)),_0xc43b83[_0x1af1('0xa3')](_0xffaf66);});});}}function ce(_0x5ac00e){if(_0x5ac00e[_0x1af1('0x97')])return!0x0;const _0x51fcb6=_0x5ac00e['getChild'](0x0);return _0x51fcb6['is'](_0x1af1('0xe'),_0x1af1('0x84'))&&_0x51fcb6['isEmpty'];}function fe(_0x47acff,_0xadca00={},_0x3c74b4){for(const {isAnchor:_0x53677f,cellHeight:_0x5d8a26,cellWidth:_0x23c2c7}of _0x3c74b4[_0x1af1('0x57')](_0x47acff,{'includeAllSlots':!0x0,..._0xadca00}))if(!_0x53677f||0x1!=_0x5d8a26||0x1!=_0x23c2c7)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2332=['discard','enableCommand','markBlockFormat','Users','bind','TableColumnResizeEditing','TrackChangesEditing','tableWidth','resizeTableWidth','getSuggestions','resizeColumnWidths','document','registerCustomCallback','editor','handleSuggestionDescription','formatBlock','subType','_suggestionFactory','model','plugins','locale','getContainedElement','accept','getSelectedElement','columnWidths','has','get','change','handleResizeTableWidthCommand','author','data','commandParams','_descriptionFactory','resizeTable','getAttribute','getSuggestionCallback','selection'];(function(_0x1bfffc,_0x233256){const _0x4131c5=function(_0x40fc52){while(--_0x40fc52){_0x1bfffc['push'](_0x1bfffc['shift']());}};_0x4131c5(++_0x233256);}(_0x2332,0xd9));const _0x4131=function(_0x1bfffc,_0x233256){_0x1bfffc=_0x1bfffc-0x0;let _0x4131c5=_0x2332[_0x1bfffc];return _0x4131c5;};import{Plugin as _0x3c3c82}from'ckeditor5/src/core';import{getTranslation as _0xe28c25}from'../utils/common-translations';export default class yt extends _0x3c3c82{['afterInit'](){if(!this[_0x4131('0x12')][_0x4131('0x18')][_0x4131('0x1e')](_0x4131('0xa')))return;const _0x24b836=this['editor'][_0x4131('0x18')][_0x4131('0x1f')](_0x4131('0xb'));_0x24b836['enableCommand'](_0x4131('0xd'),this[_0x4131('0x21')][_0x4131('0x9')](this)),_0x24b836[_0x4131('0x6')](_0x4131('0xf'),this[_0x4131('0x21')]['bind'](this)),_0x24b836['_suggestionFactory'][_0x4131('0x11')](_0x4131('0x14'),'resizeTable','accept',_0x24b836[_0x4131('0x16')][_0x4131('0x3')](_0x4131('0x14'),null,_0x4131('0x5'))),_0x24b836['_suggestionFactory'][_0x4131('0x11')]('formatBlock',_0x4131('0x1'),_0x4131('0x5'),_0x24b836[_0x4131('0x16')][_0x4131('0x3')](_0x4131('0x14'),null,_0x4131('0x1b'))),_0x24b836[_0x4131('0x0')]['registerDescriptionCallback'](this[_0x4131('0x13')]['bind'](this));}['handleResizeTableWidthCommand'](_0x26d0e5,_0x139c7f){const _0x3f4725=this[_0x4131('0x12')]['plugins'][_0x4131('0x1f')]('TrackChangesEditing'),_0x1c8405=this[_0x4131('0x12')][_0x4131('0x18')][_0x4131('0x1f')](_0x4131('0xa')),_0x4a563b=_0x139c7f['table']||this[_0x4131('0x12')][_0x4131('0x17')][_0x4131('0x10')][_0x4131('0x4')][_0x4131('0x1c')]();this[_0x4131('0x12')][_0x4131('0x17')][_0x4131('0x20')](()=>{const _0xbfaa57=_0x1c8405['getColumnGroupElement'](_0x4a563b);let _0x1bdb0b=_0xbfaa57?_0x1c8405['getTableColumnsWidths'](_0xbfaa57):null,_0xf17a76=_0x4a563b[_0x4131('0x2')](_0x4131('0xc'))||null;const _0x4db60d=_0x139c7f[_0x4131('0xc')]||_0xf17a76,_0x3b31a6=_0x139c7f[_0x4131('0x1d')]||_0x1bdb0b,_0x2e7e92=this[_0x4131('0x12')][_0x4131('0x18')][_0x4131('0x1f')](_0x4131('0x8'))['me'];for(const _0x39a173 of _0x3f4725[_0x4131('0xe')]()){const _0x1f3153=_0x39a173[_0x4131('0x1a')]();if('resizeTable'===_0x39a173[_0x4131('0x15')]&&_0x1f3153===_0x4a563b){_0x39a173[_0x4131('0x22')]!==_0x2e7e92&&_0x39a173[_0x4131('0x5')]();const _0x50f256=_0x39a173[_0x4131('0x23')][_0x4131('0x24')];_0xf17a76=_0x50f256[0x0][_0x4131('0xc')],_0x1bdb0b=_0x50f256[0x0][_0x4131('0x1d')];break;}}_0x26d0e5({'table':_0x4a563b,'tableWidth':_0x4db60d,'columnWidths':_0x3b31a6}),_0x3f4725[_0x4131('0x7')](_0x4a563b,{'commandName':_0x4131('0xd'),'commandParams':[{'tableWidth':_0xf17a76,'columnWidths':_0x1bdb0b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}[_0x4131('0x13')](_0x596fa1){const {data:_0x3bdd1c}=_0x596fa1;if(_0x3bdd1c&&_0x4131('0x1')===_0x3bdd1c['formatGroupId']){const _0x16737b='*Format:*\x20resize\x20table';return{'type':'format','content':_0xe28c25(this[_0x4131('0x12')][_0x4131('0x19')],_0x16737b)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d4d=['forceValue','TrackChangesEditing','TableUtils','addMarker:suggestion','has','plugins','createTableWalker','cell','value','addClass','item','first','markerNameToElements','markBlockFormat','activeMarkers','markerRange','change','createPositionAfter','parent','requires','document','FORMAT_HEADER_ROW','nodeAfter','toViewElement','from','registerDescriptionCallback','FORMAT_HEADER_COLUMN','getChild','registerCustomCallback','locale','commandParams','headingRows','getAttribute','formatBlock','nodeBefore','options','isBefore','createRange','ck-suggestion-marker-','_acceptFormatSuggestionCallbackFactory','bindElementToMarker','ck-suggestion-marker--active','showSuggestionHighlights','includes','unbindElementFromMarkerName','start','table','highest','_suggestionFactory','index','getSuggestion','mapper','consume','setTableColumnHeader','last','FORMAT_REGULAR_ROW','afterInit','enableCommand','removeAttribute','getColumnIndexes','childCount','editing','_splitMarkerName','get','FORMAT_REGULAR_COLUMN','setTableRowHeader','name','removeClass','accept','selection','createPositionBefore','TableEditing','commands','*Format:*\x20%0','getRowIndexes','end','data-suggestion','markerName','model','getCellLocation','data','commandName','downcastDispatcher','writer','setAttribute'];(function(_0x42bb44,_0x4d4d99){const _0x342f3e=function(_0x530505){while(--_0x530505){_0x42bb44['push'](_0x42bb44['shift']());}};_0x342f3e(++_0x4d4d99);}(_0x4d4d,0x75));const _0x342f=function(_0x42bb44,_0x4d4d99){_0x42bb44=_0x42bb44-0x0;let _0x342f3e=_0x4d4d[_0x42bb44];return _0x342f3e;};import{Plugin as _0xfa43ca}from'ckeditor5/src/core';import _0x502dcd from'./table';import{getTranslation as _0x5e84d0}from'../utils/common-translations';export default class kt extends _0xfa43ca{static get[_0x342f('0x48')](){return[_0x502dcd];}[_0x342f('0x18')](){const _0x11914a=this['editor'];if(!_0x11914a[_0x342f('0x3a')][_0x342f('0x39')](_0x342f('0x27')))return;const _0x281043=_0x11914a[_0x342f('0x52')],_0x51ca67=_0x11914a['plugins'][_0x342f('0x1f')](_0x342f('0x36')),_0x1bc6c0=_0x11914a[_0x342f('0x3a')][_0x342f('0x1f')]('TableUtils'),_0x2ba12d=_0x11914a[_0x342f('0x3a')][_0x342f('0x1f')](_0x502dcd);function _0x2e0912({showActiveMarker:_0x1f650f=!0x0,setDataAttribute:_0x1ae9f5=!0x0}={}){return(_0x1eea87,_0x3184bb,_0x3eff0f)=>{const {type:_0x3e55cc,id:_0x524700}=_0x51ca67[_0x342f('0x1e')](_0x3184bb[_0x342f('0x2d')]),_0x17dbb2=_0x51ca67[_0x342f('0x12')](_0x524700);if(!_0x17dbb2[_0x342f('0x30')]||_0x342f('0x15')!=_0x17dbb2[_0x342f('0x30')][_0x342f('0x31')])return;if(_0x3184bb[_0x342f('0x3f')])return void _0x1eea87['stop']();if(!_0x3eff0f['consumable'][_0x342f('0x14')](_0x3184bb['markerRange'],_0x1eea87[_0x342f('0x22')]))return;const _0x4bbda8=_0x3184bb['markerRange'][_0x342f('0xd')][_0x342f('0x4b')],_0x42a520=_0x3184bb[_0x342f('0x44')][_0x342f('0x2b')][_0x342f('0x2')],_0x138b43=_0x4bbda8[_0x342f('0x47')][_0x342f('0x47')],{column:_0xa7ac0}=_0x1bc6c0[_0x342f('0x2f')](_0x4bbda8),{column:_0x3d55c6}=_0x1bc6c0[_0x342f('0x2f')](_0x42a520);for(let _0x22bf49=_0xa7ac0;_0x22bf49<=_0x3d55c6;_0x22bf49++){const _0xc0b925=_0x1bc6c0[_0x342f('0x3b')](_0x138b43,{'column':_0x22bf49,'includeAllSlots':!0x1});for(const _0x4f11fe of _0xc0b925){const _0xc6ecba=_0x4f11fe[_0x342f('0x3c')],_0x20710c=_0x3eff0f[_0x342f('0x13')][_0x342f('0x4c')](_0xc6ecba);_0x3eff0f[_0x342f('0x33')][_0x342f('0x3e')]('ck-suggestion-marker-'+_0x3e55cc,_0x20710c),_0x1ae9f5&&_0x3eff0f['writer'][_0x342f('0x34')](_0x342f('0x2c'),_0x524700,_0x20710c),_0x3eff0f[_0x342f('0x13')][_0x342f('0x8')](_0x20710c,_0x3184bb[_0x342f('0x2d')]),_0x1f650f&&(_0x51ca67[_0x342f('0x43')][_0x342f('0xb')](_0x3184bb[_0x342f('0x2d')])?_0x3eff0f[_0x342f('0x33')][_0x342f('0x3e')](_0x342f('0x9'),_0x20710c):_0x3eff0f[_0x342f('0x33')][_0x342f('0x23')](_0x342f('0x9'),_0x20710c));}}};}_0x51ca67[_0x342f('0x19')]('setTableRowHeader',(_0x27ffd3,_0x5272a5)=>{const _0x33d13d=_0x1bc6c0['getSelectionAffectedTableCells'](_0x11914a['model'][_0x342f('0x49')][_0x342f('0x25')]),_0x4e0270=_0x1bc6c0[_0x342f('0x2a')](_0x33d13d),_0x535c79=_0x33d13d[0x0]['findAncestor'](_0x342f('0xe')),_0x238f6d=_0x535c79[_0x342f('0x0')](_0x342f('0x54'))||0x0,_0x39ced0=_0x5272a5&&null!==_0x5272a5[_0x342f('0x35')]?_0x5272a5[_0x342f('0x35')]:!_0x11914a[_0x342f('0x28')][_0x342f('0x1f')](_0x342f('0x21'))['value'],_0x55206e=_0x39ced0?_0x4e0270[_0x342f('0x16')]:_0x4e0270[_0x342f('0x40')],_0x3c3dd5=_0x535c79[_0x342f('0x50')](_0x55206e);let _0x9f3be7;if(_0x39ced0){const _0x2da4ef=_0x535c79[_0x342f('0x50')](_0x238f6d);if(_0x3c3dd5[_0x342f('0x11')]<_0x2da4ef[_0x342f('0x11')])return;_0x9f3be7=_0x11914a[_0x342f('0x2e')][_0x342f('0x5')](_0x11914a['model'][_0x342f('0x26')](_0x2da4ef['getChild'](0x0)),_0x11914a[_0x342f('0x2e')][_0x342f('0x46')](_0x3c3dd5[_0x342f('0x50')](_0x3c3dd5[_0x342f('0x1c')]-0x1)));}else{const _0x1c8a02=_0x535c79[_0x342f('0x50')](_0x238f6d-0x1);if(!_0x1c8a02)return;_0x9f3be7=_0x11914a[_0x342f('0x2e')]['createRange'](_0x11914a[_0x342f('0x2e')][_0x342f('0x26')](_0x3c3dd5[_0x342f('0x50')](0x0)),_0x11914a['model'][_0x342f('0x46')](_0x1c8a02[_0x342f('0x50')](_0x1c8a02['childCount']-0x1)));}_0x11914a['model'][_0x342f('0x45')](()=>{_0x51ca67[_0x342f('0x42')](_0x9f3be7,{'commandName':_0x342f('0x21'),'commandParams':[{'forceValue':_0x39ced0}]},[],'setTableRowHeader');});}),_0x51ca67[_0x342f('0x19')](_0x342f('0x15'),(_0x57f20f,_0x78f2b0)=>{const _0x4ce541=_0x11914a[_0x342f('0x3a')][_0x342f('0x1f')](_0x342f('0x37')),_0x6fb854=_0x4ce541['getSelectionAffectedTableCells'](_0x11914a[_0x342f('0x2e')][_0x342f('0x49')][_0x342f('0x25')]),_0x5d7ddb=_0x4ce541[_0x342f('0x1b')](_0x6fb854),_0x3406ee=_0x6fb854[0x0]['findAncestor'](_0x342f('0xe')),_0x57fc67=_0x3406ee[_0x342f('0x0')]('headingColumns')||0x0,_0x7b8b24=_0x78f2b0&&null!==_0x78f2b0[_0x342f('0x35')]?_0x78f2b0[_0x342f('0x35')]:!_0x11914a[_0x342f('0x28')]['get']('setTableColumnHeader')[_0x342f('0x3d')];let _0x177c1d;const _0x1f5d12=_0x3406ee[_0x342f('0x50')](0x0),_0x510aea=_0x7b8b24?_0x5d7ddb[_0x342f('0x16')]:_0x5d7ddb[_0x342f('0x40')],_0x1a11ed=_0x4ce541[_0x342f('0x3b')](_0x3406ee,{'startRow':0x0,'column':_0x510aea,'includeAllSlots':!0x1}),_0x464088=Array[_0x342f('0x4d')](_0x1a11ed)[0x0]['cell'];if(_0x7b8b24){const _0x5f59b7=_0x1f5d12[_0x342f('0x50')](_0x57fc67);if(_0x464088[_0x342f('0x4')](_0x5f59b7))return;_0x177c1d=_0x11914a[_0x342f('0x2e')][_0x342f('0x5')](_0x11914a['model'][_0x342f('0x26')](_0x5f59b7),_0x11914a[_0x342f('0x2e')][_0x342f('0x46')](_0x464088));}else{const _0x4e9e3a=_0x1f5d12['getChild'](_0x57fc67-0x1);if(!_0x4e9e3a)return;_0x177c1d=_0x11914a[_0x342f('0x2e')][_0x342f('0x5')](_0x11914a[_0x342f('0x2e')][_0x342f('0x26')](_0x464088),_0x11914a[_0x342f('0x2e')][_0x342f('0x46')](_0x4e9e3a));}_0x11914a[_0x342f('0x2e')]['change'](()=>{_0x51ca67['markBlockFormat'](_0x177c1d,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0x7b8b24}]},[],'setTableColumnHeader');});}),_0x11914a[_0x342f('0x1d')][_0x342f('0x32')]['on']('addMarker:suggestion',_0x2e0912(),{'priority':_0x342f('0xf')}),_0x11914a[_0x342f('0x30')][_0x342f('0x32')]['on'](_0x342f('0x38'),(_0x4350aa,_0x113e3c,_0x36a757)=>{_0x36a757[_0x342f('0x3')][_0x342f('0xa')]&&_0x2e0912({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4350aa,_0x113e3c,_0x36a757);},{'priority':_0x342f('0xf')}),_0x11914a['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2937c7,_0x347b34,_0x19ed33)=>{const {type:_0x4c3d4e,id:_0x410dbd}=_0x51ca67[_0x342f('0x1e')](_0x347b34['markerName']),_0x3693a5=_0x51ca67[_0x342f('0x12')](_0x410dbd);if(!_0x3693a5[_0x342f('0x30')]||_0x342f('0x15')!=_0x3693a5[_0x342f('0x30')][_0x342f('0x31')])return;const _0xc69523=_0x19ed33[_0x342f('0x13')][_0x342f('0x41')](_0x347b34[_0x342f('0x2d')]);if(_0xc69523)for(const _0x1b782a of _0xc69523)_0x19ed33[_0x342f('0x33')][_0x342f('0x23')](_0x342f('0x6')+_0x4c3d4e,_0x1b782a),_0x19ed33[_0x342f('0x33')][_0x342f('0x23')](_0x342f('0x9'),_0x1b782a),_0x19ed33[_0x342f('0x33')][_0x342f('0x1a')](_0x342f('0x2c'),_0x1b782a),_0x19ed33[_0x342f('0x13')][_0x342f('0xc')](_0x1b782a,_0x347b34[_0x342f('0x2d')]);},{'priority':_0x342f('0xf')}),_0x51ca67['_descriptionFactory'][_0x342f('0x4e')](_0x1a4742=>{const {data:_0x522b5e}=_0x1a4742;if(_0x522b5e){if('setTableRowHeader'==_0x522b5e[_0x342f('0x31')]){const _0x37267e=_0x522b5e[_0x342f('0x53')][0x0]['forceValue'];return _0x17c8a7(_0x5e84d0(_0x281043,_0x37267e?_0x342f('0x4a'):_0x342f('0x17')));}if(_0x342f('0x15')==_0x522b5e[_0x342f('0x31')]){const _0x18e825=_0x522b5e[_0x342f('0x53')][0x0][_0x342f('0x35')];return _0x17c8a7(_0x5e84d0(_0x281043,_0x18e825?_0x342f('0x4f'):_0x342f('0x20')));}}function _0x17c8a7(_0xe4def2){return{'type':'format','content':_0x5e84d0(_0x281043,_0x342f('0x29'),_0xe4def2)};}});const _0x40c9d6=_0x2ba12d[_0x342f('0x7')]();_0x51ca67[_0x342f('0x10')]['registerCustomCallback'](_0x342f('0x1'),_0x342f('0x21'),'accept',_0x40c9d6),_0x51ca67[_0x342f('0x10')][_0x342f('0x51')](_0x342f('0x1'),_0x342f('0x15'),_0x342f('0x24'),_0x40c9d6);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2dcd=['stop','TableUtils','detach','has','map','createTableWalker','isEnabled','_acceptFormatSuggestionCallbackFactory','getCellLocation','*Merge\x20cells*','document','element','value','selection','cell','findAncestor','splitTableCellHorizontally','_isForcedDefaultExecutionBlock','_areSelectedCellsMergable','fromRange','add','return','direction','*Split\x20cell:*\x20horizontally','table','mergeTableCells','from','*Split\x20cell:*\x20vertically','getFirstPosition','editor','_descriptionFactory','getRanges','mergeTableCellUp','subType','mergeTableCellDown','formatBlock','splitTableCellVertically','registerCustomCallback','afterInit','accept','tableCell','size','author','format','change','getSelectionAffectedTableCells','deletion','model','commandName','low','forceDefaultExecution','plugins','set:isEnabled','_suggestionFactory','mergeTableCellLeft','TableEditing','locale','length','setSelection','markBlockFormat','_tablePostFixingSubtypes','registerDescriptionCallback','commands','highest','get','getAncestors','_areMergableCells','createRangeOn','trackChanges','type','mergeTableCellRight','TrackChangesEditing','enableCommand','find','horizontally'];(function(_0x322cdf,_0x2dcdb3){const _0x50ef42=function(_0x51fd58){while(--_0x51fd58){_0x322cdf['push'](_0x322cdf['shift']());}};_0x50ef42(++_0x2dcdb3);}(_0x2dcd,0x136));const _0x50ef=function(_0x322cdf,_0x2dcdb3){_0x322cdf=_0x322cdf-0x0;let _0x50ef42=_0x2dcd[_0x322cdf];return _0x50ef42;};import{Plugin as _0x34dd62}from'ckeditor5/src/core';import _0x56a4ba from'./table';import{LiveRange as _0x515dbf}from'ckeditor5/src/engine';import{getTranslation as _0x3d1ce0}from'../utils/common-translations';export default class pt extends _0x34dd62{static get['requires'](){return[_0x56a4ba];}[_0x50ef('0x1c')](){const _0x123c8b=this[_0x50ef('0x13')],_0x1b61c9=_0x123c8b[_0x50ef('0x25')]['document'][_0x50ef('0x3')],_0x1d3def=_0x123c8b[_0x50ef('0x2e')];if(!_0x123c8b['plugins']['has'](_0x50ef('0x2d')))return;const _0x34a664=_0x123c8b[_0x50ef('0x29')][_0x50ef('0x36')](_0x50ef('0x3d')),_0x245175=_0x123c8b[_0x50ef('0x29')][_0x50ef('0x36')](_0x50ef('0x42')),_0x1a78b6=_0x123c8b['plugins'][_0x50ef('0x36')](_0x56a4ba);_0x1a78b6[_0x50ef('0x32')]['push'](_0x50ef('0xf')),_0x34a664['enableCommand'](_0x50ef('0xf'),()=>{const _0x515fe9=_0x245175[_0x50ef('0x23')](_0x123c8b[_0x50ef('0x25')][_0x50ef('0x0')][_0x50ef('0x3')]);_0x123c8b['model'][_0x50ef('0x22')](()=>{_0x34a664['markMultiRangeBlockFormat'](_0x515fe9,{'commandName':_0x50ef('0xf'),'commandParams':[]},[],_0x50ef('0xf'));});}),_0x123c8b[_0x50ef('0x34')][_0x50ef('0x36')](_0x50ef('0xf'))['on']('execute',(_0x3387fe,_0x4ce3e9)=>{_0x123c8b[_0x50ef('0x34')]['get'](_0x50ef('0x3a'))[_0x50ef('0x2')]&&(_0x4ce3e9[_0x50ef('0x2f')]>0x0&&_0x4ce3e9[_0x4ce3e9[_0x50ef('0x2f')]-0x1]&&_0x4ce3e9[_0x4ce3e9['length']-0x1][_0x50ef('0x28')]||_0x34a664[_0x50ef('0x7')]||this['_areSelectedCellsMergable']()||_0x3387fe[_0x50ef('0x41')]());},{'priority':_0x50ef('0x35')});for(const _0xbc0a31 of[_0x50ef('0x16'),'mergeTableCellRight',_0x50ef('0x18'),'mergeTableCellLeft']){const _0x22fcf0=_0x123c8b[_0x50ef('0x34')]['get'](_0xbc0a31);_0x34a664[_0x50ef('0x3e')](_0xbc0a31,()=>{const _0x5f2304=_0x123c8b[_0x50ef('0x25')]['document'][_0x50ef('0x3')]['getFirstPosition']()[_0x50ef('0x37')]()[_0x50ef('0x3f')](_0x31f415=>_0x31f415['is'](_0x50ef('0x1'),_0x50ef('0x1e'))),_0x1e036d=_0x22fcf0[_0x50ef('0x2')];_0x123c8b[_0x50ef('0x25')][_0x50ef('0x22')](()=>{_0x34a664['markMultiRangeBlockFormat']([_0x5f2304,_0x1e036d],{'commandName':_0x50ef('0xf'),'commandParams':[]},[],_0x50ef('0xf'));});});}for(const _0x221c32 of[_0x50ef('0x1a'),_0x50ef('0x6')]){const _0x39af3f=_0x123c8b[_0x50ef('0x34')][_0x50ef('0x36')](_0x221c32);_0x34a664['enableCommand'](_0x221c32,()=>{const _0xeb00f4=_0x245175[_0x50ef('0x23')](_0x123c8b[_0x50ef('0x25')][_0x50ef('0x0')][_0x50ef('0x3')])[0x0],_0x535a2e=_0xeb00f4[_0x50ef('0x5')](_0x50ef('0xe')),{column:_0x5f2395,row:_0x1656b6}=_0x245175[_0x50ef('0x49')](_0xeb00f4);let _0x194e68=[];if(_0x50ef('0x40')==_0x39af3f[_0x50ef('0xc')]){const _0x7b435=_0x245175[_0x50ef('0x46')](_0x535a2e,{'startRow':_0x1656b6,'endRow':_0x1656b6,'includeAllSlots':!0x0});_0x194e68=Array[_0x50ef('0x10')](_0x7b435)['map'](_0x55e3aa=>_0x55e3aa['cell']);}else{const _0x4d0b67=_0x245175[_0x50ef('0x46')](_0x535a2e,{'column':_0x5f2395,'includeAllSlots':!0x0});_0x194e68=Array['from'](_0x4d0b67)[_0x50ef('0x45')](_0x359c5d=>_0x359c5d[_0x50ef('0x4')]);}_0x123c8b[_0x50ef('0x25')]['change'](_0x27cd94=>{_0x34a664[_0x50ef('0x31')](_0x27cd94[_0x50ef('0x39')](_0xeb00f4),{'commandName':_0x221c32,'commandParams':[]},_0x194e68,_0x221c32);});});}_0x34a664[_0x50ef('0x14')]['registerDescriptionCallback'](_0x3b6926=>{const {data:_0x245599}=_0x3b6926;if(_0x245599)return _0x50ef('0xf')==_0x245599[_0x50ef('0x26')]?{'type':_0x50ef('0x21'),'content':_0x3d1ce0(_0x1d3def,_0x50ef('0x4a'))}:void 0x0;}),_0x34a664[_0x50ef('0x14')][_0x50ef('0x33')](_0x2e5da5=>{const {data:_0x53f53f}=_0x2e5da5;if(_0x53f53f)return _0x50ef('0x1a')==_0x53f53f[_0x50ef('0x26')]?{'type':_0x50ef('0x21'),'content':_0x3d1ce0(_0x1d3def,_0x50ef('0x11'))}:_0x50ef('0x6')==_0x53f53f[_0x50ef('0x26')]?{'type':'format','content':_0x3d1ce0(_0x1d3def,_0x50ef('0xd'))}:void 0x0;});const _0x1e9b2b=_0x1a78b6[_0x50ef('0x48')]();for(const _0xd54731 of[_0x50ef('0x16'),_0x50ef('0x3c'),_0x50ef('0x18'),_0x50ef('0x2c')])_0x34a664[_0x50ef('0x2b')][_0x50ef('0x1b')]('formatBlock',_0xd54731,_0x50ef('0x1d'),_0x1e9b2b);for(const _0x4e0fad of['splitTableCellVertically','splitTableCellHorizontally'])_0x34a664[_0x50ef('0x2b')][_0x50ef('0x1b')](_0x50ef('0x19'),_0x4e0fad,_0x50ef('0x1d'),_0x1e9b2b);_0x34a664['_suggestionFactory'][_0x50ef('0x1b')]('formatBlock',_0x50ef('0xf'),'accept',_0xf44ec8=>{_0x123c8b[_0x50ef('0x25')][_0x50ef('0x22')](_0x5d59a5=>{const _0x619f15=Array[_0x50ef('0x10')](_0x1b61c9[_0x50ef('0x15')]())['map'](_0x1d0017=>_0x515dbf[_0x50ef('0x9')](_0x1d0017));_0x5d59a5[_0x50ef('0x30')](_0xf44ec8),_0x123c8b['commands'][_0x50ef('0x36')](_0x50ef('0xf'))['refresh'](),_0x123c8b['execute'](_0x50ef('0xf'),{'forceDefaultExecution':!0x0});const _0x1dab7d=_0x619f15['filter'](_0x1fb017=>'$graveyard'!=_0x1fb017['root']['rootName']);_0x1dab7d[_0x50ef('0x2f')]>0x0&&_0x5d59a5[_0x50ef('0x30')](_0x1dab7d);for(const _0x4b5143 of _0x619f15)_0x4b5143[_0x50ef('0x43')]();});});for(const _0x84750 of['mergeTableCellUp',_0x50ef('0x18'),'mergeTableCellLeft',_0x50ef('0x3c')]){const _0x5bed67=_0x123c8b[_0x50ef('0x34')]['get'](_0x84750);_0x5bed67['on'](_0x50ef('0x2a'),(_0x107786,_0x488e31,_0x2739f4)=>{if(_0x2739f4){const _0x2d1231=_0x123c8b[_0x50ef('0x25')][_0x50ef('0x0')]['selection'][_0x50ef('0x12')]()['getAncestors']()[_0x50ef('0x3f')](_0x3031ed=>_0x3031ed['is']('element','tableCell'));this['_areMergableCells'](_0x5bed67[_0x50ef('0x2')],_0x2d1231)||(_0x107786[_0x50ef('0xb')]=!0x1,_0x107786['stop']());}},{'priority':_0x50ef('0x27')});}}[_0x50ef('0x8')](){const _0x4d0c90=this[_0x50ef('0x13')][_0x50ef('0x34')]['get'](_0x50ef('0xf')),_0x57f8b1=this[_0x50ef('0x13')][_0x50ef('0x29')][_0x50ef('0x36')](_0x50ef('0x42'));if(!_0x4d0c90[_0x50ef('0x47')])return!0x1;const _0x744e8b=_0x57f8b1[_0x50ef('0x23')](this['editor'][_0x50ef('0x25')][_0x50ef('0x0')]['selection']);for(const _0x9c4afa of _0x744e8b)for(const _0x7e7900 of _0x744e8b)if(_0x9c4afa!=_0x7e7900&&!this[_0x50ef('0x38')](_0x9c4afa,_0x7e7900))return!0x1;return!0x0;}[_0x50ef('0x38')](_0x2bf34c,_0x2b2424){const _0x5bc3b3=this['editor'][_0x50ef('0x29')][_0x50ef('0x36')](_0x50ef('0x3d')),_0x378a41=this[_0x50ef('0x13')][_0x50ef('0x25')][_0x50ef('0x39')](_0x2bf34c),_0x3b615e=this[_0x50ef('0x13')][_0x50ef('0x25')][_0x50ef('0x39')](_0x2b2424),_0xdc1f7a=new Set(),_0x10c78e=new Set();for(const _0x477a84 of _0x5bc3b3['getSuggestions']())if(('insertion'==_0x477a84[_0x50ef('0x3b')]||_0x50ef('0x24')==_0x477a84[_0x50ef('0x3b')]||_0x50ef('0xf')==_0x477a84[_0x50ef('0x17')])&&_0x477a84['isInContent'])for(const _0x165803 of _0x477a84[_0x50ef('0x15')]())_0x165803['containsRange'](_0x378a41,!0x0)&&_0xdc1f7a['add'](_0x477a84[_0x50ef('0x3b')]+':'+_0x477a84[_0x50ef('0x20')]['id']),_0x165803['containsRange'](_0x3b615e,!0x0)&&_0x10c78e[_0x50ef('0xa')](_0x477a84[_0x50ef('0x3b')]+':'+_0x477a84[_0x50ef('0x20')]['id']);if(_0xdc1f7a[_0x50ef('0x1f')]!=_0x10c78e[_0x50ef('0x1f')])return!0x1;for(const _0xe827fa of _0xdc1f7a)if(!_0x10c78e[_0x50ef('0x44')](_0xe827fa))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52dd=['editor','plugins','get','insertTableOfContents','afterInit','tableOfContents','enableCommand','TrackChangesEditing','commands'];(function(_0x34974c,_0x52ddc4){const _0x33d967=function(_0x37975f){while(--_0x37975f){_0x34974c['push'](_0x34974c['shift']());}};_0x33d967(++_0x52ddc4);}(_0x52dd,0x141));const _0x33d9=function(_0x34974c,_0x52ddc4){_0x34974c=_0x34974c-0x0;let _0x33d967=_0x52dd[_0x34974c];return _0x33d967;};import{Plugin as _0x2c002b}from'ckeditor5/src/core';import{getTranslation as _0x26b641}from'../utils/common-translations';export default class St extends _0x2c002b{[_0x33d9('0x7')](){const _0x5366c8=this[_0x33d9('0x3')];if(!_0x5366c8[_0x33d9('0x2')][_0x33d9('0x5')]('insertTableOfContents'))return;_0x5366c8[_0x33d9('0x4')][_0x33d9('0x5')](_0x33d9('0x1'))[_0x33d9('0x0')](_0x33d9('0x6'));const _0x2183a6=_0x5366c8['plugins'][_0x33d9('0x5')](_0x33d9('0x1')),_0x2dc871=_0x5366c8['locale'];_0x2183a6['_descriptionFactory']['registerElementLabel'](_0x33d9('0x8'),_0x299872=>_0x26b641(_0x2dc871,'ELEMENT_TABLE_OF_CONTENTS',_0x299872));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b31=['tableHeight','join','commandParams','handleSuggestionDescription','getSelectionAffectedTableCells','registerDescriptionCallback','TableCellPropertiesEditing','_suggestionFactory','getSuggestions','getFirstPosition','format','plugins','pluginName','tableProperties','model','subType','editor','data','handleDiscardAction','tableCellBorderColor','TableUtils','tableCellProperties','tableCellHeight','getAttribute','getSuggestionCallback','has','afterInit','tableCellHorizontalAlignment','formatBlock','*Format:*\x20change\x20table\x20cell\x20properties','nodeAfter','accept','tableCellBackgroundColor','batch','findAncestor','tableBackgroundColor','_handlePropertyChange','markBlockFormat','tableCellWidth','discard','tableCellPadding','tableWidth','enableCommand','tableCellBorderWidth','selection','tableCellVerticalAlignment','document','tableBorderColor','*Format:*\x20change\x20table\x20properties','TrackChangesTableProperties','registerCustomCallback','TrackChangesEditing','change','get'];(function(_0x4caa3d,_0x2b317a){const _0x21b272=function(_0x39bef2){while(--_0x39bef2){_0x4caa3d['push'](_0x4caa3d['shift']());}};_0x21b272(++_0x2b317a);}(_0x2b31,0x1a6));const _0x21b2=function(_0x4caa3d,_0x2b317a){_0x4caa3d=_0x4caa3d-0x0;let _0x21b272=_0x2b31[_0x4caa3d];return _0x21b272;};import{Plugin as _0x4d593e}from'ckeditor5/src/core';import{getTranslation as _0x5e7f55}from'../utils/common-translations';export default class Dt extends _0x4d593e{constructor(_0x5220f9){super(_0x5220f9),this[_0x21b2('0x17')]=[_0x21b2('0x3'),'tableBorderStyle','tableBorderWidth','tableAlignment',_0x21b2('0x33'),_0x21b2('0xa'),_0x21b2('0x2d')],this['tableCellProperties']=[_0x21b2('0x1d'),'tableCellBorderStyle',_0x21b2('0x35'),_0x21b2('0x32'),_0x21b2('0x30'),_0x21b2('0x20'),_0x21b2('0x2a'),_0x21b2('0x25'),_0x21b2('0x1')];}static get[_0x21b2('0x16')](){return _0x21b2('0x5');}[_0x21b2('0x24')](){const _0x4254aa=this['editor'][_0x21b2('0x15')][_0x21b2('0x9')](_0x21b2('0x7'));if(this[_0x21b2('0x1a')][_0x21b2('0x15')][_0x21b2('0x23')]('TablePropertiesEditing')){for(const _0x45dea3 of this[_0x21b2('0x17')])_0x4254aa[_0x21b2('0x34')](_0x45dea3,(_0x28c748,_0x39fafc)=>{const _0x3c6861=this[_0x21b2('0x1a')][_0x21b2('0x18')][_0x21b2('0x2')][_0x21b2('0x0')][_0x21b2('0x13')]()[_0x21b2('0x2c')]('table');this[_0x21b2('0x2e')](_0x45dea3,[_0x3c6861],this[_0x21b2('0x17')],_0x21b2('0x17'),_0x28c748,_0x39fafc);});_0x4254aa[_0x21b2('0x11')][_0x21b2('0x6')](_0x21b2('0x26'),_0x21b2('0x17'),_0x21b2('0x29'),_0x4254aa[_0x21b2('0x11')][_0x21b2('0x22')](_0x21b2('0x26'),null,_0x21b2('0x31'))),_0x4254aa[_0x21b2('0x11')][_0x21b2('0x6')](_0x21b2('0x26'),_0x21b2('0x17'),'discard',(_0x4b8c26,_0x22a77b)=>this['handleDiscardAction'](this[_0x21b2('0x17')],_0x4b8c26,_0x22a77b)),_0x4254aa[_0x21b2('0x11')][_0x21b2('0x6')]('formatBlock','tableProperties',_0x21b2('0xb'),()=>!0x1);}if(this['editor']['plugins']['has'](_0x21b2('0x10'))){for(const _0x24edbb of this[_0x21b2('0x1f')])_0x4254aa[_0x21b2('0x34')](_0x24edbb,(_0x44b1ae,_0x31e421)=>{const _0x39b0d8=this[_0x21b2('0x1a')][_0x21b2('0x15')]['get'](_0x21b2('0x1e'))[_0x21b2('0xe')](this[_0x21b2('0x1a')][_0x21b2('0x18')][_0x21b2('0x2')][_0x21b2('0x0')]);this['_handlePropertyChange'](_0x24edbb,_0x39b0d8,this[_0x21b2('0x1f')],_0x21b2('0x1f'),_0x44b1ae,_0x31e421);});_0x4254aa['_suggestionFactory'][_0x21b2('0x6')](_0x21b2('0x26'),_0x21b2('0x1f'),_0x21b2('0x29'),_0x4254aa[_0x21b2('0x11')][_0x21b2('0x22')](_0x21b2('0x26'),null,_0x21b2('0x31'))),_0x4254aa[_0x21b2('0x11')][_0x21b2('0x6')]('formatBlock',_0x21b2('0x1f'),_0x21b2('0x31'),(_0x4970a7,_0x4fcbab)=>this[_0x21b2('0x1c')](this[_0x21b2('0x1f')],_0x4970a7,_0x4fcbab)),_0x4254aa[_0x21b2('0x11')][_0x21b2('0x6')]('formatBlock',_0x21b2('0x1f'),'join',()=>!0x1);}_0x4254aa['_descriptionFactory'][_0x21b2('0xf')](_0x3a9a52=>this[_0x21b2('0xd')](_0x3a9a52));}[_0x21b2('0x2e')](_0x23e333,_0xc33ccd,_0x42cced,_0xbcae2c,_0x54f95a,_0x993ad4){const _0x218da7=this[_0x21b2('0x1a')][_0x21b2('0x15')][_0x21b2('0x9')](_0x21b2('0x7'));this[_0x21b2('0x1a')][_0x21b2('0x18')]['enqueueChange'](_0x993ad4[_0x21b2('0x2b')],()=>{for(const _0x53b241 of _0xc33ccd){if(this['_getSuggestion'](_0x53b241,_0xbcae2c))_0x54f95a(_0x993ad4);else{const _0x56363b={};for(const _0x48c859 of _0x42cced){const _0x868326=_0x53b241[_0x21b2('0x21')](_0x48c859);void 0x0!==_0x868326&&(_0x56363b[_0x48c859]=_0x868326);}_0x54f95a(_0x993ad4),_0x218da7[_0x21b2('0x2f')](_0x53b241,{'commandParams':[_0x56363b]},[],_0xbcae2c);}}});}[_0x21b2('0x1c')](_0x31f450,_0x551e67,_0x3d777){const _0x48addc=_0x551e67[0x0]['start'][_0x21b2('0x28')],_0x4e373d=_0x3d777[_0x21b2('0xc')][0x0];this['editor']['model'][_0x21b2('0x8')](_0x303a14=>{for(const _0x580d85 of _0x31f450)void 0x0!==_0x4e373d[_0x580d85]?_0x303a14['setAttribute'](_0x580d85,_0x4e373d[_0x580d85],_0x48addc):_0x303a14['removeAttribute'](_0x580d85,_0x48addc);});}[_0x21b2('0xd')](_0x45abdb){if(_0x45abdb[_0x21b2('0x1b')])switch(_0x45abdb[_0x21b2('0x19')]){case _0x21b2('0x17'):return{'type':'format','content':_0x5e7f55(this[_0x21b2('0x1a')]['locale'],_0x21b2('0x4'))};case _0x21b2('0x1f'):return{'type':_0x21b2('0x14'),'content':_0x5e7f55(this[_0x21b2('0x1a')]['locale'],_0x21b2('0x27'))};}}['_getSuggestion'](_0xa6495b,_0x353687){const _0x5980ff=this[_0x21b2('0x1a')][_0x21b2('0x15')][_0x21b2('0x9')](_0x21b2('0x7'));for(const _0x477351 of _0x5980ff[_0x21b2('0x12')]({'skipNotAttached':!0x0})){const _0x1eaa90=_0x477351['getContainedElement']();if(_0x477351['subType']===_0x353687&&_0x1eaa90===_0xa6495b)return _0x477351;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1908=['plugins','Template','insertTemplate','enableCommand','afterInit'];(function(_0x13b6f9,_0x190899){const _0x33424f=function(_0x28004a){while(--_0x28004a){_0x13b6f9['push'](_0x13b6f9['shift']());}};_0x33424f(++_0x190899);}(_0x1908,0xb6));const _0x3342=function(_0x13b6f9,_0x190899){_0x13b6f9=_0x13b6f9-0x0;let _0x33424f=_0x1908[_0x13b6f9];return _0x33424f;};import{Plugin as _0x5a4655}from'ckeditor5/src/core';export default class bt extends _0x5a4655{[_0x3342('0x2')](){const _0x2c2953=this['editor'];_0x2c2953[_0x3342('0x3')]['has'](_0x3342('0x4'))&&_0x2c2953[_0x3342('0x3')]['get']('TrackChangesEditing')[_0x3342('0x1')](_0x3342('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x538b=['suggestion','start','getNearestSelectionRange','Title','newRange','locale','isCollapsed','schema','registerElementLabel','getChangedMarkers','updateMarker','createRange','get','model','has','isTouching','_splitMarkerName','registerPostFixer','_descriptionFactory','end','isEqual','nodeBefore','editor','removeMarker','plugins','document','afterInit','title-content'];(function(_0x38ffd6,_0x538bdb){const _0x1c9b59=function(_0x43b248){while(--_0x43b248){_0x38ffd6['push'](_0x38ffd6['shift']());}};_0x1c9b59(++_0x538bdb);}(_0x538b,0x153));const _0x1c9b=function(_0x38ffd6,_0x538bdb){_0x38ffd6=_0x38ffd6-0x0;let _0x1c9b59=_0x538b[_0x38ffd6];return _0x1c9b59;};import{Plugin as _0x49ca10}from'ckeditor5/src/core';import{getTranslation as _0x1f55f5}from'../utils/common-translations';export default class It extends _0x49ca10{[_0x1c9b('0x17')](){const _0x32ce1c=this[_0x1c9b('0x13')];if(!_0x32ce1c[_0x1c9b('0x15')][_0x1c9b('0xb')](_0x1c9b('0x0')))return;const _0x586139=_0x32ce1c[_0x1c9b('0x15')][_0x1c9b('0x9')]('TrackChangesEditing');_0x586139[_0x1c9b('0xf')][_0x1c9b('0x5')](_0x1c9b('0x18'),()=>_0x1f55f5(_0x32ce1c[_0x1c9b('0x2')],'ELEMENT_TITLE')),_0x32ce1c[_0x1c9b('0xa')][_0x1c9b('0x16')][_0x1c9b('0xe')](_0x33dc76=>{let _0x26c31a=!0x1;const _0x158cd9=Array['from'](_0x32ce1c[_0x1c9b('0xa')][_0x1c9b('0x16')]['differ'][_0x1c9b('0x6')]());for(const {name:_0x39ade7,data:_0x1d1b31}of _0x158cd9){const {group:_0x1cbcdf}=_0x586139[_0x1c9b('0xd')](_0x39ade7);if(_0x1c9b('0x19')!==_0x1cbcdf||!_0x1d1b31[_0x1c9b('0x1')])continue;const _0x59fe10=_0x1d1b31[_0x1c9b('0x1')],_0x1538fa=_0x59fe10['end'][_0x1c9b('0x12')];if(!_0x1538fa||!_0x1538fa['is']('element',_0x1c9b('0x18')))continue;if(!_0x59fe10[_0x1c9b('0x1a')][_0x1c9b('0xc')](_0x59fe10[_0x1c9b('0x10')]))continue;const _0x4624b6=_0x32ce1c[_0x1c9b('0xa')][_0x1c9b('0x4')][_0x1c9b('0x1b')](_0x59fe10['end'],'forward');if(_0x4624b6&&_0x4624b6[_0x1c9b('0x3')]){const _0x5b263f=_0x33dc76[_0x1c9b('0x8')](_0x59fe10[_0x1c9b('0x1a')],_0x4624b6['start']);_0x5b263f[_0x1c9b('0x11')](_0x59fe10)||(_0x33dc76[_0x1c9b('0x7')](_0x39ade7,{'range':_0x5b263f}),_0x26c31a=!0x0);}_0x26c31a||(_0x33dc76[_0x1c9b('0x14')](_0x39ade7),_0x26c31a=!0x0);}return _0x26c31a;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x413f=['redo','has','UndoEditing','afterInit','TrackChangesEditing','enableCommand','undo','plugins','editor'];(function(_0x5d1d2b,_0x413fe7){const _0x43547d=function(_0x4e0efa){while(--_0x4e0efa){_0x5d1d2b['push'](_0x5d1d2b['shift']());}};_0x43547d(++_0x413fe7);}(_0x413f,0x1eb));const _0x4354=function(_0x5d1d2b,_0x413fe7){_0x5d1d2b=_0x5d1d2b-0x0;let _0x43547d=_0x413f[_0x5d1d2b];return _0x43547d;};import{Plugin as _0x1f5b9c}from'ckeditor5/src/core';export default class vt extends _0x1f5b9c{[_0x4354('0x7')](){const _0xdb7e7d=this[_0x4354('0x3')],_0x40ceae=_0xdb7e7d[_0x4354('0x2')]['get'](_0x4354('0x8'));_0xdb7e7d[_0x4354('0x2')][_0x4354('0x5')](_0x4354('0x6'))&&(_0x40ceae[_0x4354('0x0')](_0x4354('0x1')),_0x40ceae[_0x4354('0x0')](_0x4354('0x4')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36bd=['elementEnd','toViewElement','createUIElement','start','nextSibling','insert','toViewPosition','type','ck-suggestion-marker--active','isBlock','bindElementToMarker','mapper','listIndent','parent','name','addClass','span','get','test','getItems','TrackChangesEditing','model','getAttribute','activeMarkers','markerName','includes','isContent','element','writer','markerRange','schema','getWalker','getCustomProperty','hasAttribute','listItem','item','push','previousPosition'];(function(_0x22dc1a,_0x36bda8){const _0x2f8056=function(_0x1cd70b){while(--_0x1cd70b){_0x22dc1a['push'](_0x22dc1a['shift']());}};_0x2f8056(++_0x36bda8);}(_0x36bd,0xf6));const _0x2f80=function(_0x22dc1a,_0x36bda8){_0x22dc1a=_0x22dc1a-0x0;let _0x2f8056=_0x36bd[_0x22dc1a];return _0x2f8056;};export function getRangesWithAttribute(_0x24c343,_0x1622fe,_0x2c4859){const _0x153f19=[];for(const _0x4294d0 of _0x1622fe[_0x2f80('0x1')]())_0x4294d0[_0x2f80('0xf')](_0x24c343)&&_0x153f19[_0x2f80('0x12')](_0x2c4859['createRangeOn'](_0x4294d0));return _0x153f19;}export function getElementsAffectedByListItemRename(_0x133bb7){const _0x236c49=[];if(_0x133bb7['is']('element',_0x2f80('0x10'))){let _0x1656c4=_0x133bb7[_0x2f80('0x18')];for(;_0x1656c4&&_0x1656c4['is'](_0x2f80('0x9'),_0x2f80('0x10'))&&_0x1656c4[_0x2f80('0x4')](_0x2f80('0x20'))>0x0;)_0x236c49[_0x2f80('0x12')](_0x1656c4),_0x1656c4=_0x1656c4[_0x2f80('0x18')];}return _0x236c49;}export function downcastSplitMergeMarker(_0x3b2505,_0x5deb3d,{showActiveMarker:_0x143a7f=!0x0}={}){const _0x207ba9=_0x3b2505['plugins'][_0x2f80('0x25')](_0x2f80('0x2'));return(_0x157393,_0x396550,_0x50e86d)=>{if(!_0x50e86d['consumable'][_0x2f80('0x0')](_0x396550[_0x2f80('0xb')],_0x157393[_0x2f80('0x22')]))return;const _0x2d60ef=_0x396550[_0x2f80('0xb')][_0x2f80('0xd')](),_0x4b5b7c=_0x396550[_0x2f80('0xb')][_0x2f80('0x17')],_0xe415f4=_0x3b2505[_0x2f80('0x3')][_0x2f80('0xc')];let _0xf5fceb=null,_0x2c8641=null,_0x4cbc00=!0x1,_0x8752d0=!0x1;for(const _0x476e98 of _0x2d60ef){const _0x3c4c35=_0x476e98[_0x2f80('0x11')];_0x4cbc00=_0x4cbc00||_0xe415f4[_0x2f80('0x8')](_0x3c4c35);const _0x4e0508=_0x50e86d[_0x2f80('0x1f')][_0x2f80('0x15')](_0x3c4c35);if(_0x4e0508&&_0x4e0508[_0x2f80('0xe')]('addHighlight'))return;_0x2f80('0x14')==_0x476e98[_0x2f80('0x1b')]&&(_0xe415f4[_0x2f80('0x1d')](_0x3c4c35)&&!_0xe415f4['isLimit'](_0x3c4c35)&&(_0x3c4c35[_0x2f80('0x18')]||_0x4b5b7c['isAtEnd']?_0xf5fceb&&_0xf5fceb[_0x2f80('0x21')]==_0x3c4c35||(_0xf5fceb=_0x3c4c35,_0x2b033c(_0x476e98[_0x2f80('0x13')]),_0x8752d0=!0x0):_0x2c8641=_0x2c8641||_0x476e98['previousPosition']));}function _0x2b033c(_0x3880b8){const _0x3813a4=_0x50e86d['writer'][_0x2f80('0x16')](_0x2f80('0x24'),{'class':'ck-suggestion-marker-'+_0x5deb3d}),_0x26213f=_0x50e86d['mapper'][_0x2f80('0x1a')](_0x3880b8);_0x143a7f&&_0x207ba9[_0x2f80('0x5')][_0x2f80('0x7')](_0x396550[_0x2f80('0x6')])&&_0x50e86d[_0x2f80('0xa')][_0x2f80('0x23')](_0x2f80('0x1c'),_0x3813a4),_0x50e86d[_0x2f80('0xa')][_0x2f80('0x19')](_0x26213f,_0x3813a4),_0x50e86d[_0x2f80('0x1f')][_0x2f80('0x1e')](_0x3813a4,_0x396550[_0x2f80('0x6')]);}_0x4cbc00||_0x8752d0||!_0x2c8641||_0x2b033c(_0x2c8641);};}
|