@ckeditor/ckeditor5-track-changes 38.0.0-rc.1 → 38.0.1
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 +2 -2
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x23d5=['markers','tableCell','removeMarker','_isForcedDefaultExecutionBlock','markMultiRangeInsertion','isEqual','$graveyard','newRange','editingDowncast','locale','markerAttributes','getColumnIndexes','tableCellVerticalAlignment','getAttributes','markerName','differ','move','ck-suggestion-marker','tableCellBorderStyle','columns','rowInsertionIndexes','remove','stop','batch','attributes','clipboardOutput','options','removeMarkers','elementToElement','createElement','getChildren','findAncestor','tableCellBorderColor','getShiftedBy','plugins','has','containsRange','map','first','fill','name','getItems','tablePasteChainId','_replaceTableSlotCell','content','getTableIfOnlyTableInContent','keys','afterInit','hasSuggestion','includes','getSelectionAffectedTableCells','dataDowncast','getContainedElement','forceDefaultExecution','removeColumns','columnInsertionIndexes','insertColumns','column','registerPostFixer','tableCellPadding','element','high','requires','author','_splitMarkerName','suggestion','filter','tablePasteRow','redo','reduce','last','_tablePostFixingSubtypes','_createdBatches','model','columnInsertionRanges','tablePasteColumn','from','formatBlock','commands','insertion','TableClipboard','getAllAdjacentSuggestions','setAttributes','cells','get','cell','createRangeIn','set','every','selection','Users','isInContent','wrap','join','find','insert','accept','registerDescriptionCallback','deletion','deletionRanges','unwrap','ck-suggestion-marker--active','ck-suggestion-marker-insertion','endRow','activeMarkers','add','startsWith','createRange','suggestion-td','subType','setAttribute','root','removeRows','createPositionBefore','insertionRanges','_suggestionFactory','for','table','createTableWalker','editing','conversion','getSuggestions','registerCustomCallback','low','markMultiRangeBlockFormat','isEmpty','type','entries','getChanges','return','tablePaste','length','getChild','end','tablePasteCell','getRange','change','getMarkers','createRangeOn','tableCellSuggestion','rows','TrackChangesEditing','_getCoordsForCells','suggestionUnloaded','previous','getSuggestion','getSuggestionCallback','getColumns','fromEntries','documentSelection','start','discard','push','oldRange','getChangedMarkers','editor','previousSibling','getRanges','markMultiRangeDeletion','position','suggestion:formatBlock:tablePasteCell','document','rowInsertionRanges','nodeAfter','markerToHighlight','view','register','row','insertContent','suggestionLoaded','endColumn'];(function(_0x52c97e,_0x23d5e5){const _0x41e162=function(_0x1a4131){while(--_0x1a4131){_0x52c97e['push'](_0x52c97e['shift']());}};_0x41e162(++_0x23d5e5);}(_0x23d5,0x1c0));const _0x41e1=function(_0x52c97e,_0x23d5e5){_0x52c97e=_0x52c97e-0x0;let _0x41e162=_0x23d5[_0x52c97e];return _0x41e162;};import{getTranslation as _0x37257a}from'../utils/common-translations';import{Plugin as _0x5b8d58}from'ckeditor5/src/core';import{uid as _0x1081c5,priorities as _0x908dc0}from'ckeditor5/src/utils';import _0x398a19 from'./table';const le=['tableCellBorderWidth',_0x41e1('0x61'),_0x41e1('0x53'),'tableCellHorizontalAlignment',_0x41e1('0x4d'),'tableCellBackgroundColor',_0x41e1('0x7c')],ae=Object[_0x41e1('0x2a')](le['map'](_0x254d3f=>[_0x254d3f,null]));export default class kt extends _0x5b8d58{static get[_0x41e1('0x7f')](){return[_0x398a19];}[_0x41e1('0x70')](){const _0x62ea88=this[_0x41e1('0x31')];if(!_0x62ea88[_0x41e1('0x63')][_0x41e1('0x64')](_0x41e1('0x91')))return;const _0x44202d=_0x62ea88[_0x41e1('0x63')][_0x41e1('0x95')](_0x41e1('0x23')),_0xaa3da9=_0x62ea88[_0x41e1('0x63')][_0x41e1('0x95')]('TableUtils'),_0x400784=_0x62ea88[_0x41e1('0x63')]['get'](_0x398a19),_0x2ac116=_0x62ea88['plugins'][_0x41e1('0x95')](_0x41e1('0x91'));_0x400784[_0x41e1('0x88')]['push'](_0x41e1('0x84'),_0x41e1('0x8c')),_0x62ea88[_0x41e1('0x8a')]['schema'][_0x41e1('0x3c')](_0x41e1('0x21'),{'allowIn':'tableCell','allowContentOf':_0x41e1('0x42'),'isLimit':!0x0}),_0x62ea88[_0x41e1('0xe')][_0x41e1('0x5d')]({'model':_0x41e1('0x21'),'view':_0x41e1('0x2')});let _0x1e8b12=null;_0x62ea88[_0x41e1('0x8a')]['on']('insertContent',(_0x10887c,_0x2c641d)=>{const [_0x338afe,_0x29e0d2]=_0x2c641d,_0x1c6bf3=_0x2c641d[_0x2c641d[_0x41e1('0x19')]-0x1];_0x1c6bf3&&_0x1c6bf3[_0x41e1('0x76')]||_0x44202d[_0x41e1('0x44')]||this[_0x41e1('0x31')][_0x41e1('0x8f')]['get']('trackChanges')['value']&&function(_0x1109e9,_0x18f984,_0x505992,_0x40d4d1,_0x20bb49){if(_0x18f984&&!_0x18f984['is'](_0x41e1('0x2b')))return!0x1;const _0x1b67f5=_0x20bb49[_0x41e1('0x6e')](_0x1109e9,_0x505992);if(!_0x1b67f5||!fe(_0x1b67f5,void 0x0,_0x40d4d1))return!0x1;const _0x5457d2=_0x40d4d1[_0x41e1('0x73')](_0x505992[_0x41e1('0x37')][_0x41e1('0x9a')]);if(!_0x5457d2[_0x41e1('0x19')])return!0x1;const _0x7d6fa6=_0x5457d2[0x0]['findAncestor'](_0x41e1('0xb')),_0x189861=_0x40d4d1['getRowIndexes'](_0x5457d2),_0xe13088=_0x40d4d1[_0x41e1('0x4c')](_0x5457d2),_0x382514={'startRow':_0x189861[_0x41e1('0x67')],'endRow':_0x189861[_0x41e1('0x87')],'startColumn':_0xe13088['first'],'endColumn':_0xe13088['last']};return 0x1==_0x5457d2[_0x41e1('0x19')]&&(_0x382514[_0x41e1('0xa8')]+=_0x40d4d1['getRows'](_0x1b67f5)-0x1,_0x382514[_0x41e1('0x40')]+=_0x40d4d1[_0x41e1('0x29')](_0x1b67f5)-0x1),fe(_0x7d6fa6,_0x382514,_0x40d4d1);}(_0x338afe,_0x29e0d2,_0x62ea88[_0x41e1('0x8a')],_0xaa3da9,_0x2ac116)&&(_0x10887c['stop'](),_0x1e8b12={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x62ea88[_0x41e1('0x8a')]['change'](()=>{_0x62ea88[_0x41e1('0x8a')][_0x41e1('0x3e')](_0x2c641d[0x0],_0x2c641d[0x1],_0x2c641d[0x2],{'forceDefaultExecution':!0x0});const _0x288de6=_0x1081c5(),{rowInsertionRanges:_0x52360b,columnInsertionRanges:_0x24accb,insertionRanges:_0x197c47,deletionRanges:_0x450b54,cells:_0x3a775a}=_0x1e8b12;_0x52360b[_0x41e1('0x19')]&&_0x44202d['markMultiRangeInsertion'](_0x52360b,'tablePasteRow',{'tablePasteChainId':_0x288de6}),_0x24accb[_0x41e1('0x19')]&&_0x44202d[_0x41e1('0x45')](_0x24accb,_0x41e1('0x8c'),{'tablePasteChainId':_0x288de6}),_0x197c47[_0x41e1('0x19')]&&_0x44202d[_0x41e1('0x45')](_0x197c47,_0x41e1('0x18'),{'tablePasteChainId':_0x288de6,'skipNestingCheck':!0x0}),_0x450b54[_0x41e1('0x19')]&&_0x44202d[_0x41e1('0x34')](_0x450b54,_0x41e1('0x18'),{'tablePasteChainId':_0x288de6,'skipNestingCheck':!0x0});const _0x548cf5=_0x44202d[_0x41e1('0x12')](_0x3a775a['map'](({element:_0x28b11c})=>_0x28b11c),{'formatGroupId':_0x1081c5()},[],_0x41e1('0x1c'),{'tablePasteChainId':_0x288de6});if(_0x548cf5){const _0x14beb2=_0x548cf5[_0x41e1('0x1f')](),_0x3aea01=[];for(const {element:_0x49a258,attributes:_0xb6e736}of _0x3a775a){if(!_0xb6e736)continue;const _0xaf1d7e=_0x62ea88['model'][_0x41e1('0x20')](_0x49a258),_0x23e57c=_0x14beb2[_0x41e1('0x9f')](_0x482989=>_0x482989[_0x41e1('0x1d')]()[_0x41e1('0x46')](_0xaf1d7e));_0x23e57c&&_0x3aea01[_0x41e1('0x2e')]([_0x23e57c[_0x41e1('0x69')],_0xb6e736]);}_0x3aea01[_0x41e1('0x19')]&&_0x548cf5[_0x41e1('0x4')](_0x41e1('0x4b'),Object['fromEntries'](_0x3aea01));}_0x1e8b12=null;}));},{'priority':_0x908dc0[_0x41e1('0x7e')]+0xa}),_0x62ea88['plugins'][_0x41e1('0x95')]('TableClipboard')['on'](_0x41e1('0x6c'),(_0x7a2d0f,_0x3ff35e)=>{const [_0x5b6516,_0x182af5,,_0x1a2e44]=_0x3ff35e;if(!_0x1e8b12)return;_0x7a2d0f[_0x41e1('0x57')]();const _0xb528ff=_0x5b6516[_0x41e1('0x96')],_0x2eb658=_0x182af5,_0x1e9455=ce(_0xb528ff),_0x1f5d17=ce(_0x2eb658);_0x7a2d0f[_0x41e1('0x17')]=_0xb528ff;let _0x77f3dd=null,_0x48a800=null;if(_0x1f5d17||_0x1e9455){if(_0x1e9455&&!_0x1f5d17){_0x1a2e44[_0x41e1('0x56')](_0xb528ff['getChild'](0x0));for(const _0x376ad4 of Array[_0x41e1('0x8d')](_0x2eb658[_0x41e1('0x5f')]()))_0x1a2e44['insert'](_0x376ad4,_0xb528ff,_0x41e1('0x1b'));const _0x3a06de=_0x1e8b12[_0x41e1('0x55')][_0x41e1('0x72')](_0x5b6516[_0x41e1('0x3d')]),_0x37f2ee=_0x1e8b12[_0x41e1('0x78')]['includes'](_0x5b6516[_0x41e1('0x7a')]);_0x3a06de||_0x37f2ee||(_0x77f3dd=_0x1a2e44[_0x41e1('0x97')](_0xb528ff));}else _0x1f5d17&&!_0x1e9455&&(_0x48a800=_0x1a2e44[_0x41e1('0x97')](_0xb528ff));}else{const _0x16ecd9=_0x1a2e44[_0x41e1('0x5e')](_0x41e1('0x21')),_0x2c7b48=_0x1a2e44[_0x41e1('0x5e')](_0x41e1('0x21'));_0x1a2e44[_0x41e1('0x9d')](_0x1a2e44['createRangeIn'](_0xb528ff),_0x2c7b48),_0x1a2e44[_0x41e1('0xa0')](_0x16ecd9,_0xb528ff,0x0);for(const _0x19e4ee of Array['from'](_0x2eb658[_0x41e1('0x5f')]()))_0x1a2e44['insert'](_0x19e4ee,_0x16ecd9,_0x41e1('0x1b'));_0x77f3dd=_0x1a2e44[_0x41e1('0x20')](_0x16ecd9),_0x48a800=_0x1a2e44[_0x41e1('0x20')](_0x2c7b48);}const _0x192ff7=Array[_0x41e1('0x8d')](_0x2eb658[_0x41e1('0x4e')]())[_0x41e1('0x83')](([_0x5000bd])=>le[_0x41e1('0x72')](_0x5000bd));_0x1e8b12[_0x41e1('0x94')][_0x41e1('0x2e')]({'element':_0xb528ff,'attributes':_0x192ff7[_0x41e1('0x19')]?Object[_0x41e1('0x2a')](_0x192ff7):null}),_0x77f3dd&&_0x1e8b12[_0x41e1('0x8')]['push'](_0x77f3dd),_0x48a800&&_0x1e8b12[_0x41e1('0xa4')][_0x41e1('0x2e')](_0x48a800);},{'priority':_0x41e1('0x7e')}),_0xaa3da9['on'](_0x41e1('0x79'),(_0x1363d7,_0x388abf)=>{const [_0xec74d5,_0x5cee9e={}]=_0x388abf;if(!_0x1e8b12)return;const _0x5154ae=_0x5cee9e['at']||0x0,_0x4bf888=_0x5cee9e[_0x41e1('0x54')]||0x1;_0x1e8b12[_0x41e1('0x78')]=new Array(_0x4bf888)[_0x41e1('0x68')](_0x5154ae)[_0x41e1('0x66')]((_0x3d99fe,_0xbf0820)=>_0x3d99fe+_0xbf0820);for(const {cell:_0x30d356}of _0xaa3da9['createTableWalker'](_0xec74d5,{'startColumn':_0x5154ae,'endColumn':_0x5154ae+_0x4bf888-0x1}))_0x1e8b12[_0x41e1('0x8b')][_0x41e1('0x2e')](_0x62ea88['model']['createRangeOn'](_0x30d356));},{'priority':_0x41e1('0x11')}),_0xaa3da9['on']('insertRows',(_0x3200b9,_0x2fb74b)=>{const [_0x27aef1,_0x537a73={}]=_0x2fb74b;if(!_0x1e8b12)return;const _0x2710b5=_0x537a73['at']||0x0,_0x2f0d8a=_0x537a73[_0x41e1('0x22')]||0x1;_0x1e8b12[_0x41e1('0x55')]=new Array(_0x2f0d8a)[_0x41e1('0x68')](_0x2710b5)[_0x41e1('0x66')]((_0x8a9e16,_0x1229ff)=>_0x8a9e16+_0x1229ff);for(const {cell:_0x2142a3}of _0xaa3da9[_0x41e1('0xc')](_0x27aef1,{'startRow':_0x2710b5,'endRow':_0x2710b5+_0x2f0d8a-0x1}))_0x1e8b12[_0x41e1('0x38')][_0x41e1('0x2e')](_0x62ea88[_0x41e1('0x8a')][_0x41e1('0x20')](_0x2142a3));},{'priority':_0x41e1('0x11')}),_0x44202d['_descriptionFactory'][_0x41e1('0xa2')](_0x317008=>{if(_0x317008['subType']&&_0x317008['subType'][_0x41e1('0x0')](_0x41e1('0x18')))return _0x317008[_0x41e1('0x26')]?{}:{'type':_0x41e1('0x90'),'content':_0x37257a(_0x62ea88[_0x41e1('0x4a')],'*Replace\x20table\x20cells*')};});const _0x346047=()=>{};for(const _0x3539c5 of['tablePaste',_0x41e1('0x8c'),_0x41e1('0x84'),_0x41e1('0x1c')])_0x44202d[_0x41e1('0x9')][_0x41e1('0x10')](_0x41e1('0x90'),_0x3539c5,_0x41e1('0x9e'),_0x346047),_0x44202d[_0x41e1('0x9')]['registerCustomCallback'](_0x41e1('0xa3'),_0x3539c5,_0x41e1('0x9e'),_0x346047);_0x44202d[_0x41e1('0x9')][_0x41e1('0x10')](_0x41e1('0x8e'),_0x41e1('0x1c'),_0x41e1('0x2d'),_0x346047),_0x44202d['_suggestionFactory'][_0x41e1('0x10')]('formatBlock',_0x41e1('0x1c'),_0x41e1('0xa1'),(_0x36a620,_0x57bef3,_0x171f18)=>{const _0x43c081=_0x36a620[_0x41e1('0x66')](_0x50d039=>_0x50d039[_0x41e1('0x75')]())[_0x41e1('0x83')](_0x4ed098=>_0x4ed098),_0x385342=new Map(_0x43c081[_0x41e1('0x66')](_0x164b09=>[_0x164b09,null]));if(_0x1e8b12)for(const {element:_0x54d0c5,attributes:_0x51e74d}of _0x1e8b12[_0x41e1('0x94')])_0x51e74d&&_0x385342[_0x41e1('0x98')](_0x54d0c5,_0x51e74d);else{if(_0x171f18&&_0x171f18[_0x41e1('0x4b')])for(const [_0x3a04e2,_0x22966c]of Object[_0x41e1('0x15')](_0x171f18[_0x41e1('0x4b')])){const _0x101f74=_0x62ea88[_0x41e1('0x8a')][_0x41e1('0x41')][_0x41e1('0x95')](_0x3a04e2),_0x5bfaaf=_0x101f74?_0x101f74[_0x41e1('0x1d')]()[_0x41e1('0x75')]():null;_0x5bfaaf&&_0x385342[_0x41e1('0x98')](_0x5bfaaf,_0x22966c);}}_0x62ea88[_0x41e1('0x8a')][_0x41e1('0x1e')](_0x56647c=>{for(const [_0x4ccf9d,_0x12ac3a]of _0x385342)_0x56647c[_0x41e1('0x93')]({...ae,..._0x12ac3a},_0x4ccf9d);});});const _0x2c8547=(_0x2df088,_0x460df8)=>{_0x44202d[_0x41e1('0x9')][_0x41e1('0x10')](_0x2df088,'tablePaste',_0x460df8,(_0x5ae344,_0x5e91f7,_0x340bd6)=>{_0x62ea88['model'][_0x41e1('0x1e')](_0xe3bb82=>{const _0x429ff8=[];for(const _0x5d5a34 of _0x5ae344){const _0x5e64ad=_0x5d5a34[_0x41e1('0x2c')][_0x41e1('0x39')];_0x5e64ad['is']('element','tableCellSuggestion')&&_0x429ff8['push'](_0x5e64ad);}_0x44202d[_0x41e1('0x9')][_0x41e1('0x28')](_0x2df088,null,_0x460df8)(_0x5ae344,_0x5e91f7,_0x340bd6);for(const _0xf9f0a8 of _0x429ff8)_0x41e1('0x47')!=_0xf9f0a8[_0x41e1('0x5')]['rootName']&&_0xe3bb82[_0x41e1('0xa5')](_0xf9f0a8);});});};_0x2c8547('insertion',_0x41e1('0xa1')),_0x2c8547(_0x41e1('0x90'),'discard'),_0x2c8547(_0x41e1('0xa3'),'accept'),_0x2c8547(_0x41e1('0xa3'),_0x41e1('0x2d')),_0x44202d['_suggestionFactory']['registerCustomCallback'](_0x41e1('0x90'),_0x41e1('0x84'),'discard',_0x99b54a=>{const _0x2935eb=_0x99b54a[_0x41e1('0x66')](_0x3910a1=>_0x3910a1[_0x41e1('0x75')]()),_0x20e339=_0x2935eb[0x0][_0x41e1('0x60')](_0x41e1('0xb')),{minRow:_0x5b0bac,maxRow:_0x2ada3a}=_0x400784[_0x41e1('0x24')](_0x2935eb);_0xaa3da9[_0x41e1('0x6')](_0x20e339,{'at':_0x5b0bac,'rows':_0x2ada3a-_0x5b0bac+0x1});}),_0x44202d['_suggestionFactory'][_0x41e1('0x10')](_0x41e1('0x90'),_0x41e1('0x8c'),_0x41e1('0x2d'),_0x42939e=>{const _0x520a57=_0x42939e[_0x41e1('0x66')](_0x3606dd=>_0x3606dd[_0x41e1('0x75')]()),_0x489dbc=_0x520a57[0x0][_0x41e1('0x60')](_0x41e1('0xb')),{minColumn:_0x6aa7b7,maxColumn:_0x3845c1}=_0x400784[_0x41e1('0x24')](_0x520a57);_0xaa3da9[_0x41e1('0x77')](_0x489dbc,{'at':_0x6aa7b7,'columns':_0x3845c1-_0x6aa7b7+0x1});});const _0x4c90db=(_0x4adcf8,_0x1c57e3)=>{if(!_0x1c57e3[_0x41e1('0x3')]||!_0x1c57e3[_0x41e1('0x3')]['startsWith'](_0x41e1('0x18')))return;const _0xa5c2f3=_0x1c57e3[_0x41e1('0x59')][_0x41e1('0x6b')],_0x59915a=_0x44202d[_0x41e1('0xf')]()[_0x41e1('0x83')](_0x3934e8=>_0x3934e8[_0x41e1('0x9c')]&&_0x3934e8[_0x41e1('0x59')]&&_0x3934e8[_0x41e1('0x59')][_0x41e1('0x6b')]==_0xa5c2f3);_0x59915a[_0x41e1('0x19')]&&_0x1c57e3[_0x41e1('0x92')]()[_0x41e1('0x19')]!=_0x59915a['length']&&_0x59915a[_0x41e1('0x86')]((_0x269299,_0x46b3ea)=>(_0x269299['next']=_0x46b3ea,_0x46b3ea[_0x41e1('0x26')]=_0x269299,_0x46b3ea));};function _0x4ee068(_0x59c4bb,_0xfeee27=!0x0){const {id:_0x461ceb}=_0x44202d[_0x41e1('0x81')](_0x59c4bb[_0x41e1('0x4f')]),_0x4525f0=[_0x41e1('0x52'),_0x41e1('0xa7')],_0x5ca5f6=_0x44202d[_0x41e1('0xa9')][_0x41e1('0x72')](_0x59c4bb[_0x41e1('0x4f')]);return _0x5ca5f6&&_0x4525f0[_0x41e1('0x2e')](_0x41e1('0xa6')),{'classes':_0x4525f0,'attributes':{'data-suggestion':_0x461ceb},'priority':_0x5ca5f6&&_0xfeee27?0xbc2:0xbb8};}_0x44202d['on'](_0x41e1('0x3f'),_0x4c90db,{'priority':'high'}),_0x44202d['on'](_0x41e1('0x25'),_0x4c90db,{'priority':_0x41e1('0x7e')}),_0x62ea88[_0x41e1('0x8a')][_0x41e1('0x37')][_0x41e1('0x7b')](()=>{let _0x4591e0=!0x1;const _0x5aa72a=Array['from'](_0x62ea88[_0x41e1('0x8a')]['document'][_0x41e1('0x50')][_0x41e1('0x30')]());for(const {name:_0x231839,data:_0x162a3c}of _0x5aa72a){const {group:_0x5bf776,type:_0xa8f15f,id:_0x59d6cf}=_0x44202d[_0x41e1('0x81')](_0x231839);if('suggestion'!=_0x5bf776||_0x41e1('0xa3')!=_0xa8f15f||_0x162a3c[_0x41e1('0x2f')])continue;if(!_0x44202d[_0x41e1('0x71')](_0x59d6cf))continue;const _0x2d3a53=_0x44202d[_0x41e1('0x27')](_0x59d6cf)['getRanges'](),_0x4494f7=_0x62ea88['plugins'][_0x41e1('0x95')](_0x41e1('0x9b'))['me'];for(const _0x481e49 of _0x44202d[_0x41e1('0xf')]()){if(!_0x481e49[_0x41e1('0x9c')]||_0x481e49[_0x41e1('0x80')]!=_0x4494f7)continue;if(_0x41e1('0x8e')!=_0x481e49['type']||_0x41e1('0x1c')!=_0x481e49['subType'])continue;if(_0x481e49[_0x41e1('0x33')]()[_0x41e1('0x99')](_0x3f2277=>_0x2d3a53['some'](_0x19fd19=>_0x19fd19[_0x41e1('0x65')](_0x3f2277,!0x0))))for(const _0x253fee of _0x481e49[_0x41e1('0x92')]())_0x253fee['isInContent']&&(_0x253fee['discard'](),_0x4591e0=!0x0);}}return _0x4591e0;}),_0x62ea88[_0x41e1('0x8a')][_0x41e1('0x37')]['registerPostFixer'](_0x85ac9b=>{const _0x2dc607=_0x62ea88['commands'][_0x41e1('0x95')](_0x41e1('0x85'));if(!_0x2dc607||!_0x2dc607[_0x41e1('0x89')][_0x41e1('0x64')](_0x85ac9b[_0x41e1('0x58')]))return!0x1;let _0x486f89=!0x1;const _0x5c405e=_0x62ea88[_0x41e1('0x63')][_0x41e1('0x95')](_0x41e1('0x9b'))['me'],_0x27c7f0=_0x62ea88[_0x41e1('0x8a')][_0x41e1('0x37')][_0x41e1('0x50')][_0x41e1('0x16')](),_0x4c00ab=Array[_0x41e1('0x8d')](_0x62ea88['model'][_0x41e1('0x37')]['differ'][_0x41e1('0x30')]())['filter'](({name:_0x5d73f0,data:_0xc18fc4})=>{const {group:_0xe03b1b,subType:_0x4d2c52,authorId:_0x59c6ed}=_0x44202d[_0x41e1('0x81')](_0x5d73f0);return _0x41e1('0x82')==_0xe03b1b&&_0x41e1('0x18')==_0x4d2c52&&_0x59c6ed==_0x5c405e['id']&&!_0xc18fc4[_0x41e1('0x2f')];});for(const _0x1aca44 of _0x27c7f0){if(_0x41e1('0xa0')!=_0x1aca44[_0x41e1('0x14')]||_0x41e1('0x21')!=_0x1aca44['name']||0x1!=_0x1aca44[_0x41e1('0x19')])continue;const _0x7896e9=_0x85ac9b[_0x41e1('0x1')](_0x1aca44[_0x41e1('0x35')],_0x1aca44[_0x41e1('0x35')][_0x41e1('0x62')](0x1));if(!_0x4c00ab[_0x41e1('0x9f')](({data:_0x435d47})=>_0x435d47[_0x41e1('0x48')][_0x41e1('0x46')](_0x7896e9)))for(const {name:_0x9087dd,data:_0x2f4599}of _0x4c00ab)if(_0x7896e9[_0x41e1('0x65')](_0x2f4599[_0x41e1('0x48')])){_0x85ac9b['updateMarker'](_0x9087dd,{'range':_0x7896e9}),_0x486f89=!0x0;break;}}return _0x486f89;}),_0x62ea88[_0x41e1('0x8a')]['document'][_0x41e1('0x7b')](_0x1c99b0=>{let _0x2e05bf=!0x1;const _0x1fb8cf=_0x62ea88['plugins'][_0x41e1('0x95')](_0x41e1('0x9b'))['me'],_0x17c92f=_0x44202d['getSuggestions']()[_0x41e1('0x83')](_0x463547=>_0x463547[_0x41e1('0x9c')]&&_0x463547[_0x41e1('0x80')]==_0x1fb8cf),_0x7c631e=new Set(),_0x23c747=new Set();for(const _0x5235c3 of _0x17c92f)if(_0x41e1('0x18')==_0x5235c3[_0x41e1('0x3')])for(const _0x51f8b0 of _0x5235c3[_0x41e1('0x1f')]()){const _0x52b85c=_0x51f8b0[_0x41e1('0x1d')]()[_0x41e1('0x75')]();if(_0x52b85c){if(_0x52b85c['is'](_0x41e1('0x7d'),_0x41e1('0x21'))&&ce(_0x52b85c)){_0x5235c3[_0x41e1('0x43')](_0x51f8b0[_0x41e1('0x69')]),_0x7c631e[_0x41e1('0xaa')](_0x52b85c),_0x2e05bf=!0x0;const _0x92e1aa=_0x52b85c['nextSibling'],_0x246de2=_0x52b85c[_0x41e1('0x32')],_0x2f8a3a=_0x92e1aa&&_0x92e1aa['is'](_0x41e1('0x7d'),_0x41e1('0x21')),_0x4776ce=_0x246de2&&_0x246de2['is'](_0x41e1('0x7d'),_0x41e1('0x21'));_0x2f8a3a&&!_0x7c631e[_0x41e1('0x64')](_0x92e1aa)&&_0x23c747[_0x41e1('0xaa')](_0x92e1aa),_0x4776ce&&!_0x7c631e[_0x41e1('0x64')](_0x246de2)&&_0x23c747[_0x41e1('0xaa')](_0x246de2);}else _0x52b85c['is'](_0x41e1('0x7d'),'paragraph')&&_0x52b85c[_0x41e1('0x13')]&&(_0x5235c3[_0x41e1('0x43')](_0x51f8b0['name']),_0x2e05bf=!0x0);}}else{if(_0x41e1('0x1c')==_0x5235c3['subType']){if(!_0x5235c3[_0x41e1('0x59')]||!_0x5235c3['attributes']['tablePasteChainId'])continue;const _0x1937b2=_0x5235c3['attributes'][_0x41e1('0x4b')];if(_0x1937b2&&Object[_0x41e1('0x6f')](_0x1937b2)[_0x41e1('0x19')])continue;const _0x1c824d=_0x5235c3[_0x41e1('0x59')][_0x41e1('0x6b')];let _0x548e4b=!0x0,_0x30d596=!0x0;for(const _0x471d4a of _0x17c92f)if(_0x471d4a[_0x41e1('0x3')]&&_0x471d4a[_0x41e1('0x3')][_0x41e1('0x0')](_0x41e1('0x18'))){if(!_0x471d4a[_0x41e1('0x59')][_0x41e1('0x6b')]){_0x30d596=!0x1;break;}if(_0x471d4a['id']!=_0x5235c3['id']&&_0x471d4a[_0x41e1('0x59')][_0x41e1('0x6b')]==_0x1c824d){_0x548e4b=!0x1;break;}}_0x30d596&&_0x548e4b&&(_0x5235c3[_0x41e1('0x5c')](),_0x2e05bf=!0x0);}}for(const _0x6f3d13 of _0x7c631e)_0x1c99b0[_0x41e1('0x56')](_0x6f3d13);for(const _0x19e341 of _0x23c747)_0x1c99b0[_0x41e1('0xa5')](_0x19e341);return _0x2e05bf;}),_0x62ea88[_0x41e1('0xe')][_0x41e1('0xa')](_0x41e1('0x49'))[_0x41e1('0x3a')]({'model':_0x41e1('0x36'),'view':(_0x1f4a66,_0x2ead68)=>_0x4ee068(_0x1f4a66),'converterPriority':_0x41e1('0x7e')}),_0x62ea88[_0x41e1('0xe')]['for'](_0x41e1('0x74'))[_0x41e1('0x3a')]({'model':_0x41e1('0x36'),'view':(_0x5e8299,_0x5f6f48)=>_0x5f6f48[_0x41e1('0x5b')]['showSuggestionHighlights']?_0x4ee068(_0x5e8299,!0x1):null,'converterPriority':_0x41e1('0x7e')});const _0x35e160=_0x62ea88[_0x41e1('0xd')][_0x41e1('0x3b')];this['listenTo'](_0x35e160[_0x41e1('0x37')],_0x41e1('0x5a'),(_0x8dd560,_0x4cb797)=>{const _0x522536=[];for(const _0x4ac9e8 of _0x35e160[_0x41e1('0x97')](_0x4cb797[_0x41e1('0x6d')])[_0x41e1('0x6a')]())_0x4ac9e8['is'](_0x41e1('0x7d'),_0x41e1('0x2'))&&_0x522536[_0x41e1('0x2e')](_0x4ac9e8);_0x35e160[_0x41e1('0x1e')](_0x5a9e83=>{for(const _0x233e92 of _0x522536)_0x5a9e83[_0x41e1('0x51')](_0x5a9e83[_0x41e1('0x97')](_0x233e92),_0x5a9e83[_0x41e1('0x7')](_0x233e92)),_0x5a9e83[_0x41e1('0x56')](_0x233e92);});});}}function ce(_0x45bc59){if(_0x45bc59['isEmpty'])return!0x0;const _0x4e24ab=_0x45bc59[_0x41e1('0x1a')](0x0);return _0x4e24ab['is'](_0x41e1('0x7d'),'paragraph')&&_0x4e24ab['isEmpty'];}function fe(_0xdf22ef,_0x25efe4={},_0x44abfe){for(const {isAnchor:_0x1c4f95,cellHeight:_0x53ea8f,cellWidth:_0x388860}of _0x44abfe[_0x41e1('0xc')](_0xdf22ef,{'includeAllSlots':!0x0,..._0x25efe4}))if(!_0x1c4f95||0x1!=_0x53ea8f||0x1!=_0x388860)return!0x1;return!0x0;}
|
|
23
|
+
const _0x3635=['accept','tableCellPadding','rootName','getColumns','registerCustomCallback','document','subType','includes','getSuggestionCallback','discard','commands','cells','suggestionLoaded','getMarkers','$graveyard','markerName','length','redo','reduce','remove','for','first','TableUtils','add','getChanges','previousSibling','insertContent','elementToElement','insertRows','schema','model','createRange','createElement','ck-suggestion-marker-insertion','_tablePostFixingSubtypes','batch','root','removeColumns','getColumnIndexes','from','tablePasteChainId','createTableWalker','author','get','name','updateMarker','suggestion','content','TableClipboard','getAllAdjacentSuggestions','containsRange','setAttribute','newRange','push','createPositionBefore','differ','tableCellVerticalAlignment','_suggestionFactory','has','low','previous','insertion','tableCellSuggestion','editingDowncast','registerPostFixer','*Replace\x20table\x20cells*','columns','tableCellBorderColor','locale','forceDefaultExecution','markerToHighlight','attributes','removeMarker','tablePasteCell','value','suggestion:formatBlock:tablePasteCell','some','end','getRange','suggestionUnloaded','createRangeOn','type','tableCellHorizontalAlignment','markMultiRangeInsertion','set','ck-suggestion-marker--active','stop','getSuggestion','fill','tablePasteColumn','element','keys','fromEntries','move','markMultiRangeBlockFormat','getRowIndexes','dataDowncast','every','findAncestor','getChangedMarkers','tableCellBackgroundColor','high','conversion','getContainedElement','getShiftedBy','change','startsWith','view','getChild','trackChanges','find','isEmpty','showSuggestionHighlights','_descriptionFactory','tableCellBorderStyle','markers','suggestion-td','getRanges','registerDescriptionCallback','filter','tableCell','position','getChildren','isInContent','createRangeIn','_createdBatches','editor','options','isEqual','endColumn','oldRange','table','tablePaste','listenTo','getItems','getSuggestions','start','TrackChangesEditing','afterInit','requires','clipboardOutput','_getCoordsForCells','markerAttributes','column','rowInsertionRanges','plugins','unwrap','insert','columnInsertionIndexes','paragraph','editing','map','getTableIfOnlyTableInContent','nodeAfter','entries','rows','deletion','formatBlock','rowInsertionIndexes','Users','columnInsertionRanges','tablePasteRow','markMultiRangeDeletion','selection','_splitMarkerName'];(function(_0x44e692,_0x3635af){const _0x20dd41=function(_0x488122){while(--_0x488122){_0x44e692['push'](_0x44e692['shift']());}};_0x20dd41(++_0x3635af);}(_0x3635,0x185));const _0x20dd=function(_0x44e692,_0x3635af){_0x44e692=_0x44e692-0x0;let _0x20dd41=_0x3635[_0x44e692];return _0x20dd41;};import{getTranslation as _0x1dbe8b}from'../utils/common-translations';import{Plugin as _0x1c7d99}from'ckeditor5/src/core';import{uid as _0x2625cf,priorities as _0x2ec4c9}from'ckeditor5/src/utils';import _0xb33fbd from'./table';const le=['tableCellBorderWidth',_0x20dd('0x8'),_0x20dd('0x37'),_0x20dd('0x17'),_0x20dd('0xa2'),_0x20dd('0x29'),_0x20dd('0x6b')],ae=Object[_0x20dd('0x21')](le[_0x20dd('0x5c')](_0x670a70=>[_0x670a70,null]));export default class kt extends _0x1c7d99{static get[_0x20dd('0x50')](){return[_0xb33fbd];}[_0x20dd('0x4f')](){const _0x2a3c44=this[_0x20dd('0x43')];if(!_0x2a3c44[_0x20dd('0x56')][_0x20dd('0xa4')](_0x20dd('0x9a')))return;const _0x234750=_0x2a3c44[_0x20dd('0x56')][_0x20dd('0x95')](_0x20dd('0x4e')),_0x1982e3=_0x2a3c44[_0x20dd('0x56')][_0x20dd('0x95')](_0x20dd('0x80')),_0x2847f4=_0x2a3c44['plugins'][_0x20dd('0x95')](_0xb33fbd),_0x2b2c04=_0x2a3c44[_0x20dd('0x56')][_0x20dd('0x95')](_0x20dd('0x9a'));_0x2847f4[_0x20dd('0x8c')][_0x20dd('0x9f')](_0x20dd('0x66'),'tablePasteColumn'),_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x87')]['register'](_0x20dd('0x3'),{'allowIn':'tableCell','allowContentOf':_0x20dd('0x3d'),'isLimit':!0x0}),_0x2a3c44[_0x20dd('0x2b')][_0x20dd('0x85')]({'model':_0x20dd('0x3'),'view':_0x20dd('0x39')});let _0x451873=null;_0x2a3c44['model']['on'](_0x20dd('0x84'),(_0x56a13,_0x201de3)=>{const [_0x4520ec,_0x1de59b]=_0x201de3,_0x4eee92=_0x201de3[_0x201de3[_0x20dd('0x7a')]-0x1];_0x4eee92&&_0x4eee92[_0x20dd('0xa')]||_0x234750['_isForcedDefaultExecutionBlock']||this['editor'][_0x20dd('0x74')][_0x20dd('0x95')](_0x20dd('0x32'))[_0x20dd('0xf')]&&function(_0x4d6569,_0x369031,_0x11c85e,_0x51fcd2,_0x30d353){if(_0x369031&&!_0x369031['is']('documentSelection'))return!0x1;const _0x11e00f=_0x30d353[_0x20dd('0x5d')](_0x4d6569,_0x11c85e);if(!_0x11e00f||!fe(_0x11e00f,void 0x0,_0x51fcd2))return!0x1;const _0x41bd6c=_0x51fcd2['getSelectionAffectedTableCells'](_0x11c85e[_0x20dd('0x6f')][_0x20dd('0x68')]);if(!_0x41bd6c[_0x20dd('0x7a')])return!0x1;const _0x238017=_0x41bd6c[0x0][_0x20dd('0x27')](_0x20dd('0x48')),_0x159bea=_0x51fcd2[_0x20dd('0x24')](_0x41bd6c),_0x50f099=_0x51fcd2[_0x20dd('0x90')](_0x41bd6c),_0x57148e={'startRow':_0x159bea[_0x20dd('0x7f')],'endRow':_0x159bea['last'],'startColumn':_0x50f099['first'],'endColumn':_0x50f099['last']};return 0x1==_0x41bd6c[_0x20dd('0x7a')]&&(_0x57148e['endRow']+=_0x51fcd2['getRows'](_0x11e00f)-0x1,_0x57148e[_0x20dd('0x46')]+=_0x51fcd2[_0x20dd('0x6d')](_0x11e00f)-0x1),fe(_0x238017,_0x57148e,_0x51fcd2);}(_0x4520ec,_0x1de59b,_0x2a3c44[_0x20dd('0x88')],_0x1982e3,_0x2b2c04)&&(_0x56a13[_0x20dd('0x1b')](),_0x451873={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x2e')](()=>{_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x84')](_0x201de3[0x0],_0x201de3[0x1],_0x201de3[0x2],{'forceDefaultExecution':!0x0});const _0x308dea=_0x2625cf(),{rowInsertionRanges:_0x30ca0a,columnInsertionRanges:_0x3c7b40,insertionRanges:_0x363d93,deletionRanges:_0x58e989,cells:_0x5b0337}=_0x451873;_0x30ca0a['length']&&_0x234750[_0x20dd('0x18')](_0x30ca0a,_0x20dd('0x66'),{'tablePasteChainId':_0x308dea}),_0x3c7b40['length']&&_0x234750[_0x20dd('0x18')](_0x3c7b40,_0x20dd('0x1e'),{'tablePasteChainId':_0x308dea}),_0x363d93[_0x20dd('0x7a')]&&_0x234750[_0x20dd('0x18')](_0x363d93,'tablePaste',{'tablePasteChainId':_0x308dea,'skipNestingCheck':!0x0}),_0x58e989[_0x20dd('0x7a')]&&_0x234750[_0x20dd('0x67')](_0x58e989,_0x20dd('0x49'),{'tablePasteChainId':_0x308dea,'skipNestingCheck':!0x0});const _0x134c20=_0x234750[_0x20dd('0x23')](_0x5b0337[_0x20dd('0x5c')](({element:_0x3805a1})=>_0x3805a1),{'formatGroupId':_0x2625cf()},[],'tablePasteCell',{'tablePasteChainId':_0x308dea});if(_0x134c20){const _0x4208d7=_0x134c20[_0x20dd('0x77')](),_0x2c0688=[];for(const {element:_0x1ead54,attributes:_0x2b99fc}of _0x5b0337){if(!_0x2b99fc)continue;const _0x4db20d=_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x15')](_0x1ead54),_0x95cd88=_0x4208d7[_0x20dd('0x33')](_0x126d65=>_0x126d65[_0x20dd('0x13')]()[_0x20dd('0x45')](_0x4db20d));_0x95cd88&&_0x2c0688['push']([_0x95cd88['name'],_0x2b99fc]);}_0x2c0688[_0x20dd('0x7a')]&&_0x134c20[_0x20dd('0x9d')](_0x20dd('0x53'),Object[_0x20dd('0x21')](_0x2c0688));}_0x451873=null;}));},{'priority':_0x2ec4c9[_0x20dd('0x2a')]+0xa}),_0x2a3c44[_0x20dd('0x56')][_0x20dd('0x95')](_0x20dd('0x9a'))['on']('_replaceTableSlotCell',(_0x5c5414,_0x5792fa)=>{const [_0x4574fd,_0x29b62d,,_0x33516d]=_0x5792fa;if(!_0x451873)return;_0x5c5414['stop']();const _0x244ada=_0x4574fd['cell'],_0x41d9d2=_0x29b62d,_0x3151dd=ce(_0x244ada),_0x58642d=ce(_0x41d9d2);_0x5c5414['return']=_0x244ada;let _0x5e1468=null,_0x5499d6=null;if(_0x58642d||_0x3151dd){if(_0x3151dd&&!_0x58642d){_0x33516d[_0x20dd('0x7d')](_0x244ada[_0x20dd('0x31')](0x0));for(const _0x539918 of Array[_0x20dd('0x91')](_0x41d9d2[_0x20dd('0x3f')]()))_0x33516d['insert'](_0x539918,_0x244ada,_0x20dd('0x12'));const _0x528320=_0x451873[_0x20dd('0x63')][_0x20dd('0x71')](_0x4574fd['row']),_0x171d00=_0x451873[_0x20dd('0x59')][_0x20dd('0x71')](_0x4574fd[_0x20dd('0x54')]);_0x528320||_0x171d00||(_0x5e1468=_0x33516d['createRangeIn'](_0x244ada));}else _0x58642d&&!_0x3151dd&&(_0x5499d6=_0x33516d[_0x20dd('0x41')](_0x244ada));}else{const _0x3456cb=_0x33516d[_0x20dd('0x8a')](_0x20dd('0x3')),_0x3b1af3=_0x33516d[_0x20dd('0x8a')](_0x20dd('0x3'));_0x33516d['wrap'](_0x33516d[_0x20dd('0x41')](_0x244ada),_0x3b1af3),_0x33516d[_0x20dd('0x58')](_0x3456cb,_0x244ada,0x0);for(const _0x4acb3f of Array[_0x20dd('0x91')](_0x41d9d2['getChildren']()))_0x33516d[_0x20dd('0x58')](_0x4acb3f,_0x3456cb,_0x20dd('0x12'));_0x5e1468=_0x33516d[_0x20dd('0x15')](_0x3456cb),_0x5499d6=_0x33516d['createRangeOn'](_0x3b1af3);}const _0x38c8d5=Array['from'](_0x41d9d2['getAttributes']())[_0x20dd('0x3c')](([_0x1d7c29])=>le[_0x20dd('0x71')](_0x1d7c29));_0x451873['cells'][_0x20dd('0x9f')]({'element':_0x244ada,'attributes':_0x38c8d5[_0x20dd('0x7a')]?Object[_0x20dd('0x21')](_0x38c8d5):null}),_0x5e1468&&_0x451873['insertionRanges']['push'](_0x5e1468),_0x5499d6&&_0x451873['deletionRanges'][_0x20dd('0x9f')](_0x5499d6);},{'priority':_0x20dd('0x2a')}),_0x1982e3['on']('insertColumns',(_0x2c49a4,_0x23b4c7)=>{const [_0x8c5dad,_0xd9eb3d={}]=_0x23b4c7;if(!_0x451873)return;const _0x1bb621=_0xd9eb3d['at']||0x0,_0x1ebf93=_0xd9eb3d[_0x20dd('0x7')]||0x1;_0x451873[_0x20dd('0x59')]=new Array(_0x1ebf93)[_0x20dd('0x1d')](_0x1bb621)[_0x20dd('0x5c')]((_0x34f40c,_0x506e3e)=>_0x34f40c+_0x506e3e);for(const {cell:_0x29d01c}of _0x1982e3[_0x20dd('0x93')](_0x8c5dad,{'startColumn':_0x1bb621,'endColumn':_0x1bb621+_0x1ebf93-0x1}))_0x451873[_0x20dd('0x65')][_0x20dd('0x9f')](_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x15')](_0x29d01c));},{'priority':_0x20dd('0x0')}),_0x1982e3['on'](_0x20dd('0x86'),(_0x1d0393,_0x225829)=>{const [_0x499c0e,_0x347621={}]=_0x225829;if(!_0x451873)return;const _0x20b16b=_0x347621['at']||0x0,_0x43aa88=_0x347621[_0x20dd('0x60')]||0x1;_0x451873['rowInsertionIndexes']=new Array(_0x43aa88)['fill'](_0x20b16b)[_0x20dd('0x5c')]((_0x320ffc,_0x1006c7)=>_0x320ffc+_0x1006c7);for(const {cell:_0x5b29a6}of _0x1982e3[_0x20dd('0x93')](_0x499c0e,{'startRow':_0x20b16b,'endRow':_0x20b16b+_0x43aa88-0x1}))_0x451873[_0x20dd('0x55')][_0x20dd('0x9f')](_0x2a3c44['model'][_0x20dd('0x15')](_0x5b29a6));},{'priority':_0x20dd('0x0')}),_0x234750[_0x20dd('0x36')][_0x20dd('0x3b')](_0x5d29d2=>{if(_0x5d29d2[_0x20dd('0x70')]&&_0x5d29d2[_0x20dd('0x70')][_0x20dd('0x2f')]('tablePaste'))return _0x5d29d2['previous']?{}:{'type':_0x20dd('0x2'),'content':_0x1dbe8b(_0x2a3c44[_0x20dd('0x9')],_0x20dd('0x6'))};});const _0x5d3067=()=>{};for(const _0x47fc13 of[_0x20dd('0x49'),_0x20dd('0x1e'),_0x20dd('0x66'),_0x20dd('0xe')])_0x234750[_0x20dd('0xa3')][_0x20dd('0x6e')](_0x20dd('0x2'),_0x47fc13,'join',_0x5d3067),_0x234750[_0x20dd('0xa3')][_0x20dd('0x6e')]('deletion',_0x47fc13,'join',_0x5d3067);_0x234750[_0x20dd('0xa3')]['registerCustomCallback'](_0x20dd('0x62'),_0x20dd('0xe'),_0x20dd('0x73'),_0x5d3067),_0x234750[_0x20dd('0xa3')]['registerCustomCallback'](_0x20dd('0x62'),_0x20dd('0xe'),_0x20dd('0x6a'),(_0x25520c,_0x394bb9,_0x289cd1)=>{const _0x21ce8d=_0x25520c[_0x20dd('0x5c')](_0x207335=>_0x207335['getContainedElement']())[_0x20dd('0x3c')](_0x1d4ac7=>_0x1d4ac7),_0x1dc01b=new Map(_0x21ce8d[_0x20dd('0x5c')](_0x10ebf2=>[_0x10ebf2,null]));if(_0x451873)for(const {element:_0x5a2180,attributes:_0x4e8562}of _0x451873[_0x20dd('0x75')])_0x4e8562&&_0x1dc01b[_0x20dd('0x19')](_0x5a2180,_0x4e8562);else{if(_0x289cd1&&_0x289cd1[_0x20dd('0x53')])for(const [_0xf1a272,_0x232d1e]of Object[_0x20dd('0x5f')](_0x289cd1['markerAttributes'])){const _0x37436c=_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x38')][_0x20dd('0x95')](_0xf1a272),_0x241215=_0x37436c?_0x37436c[_0x20dd('0x13')]()[_0x20dd('0x2c')]():null;_0x241215&&_0x1dc01b[_0x20dd('0x19')](_0x241215,_0x232d1e);}}_0x2a3c44['model'][_0x20dd('0x2e')](_0x4da6f2=>{for(const [_0x4133a1,_0xd739a]of _0x1dc01b)_0x4da6f2['setAttributes']({...ae,..._0xd739a},_0x4133a1);});});const _0x161731=(_0x294fff,_0x7465a8)=>{_0x234750[_0x20dd('0xa3')][_0x20dd('0x6e')](_0x294fff,_0x20dd('0x49'),_0x7465a8,(_0x3bcf5b,_0x493cec,_0x5cd851)=>{_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x2e')](_0xdd591d=>{const _0x11cca6=[];for(const _0x20ff48 of _0x3bcf5b){const _0x4b1ec4=_0x20ff48[_0x20dd('0x4d')][_0x20dd('0x5e')];_0x4b1ec4['is'](_0x20dd('0x1f'),_0x20dd('0x3'))&&_0x11cca6[_0x20dd('0x9f')](_0x4b1ec4);}_0x234750['_suggestionFactory'][_0x20dd('0x72')](_0x294fff,null,_0x7465a8)(_0x3bcf5b,_0x493cec,_0x5cd851);for(const _0x3a2751 of _0x11cca6)_0x20dd('0x78')!=_0x3a2751[_0x20dd('0x8e')][_0x20dd('0x6c')]&&_0xdd591d[_0x20dd('0x57')](_0x3a2751);});});};_0x161731(_0x20dd('0x2'),_0x20dd('0x6a')),_0x161731(_0x20dd('0x2'),_0x20dd('0x73')),_0x161731('deletion','accept'),_0x161731(_0x20dd('0x61'),'discard'),_0x234750['_suggestionFactory'][_0x20dd('0x6e')](_0x20dd('0x2'),_0x20dd('0x66'),'discard',_0x223317=>{const _0x3ea109=_0x223317[_0x20dd('0x5c')](_0x54bde6=>_0x54bde6['getContainedElement']()),_0x218caf=_0x3ea109[0x0][_0x20dd('0x27')](_0x20dd('0x48')),{minRow:_0x1981ef,maxRow:_0x105b1b}=_0x2847f4[_0x20dd('0x52')](_0x3ea109);_0x1982e3['removeRows'](_0x218caf,{'at':_0x1981ef,'rows':_0x105b1b-_0x1981ef+0x1});}),_0x234750[_0x20dd('0xa3')][_0x20dd('0x6e')](_0x20dd('0x2'),_0x20dd('0x1e'),'discard',_0x520c20=>{const _0x267e3b=_0x520c20[_0x20dd('0x5c')](_0x2bbda1=>_0x2bbda1['getContainedElement']()),_0x5e31a0=_0x267e3b[0x0][_0x20dd('0x27')]('table'),{minColumn:_0x2fe323,maxColumn:_0x2f236c}=_0x2847f4['_getCoordsForCells'](_0x267e3b);_0x1982e3[_0x20dd('0x8f')](_0x5e31a0,{'at':_0x2fe323,'columns':_0x2f236c-_0x2fe323+0x1});});const _0x1abd62=(_0x565591,_0xe17607)=>{if(!_0xe17607['subType']||!_0xe17607[_0x20dd('0x70')][_0x20dd('0x2f')](_0x20dd('0x49')))return;const _0x2446c2=_0xe17607[_0x20dd('0xc')]['tablePasteChainId'],_0x3d6533=_0x234750[_0x20dd('0x4c')]()['filter'](_0x1add79=>_0x1add79[_0x20dd('0x40')]&&_0x1add79[_0x20dd('0xc')]&&_0x1add79[_0x20dd('0xc')][_0x20dd('0x92')]==_0x2446c2);_0x3d6533[_0x20dd('0x7a')]&&_0xe17607['getAllAdjacentSuggestions']()['length']!=_0x3d6533['length']&&_0x3d6533[_0x20dd('0x7c')]((_0x119fac,_0x285f41)=>(_0x119fac['next']=_0x285f41,_0x285f41[_0x20dd('0x1')]=_0x119fac,_0x285f41));};function _0x3fc291(_0x5373ea,_0x2b3f7c=!0x0){const {id:_0x3cefc2}=_0x234750[_0x20dd('0x69')](_0x5373ea['markerName']),_0x45a94a=['ck-suggestion-marker',_0x20dd('0x8b')],_0x10e7ac=_0x234750['activeMarkers'][_0x20dd('0x71')](_0x5373ea[_0x20dd('0x79')]);return _0x10e7ac&&_0x45a94a[_0x20dd('0x9f')](_0x20dd('0x1a')),{'classes':_0x45a94a,'attributes':{'data-suggestion':_0x3cefc2},'priority':_0x10e7ac&&_0x2b3f7c?0xbc2:0xbb8};}_0x234750['on'](_0x20dd('0x76'),_0x1abd62,{'priority':_0x20dd('0x2a')}),_0x234750['on'](_0x20dd('0x14'),_0x1abd62,{'priority':'high'}),_0x2a3c44[_0x20dd('0x88')]['document']['registerPostFixer'](()=>{let _0x2dda79=!0x1;const _0x5f1147=Array[_0x20dd('0x91')](_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x6f')][_0x20dd('0xa1')][_0x20dd('0x28')]());for(const {name:_0xb99c6c,data:_0x4b0392}of _0x5f1147){const {group:_0x35ebd1,type:_0x1d3c9f,id:_0x10fd4e}=_0x234750[_0x20dd('0x69')](_0xb99c6c);if('suggestion'!=_0x35ebd1||_0x20dd('0x61')!=_0x1d3c9f||_0x4b0392['oldRange'])continue;if(!_0x234750['hasSuggestion'](_0x10fd4e))continue;const _0x188b39=_0x234750[_0x20dd('0x1c')](_0x10fd4e)[_0x20dd('0x3a')](),_0x33eccd=_0x2a3c44[_0x20dd('0x56')][_0x20dd('0x95')]('Users')['me'];for(const _0x4665e5 of _0x234750[_0x20dd('0x4c')]()){if(!_0x4665e5[_0x20dd('0x40')]||_0x4665e5[_0x20dd('0x94')]!=_0x33eccd)continue;if(_0x20dd('0x62')!=_0x4665e5['type']||_0x20dd('0xe')!=_0x4665e5[_0x20dd('0x70')])continue;if(_0x4665e5[_0x20dd('0x3a')]()[_0x20dd('0x26')](_0x44696b=>_0x188b39[_0x20dd('0x11')](_0x3fc8d1=>_0x3fc8d1[_0x20dd('0x9c')](_0x44696b,!0x0))))for(const _0x5d02b7 of _0x4665e5[_0x20dd('0x9b')]())_0x5d02b7[_0x20dd('0x40')]&&(_0x5d02b7[_0x20dd('0x73')](),_0x2dda79=!0x0);}}return _0x2dda79;}),_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x6f')]['registerPostFixer'](_0x1fb94e=>{const _0xa61861=_0x2a3c44[_0x20dd('0x74')][_0x20dd('0x95')](_0x20dd('0x7b'));if(!_0xa61861||!_0xa61861[_0x20dd('0x42')][_0x20dd('0xa4')](_0x1fb94e[_0x20dd('0x8d')]))return!0x1;let _0x29f72a=!0x1;const _0x2154cb=_0x2a3c44['plugins'][_0x20dd('0x95')](_0x20dd('0x64'))['me'],_0x3d5744=_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x6f')][_0x20dd('0xa1')][_0x20dd('0x82')](),_0x46b20f=Array[_0x20dd('0x91')](_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x6f')]['differ'][_0x20dd('0x28')]())[_0x20dd('0x3c')](({name:_0x1ce762,data:_0x1fb4e7})=>{const {group:_0x18c953,subType:_0x39e27f,authorId:_0x2d2ee3}=_0x234750[_0x20dd('0x69')](_0x1ce762);return _0x20dd('0x98')==_0x18c953&&'tablePaste'==_0x39e27f&&_0x2d2ee3==_0x2154cb['id']&&!_0x1fb4e7[_0x20dd('0x47')];});for(const _0x54c586 of _0x3d5744){if(_0x20dd('0x58')!=_0x54c586[_0x20dd('0x16')]||_0x20dd('0x3')!=_0x54c586[_0x20dd('0x96')]||0x1!=_0x54c586[_0x20dd('0x7a')])continue;const _0x100e0e=_0x1fb94e[_0x20dd('0x89')](_0x54c586[_0x20dd('0x3e')],_0x54c586[_0x20dd('0x3e')][_0x20dd('0x2d')](0x1));if(!_0x46b20f['find'](({data:_0x5c3650})=>_0x5c3650['newRange'][_0x20dd('0x45')](_0x100e0e)))for(const {name:_0x41e790,data:_0x1180cc}of _0x46b20f)if(_0x100e0e[_0x20dd('0x9c')](_0x1180cc[_0x20dd('0x9e')])){_0x1fb94e[_0x20dd('0x97')](_0x41e790,{'range':_0x100e0e}),_0x29f72a=!0x0;break;}}return _0x29f72a;}),_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x6f')][_0x20dd('0x5')](_0x488c6f=>{let _0x96c878=!0x1;const _0x32c416=_0x2a3c44['plugins'][_0x20dd('0x95')]('Users')['me'],_0x446c22=_0x234750[_0x20dd('0x4c')]()[_0x20dd('0x3c')](_0x35b9aa=>_0x35b9aa[_0x20dd('0x40')]&&_0x35b9aa[_0x20dd('0x94')]==_0x32c416),_0x49b05e=new Set(),_0x491607=new Set();for(const _0x5d9dbc of _0x446c22)if(_0x20dd('0x49')==_0x5d9dbc[_0x20dd('0x70')])for(const _0x48bd57 of _0x5d9dbc[_0x20dd('0x77')]()){const _0x198347=_0x48bd57[_0x20dd('0x13')]()['getContainedElement']();if(_0x198347){if(_0x198347['is']('element',_0x20dd('0x3'))&&ce(_0x198347)){_0x5d9dbc[_0x20dd('0xd')](_0x48bd57[_0x20dd('0x96')]),_0x49b05e['add'](_0x198347),_0x96c878=!0x0;const _0x259899=_0x198347['nextSibling'],_0x195237=_0x198347[_0x20dd('0x83')],_0x6c29b=_0x259899&&_0x259899['is'](_0x20dd('0x1f'),_0x20dd('0x3')),_0x231ca1=_0x195237&&_0x195237['is'](_0x20dd('0x1f'),_0x20dd('0x3'));_0x6c29b&&!_0x49b05e['has'](_0x259899)&&_0x491607['add'](_0x259899),_0x231ca1&&!_0x49b05e[_0x20dd('0xa4')](_0x195237)&&_0x491607[_0x20dd('0x81')](_0x195237);}else _0x198347['is'](_0x20dd('0x1f'),_0x20dd('0x5a'))&&_0x198347[_0x20dd('0x34')]&&(_0x5d9dbc[_0x20dd('0xd')](_0x48bd57[_0x20dd('0x96')]),_0x96c878=!0x0);}}else{if(_0x20dd('0xe')==_0x5d9dbc['subType']){if(!_0x5d9dbc[_0x20dd('0xc')]||!_0x5d9dbc[_0x20dd('0xc')][_0x20dd('0x92')])continue;const _0x543237=_0x5d9dbc[_0x20dd('0xc')][_0x20dd('0x53')];if(_0x543237&&Object[_0x20dd('0x20')](_0x543237)[_0x20dd('0x7a')])continue;const _0x51b83d=_0x5d9dbc[_0x20dd('0xc')]['tablePasteChainId'];let _0x5ac9ed=!0x0,_0xe2e54b=!0x0;for(const _0x140858 of _0x446c22)if(_0x140858[_0x20dd('0x70')]&&_0x140858[_0x20dd('0x70')]['startsWith'](_0x20dd('0x49'))){if(!_0x140858['attributes'][_0x20dd('0x92')]){_0xe2e54b=!0x1;break;}if(_0x140858['id']!=_0x5d9dbc['id']&&_0x140858['attributes'][_0x20dd('0x92')]==_0x51b83d){_0x5ac9ed=!0x1;break;}}_0xe2e54b&&_0x5ac9ed&&(_0x5d9dbc['removeMarkers'](),_0x96c878=!0x0);}}for(const _0x1437cb of _0x49b05e)_0x488c6f['remove'](_0x1437cb);for(const _0x188d83 of _0x491607)_0x488c6f[_0x20dd('0x57')](_0x188d83);return _0x96c878;}),_0x2a3c44['conversion'][_0x20dd('0x7e')](_0x20dd('0x4'))[_0x20dd('0xb')]({'model':_0x20dd('0x10'),'view':(_0x224bc1,_0x2d7cef)=>_0x3fc291(_0x224bc1),'converterPriority':_0x20dd('0x2a')}),_0x2a3c44[_0x20dd('0x2b')]['for'](_0x20dd('0x25'))['markerToHighlight']({'model':_0x20dd('0x10'),'view':(_0x5e92ce,_0x27a616)=>_0x27a616[_0x20dd('0x44')][_0x20dd('0x35')]?_0x3fc291(_0x5e92ce,!0x1):null,'converterPriority':'high'});const _0x522ece=_0x2a3c44[_0x20dd('0x5b')][_0x20dd('0x30')];this[_0x20dd('0x4a')](_0x522ece[_0x20dd('0x6f')],_0x20dd('0x51'),(_0x2f8fb9,_0x19cd1f)=>{const _0x1eb4c7=[];for(const _0x2d1b4a of _0x522ece['createRangeIn'](_0x19cd1f[_0x20dd('0x99')])[_0x20dd('0x4b')]())_0x2d1b4a['is']('element','suggestion-td')&&_0x1eb4c7['push'](_0x2d1b4a);_0x522ece['change'](_0x15b807=>{for(const _0x1fcd08 of _0x1eb4c7)_0x15b807[_0x20dd('0x22')](_0x15b807[_0x20dd('0x41')](_0x1fcd08),_0x15b807[_0x20dd('0xa0')](_0x1fcd08)),_0x15b807[_0x20dd('0x7d')](_0x1fcd08);});});}}function ce(_0x501b76){if(_0x501b76[_0x20dd('0x34')])return!0x0;const _0x1ba51f=_0x501b76[_0x20dd('0x31')](0x0);return _0x1ba51f['is']('element',_0x20dd('0x5a'))&&_0x1ba51f['isEmpty'];}function fe(_0x337a66,_0x12f0fe={},_0x2863f5){for(const {isAnchor:_0x5c93f9,cellHeight:_0x56a34e,cellWidth:_0x287a23}of _0x2863f5[_0x20dd('0x93')](_0x337a66,{'includeAllSlots':!0x0,..._0x12f0fe}))if(!_0x5c93f9||0x1!=_0x56a34e||0x1!=_0x287a23)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2385=['getSuggestions','getColumnGroupElement','resizeTableWidth','bind','registerCustomCallback','formatBlock','accept','handleSuggestionDescription','tableWidth','handleResizeTableWidthCommand','data','_suggestionFactory','markBlockFormat','getSuggestionCallback','model','resizeTable','getContainedElement','subType','getTableColumnsWidths','_descriptionFactory','formatGroupId','get','selection','TrackChangesEditing','document','author','discard','registerDescriptionCallback','commandParams','change','enableCommand','getSelectedElement','columnWidths','TableColumnResizeEditing','editor','format','plugins'];(function(_0x5c923c,_0x238599){const _0x31b4ad=function(_0x3bd315){while(--_0x3bd315){_0x5c923c['push'](_0x5c923c['shift']());}};_0x31b4ad(++_0x238599);}(_0x2385,0x1e9));const _0x31b4=function(_0x5c923c,_0x238599){_0x5c923c=_0x5c923c-0x0;let _0x31b4ad=_0x2385[_0x5c923c];return _0x31b4ad;};import{Plugin as _0x13c209}from'ckeditor5/src/core';import{getTranslation as _0x283521}from'../utils/common-translations';export default class wt extends _0x13c209{['afterInit'](){if(!this[_0x31b4('0x1a')][_0x31b4('0x1c')]['has']('TableColumnResizeEditing'))return;const _0x3e2c76=this['editor'][_0x31b4('0x1c')][_0x31b4('0xd')](_0x31b4('0xf'));_0x3e2c76[_0x31b4('0x16')](_0x31b4('0x1f'),this[_0x31b4('0x1')][_0x31b4('0x20')](this)),_0x3e2c76[_0x31b4('0x16')]('resizeColumnWidths',this['handleResizeTableWidthCommand'][_0x31b4('0x20')](this)),_0x3e2c76[_0x31b4('0x3')][_0x31b4('0x21')](_0x31b4('0x22'),_0x31b4('0x7'),'accept',_0x3e2c76[_0x31b4('0x3')][_0x31b4('0x5')](_0x31b4('0x22'),null,'discard')),_0x3e2c76[_0x31b4('0x3')][_0x31b4('0x21')]('formatBlock','resizeTable',_0x31b4('0x12'),_0x3e2c76[_0x31b4('0x3')]['getSuggestionCallback'](_0x31b4('0x22'),null,_0x31b4('0x23'))),_0x3e2c76[_0x31b4('0xb')][_0x31b4('0x13')](this[_0x31b4('0x24')][_0x31b4('0x20')](this));}[_0x31b4('0x1')](_0x280700,_0x431870){const _0x2f301a=this[_0x31b4('0x1a')][_0x31b4('0x1c')][_0x31b4('0xd')](_0x31b4('0xf')),_0x3ea4d0=this['editor'][_0x31b4('0x1c')][_0x31b4('0xd')](_0x31b4('0x19')),_0x42988b=_0x431870['table']||this['editor']['model'][_0x31b4('0x10')][_0x31b4('0xe')][_0x31b4('0x17')]();this[_0x31b4('0x1a')][_0x31b4('0x6')][_0x31b4('0x15')](()=>{const _0x33c679=_0x3ea4d0[_0x31b4('0x1e')](_0x42988b);let _0x4ec6e1=_0x33c679?_0x3ea4d0[_0x31b4('0xa')](_0x33c679):null,_0x4389a2=_0x42988b['getAttribute']('tableWidth')||null;const _0x2ba68d=_0x431870['tableWidth']||_0x4389a2,_0x2424b7=_0x431870[_0x31b4('0x18')]||_0x4ec6e1,_0x32b9bf=this[_0x31b4('0x1a')][_0x31b4('0x1c')]['get']('Users')['me'];for(const _0x248261 of _0x2f301a[_0x31b4('0x1d')]()){const _0x415e02=_0x248261[_0x31b4('0x8')]();if('resizeTable'===_0x248261[_0x31b4('0x9')]&&_0x415e02===_0x42988b){_0x248261[_0x31b4('0x11')]!==_0x32b9bf&&_0x248261[_0x31b4('0x12')]();const _0x948b12=_0x248261[_0x31b4('0x2')][_0x31b4('0x14')];_0x4389a2=_0x948b12[0x0][_0x31b4('0x0')],_0x4ec6e1=_0x948b12[0x0][_0x31b4('0x18')];break;}}_0x280700({'table':_0x42988b,'tableWidth':_0x2ba68d,'columnWidths':_0x2424b7}),_0x2f301a[_0x31b4('0x4')](_0x42988b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4389a2,'columnWidths':_0x4ec6e1}],'formatGroupId':_0x31b4('0x7')},[],'resizeTable');});}[_0x31b4('0x24')](_0x21ad9e){const {data:_0x41cf0e}=_0x21ad9e;if(_0x41cf0e&&'resizeTable'===_0x41cf0e[_0x31b4('0xc')]){const _0x156465='*Format:*\x20resize\x20table';return{'type':_0x31b4('0x1b'),'content':_0x283521(this[_0x31b4('0x1a')]['locale'],_0x156465)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x577a=['findAncestor','commands','forceValue','item','change','ck-suggestion-marker-','FORMAT_HEADER_ROW','isBefore','markerName','nodeAfter','_descriptionFactory','editing','TableEditing','getRowIndexes','model','TrackChangesEditing','_splitMarkerName','parent','getSuggestion','headingColumns','registerDescriptionCallback','get','options','data','FORMAT_HEADER_COLUMN','addClass','downcastDispatcher','setTableColumnHeader','data-suggestion','createRange','markBlockFormat','*Format:*\x20%0','stop','getSelectionAffectedTableCells','cell','removeClass','highest','createPositionBefore','_acceptFormatSuggestionCallbackFactory','format','childCount','plugins','setAttribute','first','formatBlock','TableUtils','consume','commandName','toViewElement','mapper','_suggestionFactory','registerCustomCallback','showSuggestionHighlights','addMarker:suggestion','document','setTableRowHeader','requires','last','FORMAT_REGULAR_ROW','enableCommand','markerNameToElements','commandParams','table','getAttribute','markerRange','from','ck-suggestion-marker--active','end','writer','value','createPositionAfter','includes','getChild','editor','createTableWalker','unbindElementFromMarkerName','nodeBefore','activeMarkers'];(function(_0x1f0176,_0x577ad3){const _0x1c3c33=function(_0xa5884b){while(--_0xa5884b){_0x1f0176['push'](_0x1f0176['shift']());}};_0x1c3c33(++_0x577ad3);}(_0x577a,0xe6));const _0x1c3c=function(_0x1f0176,_0x577ad3){_0x1f0176=_0x1f0176-0x0;let _0x1c3c33=_0x577a[_0x1f0176];return _0x1c3c33;};import{Plugin as _0x32b45a}from'ckeditor5/src/core';import _0x55a0d3 from'./table';import{getTranslation as _0x410057}from'../utils/common-translations';export default class pt extends _0x32b45a{static get[_0x1c3c('0x3c')](){return[_0x55a0d3];}['afterInit'](){const _0x22c771=this[_0x1c3c('0x4d')];if(!_0x22c771[_0x1c3c('0x2d')]['has'](_0x1c3c('0x10')))return;const _0x52649a=_0x22c771['locale'],_0x192884=_0x22c771['plugins'][_0x1c3c('0x19')](_0x1c3c('0x13')),_0x52e510=_0x22c771[_0x1c3c('0x2d')][_0x1c3c('0x19')]('TableUtils'),_0x9bbc35=_0x22c771[_0x1c3c('0x2d')][_0x1c3c('0x19')](_0x55a0d3);function _0x41a317({showActiveMarker:_0x34d44a=!0x0,setDataAttribute:_0x204ff4=!0x0}={}){return(_0x5febda,_0x16e5c6,_0x20f8f9)=>{const {type:_0xa3e9a8,id:_0x131ce6}=_0x192884['_splitMarkerName'](_0x16e5c6['markerName']),_0x2d52a8=_0x192884['getSuggestion'](_0x131ce6);if(!_0x2d52a8[_0x1c3c('0x1b')]||_0x1c3c('0x1f')!=_0x2d52a8['data'][_0x1c3c('0x33')])return;if(_0x16e5c6[_0x1c3c('0x7')])return void _0x5febda[_0x1c3c('0x24')]();if(!_0x20f8f9['consumable'][_0x1c3c('0x32')](_0x16e5c6[_0x1c3c('0x44')],_0x5febda['name']))return;const _0x2e55d8=_0x16e5c6[_0x1c3c('0x44')]['start'][_0x1c3c('0xd')],_0x2f7579=_0x16e5c6['markerRange'][_0x1c3c('0x47')][_0x1c3c('0x2')],_0x5a21a3=_0x2e55d8[_0x1c3c('0x15')][_0x1c3c('0x15')],{column:_0x2b4c81}=_0x52e510['getCellLocation'](_0x2e55d8),{column:_0x1f3a0b}=_0x52e510['getCellLocation'](_0x2f7579);for(let _0x3dc4ee=_0x2b4c81;_0x3dc4ee<=_0x1f3a0b;_0x3dc4ee++){const _0xa37f91=_0x52e510[_0x1c3c('0x0')](_0x5a21a3,{'column':_0x3dc4ee,'includeAllSlots':!0x1});for(const _0x2c8170 of _0xa37f91){const _0x26b638=_0x2c8170[_0x1c3c('0x26')],_0xb0f80e=_0x20f8f9['mapper'][_0x1c3c('0x34')](_0x26b638);_0x20f8f9['writer']['addClass']('ck-suggestion-marker-'+_0xa3e9a8,_0xb0f80e),_0x204ff4&&_0x20f8f9[_0x1c3c('0x48')][_0x1c3c('0x2e')](_0x1c3c('0x20'),_0x131ce6,_0xb0f80e),_0x20f8f9[_0x1c3c('0x35')]['bindElementToMarker'](_0xb0f80e,_0x16e5c6['markerName']),_0x34d44a&&(_0x192884[_0x1c3c('0x3')][_0x1c3c('0x4b')](_0x16e5c6['markerName'])?_0x20f8f9[_0x1c3c('0x48')][_0x1c3c('0x1d')]('ck-suggestion-marker--active',_0xb0f80e):_0x20f8f9['writer'][_0x1c3c('0x27')](_0x1c3c('0x46'),_0xb0f80e));}}};}_0x192884['enableCommand'](_0x1c3c('0x3b'),(_0x467488,_0x403eb8)=>{const _0x44b48e=_0x52e510[_0x1c3c('0x25')](_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x3a')]['selection']),_0x187c37=_0x52e510[_0x1c3c('0x11')](_0x44b48e),_0x230e80=_0x44b48e[0x0][_0x1c3c('0x4')](_0x1c3c('0x42')),_0x159f68=_0x230e80[_0x1c3c('0x43')]('headingRows')||0x0,_0x1742a0=_0x403eb8&&null!==_0x403eb8['forceValue']?_0x403eb8[_0x1c3c('0x6')]:!_0x22c771[_0x1c3c('0x5')]['get']('setTableRowHeader')['value'],_0x473185=_0x1742a0?_0x187c37[_0x1c3c('0x3d')]:_0x187c37['first'],_0x3daba1=_0x230e80[_0x1c3c('0x4c')](_0x473185);let _0x36c8fb;if(_0x1742a0){const _0xf8c659=_0x230e80['getChild'](_0x159f68);if(_0x3daba1['index']<_0xf8c659['index'])return;_0x36c8fb=_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x21')](_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x29')](_0xf8c659[_0x1c3c('0x4c')](0x0)),_0x22c771['model'][_0x1c3c('0x4a')](_0x3daba1[_0x1c3c('0x4c')](_0x3daba1[_0x1c3c('0x2c')]-0x1)));}else{const _0xa9b2f9=_0x230e80[_0x1c3c('0x4c')](_0x159f68-0x1);if(!_0xa9b2f9)return;_0x36c8fb=_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x21')](_0x22c771[_0x1c3c('0x12')]['createPositionBefore'](_0x3daba1['getChild'](0x0)),_0x22c771['model']['createPositionAfter'](_0xa9b2f9['getChild'](_0xa9b2f9[_0x1c3c('0x2c')]-0x1)));}_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x8')](()=>{_0x192884[_0x1c3c('0x22')](_0x36c8fb,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x1742a0}]},[],'setTableRowHeader');});}),_0x192884[_0x1c3c('0x3f')](_0x1c3c('0x1f'),(_0x58056c,_0x1b6620)=>{const _0x1d14fe=_0x22c771[_0x1c3c('0x2d')][_0x1c3c('0x19')](_0x1c3c('0x31')),_0x2556f0=_0x1d14fe[_0x1c3c('0x25')](_0x22c771[_0x1c3c('0x12')]['document']['selection']),_0x3f2590=_0x1d14fe['getColumnIndexes'](_0x2556f0),_0x24ff63=_0x2556f0[0x0][_0x1c3c('0x4')](_0x1c3c('0x42')),_0x28df00=_0x24ff63[_0x1c3c('0x43')](_0x1c3c('0x17'))||0x0,_0x53cf29=_0x1b6620&&null!==_0x1b6620[_0x1c3c('0x6')]?_0x1b6620[_0x1c3c('0x6')]:!_0x22c771[_0x1c3c('0x5')][_0x1c3c('0x19')]('setTableColumnHeader')[_0x1c3c('0x49')];let _0x134879;const _0x82f735=_0x24ff63[_0x1c3c('0x4c')](0x0),_0x4b17cd=_0x53cf29?_0x3f2590[_0x1c3c('0x3d')]:_0x3f2590[_0x1c3c('0x2f')],_0x547638=_0x1d14fe[_0x1c3c('0x0')](_0x24ff63,{'startRow':0x0,'column':_0x4b17cd,'includeAllSlots':!0x1}),_0x51005a=Array[_0x1c3c('0x45')](_0x547638)[0x0][_0x1c3c('0x26')];if(_0x53cf29){const _0x447260=_0x82f735[_0x1c3c('0x4c')](_0x28df00);if(_0x51005a[_0x1c3c('0xb')](_0x447260))return;_0x134879=_0x22c771[_0x1c3c('0x12')]['createRange'](_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x29')](_0x447260),_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x4a')](_0x51005a));}else{const _0x488bff=_0x82f735[_0x1c3c('0x4c')](_0x28df00-0x1);if(!_0x488bff)return;_0x134879=_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x21')](_0x22c771['model'][_0x1c3c('0x29')](_0x51005a),_0x22c771['model'][_0x1c3c('0x4a')](_0x488bff));}_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x8')](()=>{_0x192884[_0x1c3c('0x22')](_0x134879,{'commandName':_0x1c3c('0x1f'),'commandParams':[{'forceValue':_0x53cf29}]},[],_0x1c3c('0x1f'));});}),_0x22c771[_0x1c3c('0xf')][_0x1c3c('0x1e')]['on'](_0x1c3c('0x39'),_0x41a317(),{'priority':_0x1c3c('0x28')}),_0x22c771['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x518518,_0x1848d4,_0x38f436)=>{_0x38f436[_0x1c3c('0x1a')][_0x1c3c('0x38')]&&_0x41a317({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x518518,_0x1848d4,_0x38f436);},{'priority':_0x1c3c('0x28')}),_0x22c771[_0x1c3c('0xf')][_0x1c3c('0x1e')]['on']('removeMarker:suggestion',(_0x4d51be,_0x1a391d,_0x51acd2)=>{const {type:_0x3d8518,id:_0x4d6cc5}=_0x192884[_0x1c3c('0x14')](_0x1a391d[_0x1c3c('0xc')]),_0x3e3752=_0x192884[_0x1c3c('0x16')](_0x4d6cc5);if(!_0x3e3752['data']||_0x1c3c('0x1f')!=_0x3e3752[_0x1c3c('0x1b')][_0x1c3c('0x33')])return;const _0x1e2d5e=_0x51acd2['mapper'][_0x1c3c('0x40')](_0x1a391d[_0x1c3c('0xc')]);if(_0x1e2d5e)for(const _0x5c8912 of _0x1e2d5e)_0x51acd2[_0x1c3c('0x48')][_0x1c3c('0x27')](_0x1c3c('0x9')+_0x3d8518,_0x5c8912),_0x51acd2[_0x1c3c('0x48')]['removeClass']('ck-suggestion-marker--active',_0x5c8912),_0x51acd2['writer']['removeAttribute']('data-suggestion',_0x5c8912),_0x51acd2['mapper'][_0x1c3c('0x1')](_0x5c8912,_0x1a391d['markerName']);},{'priority':_0x1c3c('0x28')}),_0x192884[_0x1c3c('0xe')][_0x1c3c('0x18')](_0x5a0072=>{const {data:_0xa78036}=_0x5a0072;if(_0xa78036){if(_0x1c3c('0x3b')==_0xa78036['commandName']){const _0x3e7d90=_0xa78036[_0x1c3c('0x41')][0x0][_0x1c3c('0x6')];return _0x1e605c(_0x410057(_0x52649a,_0x3e7d90?_0x1c3c('0xa'):_0x1c3c('0x3e')));}if('setTableColumnHeader'==_0xa78036[_0x1c3c('0x33')]){const _0x216c25=_0xa78036['commandParams'][0x0]['forceValue'];return _0x1e605c(_0x410057(_0x52649a,_0x216c25?_0x1c3c('0x1c'):'FORMAT_REGULAR_COLUMN'));}}function _0x1e605c(_0x243d37){return{'type':_0x1c3c('0x2b'),'content':_0x410057(_0x52649a,_0x1c3c('0x23'),_0x243d37)};}});const _0x1c04d4=_0x9bbc35[_0x1c3c('0x2a')]();_0x192884[_0x1c3c('0x36')]['registerCustomCallback'](_0x1c3c('0x30'),_0x1c3c('0x3b'),'accept',_0x1c04d4),_0x192884[_0x1c3c('0x36')][_0x1c3c('0x37')](_0x1c3c('0x30'),_0x1c3c('0x1f'),'accept',_0x1c04d4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53cd=['markBlockFormat','rootName','format','set:isEnabled','length','*Merge\x20cells*','TrackChangesEditing','type','plugins','execute','filter','locale','deletion','map','low','mergeTableCellRight','splitTableCellVertically','trackChanges','getFirstPosition','mergeTableCellUp','return','*Split\x20cell:*\x20horizontally','registerDescriptionCallback','commandName','from','_isForcedDefaultExecutionBlock','TableEditing','push','_areMergableCells','direction','formatBlock','get','add','editor','stop','tableCell','isEnabled','commands','registerCustomCallback','value','detach','containsRange','has','$graveyard','getSelectionAffectedTableCells','*Split\x20cell:*\x20vertically','markMultiRangeBlockFormat','afterInit','cell','getAncestors','_suggestionFactory','createTableWalker','mergeTableCells','horizontally','highest','element','getSuggestions','isInContent','_areSelectedCellsMergable','author','document','mergeTableCellDown','accept','selection','size','find','mergeTableCellLeft','enableCommand','getRanges','setSelection','TableUtils','findAncestor','createRangeOn','fromRange','table','_acceptFormatSuggestionCallbackFactory','model','change'];(function(_0x2f5c89,_0x53cd61){const _0x877c19=function(_0x14156d){while(--_0x14156d){_0x2f5c89['push'](_0x2f5c89['shift']());}};_0x877c19(++_0x53cd61);}(_0x53cd,0x12b));const _0x877c=function(_0x2f5c89,_0x53cd61){_0x2f5c89=_0x2f5c89-0x0;let _0x877c19=_0x53cd[_0x2f5c89];return _0x877c19;};import{Plugin as _0x5b3132}from'ckeditor5/src/core';import _0x5de621 from'./table';import{LiveRange as _0x2c6856}from'ckeditor5/src/engine';import{getTranslation as _0x484c9f}from'../utils/common-translations';export default class dt extends _0x5b3132{static get['requires'](){return[_0x5de621];}[_0x877c('0x3c')](){const _0x400168=this[_0x877c('0x2e')],_0x4c5c94=_0x400168[_0x877c('0xb')][_0x877c('0x49')][_0x877c('0x4c')],_0x30cb74=_0x400168[_0x877c('0x18')];if(!_0x400168[_0x877c('0x15')][_0x877c('0x37')](_0x877c('0x27')))return;const _0x408ab1=_0x400168[_0x877c('0x15')][_0x877c('0x2c')]('TrackChangesEditing'),_0x12d0ec=_0x400168[_0x877c('0x15')][_0x877c('0x2c')](_0x877c('0x5')),_0x2f9157=_0x400168[_0x877c('0x15')][_0x877c('0x2c')](_0x5de621);_0x2f9157['_tablePostFixingSubtypes'][_0x877c('0x28')](_0x877c('0x41')),_0x408ab1['enableCommand'](_0x877c('0x41'),()=>{const _0x12c19f=_0x12d0ec[_0x877c('0x39')](_0x400168[_0x877c('0xb')]['document']['selection']);_0x400168[_0x877c('0xb')][_0x877c('0xc')](()=>{_0x408ab1[_0x877c('0x3b')](_0x12c19f,{'commandName':_0x877c('0x41'),'commandParams':[]},[],_0x877c('0x41'));});}),_0x400168[_0x877c('0x32')]['get'](_0x877c('0x41'))['on'](_0x877c('0x16'),(_0x56ff80,_0x385abe)=>{_0x400168[_0x877c('0x32')][_0x877c('0x2c')](_0x877c('0x1e'))[_0x877c('0x34')]&&(_0x385abe[_0x877c('0x11')]>0x0&&_0x385abe[_0x385abe[_0x877c('0x11')]-0x1]&&_0x385abe[_0x385abe['length']-0x1]['forceDefaultExecution']||_0x408ab1[_0x877c('0x26')]||this[_0x877c('0x47')]()||_0x56ff80[_0x877c('0x2f')]());},{'priority':_0x877c('0x43')});for(const _0x314d07 of['mergeTableCellUp','mergeTableCellRight',_0x877c('0x4a'),_0x877c('0x1')]){const _0x2c22b2=_0x400168[_0x877c('0x32')][_0x877c('0x2c')](_0x314d07);_0x408ab1[_0x877c('0x2')](_0x314d07,()=>{const _0x4e2e61=_0x400168[_0x877c('0xb')][_0x877c('0x49')]['selection'][_0x877c('0x1f')]()[_0x877c('0x3e')]()[_0x877c('0x0')](_0x33d4ca=>_0x33d4ca['is']('element',_0x877c('0x30'))),_0x5bc820=_0x2c22b2['value'];_0x400168[_0x877c('0xb')][_0x877c('0xc')](()=>{_0x408ab1[_0x877c('0x3b')]([_0x4e2e61,_0x5bc820],{'commandName':_0x877c('0x41'),'commandParams':[]},[],_0x877c('0x41'));});});}for(const _0x26a56e of[_0x877c('0x1d'),'splitTableCellHorizontally']){const _0x2bb691=_0x400168[_0x877c('0x32')][_0x877c('0x2c')](_0x26a56e);_0x408ab1[_0x877c('0x2')](_0x26a56e,()=>{const _0x1ab0be=_0x12d0ec['getSelectionAffectedTableCells'](_0x400168[_0x877c('0xb')][_0x877c('0x49')]['selection'])[0x0],_0x18d137=_0x1ab0be[_0x877c('0x6')](_0x877c('0x9')),{column:_0x1195e7,row:_0x556b6f}=_0x12d0ec['getCellLocation'](_0x1ab0be);let _0x2b0517=[];if(_0x877c('0x42')==_0x2bb691[_0x877c('0x2a')]){const _0x370e30=_0x12d0ec[_0x877c('0x40')](_0x18d137,{'startRow':_0x556b6f,'endRow':_0x556b6f,'includeAllSlots':!0x0});_0x2b0517=Array['from'](_0x370e30)[_0x877c('0x1a')](_0x2e4bdb=>_0x2e4bdb[_0x877c('0x3d')]);}else{const _0x9a1e67=_0x12d0ec[_0x877c('0x40')](_0x18d137,{'column':_0x1195e7,'includeAllSlots':!0x0});_0x2b0517=Array[_0x877c('0x25')](_0x9a1e67)[_0x877c('0x1a')](_0x4b67a0=>_0x4b67a0[_0x877c('0x3d')]);}_0x400168['model'][_0x877c('0xc')](_0x3cea1a=>{_0x408ab1[_0x877c('0xd')](_0x3cea1a['createRangeOn'](_0x1ab0be),{'commandName':_0x26a56e,'commandParams':[]},_0x2b0517,_0x26a56e);});});}_0x408ab1['_descriptionFactory'][_0x877c('0x23')](_0x451892=>{const {data:_0x5b1aa4}=_0x451892;if(_0x5b1aa4)return _0x877c('0x41')==_0x5b1aa4['commandName']?{'type':'format','content':_0x484c9f(_0x30cb74,_0x877c('0x12'))}:void 0x0;}),_0x408ab1['_descriptionFactory'][_0x877c('0x23')](_0x39c519=>{const {data:_0x44c1b5}=_0x39c519;if(_0x44c1b5)return _0x877c('0x1d')==_0x44c1b5['commandName']?{'type':_0x877c('0xf'),'content':_0x484c9f(_0x30cb74,_0x877c('0x3a'))}:'splitTableCellHorizontally'==_0x44c1b5[_0x877c('0x24')]?{'type':_0x877c('0xf'),'content':_0x484c9f(_0x30cb74,_0x877c('0x22'))}:void 0x0;});const _0x20c44f=_0x2f9157[_0x877c('0xa')]();for(const _0x12a110 of[_0x877c('0x20'),_0x877c('0x1c'),_0x877c('0x4a'),_0x877c('0x1')])_0x408ab1[_0x877c('0x3f')][_0x877c('0x33')](_0x877c('0x2b'),_0x12a110,_0x877c('0x4b'),_0x20c44f);for(const _0x1619da of[_0x877c('0x1d'),'splitTableCellHorizontally'])_0x408ab1[_0x877c('0x3f')][_0x877c('0x33')]('formatBlock',_0x1619da,'accept',_0x20c44f);_0x408ab1[_0x877c('0x3f')]['registerCustomCallback'](_0x877c('0x2b'),_0x877c('0x41'),_0x877c('0x4b'),_0x11ac52=>{_0x400168[_0x877c('0xb')]['change'](_0x24be6e=>{const _0x3bd3b4=Array['from'](_0x4c5c94[_0x877c('0x3')]())['map'](_0x269fbe=>_0x2c6856[_0x877c('0x8')](_0x269fbe));_0x24be6e[_0x877c('0x4')](_0x11ac52),_0x400168[_0x877c('0x32')][_0x877c('0x2c')](_0x877c('0x41'))['refresh'](),_0x400168[_0x877c('0x16')](_0x877c('0x41'),{'forceDefaultExecution':!0x0});const _0x506b0e=_0x3bd3b4[_0x877c('0x17')](_0x1ae983=>_0x877c('0x38')!=_0x1ae983['root'][_0x877c('0xe')]);_0x506b0e[_0x877c('0x11')]>0x0&&_0x24be6e['setSelection'](_0x506b0e);for(const _0x3fae42 of _0x3bd3b4)_0x3fae42[_0x877c('0x35')]();});});for(const _0x316c03 of[_0x877c('0x20'),'mergeTableCellDown',_0x877c('0x1'),_0x877c('0x1c')]){const _0x1de595=_0x400168[_0x877c('0x32')][_0x877c('0x2c')](_0x316c03);_0x1de595['on'](_0x877c('0x10'),(_0x28e01a,_0x2c2671,_0x5d50ff)=>{if(_0x5d50ff){const _0x141f42=_0x400168[_0x877c('0xb')][_0x877c('0x49')][_0x877c('0x4c')][_0x877c('0x1f')]()[_0x877c('0x3e')]()[_0x877c('0x0')](_0x34cf7b=>_0x34cf7b['is'](_0x877c('0x44'),_0x877c('0x30')));this['_areMergableCells'](_0x1de595[_0x877c('0x34')],_0x141f42)||(_0x28e01a[_0x877c('0x21')]=!0x1,_0x28e01a[_0x877c('0x2f')]());}},{'priority':_0x877c('0x1b')});}}[_0x877c('0x47')](){const _0x2af325=this['editor'][_0x877c('0x32')][_0x877c('0x2c')](_0x877c('0x41')),_0x2f9f89=this[_0x877c('0x2e')]['plugins']['get'](_0x877c('0x5'));if(!_0x2af325[_0x877c('0x31')])return!0x1;const _0x7f67d0=_0x2f9f89[_0x877c('0x39')](this[_0x877c('0x2e')][_0x877c('0xb')]['document'][_0x877c('0x4c')]);for(const _0x120162 of _0x7f67d0)for(const _0x4a5b75 of _0x7f67d0)if(_0x120162!=_0x4a5b75&&!this['_areMergableCells'](_0x120162,_0x4a5b75))return!0x1;return!0x0;}[_0x877c('0x29')](_0x1257f3,_0x18f760){const _0x5df759=this[_0x877c('0x2e')][_0x877c('0x15')][_0x877c('0x2c')](_0x877c('0x13')),_0x5e3616=this[_0x877c('0x2e')][_0x877c('0xb')][_0x877c('0x7')](_0x1257f3),_0x20bf68=this[_0x877c('0x2e')][_0x877c('0xb')][_0x877c('0x7')](_0x18f760),_0x2aa307=new Set(),_0x49ad29=new Set();for(const _0x44695c of _0x5df759[_0x877c('0x45')]())if(('insertion'==_0x44695c[_0x877c('0x14')]||_0x877c('0x19')==_0x44695c['type']||_0x877c('0x41')==_0x44695c['subType'])&&_0x44695c[_0x877c('0x46')])for(const _0x35b5c1 of _0x44695c[_0x877c('0x3')]())_0x35b5c1['containsRange'](_0x5e3616,!0x0)&&_0x2aa307[_0x877c('0x2d')](_0x44695c[_0x877c('0x14')]+':'+_0x44695c[_0x877c('0x48')]['id']),_0x35b5c1[_0x877c('0x36')](_0x20bf68,!0x0)&&_0x49ad29[_0x877c('0x2d')](_0x44695c[_0x877c('0x14')]+':'+_0x44695c[_0x877c('0x48')]['id']);if(_0x2aa307[_0x877c('0x4d')]!=_0x49ad29['size'])return!0x1;for(const _0x2f6a72 of _0x2aa307)if(!_0x49ad29[_0x877c('0x37')](_0x2f6a72))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c5e=['insertTableOfContents','editor','plugins','enableCommand','get','afterInit','registerElementLabel','TrackChangesEditing','tableOfContents','commands','ELEMENT_TABLE_OF_CONTENTS'];(function(_0x3c15ba,_0x3c5e12){const _0x216e05=function(_0x1111b2){while(--_0x1111b2){_0x3c15ba['push'](_0x3c15ba['shift']());}};_0x216e05(++_0x3c5e12);}(_0x3c5e,0x160));const _0x216e=function(_0x3c15ba,_0x3c5e12){_0x3c15ba=_0x3c15ba-0x0;let _0x216e05=_0x3c5e[_0x3c15ba];return _0x216e05;};import{Plugin as _0x430423}from'ckeditor5/src/core';import{getTranslation as _0x33f567}from'../utils/common-translations';export default class bt extends _0x430423{[_0x216e('0x5')](){const _0x185255=this[_0x216e('0x1')];if(!_0x185255[_0x216e('0x9')][_0x216e('0x4')](_0x216e('0x0')))return;_0x185255[_0x216e('0x2')][_0x216e('0x4')](_0x216e('0x7'))[_0x216e('0x3')](_0x216e('0x0'));const _0x387806=_0x185255[_0x216e('0x2')][_0x216e('0x4')](_0x216e('0x7')),_0x5a3f7a=_0x185255['locale'];_0x387806['_descriptionFactory'][_0x216e('0x6')](_0x216e('0x8'),_0x3a5a9a=>_0x33f567(_0x5a3f7a,_0x216e('0xa'),_0x3a5a9a));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b50=['tableCellBorderColor','tableProperties','getFirstPosition','nodeAfter','registerCustomCallback','format','pluginName','getAttribute','getSuggestionCallback','accept','getSuggestions','enableCommand','tableCellPadding','_descriptionFactory','handleDiscardAction','discard','tableBorderStyle','model','editor','has','setAttribute','handleSuggestionDescription','_handlePropertyChange','tableCellVerticalAlignment','tableCellBorderWidth','tableCellProperties','TablePropertiesEditing','tableCellWidth','tableWidth','join','get','commandParams','enqueueChange','markBlockFormat','afterInit','table','_suggestionFactory','tableCellBackgroundColor','getSelectionAffectedTableCells','selection','_getSuggestion','findAncestor','change','document','formatBlock','data','locale','tableAlignment','TableCellPropertiesEditing','TableUtils','tableHeight','plugins','tableCellHeight','subType','registerDescriptionCallback','TrackChangesEditing','tableCellHorizontalAlignment','getContainedElement','TrackChangesTableProperties','tableCellBorderStyle'];(function(_0x1ec958,_0x5b50da){const _0x224dd4=function(_0x49043d){while(--_0x49043d){_0x1ec958['push'](_0x1ec958['shift']());}};_0x224dd4(++_0x5b50da);}(_0x5b50,0xe5));const _0x224d=function(_0x1ec958,_0x5b50da){_0x1ec958=_0x1ec958-0x0;let _0x224dd4=_0x5b50[_0x1ec958];return _0x224dd4;};import{Plugin as _0x3c1538}from'ckeditor5/src/core';import{getTranslation as _0xef00e0}from'../utils/common-translations';export default class Ct extends _0x3c1538{constructor(_0x221c81){super(_0x221c81),this[_0x224d('0xc')]=['tableBorderColor',_0x224d('0x1b'),'tableBorderWidth',_0x224d('0x3a'),_0x224d('0x27'),_0x224d('0x1'),'tableBackgroundColor'],this[_0x224d('0x24')]=[_0x224d('0xb'),_0x224d('0xa'),_0x224d('0x23'),_0x224d('0x17'),_0x224d('0x26'),_0x224d('0x3'),_0x224d('0x30'),_0x224d('0x7'),_0x224d('0x22')];}static get[_0x224d('0x11')](){return _0x224d('0x9');}[_0x224d('0x2d')](){const _0x226e0a=this['editor']['plugins'][_0x224d('0x29')](_0x224d('0x6'));if(this[_0x224d('0x1d')][_0x224d('0x2')][_0x224d('0x1e')](_0x224d('0x25'))){for(const _0x42dd72 of this['tableProperties'])_0x226e0a[_0x224d('0x16')](_0x42dd72,(_0x4d9e5a,_0x3c3677)=>{const _0x2b10b8=this[_0x224d('0x1d')]['model'][_0x224d('0x36')]['selection'][_0x224d('0xd')]()[_0x224d('0x34')](_0x224d('0x2e'));this[_0x224d('0x21')](_0x42dd72,[_0x2b10b8],this['tableProperties'],'tableProperties',_0x4d9e5a,_0x3c3677);});_0x226e0a['_suggestionFactory'][_0x224d('0xf')]('formatBlock',_0x224d('0xc'),_0x224d('0x14'),_0x226e0a[_0x224d('0x2f')][_0x224d('0x13')](_0x224d('0x37'),null,'discard')),_0x226e0a['_suggestionFactory'][_0x224d('0xf')]('formatBlock',_0x224d('0xc'),_0x224d('0x1a'),(_0x257774,_0x2e1e6c)=>this[_0x224d('0x19')](this['tableProperties'],_0x257774,_0x2e1e6c)),_0x226e0a['_suggestionFactory']['registerCustomCallback'](_0x224d('0x37'),_0x224d('0xc'),_0x224d('0x28'),()=>!0x1);}if(this[_0x224d('0x1d')]['plugins'][_0x224d('0x1e')](_0x224d('0x3b'))){for(const _0x532aca of this['tableCellProperties'])_0x226e0a[_0x224d('0x16')](_0x532aca,(_0x18eb27,_0x2bee80)=>{const _0x5edf3c=this[_0x224d('0x1d')][_0x224d('0x2')][_0x224d('0x29')](_0x224d('0x0'))[_0x224d('0x31')](this[_0x224d('0x1d')]['model']['document'][_0x224d('0x32')]);this[_0x224d('0x21')](_0x532aca,_0x5edf3c,this[_0x224d('0x24')],_0x224d('0x24'),_0x18eb27,_0x2bee80);});_0x226e0a[_0x224d('0x2f')]['registerCustomCallback'](_0x224d('0x37'),'tableCellProperties','accept',_0x226e0a[_0x224d('0x2f')]['getSuggestionCallback']('formatBlock',null,'discard')),_0x226e0a[_0x224d('0x2f')]['registerCustomCallback'](_0x224d('0x37'),_0x224d('0x24'),'discard',(_0x576214,_0xf41dc5)=>this[_0x224d('0x19')](this[_0x224d('0x24')],_0x576214,_0xf41dc5)),_0x226e0a[_0x224d('0x2f')][_0x224d('0xf')]('formatBlock',_0x224d('0x24'),_0x224d('0x28'),()=>!0x1);}_0x226e0a[_0x224d('0x18')][_0x224d('0x5')](_0x4ddad3=>this[_0x224d('0x20')](_0x4ddad3));}[_0x224d('0x21')](_0x4e3585,_0x3af591,_0xbd735,_0xa46704,_0x3daa79,_0x43bc87){const _0x3e16de=this['editor'][_0x224d('0x2')][_0x224d('0x29')](_0x224d('0x6'));this['editor'][_0x224d('0x1c')][_0x224d('0x2b')](_0x43bc87['batch'],()=>{for(const _0x48df6d of _0x3af591){if(this[_0x224d('0x33')](_0x48df6d,_0xa46704))_0x3daa79(_0x43bc87);else{const _0x3f8a14={};for(const _0x261d03 of _0xbd735){const _0x2e1613=_0x48df6d[_0x224d('0x12')](_0x261d03);void 0x0!==_0x2e1613&&(_0x3f8a14[_0x261d03]=_0x2e1613);}_0x3daa79(_0x43bc87),_0x3e16de[_0x224d('0x2c')](_0x48df6d,{'commandParams':[_0x3f8a14]},[],_0xa46704);}}});}[_0x224d('0x19')](_0x38e41d,_0x5db7a3,_0x3dcaf5){const _0x326f68=_0x5db7a3[0x0]['start'][_0x224d('0xe')],_0x43f376=_0x3dcaf5[_0x224d('0x2a')][0x0];this[_0x224d('0x1d')][_0x224d('0x1c')][_0x224d('0x35')](_0x4efadd=>{for(const _0x17f0a8 of _0x38e41d)void 0x0!==_0x43f376[_0x17f0a8]?_0x4efadd[_0x224d('0x1f')](_0x17f0a8,_0x43f376[_0x17f0a8],_0x326f68):_0x4efadd['removeAttribute'](_0x17f0a8,_0x326f68);});}[_0x224d('0x20')](_0x2bbfa8){if(_0x2bbfa8[_0x224d('0x38')])switch(_0x2bbfa8[_0x224d('0x4')]){case _0x224d('0xc'):return{'type':_0x224d('0x10'),'content':_0xef00e0(this[_0x224d('0x1d')][_0x224d('0x39')],'*Format:*\x20change\x20table\x20properties')};case _0x224d('0x24'):return{'type':'format','content':_0xef00e0(this[_0x224d('0x1d')][_0x224d('0x39')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x224d('0x33')](_0x2853bf,_0x41f7d7){const _0x3ff64f=this[_0x224d('0x1d')][_0x224d('0x2')][_0x224d('0x29')]('TrackChangesEditing');for(const _0x309ac4 of _0x3ff64f[_0x224d('0x15')]({'skipNotAttached':!0x0})){const _0xcab5ac=_0x309ac4[_0x224d('0x8')]();if(_0x309ac4[_0x224d('0x4')]===_0x41f7d7&&_0xcab5ac===_0x2853bf)return _0x309ac4;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3050=['insertTemplate','has','plugins','editor','TrackChangesEditing','get','afterInit','Template'];(function(_0x28f0ca,_0x3050fd){const _0x2ed2c0=function(_0x590e2f){while(--_0x590e2f){_0x28f0ca['push'](_0x28f0ca['shift']());}};_0x2ed2c0(++_0x3050fd);}(_0x3050,0x110));const _0x2ed2=function(_0x28f0ca,_0x3050fd){_0x28f0ca=_0x28f0ca-0x0;let _0x2ed2c0=_0x3050[_0x28f0ca];return _0x2ed2c0;};import{Plugin as _0x1e147f}from'ckeditor5/src/core';export default class yt extends _0x1e147f{[_0x2ed2('0x6')](){const _0xed1712=this[_0x2ed2('0x3')];_0xed1712[_0x2ed2('0x2')][_0x2ed2('0x1')](_0x2ed2('0x7'))&&_0xed1712[_0x2ed2('0x2')][_0x2ed2('0x5')](_0x2ed2('0x4'))['enableCommand'](_0x2ed2('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29bf=['newRange','editor','start','get','suggestion','ELEMENT_TITLE','locale','getChangedMarkers','title-content','TrackChangesEditing','from','isTouching','schema','getNearestSelectionRange','differ','model','updateMarker','isCollapsed','removeMarker','registerElementLabel','registerPostFixer','_descriptionFactory','nodeBefore','end','has','element','_splitMarkerName','document','forward','plugins','isEqual','afterInit','createRange'];(function(_0x48ebf2,_0x29bf00){const _0x2be7c2=function(_0x2fc086){while(--_0x2fc086){_0x48ebf2['push'](_0x48ebf2['shift']());}};_0x2be7c2(++_0x29bf00);}(_0x29bf,0x196));const _0x2be7=function(_0x48ebf2,_0x29bf00){_0x48ebf2=_0x48ebf2-0x0;let _0x2be7c2=_0x29bf[_0x48ebf2];return _0x2be7c2;};import{Plugin as _0x18ab24}from'ckeditor5/src/core';import{getTranslation as _0xa92b74}from'../utils/common-translations';export default class St extends _0x18ab24{[_0x2be7('0x15')](){const _0x324698=this[_0x2be7('0x18')];if(!_0x324698[_0x2be7('0x13')][_0x2be7('0xe')]('Title'))return;const _0x2c54cb=_0x324698['plugins'][_0x2be7('0x1a')](_0x2be7('0x20'));_0x2c54cb[_0x2be7('0xb')][_0x2be7('0x9')](_0x2be7('0x1f'),()=>_0xa92b74(_0x324698[_0x2be7('0x1d')],_0x2be7('0x1c'))),_0x324698[_0x2be7('0x5')][_0x2be7('0x11')][_0x2be7('0xa')](_0x3f125b=>{let _0x44487e=!0x1;const _0x6cc0ab=Array[_0x2be7('0x0')](_0x324698['model']['document'][_0x2be7('0x4')][_0x2be7('0x1e')]());for(const {name:_0x28a2c6,data:_0x54d0d8}of _0x6cc0ab){const {group:_0x2b4e91}=_0x2c54cb[_0x2be7('0x10')](_0x28a2c6);if(_0x2be7('0x1b')!==_0x2b4e91||!_0x54d0d8['newRange'])continue;const _0x413345=_0x54d0d8[_0x2be7('0x17')],_0x4ee495=_0x413345[_0x2be7('0xd')][_0x2be7('0xc')];if(!_0x4ee495||!_0x4ee495['is'](_0x2be7('0xf'),_0x2be7('0x1f')))continue;if(!_0x413345[_0x2be7('0x19')][_0x2be7('0x1')](_0x413345[_0x2be7('0xd')]))continue;const _0xfaedc5=_0x324698[_0x2be7('0x5')][_0x2be7('0x2')][_0x2be7('0x3')](_0x413345[_0x2be7('0xd')],_0x2be7('0x12'));if(_0xfaedc5&&_0xfaedc5[_0x2be7('0x7')]){const _0x202a25=_0x3f125b[_0x2be7('0x16')](_0x413345[_0x2be7('0x19')],_0xfaedc5[_0x2be7('0x19')]);_0x202a25[_0x2be7('0x14')](_0x413345)||(_0x3f125b[_0x2be7('0x6')](_0x28a2c6,{'range':_0x202a25}),_0x44487e=!0x0);}_0x44487e||(_0x3f125b[_0x2be7('0x8')](_0x28a2c6),_0x44487e=!0x0);}return _0x44487e;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x583a=['TrackChangesEditing','redo','get','enableCommand','afterInit','undo','plugins'];(function(_0x4574aa,_0x583a3b){const _0x2057d7=function(_0x2ecd75){while(--_0x2ecd75){_0x4574aa['push'](_0x4574aa['shift']());}};_0x2057d7(++_0x583a3b);}(_0x583a,0x188));const _0x2057=function(_0x4574aa,_0x583a3b){_0x4574aa=_0x4574aa-0x0;let _0x2057d7=_0x583a[_0x4574aa];return _0x2057d7;};import{Plugin as _0x117d46}from'ckeditor5/src/core';export default class It extends _0x117d46{[_0x2057('0x4')](){const _0x266d97=this['editor'],_0x503208=_0x266d97['plugins'][_0x2057('0x2')](_0x2057('0x0'));_0x266d97[_0x2057('0x6')]['has']('UndoEditing')&&(_0x503208[_0x2057('0x3')](_0x2057('0x5')),_0x503208[_0x2057('0x3')](_0x2057('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28bb=['isLimit','previousPosition','listIndent','parent','push','isContent','consumable','markerRange','nextSibling','bindElementToMarker','start','model','getCustomProperty','addHighlight','type','createRangeOn','isAtEnd','mapper','get','plugins','toViewElement','isBlock','addClass','markerName','writer','span','getWalker','createUIElement','listItem','ck-suggestion-marker--active','name','elementEnd','TrackChangesEditing'];(function(_0x424968,_0x28bbb9){const _0x5334ec=function(_0x34b302){while(--_0x34b302){_0x424968['push'](_0x424968['shift']());}};_0x5334ec(++_0x28bbb9);}(_0x28bb,0x17a));const _0x5334=function(_0x424968,_0x28bbb9){_0x424968=_0x424968-0x0;let _0x5334ec=_0x28bb[_0x424968];return _0x5334ec;};export function getRangesWithAttribute(_0x334f08,_0x54fb1e,_0x693f5c){const _0x32a68d=[];for(const _0x4b7090 of _0x54fb1e['getItems']())_0x4b7090['hasAttribute'](_0x334f08)&&_0x32a68d[_0x5334('0x16')](_0x693f5c[_0x5334('0x0')](_0x4b7090));return _0x32a68d;}export function getElementsAffectedByListItemRename(_0x51d70c){const _0x5bcd5f=[];if(_0x51d70c['is']('element',_0x5334('0xd'))){let _0x210f58=_0x51d70c['nextSibling'];for(;_0x210f58&&_0x210f58['is']('element',_0x5334('0xd'))&&_0x210f58['getAttribute'](_0x5334('0x14'))>0x0;)_0x5bcd5f[_0x5334('0x16')](_0x210f58),_0x210f58=_0x210f58[_0x5334('0x1a')];}return _0x5bcd5f;}export function downcastSplitMergeMarker(_0x6ea1ce,_0x1f934d,{showActiveMarker:_0x53c7d9=!0x0}={}){const _0x110312=_0x6ea1ce[_0x5334('0x4')][_0x5334('0x3')](_0x5334('0x11'));return(_0x944a51,_0x4a862e,_0x2271a9)=>{if(!_0x2271a9[_0x5334('0x18')]['test'](_0x4a862e[_0x5334('0x19')],_0x944a51[_0x5334('0xf')]))return;const _0x16c332=_0x4a862e[_0x5334('0x19')][_0x5334('0xb')](),_0x1b2c49=_0x4a862e[_0x5334('0x19')][_0x5334('0x1c')],_0x4a263f=_0x6ea1ce[_0x5334('0x1d')]['schema'];let _0x52df84=null,_0x34b664=null,_0x25a425=!0x1,_0x5b3236=!0x1;for(const _0x46c258 of _0x16c332){const _0x4899b7=_0x46c258['item'];_0x25a425=_0x25a425||_0x4a263f[_0x5334('0x17')](_0x4899b7);const _0x51b311=_0x2271a9[_0x5334('0x2')][_0x5334('0x5')](_0x4899b7);if(_0x51b311&&_0x51b311[_0x5334('0x1e')](_0x5334('0x1f')))return;_0x5334('0x10')==_0x46c258[_0x5334('0x20')]&&(_0x4a263f[_0x5334('0x6')](_0x4899b7)&&!_0x4a263f[_0x5334('0x12')](_0x4899b7)&&(_0x4899b7[_0x5334('0x1a')]||_0x1b2c49[_0x5334('0x1')]?_0x52df84&&_0x52df84[_0x5334('0x15')]==_0x4899b7||(_0x52df84=_0x4899b7,_0x2ba1c2(_0x46c258['previousPosition']),_0x5b3236=!0x0):_0x34b664=_0x34b664||_0x46c258[_0x5334('0x13')]));}function _0x2ba1c2(_0x3cd776){const _0x2bae1c=_0x2271a9['writer'][_0x5334('0xc')](_0x5334('0xa'),{'class':'ck-suggestion-marker-'+_0x1f934d}),_0x8a7584=_0x2271a9['mapper']['toViewPosition'](_0x3cd776);_0x53c7d9&&_0x110312['activeMarkers']['includes'](_0x4a862e[_0x5334('0x8')])&&_0x2271a9[_0x5334('0x9')][_0x5334('0x7')](_0x5334('0xe'),_0x2bae1c),_0x2271a9[_0x5334('0x9')]['insert'](_0x8a7584,_0x2bae1c),_0x2271a9['mapper'][_0x5334('0x1b')](_0x2bae1c,_0x4a862e[_0x5334('0x8')]);}_0x25a425||_0x5b3236||!_0x34b664||_0x2ba1c2(_0x34b664);};}
|