@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230802.0 → 0.0.0-nightly-20230804.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/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 _0x9995=['_tablePostFixingSubtypes','redo','markMultiRangeDeletion','registerPostFixer','getSuggestion','getRowIndexes','discard','ck-suggestion-marker','getChangedMarkers','dataDowncast','getRanges','*Replace\x20table\x20cells*','Users','commands','removeMarkers','name','findAncestor','createRangeIn','fromEntries','push','return','accept','next','createElement','register','high','createTableWalker','has','suggestionLoaded','deletionRanges','TrackChangesEditing','suggestion-td','rows','suggestion:formatBlock:tablePasteCell','tableCellBorderColor','_suggestionFactory','previous','getColumns','setAttribute','stop','model','tableCellBorderWidth','editor','tableCellHorizontalAlignment','cells','getItems','registerDescriptionCallback','_descriptionFactory','low','createPositionBefore','schema','locale','set','markMultiRangeInsertion','paragraph','attributes','insertionRanges','updateMarker','tablePasteChainId','suggestion','listenTo','getRange','selection','every','tablePasteRow','remove','getAllAdjacentSuggestions','removeMarker','registerCustomCallback','insertRows','getMarkers','map','nextSibling','element','removeColumns','filter','markMultiRangeBlockFormat','tableCell','_getCoordsForCells','document','editingDowncast','from','wrap','createRange','oldRange','rowInsertionRanges','getAttributes','author','find','hasSuggestion','showSuggestionHighlights','join','first','createRangeOn','value','tableCellPadding','isEqual','columnInsertionIndexes','$graveyard','getShiftedBy','TableClipboard','nodeAfter','differ','change','rowInsertionIndexes','conversion','end','columns','plugins','editing','content','cell','entries','tableCellSuggestion','insertion','view','getSuggestions','getChildren','some','columnInsertionRanges','deletion','isEmpty','tablePasteColumn','start','getSelectionAffectedTableCells','tablePaste','insertColumns','markerName','ck-suggestion-marker--active','suggestionUnloaded','reduce','insertContent','unwrap','includes','isInContent','getChanges','newRange','endRow','forceDefaultExecution','markerToHighlight','getChild','table','last','fill','trackChanges','for','_splitMarkerName','column','tablePasteCell','subType','options','startsWith','length','formatBlock','get','add','type','previousSibling','position','insert','markerAttributes','elementToElement','getContainedElement'];(function(_0x50d235,_0x99951b){const _0x3523a6=function(_0xb17aa8){while(--_0xb17aa8){_0x50d235['push'](_0x50d235['shift']());}};_0x3523a6(++_0x99951b);}(_0x9995,0x1b7));const _0x3523=function(_0x50d235,_0x99951b){_0x50d235=_0x50d235-0x0;let _0x3523a6=_0x9995[_0x50d235];return _0x3523a6;};import{getTranslation as _0x151c95}from'../utils/common-translations';import{Plugin as _0x1e1302}from'ckeditor5/src/core';import{uid as _0x5d14ee,priorities as _0x42d7c0}from'ckeditor5/src/utils';import _0x2e6e3 from'./table';const le=[_0x3523('0x5b'),_0x3523('0x54'),'tableCellBorderStyle',_0x3523('0x5d'),'tableCellVerticalAlignment','tableCellBackgroundColor',_0x3523('0x91')],ae=Object[_0x3523('0x44')](le['map'](_0x39e0b4=>[_0x39e0b4,null]));export default class kt extends _0x1e1302{static get['requires'](){return[_0x2e6e3];}['afterInit'](){const _0x447c95=this[_0x3523('0x5c')];if(!_0x447c95[_0x3523('0x9e')][_0x3523('0x4d')]('TableClipboard'))return;const _0x4e6f84=_0x447c95[_0x3523('0x9e')]['get'](_0x3523('0x50')),_0x2080cb=_0x447c95[_0x3523('0x9e')][_0x3523('0x29')]('TableUtils'),_0x4cd0ab=_0x447c95[_0x3523('0x9e')][_0x3523('0x29')](_0x2e6e3),_0x31f914=_0x447c95[_0x3523('0x9e')][_0x3523('0x29')]('TableClipboard');_0x4cd0ab[_0x3523('0x32')][_0x3523('0x45')](_0x3523('0x72'),_0x3523('0x9')),_0x447c95['model'][_0x3523('0x64')][_0x3523('0x4a')]('tableCellSuggestion',{'allowIn':_0x3523('0x7f'),'allowContentOf':_0x3523('0x7f'),'isLimit':!0x0}),_0x447c95[_0x3523('0x9b')][_0x3523('0x30')]({'model':_0x3523('0x0'),'view':_0x3523('0x51')});let _0x491322=null;_0x447c95[_0x3523('0x5a')]['on'](_0x3523('0x12'),(_0x8156bc,_0x51fd4a)=>{const [_0x2d5e9e,_0x45686e]=_0x51fd4a,_0x1fe700=_0x51fd4a[_0x51fd4a[_0x3523('0x27')]-0x1];_0x1fe700&&_0x1fe700[_0x3523('0x19')]||_0x4e6f84['_isForcedDefaultExecutionBlock']||this[_0x3523('0x5c')][_0x3523('0x3f')][_0x3523('0x29')](_0x3523('0x1f'))[_0x3523('0x90')]&&function(_0x5c3dff,_0x5c93f6,_0x54edf6,_0x23c567,_0x564618){if(_0x5c93f6&&!_0x5c93f6['is']('documentSelection'))return!0x1;const _0x15d1cd=_0x564618['getTableIfOnlyTableInContent'](_0x5c3dff,_0x54edf6);if(!_0x15d1cd||!fe(_0x15d1cd,void 0x0,_0x23c567))return!0x1;const _0x439c15=_0x23c567[_0x3523('0xb')](_0x54edf6[_0x3523('0x81')][_0x3523('0x70')]);if(!_0x439c15['length'])return!0x1;const _0x3d739b=_0x439c15[0x0]['findAncestor']('table'),_0x163285=_0x23c567[_0x3523('0x37')](_0x439c15),_0x227c68=_0x23c567['getColumnIndexes'](_0x439c15),_0x1839f8={'startRow':_0x163285[_0x3523('0x8e')],'endRow':_0x163285[_0x3523('0x1d')],'startColumn':_0x227c68[_0x3523('0x8e')],'endColumn':_0x227c68['last']};return 0x1==_0x439c15['length']&&(_0x1839f8[_0x3523('0x18')]+=_0x23c567['getRows'](_0x15d1cd)-0x1,_0x1839f8['endColumn']+=_0x23c567[_0x3523('0x57')](_0x15d1cd)-0x1),fe(_0x3d739b,_0x1839f8,_0x23c567);}(_0x2d5e9e,_0x45686e,_0x447c95['model'],_0x2080cb,_0x31f914)&&(_0x8156bc[_0x3523('0x59')](),_0x491322={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x447c95[_0x3523('0x5a')][_0x3523('0x99')](()=>{_0x447c95['model'][_0x3523('0x12')](_0x51fd4a[0x0],_0x51fd4a[0x1],_0x51fd4a[0x2],{'forceDefaultExecution':!0x0});const _0x32f4ee=_0x5d14ee(),{rowInsertionRanges:_0x34559d,columnInsertionRanges:_0x621f1b,insertionRanges:_0x5b6f8e,deletionRanges:_0x131cd2,cells:_0x568c2c}=_0x491322;_0x34559d[_0x3523('0x27')]&&_0x4e6f84[_0x3523('0x67')](_0x34559d,_0x3523('0x72'),{'tablePasteChainId':_0x32f4ee}),_0x621f1b['length']&&_0x4e6f84[_0x3523('0x67')](_0x621f1b,_0x3523('0x9'),{'tablePasteChainId':_0x32f4ee}),_0x5b6f8e['length']&&_0x4e6f84[_0x3523('0x67')](_0x5b6f8e,_0x3523('0xc'),{'tablePasteChainId':_0x32f4ee,'skipNestingCheck':!0x0}),_0x131cd2[_0x3523('0x27')]&&_0x4e6f84[_0x3523('0x34')](_0x131cd2,_0x3523('0xc'),{'tablePasteChainId':_0x32f4ee,'skipNestingCheck':!0x0});const _0x468a13=_0x4e6f84[_0x3523('0x7e')](_0x568c2c[_0x3523('0x79')](({element:_0x149caa})=>_0x149caa),{'formatGroupId':_0x5d14ee()},[],_0x3523('0x23'),{'tablePasteChainId':_0x32f4ee});if(_0x468a13){const _0x4d77fb=_0x468a13['getMarkers'](),_0x343fbd=[];for(const {element:_0x28064f,attributes:_0x5b4eee}of _0x568c2c){if(!_0x5b4eee)continue;const _0x9d0629=_0x447c95['model'][_0x3523('0x8f')](_0x28064f),_0x47ca8c=_0x4d77fb['find'](_0x40875e=>_0x40875e[_0x3523('0x6f')]()[_0x3523('0x92')](_0x9d0629));_0x47ca8c&&_0x343fbd[_0x3523('0x45')]([_0x47ca8c[_0x3523('0x41')],_0x5b4eee]);}_0x343fbd[_0x3523('0x27')]&&_0x468a13[_0x3523('0x58')](_0x3523('0x2f'),Object[_0x3523('0x44')](_0x343fbd));}_0x491322=null;}));},{'priority':_0x42d7c0[_0x3523('0x4b')]+0xa}),_0x447c95[_0x3523('0x9e')][_0x3523('0x29')](_0x3523('0x96'))['on']('_replaceTableSlotCell',(_0x59ede7,_0x20b276)=>{const [_0x1408d7,_0x44729c,,_0x40b926]=_0x20b276;if(!_0x491322)return;_0x59ede7[_0x3523('0x59')]();const _0x16088c=_0x1408d7[_0x3523('0xa1')],_0x197954=_0x44729c,_0xd06aa6=ce(_0x16088c),_0x37bf7b=ce(_0x197954);_0x59ede7[_0x3523('0x46')]=_0x16088c;let _0x204972=null,_0x298290=null;if(_0x37bf7b||_0xd06aa6){if(_0xd06aa6&&!_0x37bf7b){_0x40b926['remove'](_0x16088c[_0x3523('0x1b')](0x0));for(const _0x5ba5f0 of Array[_0x3523('0x83')](_0x197954['getChildren']()))_0x40b926[_0x3523('0x2e')](_0x5ba5f0,_0x16088c,_0x3523('0x9c'));const _0x3f12e3=_0x491322[_0x3523('0x9a')]['includes'](_0x1408d7['row']),_0x5d784f=_0x491322['columnInsertionIndexes'][_0x3523('0x14')](_0x1408d7[_0x3523('0x22')]);_0x3f12e3||_0x5d784f||(_0x204972=_0x40b926['createRangeIn'](_0x16088c));}else _0x37bf7b&&!_0xd06aa6&&(_0x298290=_0x40b926['createRangeIn'](_0x16088c));}else{const _0x119a0c=_0x40b926['createElement'](_0x3523('0x0')),_0x390a1f=_0x40b926[_0x3523('0x49')](_0x3523('0x0'));_0x40b926[_0x3523('0x84')](_0x40b926[_0x3523('0x43')](_0x16088c),_0x390a1f),_0x40b926[_0x3523('0x2e')](_0x119a0c,_0x16088c,0x0);for(const _0x115671 of Array[_0x3523('0x83')](_0x197954[_0x3523('0x4')]()))_0x40b926[_0x3523('0x2e')](_0x115671,_0x119a0c,'end');_0x204972=_0x40b926['createRangeOn'](_0x119a0c),_0x298290=_0x40b926[_0x3523('0x8f')](_0x390a1f);}const _0x1cda6c=Array[_0x3523('0x83')](_0x197954[_0x3523('0x88')]())[_0x3523('0x7d')](([_0x2dc218])=>le[_0x3523('0x14')](_0x2dc218));_0x491322[_0x3523('0x5e')][_0x3523('0x45')]({'element':_0x16088c,'attributes':_0x1cda6c[_0x3523('0x27')]?Object[_0x3523('0x44')](_0x1cda6c):null}),_0x204972&&_0x491322[_0x3523('0x6a')][_0x3523('0x45')](_0x204972),_0x298290&&_0x491322[_0x3523('0x4f')][_0x3523('0x45')](_0x298290);},{'priority':_0x3523('0x4b')}),_0x2080cb['on'](_0x3523('0xd'),(_0x5ba2b7,_0x51cf8f)=>{const [_0x49c332,_0x149d5a={}]=_0x51cf8f;if(!_0x491322)return;const _0xf639eb=_0x149d5a['at']||0x0,_0x537afc=_0x149d5a[_0x3523('0x9d')]||0x1;_0x491322[_0x3523('0x93')]=new Array(_0x537afc)[_0x3523('0x1e')](_0xf639eb)['map']((_0x1bedbb,_0x291664)=>_0x1bedbb+_0x291664);for(const {cell:_0x3ed74b}of _0x2080cb[_0x3523('0x4c')](_0x49c332,{'startColumn':_0xf639eb,'endColumn':_0xf639eb+_0x537afc-0x1}))_0x491322[_0x3523('0x6')][_0x3523('0x45')](_0x447c95[_0x3523('0x5a')][_0x3523('0x8f')](_0x3ed74b));},{'priority':_0x3523('0x62')}),_0x2080cb['on'](_0x3523('0x77'),(_0x63c9ea,_0x45b4b5)=>{const [_0x2460b5,_0x24441b={}]=_0x45b4b5;if(!_0x491322)return;const _0x4849ec=_0x24441b['at']||0x0,_0x420351=_0x24441b[_0x3523('0x52')]||0x1;_0x491322[_0x3523('0x9a')]=new Array(_0x420351)[_0x3523('0x1e')](_0x4849ec)[_0x3523('0x79')]((_0xb871c6,_0x3ecaab)=>_0xb871c6+_0x3ecaab);for(const {cell:_0x3887f4}of _0x2080cb[_0x3523('0x4c')](_0x2460b5,{'startRow':_0x4849ec,'endRow':_0x4849ec+_0x420351-0x1}))_0x491322[_0x3523('0x87')][_0x3523('0x45')](_0x447c95[_0x3523('0x5a')][_0x3523('0x8f')](_0x3887f4));},{'priority':_0x3523('0x62')}),_0x4e6f84[_0x3523('0x61')][_0x3523('0x60')](_0x1039c2=>{if(_0x1039c2['subType']&&_0x1039c2[_0x3523('0x24')][_0x3523('0x26')](_0x3523('0xc')))return _0x1039c2[_0x3523('0x56')]?{}:{'type':_0x3523('0x1'),'content':_0x151c95(_0x447c95[_0x3523('0x65')],_0x3523('0x3d'))};});const _0x2e7aa1=()=>{};for(const _0x168c9c of['tablePaste',_0x3523('0x9'),'tablePasteRow',_0x3523('0x23')])_0x4e6f84[_0x3523('0x55')][_0x3523('0x76')]('insertion',_0x168c9c,_0x3523('0x8d'),_0x2e7aa1),_0x4e6f84[_0x3523('0x55')][_0x3523('0x76')]('deletion',_0x168c9c,'join',_0x2e7aa1);_0x4e6f84[_0x3523('0x55')]['registerCustomCallback'](_0x3523('0x28'),_0x3523('0x23'),'discard',_0x2e7aa1),_0x4e6f84['_suggestionFactory']['registerCustomCallback'](_0x3523('0x28'),'tablePasteCell',_0x3523('0x47'),(_0x5b2ac9,_0xdd071f,_0x8fa079)=>{const _0x747111=_0x5b2ac9[_0x3523('0x79')](_0x44c435=>_0x44c435[_0x3523('0x31')]())['filter'](_0x5a0e99=>_0x5a0e99),_0x2705fa=new Map(_0x747111[_0x3523('0x79')](_0x4f3c47=>[_0x4f3c47,null]));if(_0x491322)for(const {element:_0x48b014,attributes:_0x1e7b50}of _0x491322[_0x3523('0x5e')])_0x1e7b50&&_0x2705fa[_0x3523('0x66')](_0x48b014,_0x1e7b50);else{if(_0x8fa079&&_0x8fa079['markerAttributes'])for(const [_0x12d78e,_0x45a345]of Object[_0x3523('0xa2')](_0x8fa079[_0x3523('0x2f')])){const _0xb48a0a=_0x447c95[_0x3523('0x5a')]['markers'][_0x3523('0x29')](_0x12d78e),_0x4d967f=_0xb48a0a?_0xb48a0a[_0x3523('0x6f')]()[_0x3523('0x31')]():null;_0x4d967f&&_0x2705fa[_0x3523('0x66')](_0x4d967f,_0x45a345);}}_0x447c95[_0x3523('0x5a')][_0x3523('0x99')](_0x27922a=>{for(const [_0x572aa4,_0x5a292f]of _0x2705fa)_0x27922a['setAttributes']({...ae,..._0x5a292f},_0x572aa4);});});const _0x501dd3=(_0x29d834,_0x2a13a2)=>{_0x4e6f84['_suggestionFactory'][_0x3523('0x76')](_0x29d834,'tablePaste',_0x2a13a2,(_0x1509a3,_0x1123a9,_0x19a238)=>{_0x447c95['model'][_0x3523('0x99')](_0x4771ce=>{const _0x1b12b0=[];for(const _0xe2c50f of _0x1509a3){const _0x2d96b4=_0xe2c50f[_0x3523('0xa')][_0x3523('0x97')];_0x2d96b4['is'](_0x3523('0x7b'),_0x3523('0x0'))&&_0x1b12b0[_0x3523('0x45')](_0x2d96b4);}_0x4e6f84[_0x3523('0x55')]['getSuggestionCallback'](_0x29d834,null,_0x2a13a2)(_0x1509a3,_0x1123a9,_0x19a238);for(const _0x2f31d6 of _0x1b12b0)_0x3523('0x94')!=_0x2f31d6['root']['rootName']&&_0x4771ce['unwrap'](_0x2f31d6);});});};_0x501dd3('insertion',_0x3523('0x47')),_0x501dd3(_0x3523('0x1'),'discard'),_0x501dd3(_0x3523('0x7'),_0x3523('0x47')),_0x501dd3('deletion',_0x3523('0x38')),_0x4e6f84[_0x3523('0x55')]['registerCustomCallback']('insertion',_0x3523('0x72'),_0x3523('0x38'),_0xf50218=>{const _0x4b72b4=_0xf50218['map'](_0x249189=>_0x249189[_0x3523('0x31')]()),_0x383b75=_0x4b72b4[0x0][_0x3523('0x42')]('table'),{minRow:_0x42fd88,maxRow:_0x3c9f33}=_0x4cd0ab[_0x3523('0x80')](_0x4b72b4);_0x2080cb['removeRows'](_0x383b75,{'at':_0x42fd88,'rows':_0x3c9f33-_0x42fd88+0x1});}),_0x4e6f84[_0x3523('0x55')][_0x3523('0x76')]('insertion',_0x3523('0x9'),'discard',_0x1eccfd=>{const _0x1e6f6d=_0x1eccfd[_0x3523('0x79')](_0x4a7f60=>_0x4a7f60['getContainedElement']()),_0x8fa365=_0x1e6f6d[0x0][_0x3523('0x42')](_0x3523('0x1c')),{minColumn:_0x1bb3ed,maxColumn:_0x49e21f}=_0x4cd0ab['_getCoordsForCells'](_0x1e6f6d);_0x2080cb[_0x3523('0x7c')](_0x8fa365,{'at':_0x1bb3ed,'columns':_0x49e21f-_0x1bb3ed+0x1});});const _0x333fd3=(_0xa1f989,_0x14fe00)=>{if(!_0x14fe00[_0x3523('0x24')]||!_0x14fe00['subType'][_0x3523('0x26')]('tablePaste'))return;const _0x316780=_0x14fe00[_0x3523('0x69')][_0x3523('0x6c')],_0x8c26a1=_0x4e6f84[_0x3523('0x3')]()['filter'](_0xad496e=>_0xad496e[_0x3523('0x15')]&&_0xad496e[_0x3523('0x69')]&&_0xad496e[_0x3523('0x69')]['tablePasteChainId']==_0x316780);_0x8c26a1[_0x3523('0x27')]&&_0x14fe00['getAllAdjacentSuggestions']()[_0x3523('0x27')]!=_0x8c26a1[_0x3523('0x27')]&&_0x8c26a1[_0x3523('0x11')]((_0x3db917,_0x1bc57f)=>(_0x3db917[_0x3523('0x48')]=_0x1bc57f,_0x1bc57f[_0x3523('0x56')]=_0x3db917,_0x1bc57f));};function _0x4747d7(_0x10db1b,_0x5d4c7d=!0x0){const {id:_0x27b54e}=_0x4e6f84[_0x3523('0x21')](_0x10db1b[_0x3523('0xe')]),_0x5f2452=[_0x3523('0x39'),'ck-suggestion-marker-insertion'],_0x3c68b4=_0x4e6f84['activeMarkers']['includes'](_0x10db1b[_0x3523('0xe')]);return _0x3c68b4&&_0x5f2452['push'](_0x3523('0xf')),{'classes':_0x5f2452,'attributes':{'data-suggestion':_0x27b54e},'priority':_0x3c68b4&&_0x5d4c7d?0xbc2:0xbb8};}_0x4e6f84['on'](_0x3523('0x4e'),_0x333fd3,{'priority':_0x3523('0x4b')}),_0x4e6f84['on'](_0x3523('0x10'),_0x333fd3,{'priority':_0x3523('0x4b')}),_0x447c95[_0x3523('0x5a')][_0x3523('0x81')]['registerPostFixer'](()=>{let _0x57234a=!0x1;const _0x2157ee=Array[_0x3523('0x83')](_0x447c95[_0x3523('0x5a')][_0x3523('0x81')][_0x3523('0x98')][_0x3523('0x3a')]());for(const {name:_0xa962c4,data:_0x96a5e6}of _0x2157ee){const {group:_0xe07481,type:_0x47a501,id:_0x583db2}=_0x4e6f84[_0x3523('0x21')](_0xa962c4);if(_0x3523('0x6d')!=_0xe07481||_0x3523('0x7')!=_0x47a501||_0x96a5e6[_0x3523('0x86')])continue;if(!_0x4e6f84[_0x3523('0x8b')](_0x583db2))continue;const _0x500ccb=_0x4e6f84[_0x3523('0x36')](_0x583db2)[_0x3523('0x3c')](),_0x2f6372=_0x447c95['plugins']['get'](_0x3523('0x3e'))['me'];for(const _0xadac8 of _0x4e6f84['getSuggestions']()){if(!_0xadac8[_0x3523('0x15')]||_0xadac8['author']!=_0x2f6372)continue;if(_0x3523('0x28')!=_0xadac8[_0x3523('0x2b')]||_0x3523('0x23')!=_0xadac8['subType'])continue;if(_0xadac8[_0x3523('0x3c')]()[_0x3523('0x71')](_0x42edec=>_0x500ccb[_0x3523('0x5')](_0x9a4ae3=>_0x9a4ae3['containsRange'](_0x42edec,!0x0))))for(const _0x1d51fb of _0xadac8[_0x3523('0x74')]())_0x1d51fb[_0x3523('0x15')]&&(_0x1d51fb[_0x3523('0x38')](),_0x57234a=!0x0);}}return _0x57234a;}),_0x447c95['model'][_0x3523('0x81')]['registerPostFixer'](_0x35f4b0=>{const _0x10677a=_0x447c95['commands'][_0x3523('0x29')](_0x3523('0x33'));if(!_0x10677a||!_0x10677a['_createdBatches']['has'](_0x35f4b0['batch']))return!0x1;let _0x2adc11=!0x1;const _0x4be993=_0x447c95['plugins'][_0x3523('0x29')](_0x3523('0x3e'))['me'],_0x4a298d=_0x447c95['model'][_0x3523('0x81')]['differ'][_0x3523('0x16')](),_0x2b305f=Array[_0x3523('0x83')](_0x447c95[_0x3523('0x5a')][_0x3523('0x81')][_0x3523('0x98')]['getChangedMarkers']())[_0x3523('0x7d')](({name:_0x18a234,data:_0x2a6a84})=>{const {group:_0x3a7f75,subType:_0x430548,authorId:_0x29c775}=_0x4e6f84[_0x3523('0x21')](_0x18a234);return _0x3523('0x6d')==_0x3a7f75&&_0x3523('0xc')==_0x430548&&_0x29c775==_0x4be993['id']&&!_0x2a6a84['oldRange'];});for(const _0x23d7d8 of _0x4a298d){if(_0x3523('0x2e')!=_0x23d7d8[_0x3523('0x2b')]||_0x3523('0x0')!=_0x23d7d8[_0x3523('0x41')]||0x1!=_0x23d7d8[_0x3523('0x27')])continue;const _0x10d198=_0x35f4b0[_0x3523('0x85')](_0x23d7d8[_0x3523('0x2d')],_0x23d7d8[_0x3523('0x2d')][_0x3523('0x95')](0x1));if(!_0x2b305f[_0x3523('0x8a')](({data:_0xffc7b0})=>_0xffc7b0[_0x3523('0x17')][_0x3523('0x92')](_0x10d198)))for(const {name:_0x2c8816,data:_0x423e28}of _0x2b305f)if(_0x10d198['containsRange'](_0x423e28[_0x3523('0x17')])){_0x35f4b0[_0x3523('0x6b')](_0x2c8816,{'range':_0x10d198}),_0x2adc11=!0x0;break;}}return _0x2adc11;}),_0x447c95['model'][_0x3523('0x81')][_0x3523('0x35')](_0x1565d1=>{let _0x523874=!0x1;const _0x2e19e6=_0x447c95['plugins']['get'](_0x3523('0x3e'))['me'],_0x22ebad=_0x4e6f84[_0x3523('0x3')]()[_0x3523('0x7d')](_0x5915c3=>_0x5915c3[_0x3523('0x15')]&&_0x5915c3[_0x3523('0x89')]==_0x2e19e6),_0x3db1c7=new Set(),_0x113721=new Set();for(const _0x46bb10 of _0x22ebad)if(_0x3523('0xc')==_0x46bb10['subType'])for(const _0x1cf9c of _0x46bb10[_0x3523('0x78')]()){const _0x1247b4=_0x1cf9c[_0x3523('0x6f')]()[_0x3523('0x31')]();if(_0x1247b4){if(_0x1247b4['is'](_0x3523('0x7b'),_0x3523('0x0'))&&ce(_0x1247b4)){_0x46bb10[_0x3523('0x75')](_0x1cf9c['name']),_0x3db1c7['add'](_0x1247b4),_0x523874=!0x0;const _0x3aa356=_0x1247b4[_0x3523('0x7a')],_0x50534f=_0x1247b4[_0x3523('0x2c')],_0x401e10=_0x3aa356&&_0x3aa356['is'](_0x3523('0x7b'),_0x3523('0x0')),_0x21890c=_0x50534f&&_0x50534f['is'](_0x3523('0x7b'),_0x3523('0x0'));_0x401e10&&!_0x3db1c7[_0x3523('0x4d')](_0x3aa356)&&_0x113721[_0x3523('0x2a')](_0x3aa356),_0x21890c&&!_0x3db1c7[_0x3523('0x4d')](_0x50534f)&&_0x113721[_0x3523('0x2a')](_0x50534f);}else _0x1247b4['is'](_0x3523('0x7b'),_0x3523('0x68'))&&_0x1247b4[_0x3523('0x8')]&&(_0x46bb10['removeMarker'](_0x1cf9c[_0x3523('0x41')]),_0x523874=!0x0);}}else{if(_0x3523('0x23')==_0x46bb10[_0x3523('0x24')]){if(!_0x46bb10[_0x3523('0x69')]||!_0x46bb10['attributes']['tablePasteChainId'])continue;const _0x32f6cc=_0x46bb10[_0x3523('0x69')][_0x3523('0x2f')];if(_0x32f6cc&&Object['keys'](_0x32f6cc)[_0x3523('0x27')])continue;const _0x3a30a6=_0x46bb10[_0x3523('0x69')][_0x3523('0x6c')];let _0xd5b951=!0x0,_0x130c8d=!0x0;for(const _0x1d4c4d of _0x22ebad)if(_0x1d4c4d[_0x3523('0x24')]&&_0x1d4c4d['subType'][_0x3523('0x26')]('tablePaste')){if(!_0x1d4c4d[_0x3523('0x69')]['tablePasteChainId']){_0x130c8d=!0x1;break;}if(_0x1d4c4d['id']!=_0x46bb10['id']&&_0x1d4c4d[_0x3523('0x69')][_0x3523('0x6c')]==_0x3a30a6){_0xd5b951=!0x1;break;}}_0x130c8d&&_0xd5b951&&(_0x46bb10[_0x3523('0x40')](),_0x523874=!0x0);}}for(const _0x47f0be of _0x3db1c7)_0x1565d1[_0x3523('0x73')](_0x47f0be);for(const _0x2cae57 of _0x113721)_0x1565d1[_0x3523('0x13')](_0x2cae57);return _0x523874;}),_0x447c95[_0x3523('0x9b')][_0x3523('0x20')](_0x3523('0x82'))[_0x3523('0x1a')]({'model':_0x3523('0x53'),'view':(_0x3e5332,_0x5b4f13)=>_0x4747d7(_0x3e5332),'converterPriority':'high'}),_0x447c95[_0x3523('0x9b')][_0x3523('0x20')](_0x3523('0x3b'))[_0x3523('0x1a')]({'model':_0x3523('0x53'),'view':(_0x2c1dd0,_0x9a454f)=>_0x9a454f[_0x3523('0x25')][_0x3523('0x8c')]?_0x4747d7(_0x2c1dd0,!0x1):null,'converterPriority':_0x3523('0x4b')});const _0xf1bd96=_0x447c95[_0x3523('0x9f')][_0x3523('0x2')];this[_0x3523('0x6e')](_0xf1bd96[_0x3523('0x81')],'clipboardOutput',(_0x34cf8b,_0x4b6910)=>{const _0x93e13c=[];for(const _0x14e78f of _0xf1bd96[_0x3523('0x43')](_0x4b6910[_0x3523('0xa0')])[_0x3523('0x5f')]())_0x14e78f['is'](_0x3523('0x7b'),_0x3523('0x51'))&&_0x93e13c[_0x3523('0x45')](_0x14e78f);_0xf1bd96[_0x3523('0x99')](_0x46c52b=>{for(const _0x476f4c of _0x93e13c)_0x46c52b['move'](_0x46c52b[_0x3523('0x43')](_0x476f4c),_0x46c52b[_0x3523('0x63')](_0x476f4c)),_0x46c52b[_0x3523('0x73')](_0x476f4c);});});}}function ce(_0xb49763){if(_0xb49763['isEmpty'])return!0x0;const _0x2e2179=_0xb49763[_0x3523('0x1b')](0x0);return _0x2e2179['is'](_0x3523('0x7b'),_0x3523('0x68'))&&_0x2e2179[_0x3523('0x8')];}function fe(_0x2997e2,_0x1df8e7={},_0x9182d0){for(const {isAnchor:_0x4b906d,cellHeight:_0x2e3765,cellWidth:_0x6d5874}of _0x9182d0[_0x3523('0x4c')](_0x2997e2,{'includeAllSlots':!0x0,..._0x1df8e7}))if(!_0x4b906d||0x1!=_0x2e3765||0x1!=_0x6d5874)return!0x1;return!0x0;}
|
|
23
|
+
const _0x4923=['entries','markMultiRangeInsertion','filter','reduce','nodeAfter','differ','tablePasteChainId','_isForcedDefaultExecutionBlock','removeMarker','dataDowncast','isEmpty','position','row','registerCustomCallback','find','tablePasteColumn','suggestion:formatBlock:tablePasteCell','tablePasteCell','redo','updateMarker','markerToHighlight','forceDefaultExecution','previousSibling','findAncestor','getMarkers','ck-suggestion-marker-insertion','for','editing','markerAttributes','name','last','tableCell','createTableWalker','insert','_suggestionFactory','getChildren','tableCellBackgroundColor','commands','trackChanges','newRange','getAllAdjacentSuggestions','nextSibling','_splitMarkerName','end','_replaceTableSlotCell','createRangeOn','from','locale','paragraph','author','insertionRanges','tableCellBorderColor','root','view','suggestion-td','selection','schema','deletion','includes','fromEntries','getTableIfOnlyTableInContent','column','some','suggestion','conversion','TableUtils','discard','table','move','getChangedMarkers','previous','getSuggestions','createPositionBefore','plugins','has','$graveyard','getSuggestionCallback','getChanges','oldRange','options','remove','insertion','element','afterInit','stop','insertContent','length','change','ck-suggestion-marker','_tablePostFixingSubtypes','type','tablePasteRow','add','editor','getRange','push','formatBlock','join','registerPostFixer','getRanges','rowInsertionRanges','getColumnIndexes','columnInsertionIndexes','every','startsWith','createRange','model','high','getRows','keys','rootName','tableCellHorizontalAlignment','subType','elementToElement','batch','TableClipboard','cells','markMultiRangeBlockFormat','tableCellVerticalAlignment','attributes','first','deletionRanges','listenTo','TrackChangesEditing','tableCellSuggestion','getItems','removeColumns','insertRows','set','containsRange','getSelectionAffectedTableCells','isInContent','clipboardOutput','columns','getChild','ck-suggestion-marker--active','suggestionLoaded','activeMarkers','fill','removeRows','cell','createRangeIn','unwrap','register','getSuggestion','getRowIndexes','_getCoordsForCells','suggestionUnloaded','registerDescriptionCallback','map','rowInsertionIndexes','markerName','getContainedElement','documentSelection','document','tablePaste','_createdBatches','createElement','accept','endRow','editingDowncast','low','isEqual','get','tableCellBorderWidth'];(function(_0x3d71b4,_0x492353){const _0x592e98=function(_0x74e7fc){while(--_0x74e7fc){_0x3d71b4['push'](_0x3d71b4['shift']());}};_0x592e98(++_0x492353);}(_0x4923,0x166));const _0x592e=function(_0x3d71b4,_0x492353){_0x3d71b4=_0x3d71b4-0x0;let _0x592e98=_0x4923[_0x3d71b4];return _0x592e98;};import{getTranslation as _0x520f7c}from'../utils/common-translations';import{Plugin as _0x2d0cf3}from'ckeditor5/src/core';import{uid as _0x5695be,priorities as _0x5f23f9}from'ckeditor5/src/utils';import _0xa0f21c from'./table';const le=[_0x592e('0x88'),_0x592e('0x17'),'tableCellBorderStyle',_0x592e('0x53'),_0x592e('0x5a'),_0x592e('0x8'),'tableCellPadding'],ae=Object[_0x592e('0x1f')](le[_0x592e('0x79')](_0x5da68e=>[_0x5da68e,null]));export default class kt extends _0x2d0cf3{static get['requires'](){return[_0xa0f21c];}[_0x592e('0x37')](){const _0x5cf732=this[_0x592e('0x41')];if(!_0x5cf732['plugins'][_0x592e('0x2e')]('TableClipboard'))return;const _0x583ac9=_0x5cf732['plugins'][_0x592e('0x87')](_0x592e('0x5f')),_0x396263=_0x5cf732['plugins']['get'](_0x592e('0x25')),_0xc40910=_0x5cf732['plugins'][_0x592e('0x87')](_0xa0f21c),_0x198d07=_0x5cf732['plugins'][_0x592e('0x87')]('TableClipboard');_0xc40910[_0x592e('0x3d')]['push'](_0x592e('0x3f'),_0x592e('0x98')),_0x5cf732['model'][_0x592e('0x1c')][_0x592e('0x73')](_0x592e('0x60'),{'allowIn':_0x592e('0x3'),'allowContentOf':_0x592e('0x3'),'isLimit':!0x0}),_0x5cf732[_0x592e('0x24')][_0x592e('0x55')]({'model':_0x592e('0x60'),'view':_0x592e('0x1a')});let _0x3507a7=null;_0x5cf732[_0x592e('0x4e')]['on'](_0x592e('0x39'),(_0x35963f,_0x3e13bd)=>{const [_0x24a0fb,_0xb91480]=_0x3e13bd,_0x2ce7e4=_0x3e13bd[_0x3e13bd[_0x592e('0x3a')]-0x1];_0x2ce7e4&&_0x2ce7e4[_0x592e('0x9e')]||_0x583ac9[_0x592e('0x90')]||this[_0x592e('0x41')][_0x592e('0x9')][_0x592e('0x87')](_0x592e('0xa'))['value']&&function(_0x349c8c,_0x1184b0,_0x5979a8,_0x230e7,_0x1972f8){if(_0x1184b0&&!_0x1184b0['is'](_0x592e('0x7d')))return!0x1;const _0x496bbc=_0x1972f8[_0x592e('0x20')](_0x349c8c,_0x5979a8);if(!_0x496bbc||!fe(_0x496bbc,void 0x0,_0x230e7))return!0x1;const _0x364c37=_0x230e7[_0x592e('0x66')](_0x5979a8[_0x592e('0x7e')][_0x592e('0x1b')]);if(!_0x364c37[_0x592e('0x3a')])return!0x1;const _0x5c1169=_0x364c37[0x0][_0x592e('0xa0')](_0x592e('0x27')),_0x439793=_0x230e7[_0x592e('0x75')](_0x364c37),_0x1f90af=_0x230e7[_0x592e('0x49')](_0x364c37),_0x1cff88={'startRow':_0x439793[_0x592e('0x5c')],'endRow':_0x439793[_0x592e('0x2')],'startColumn':_0x1f90af[_0x592e('0x5c')],'endColumn':_0x1f90af[_0x592e('0x2')]};return 0x1==_0x364c37[_0x592e('0x3a')]&&(_0x1cff88[_0x592e('0x83')]+=_0x230e7[_0x592e('0x50')](_0x496bbc)-0x1,_0x1cff88['endColumn']+=_0x230e7['getColumns'](_0x496bbc)-0x1),fe(_0x5c1169,_0x1cff88,_0x230e7);}(_0x24a0fb,_0xb91480,_0x5cf732[_0x592e('0x4e')],_0x396263,_0x198d07)&&(_0x35963f[_0x592e('0x38')](),_0x3507a7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5cf732[_0x592e('0x4e')][_0x592e('0x3b')](()=>{_0x5cf732['model'][_0x592e('0x39')](_0x3e13bd[0x0],_0x3e13bd[0x1],_0x3e13bd[0x2],{'forceDefaultExecution':!0x0});const _0x822269=_0x5695be(),{rowInsertionRanges:_0x49617c,columnInsertionRanges:_0x216184,insertionRanges:_0x33c296,deletionRanges:_0x5bc322,cells:_0x424114}=_0x3507a7;_0x49617c[_0x592e('0x3a')]&&_0x583ac9[_0x592e('0x8a')](_0x49617c,_0x592e('0x3f'),{'tablePasteChainId':_0x822269}),_0x216184[_0x592e('0x3a')]&&_0x583ac9[_0x592e('0x8a')](_0x216184,'tablePasteColumn',{'tablePasteChainId':_0x822269}),_0x33c296[_0x592e('0x3a')]&&_0x583ac9[_0x592e('0x8a')](_0x33c296,'tablePaste',{'tablePasteChainId':_0x822269,'skipNestingCheck':!0x0}),_0x5bc322[_0x592e('0x3a')]&&_0x583ac9['markMultiRangeDeletion'](_0x5bc322,_0x592e('0x7f'),{'tablePasteChainId':_0x822269,'skipNestingCheck':!0x0});const _0x127bd1=_0x583ac9[_0x592e('0x59')](_0x424114[_0x592e('0x79')](({element:_0x4f767e})=>_0x4f767e),{'formatGroupId':_0x5695be()},[],_0x592e('0x9a'),{'tablePasteChainId':_0x822269});if(_0x127bd1){const _0x210aaa=_0x127bd1[_0x592e('0xa1')](),_0x2c63fb=[];for(const {element:_0x113786,attributes:_0x179af4}of _0x424114){if(!_0x179af4)continue;const _0xbb9202=_0x5cf732['model'][_0x592e('0x11')](_0x113786),_0x167f60=_0x210aaa[_0x592e('0x97')](_0xf0c9be=>_0xf0c9be[_0x592e('0x42')]()[_0x592e('0x86')](_0xbb9202));_0x167f60&&_0x2c63fb[_0x592e('0x43')]([_0x167f60[_0x592e('0x1')],_0x179af4]);}_0x2c63fb[_0x592e('0x3a')]&&_0x127bd1['setAttribute'](_0x592e('0x0'),Object[_0x592e('0x1f')](_0x2c63fb));}_0x3507a7=null;}));},{'priority':_0x5f23f9[_0x592e('0x4f')]+0xa}),_0x5cf732[_0x592e('0x2d')][_0x592e('0x87')](_0x592e('0x57'))['on'](_0x592e('0x10'),(_0x4b1014,_0x2a463c)=>{const [_0x3e12e8,_0x3bf535,,_0x4384a2]=_0x2a463c;if(!_0x3507a7)return;_0x4b1014['stop']();const _0x27b064=_0x3e12e8[_0x592e('0x70')],_0x53079c=_0x3bf535,_0x3976aa=ce(_0x27b064),_0x4c551f=ce(_0x53079c);_0x4b1014['return']=_0x27b064;let _0x1fa908=null,_0x7f1b58=null;if(_0x4c551f||_0x3976aa){if(_0x3976aa&&!_0x4c551f){_0x4384a2['remove'](_0x27b064[_0x592e('0x6a')](0x0));for(const _0x301d28 of Array[_0x592e('0x12')](_0x53079c[_0x592e('0x7')]()))_0x4384a2['insert'](_0x301d28,_0x27b064,_0x592e('0xf'));const _0x3d9037=_0x3507a7[_0x592e('0x7a')]['includes'](_0x3e12e8[_0x592e('0x95')]),_0x53aec4=_0x3507a7[_0x592e('0x4a')][_0x592e('0x1e')](_0x3e12e8[_0x592e('0x21')]);_0x3d9037||_0x53aec4||(_0x1fa908=_0x4384a2[_0x592e('0x71')](_0x27b064));}else _0x4c551f&&!_0x3976aa&&(_0x7f1b58=_0x4384a2[_0x592e('0x71')](_0x27b064));}else{const _0x4dea28=_0x4384a2[_0x592e('0x81')]('tableCellSuggestion'),_0x597d97=_0x4384a2['createElement'](_0x592e('0x60'));_0x4384a2['wrap'](_0x4384a2['createRangeIn'](_0x27b064),_0x597d97),_0x4384a2[_0x592e('0x5')](_0x4dea28,_0x27b064,0x0);for(const _0xc2f142 of Array[_0x592e('0x12')](_0x53079c[_0x592e('0x7')]()))_0x4384a2['insert'](_0xc2f142,_0x4dea28,_0x592e('0xf'));_0x1fa908=_0x4384a2[_0x592e('0x11')](_0x4dea28),_0x7f1b58=_0x4384a2[_0x592e('0x11')](_0x597d97);}const _0x27a7ae=Array[_0x592e('0x12')](_0x53079c['getAttributes']())[_0x592e('0x8b')](([_0x3a01ce])=>le['includes'](_0x3a01ce));_0x3507a7['cells'][_0x592e('0x43')]({'element':_0x27b064,'attributes':_0x27a7ae[_0x592e('0x3a')]?Object[_0x592e('0x1f')](_0x27a7ae):null}),_0x1fa908&&_0x3507a7[_0x592e('0x16')][_0x592e('0x43')](_0x1fa908),_0x7f1b58&&_0x3507a7[_0x592e('0x5d')][_0x592e('0x43')](_0x7f1b58);},{'priority':_0x592e('0x4f')}),_0x396263['on']('insertColumns',(_0x1e15c3,_0x8c9046)=>{const [_0xd213c5,_0x1b802d={}]=_0x8c9046;if(!_0x3507a7)return;const _0x556f0b=_0x1b802d['at']||0x0,_0xe05186=_0x1b802d[_0x592e('0x69')]||0x1;_0x3507a7[_0x592e('0x4a')]=new Array(_0xe05186)[_0x592e('0x6e')](_0x556f0b)['map']((_0x484668,_0x2a86aa)=>_0x484668+_0x2a86aa);for(const {cell:_0x13837b}of _0x396263[_0x592e('0x4')](_0xd213c5,{'startColumn':_0x556f0b,'endColumn':_0x556f0b+_0xe05186-0x1}))_0x3507a7['columnInsertionRanges'][_0x592e('0x43')](_0x5cf732[_0x592e('0x4e')]['createRangeOn'](_0x13837b));},{'priority':_0x592e('0x85')}),_0x396263['on'](_0x592e('0x63'),(_0x52eead,_0x424e5b)=>{const [_0x32a576,_0x18ec98={}]=_0x424e5b;if(!_0x3507a7)return;const _0x1fa2b0=_0x18ec98['at']||0x0,_0x547045=_0x18ec98['rows']||0x1;_0x3507a7['rowInsertionIndexes']=new Array(_0x547045)['fill'](_0x1fa2b0)['map']((_0x43214a,_0x5af7ce)=>_0x43214a+_0x5af7ce);for(const {cell:_0x4ce81c}of _0x396263[_0x592e('0x4')](_0x32a576,{'startRow':_0x1fa2b0,'endRow':_0x1fa2b0+_0x547045-0x1}))_0x3507a7[_0x592e('0x48')][_0x592e('0x43')](_0x5cf732[_0x592e('0x4e')][_0x592e('0x11')](_0x4ce81c));},{'priority':_0x592e('0x85')}),_0x583ac9['_descriptionFactory'][_0x592e('0x78')](_0x215042=>{if(_0x215042[_0x592e('0x54')]&&_0x215042[_0x592e('0x54')]['startsWith'](_0x592e('0x7f')))return _0x215042[_0x592e('0x2a')]?{}:{'type':_0x592e('0x35'),'content':_0x520f7c(_0x5cf732[_0x592e('0x13')],'*Replace\x20table\x20cells*')};});const _0x7cc5c2=()=>{};for(const _0x1b7144 of['tablePaste',_0x592e('0x98'),_0x592e('0x3f'),_0x592e('0x9a')])_0x583ac9[_0x592e('0x6')][_0x592e('0x96')](_0x592e('0x35'),_0x1b7144,_0x592e('0x45'),_0x7cc5c2),_0x583ac9[_0x592e('0x6')][_0x592e('0x96')]('deletion',_0x1b7144,_0x592e('0x45'),_0x7cc5c2);_0x583ac9[_0x592e('0x6')][_0x592e('0x96')](_0x592e('0x44'),_0x592e('0x9a'),'discard',_0x7cc5c2),_0x583ac9[_0x592e('0x6')][_0x592e('0x96')](_0x592e('0x44'),_0x592e('0x9a'),_0x592e('0x82'),(_0x53bc82,_0x46d661,_0x1e5e92)=>{const _0x5dcc08=_0x53bc82['map'](_0x4e14fd=>_0x4e14fd[_0x592e('0x7c')]())['filter'](_0x1948bd=>_0x1948bd),_0xa8b66f=new Map(_0x5dcc08[_0x592e('0x79')](_0x77e3c7=>[_0x77e3c7,null]));if(_0x3507a7)for(const {element:_0x43f26c,attributes:_0x4ffcba}of _0x3507a7[_0x592e('0x58')])_0x4ffcba&&_0xa8b66f[_0x592e('0x64')](_0x43f26c,_0x4ffcba);else{if(_0x1e5e92&&_0x1e5e92[_0x592e('0x0')])for(const [_0x5c147b,_0x45b2af]of Object[_0x592e('0x89')](_0x1e5e92[_0x592e('0x0')])){const _0x2dd9a3=_0x5cf732[_0x592e('0x4e')]['markers']['get'](_0x5c147b),_0x5a4d59=_0x2dd9a3?_0x2dd9a3[_0x592e('0x42')]()[_0x592e('0x7c')]():null;_0x5a4d59&&_0xa8b66f[_0x592e('0x64')](_0x5a4d59,_0x45b2af);}}_0x5cf732[_0x592e('0x4e')]['change'](_0x1e87a7=>{for(const [_0x16f18a,_0x4d4f4c]of _0xa8b66f)_0x1e87a7['setAttributes']({...ae,..._0x4d4f4c},_0x16f18a);});});const _0x62d511=(_0x174bac,_0x5d7cea)=>{_0x583ac9[_0x592e('0x6')][_0x592e('0x96')](_0x174bac,_0x592e('0x7f'),_0x5d7cea,(_0x5e3207,_0x144785,_0x7aa322)=>{_0x5cf732['model'][_0x592e('0x3b')](_0x58f083=>{const _0x234fe5=[];for(const _0x276078 of _0x5e3207){const _0x1d815=_0x276078['start'][_0x592e('0x8d')];_0x1d815['is'](_0x592e('0x36'),_0x592e('0x60'))&&_0x234fe5[_0x592e('0x43')](_0x1d815);}_0x583ac9['_suggestionFactory'][_0x592e('0x30')](_0x174bac,null,_0x5d7cea)(_0x5e3207,_0x144785,_0x7aa322);for(const _0x5afb23 of _0x234fe5)_0x592e('0x2f')!=_0x5afb23[_0x592e('0x18')][_0x592e('0x52')]&&_0x58f083['unwrap'](_0x5afb23);});});};_0x62d511(_0x592e('0x35'),'accept'),_0x62d511(_0x592e('0x35'),_0x592e('0x26')),_0x62d511(_0x592e('0x1d'),_0x592e('0x82')),_0x62d511('deletion',_0x592e('0x26')),_0x583ac9[_0x592e('0x6')][_0x592e('0x96')](_0x592e('0x35'),_0x592e('0x3f'),_0x592e('0x26'),_0x3dd4bf=>{const _0x85adf1=_0x3dd4bf['map'](_0x17520c=>_0x17520c[_0x592e('0x7c')]()),_0x238db6=_0x85adf1[0x0]['findAncestor']('table'),{minRow:_0x24b62f,maxRow:_0x3332a8}=_0xc40910[_0x592e('0x76')](_0x85adf1);_0x396263[_0x592e('0x6f')](_0x238db6,{'at':_0x24b62f,'rows':_0x3332a8-_0x24b62f+0x1});}),_0x583ac9[_0x592e('0x6')][_0x592e('0x96')](_0x592e('0x35'),_0x592e('0x98'),_0x592e('0x26'),_0xc03876=>{const _0x27cd88=_0xc03876['map'](_0xdd8659=>_0xdd8659[_0x592e('0x7c')]()),_0x355fcb=_0x27cd88[0x0][_0x592e('0xa0')](_0x592e('0x27')),{minColumn:_0xb4086b,maxColumn:_0x2a0f81}=_0xc40910[_0x592e('0x76')](_0x27cd88);_0x396263[_0x592e('0x62')](_0x355fcb,{'at':_0xb4086b,'columns':_0x2a0f81-_0xb4086b+0x1});});const _0x158b68=(_0x1d5975,_0x196297)=>{if(!_0x196297[_0x592e('0x54')]||!_0x196297[_0x592e('0x54')][_0x592e('0x4c')](_0x592e('0x7f')))return;const _0xf01fd6=_0x196297[_0x592e('0x5b')]['tablePasteChainId'],_0x2b2223=_0x583ac9[_0x592e('0x2b')]()[_0x592e('0x8b')](_0x4562e1=>_0x4562e1[_0x592e('0x67')]&&_0x4562e1['attributes']&&_0x4562e1[_0x592e('0x5b')][_0x592e('0x8f')]==_0xf01fd6);_0x2b2223['length']&&_0x196297[_0x592e('0xc')]()['length']!=_0x2b2223[_0x592e('0x3a')]&&_0x2b2223[_0x592e('0x8c')]((_0x395f91,_0x155ef6)=>(_0x395f91['next']=_0x155ef6,_0x155ef6[_0x592e('0x2a')]=_0x395f91,_0x155ef6));};function _0x2b5e33(_0x2f571c,_0x1b16ef=!0x0){const {id:_0xd533bb}=_0x583ac9[_0x592e('0xe')](_0x2f571c[_0x592e('0x7b')]),_0x32e906=[_0x592e('0x3c'),_0x592e('0xa2')],_0x17ddfa=_0x583ac9[_0x592e('0x6d')][_0x592e('0x1e')](_0x2f571c[_0x592e('0x7b')]);return _0x17ddfa&&_0x32e906[_0x592e('0x43')](_0x592e('0x6b')),{'classes':_0x32e906,'attributes':{'data-suggestion':_0xd533bb},'priority':_0x17ddfa&&_0x1b16ef?0xbc2:0xbb8};}_0x583ac9['on'](_0x592e('0x6c'),_0x158b68,{'priority':_0x592e('0x4f')}),_0x583ac9['on'](_0x592e('0x77'),_0x158b68,{'priority':_0x592e('0x4f')}),_0x5cf732[_0x592e('0x4e')][_0x592e('0x7e')][_0x592e('0x46')](()=>{let _0x2e3af5=!0x1;const _0x502de9=Array[_0x592e('0x12')](_0x5cf732[_0x592e('0x4e')][_0x592e('0x7e')][_0x592e('0x8e')][_0x592e('0x29')]());for(const {name:_0x3d7fe0,data:_0x15e0b0}of _0x502de9){const {group:_0x19bf28,type:_0xf3b4f3,id:_0x51748b}=_0x583ac9[_0x592e('0xe')](_0x3d7fe0);if(_0x592e('0x23')!=_0x19bf28||_0x592e('0x1d')!=_0xf3b4f3||_0x15e0b0[_0x592e('0x32')])continue;if(!_0x583ac9['hasSuggestion'](_0x51748b))continue;const _0x117a10=_0x583ac9[_0x592e('0x74')](_0x51748b)[_0x592e('0x47')](),_0x1212e5=_0x5cf732['plugins'][_0x592e('0x87')]('Users')['me'];for(const _0x3c7c17 of _0x583ac9[_0x592e('0x2b')]()){if(!_0x3c7c17[_0x592e('0x67')]||_0x3c7c17['author']!=_0x1212e5)continue;if('formatBlock'!=_0x3c7c17[_0x592e('0x3e')]||_0x592e('0x9a')!=_0x3c7c17['subType'])continue;if(_0x3c7c17[_0x592e('0x47')]()[_0x592e('0x4b')](_0x24e8ff=>_0x117a10[_0x592e('0x22')](_0x1bd53f=>_0x1bd53f[_0x592e('0x65')](_0x24e8ff,!0x0))))for(const _0x1263f9 of _0x3c7c17[_0x592e('0xc')]())_0x1263f9[_0x592e('0x67')]&&(_0x1263f9[_0x592e('0x26')](),_0x2e3af5=!0x0);}}return _0x2e3af5;}),_0x5cf732[_0x592e('0x4e')][_0x592e('0x7e')][_0x592e('0x46')](_0x1aed86=>{const _0x51e5a5=_0x5cf732[_0x592e('0x9')][_0x592e('0x87')](_0x592e('0x9b'));if(!_0x51e5a5||!_0x51e5a5[_0x592e('0x80')]['has'](_0x1aed86[_0x592e('0x56')]))return!0x1;let _0xa7035=!0x1;const _0x3af96a=_0x5cf732[_0x592e('0x2d')][_0x592e('0x87')]('Users')['me'],_0x1890ac=_0x5cf732[_0x592e('0x4e')][_0x592e('0x7e')]['differ'][_0x592e('0x31')](),_0x13bb7b=Array[_0x592e('0x12')](_0x5cf732[_0x592e('0x4e')]['document'][_0x592e('0x8e')][_0x592e('0x29')]())[_0x592e('0x8b')](({name:_0x45ae14,data:_0x2907d2})=>{const {group:_0x3dc91d,subType:_0x34f7b5,authorId:_0x315917}=_0x583ac9[_0x592e('0xe')](_0x45ae14);return _0x592e('0x23')==_0x3dc91d&&'tablePaste'==_0x34f7b5&&_0x315917==_0x3af96a['id']&&!_0x2907d2['oldRange'];});for(const _0x928aaa of _0x1890ac){if(_0x592e('0x5')!=_0x928aaa[_0x592e('0x3e')]||_0x592e('0x60')!=_0x928aaa[_0x592e('0x1')]||0x1!=_0x928aaa[_0x592e('0x3a')])continue;const _0x1696ac=_0x1aed86[_0x592e('0x4d')](_0x928aaa[_0x592e('0x94')],_0x928aaa['position']['getShiftedBy'](0x1));if(!_0x13bb7b[_0x592e('0x97')](({data:_0x1fdc92})=>_0x1fdc92[_0x592e('0xb')]['isEqual'](_0x1696ac)))for(const {name:_0x561181,data:_0x3d774c}of _0x13bb7b)if(_0x1696ac[_0x592e('0x65')](_0x3d774c[_0x592e('0xb')])){_0x1aed86[_0x592e('0x9c')](_0x561181,{'range':_0x1696ac}),_0xa7035=!0x0;break;}}return _0xa7035;}),_0x5cf732[_0x592e('0x4e')][_0x592e('0x7e')][_0x592e('0x46')](_0x56a4d4=>{let _0xa26b93=!0x1;const _0x53b48a=_0x5cf732[_0x592e('0x2d')][_0x592e('0x87')]('Users')['me'],_0x260df4=_0x583ac9[_0x592e('0x2b')]()[_0x592e('0x8b')](_0x5aedcd=>_0x5aedcd[_0x592e('0x67')]&&_0x5aedcd[_0x592e('0x15')]==_0x53b48a),_0x1bb60e=new Set(),_0xd44512=new Set();for(const _0x5dafb7 of _0x260df4)if(_0x592e('0x7f')==_0x5dafb7[_0x592e('0x54')])for(const _0x32589c of _0x5dafb7[_0x592e('0xa1')]()){const _0x5b3223=_0x32589c[_0x592e('0x42')]()[_0x592e('0x7c')]();if(_0x5b3223){if(_0x5b3223['is']('element',_0x592e('0x60'))&&ce(_0x5b3223)){_0x5dafb7[_0x592e('0x91')](_0x32589c['name']),_0x1bb60e[_0x592e('0x40')](_0x5b3223),_0xa26b93=!0x0;const _0x507897=_0x5b3223[_0x592e('0xd')],_0x524edf=_0x5b3223[_0x592e('0x9f')],_0x3f51bb=_0x507897&&_0x507897['is']('element',_0x592e('0x60')),_0x48fe3b=_0x524edf&&_0x524edf['is']('element',_0x592e('0x60'));_0x3f51bb&&!_0x1bb60e[_0x592e('0x2e')](_0x507897)&&_0xd44512[_0x592e('0x40')](_0x507897),_0x48fe3b&&!_0x1bb60e[_0x592e('0x2e')](_0x524edf)&&_0xd44512[_0x592e('0x40')](_0x524edf);}else _0x5b3223['is'](_0x592e('0x36'),'paragraph')&&_0x5b3223[_0x592e('0x93')]&&(_0x5dafb7[_0x592e('0x91')](_0x32589c['name']),_0xa26b93=!0x0);}}else{if('tablePasteCell'==_0x5dafb7[_0x592e('0x54')]){if(!_0x5dafb7[_0x592e('0x5b')]||!_0x5dafb7[_0x592e('0x5b')][_0x592e('0x8f')])continue;const _0x4a49b5=_0x5dafb7[_0x592e('0x5b')][_0x592e('0x0')];if(_0x4a49b5&&Object[_0x592e('0x51')](_0x4a49b5)['length'])continue;const _0x4fb6af=_0x5dafb7[_0x592e('0x5b')][_0x592e('0x8f')];let _0x5e1cc1=!0x0,_0xc336a6=!0x0;for(const _0x3a453b of _0x260df4)if(_0x3a453b['subType']&&_0x3a453b[_0x592e('0x54')]['startsWith'](_0x592e('0x7f'))){if(!_0x3a453b['attributes'][_0x592e('0x8f')]){_0xc336a6=!0x1;break;}if(_0x3a453b['id']!=_0x5dafb7['id']&&_0x3a453b[_0x592e('0x5b')][_0x592e('0x8f')]==_0x4fb6af){_0x5e1cc1=!0x1;break;}}_0xc336a6&&_0x5e1cc1&&(_0x5dafb7['removeMarkers'](),_0xa26b93=!0x0);}}for(const _0x3e7d3a of _0x1bb60e)_0x56a4d4['remove'](_0x3e7d3a);for(const _0x11359e of _0xd44512)_0x56a4d4[_0x592e('0x72')](_0x11359e);return _0xa26b93;}),_0x5cf732[_0x592e('0x24')][_0x592e('0xa3')](_0x592e('0x84'))[_0x592e('0x9d')]({'model':_0x592e('0x99'),'view':(_0x520824,_0x4f252d)=>_0x2b5e33(_0x520824),'converterPriority':_0x592e('0x4f')}),_0x5cf732[_0x592e('0x24')][_0x592e('0xa3')](_0x592e('0x92'))[_0x592e('0x9d')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4fa193,_0x169795)=>_0x169795[_0x592e('0x33')]['showSuggestionHighlights']?_0x2b5e33(_0x4fa193,!0x1):null,'converterPriority':_0x592e('0x4f')});const _0x2a22e0=_0x5cf732[_0x592e('0xa4')][_0x592e('0x19')];this[_0x592e('0x5e')](_0x2a22e0[_0x592e('0x7e')],_0x592e('0x68'),(_0x463152,_0x32c9a4)=>{const _0x29159a=[];for(const _0x764154 of _0x2a22e0['createRangeIn'](_0x32c9a4['content'])[_0x592e('0x61')]())_0x764154['is'](_0x592e('0x36'),'suggestion-td')&&_0x29159a[_0x592e('0x43')](_0x764154);_0x2a22e0['change'](_0x4216ae=>{for(const _0x18d383 of _0x29159a)_0x4216ae[_0x592e('0x28')](_0x4216ae[_0x592e('0x71')](_0x18d383),_0x4216ae[_0x592e('0x2c')](_0x18d383)),_0x4216ae[_0x592e('0x34')](_0x18d383);});});}}function ce(_0x38d5cc){if(_0x38d5cc['isEmpty'])return!0x0;const _0x40faed=_0x38d5cc[_0x592e('0x6a')](0x0);return _0x40faed['is'](_0x592e('0x36'),_0x592e('0x14'))&&_0x40faed['isEmpty'];}function fe(_0x1d5b5e,_0x1eb265={},_0x490f24){for(const {isAnchor:_0x44dedc,cellHeight:_0x8d40d5,cellWidth:_0x45bb6a}of _0x490f24[_0x592e('0x4')](_0x1d5b5e,{'includeAllSlots':!0x0,..._0x1eb265}))if(!_0x44dedc||0x1!=_0x8d40d5||0x1!=_0x45bb6a)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c98=['_suggestionFactory','discard','registerDescriptionCallback','model','TrackChangesEditing','has','handleSuggestionDescription','formatBlock','handleResizeTableWidthCommand','tableWidth','Users','accept','bind','subType','get','registerCustomCallback','table','getTableColumnsWidths','document','getSelectedElement','editor','commandParams','format','TableColumnResizeEditing','getAttribute','resizeTable','formatGroupId','columnWidths','*Format:*\x20resize\x20table','plugins','getSuggestions','resizeColumnWidths','resizeTableWidth','afterInit','getColumnGroupElement','getSuggestionCallback','enableCommand','markBlockFormat','locale'];(function(_0x5b7147,_0x3c98fd){const _0x47c5bc=function(_0x491a7b){while(--_0x491a7b){_0x5b7147['push'](_0x5b7147['shift']());}};_0x47c5bc(++_0x3c98fd);}(_0x3c98,0x7b));const _0x47c5=function(_0x5b7147,_0x3c98fd){_0x5b7147=_0x5b7147-0x0;let _0x47c5bc=_0x3c98[_0x5b7147];return _0x47c5bc;};import{Plugin as _0x23d8f7}from'ckeditor5/src/core';import{getTranslation as _0x49a302}from'../utils/common-translations';export default class wt extends _0x23d8f7{[_0x47c5('0x1b')](){if(!this[_0x47c5('0xe')][_0x47c5('0x17')][_0x47c5('0x26')](_0x47c5('0x11')))return;const _0x57cc26=this['editor'][_0x47c5('0x17')][_0x47c5('0x8')](_0x47c5('0x25'));_0x57cc26[_0x47c5('0x1e')](_0x47c5('0x1a'),this[_0x47c5('0x2')][_0x47c5('0x6')](this)),_0x57cc26['enableCommand'](_0x47c5('0x19'),this['handleResizeTableWidthCommand']['bind'](this)),_0x57cc26[_0x47c5('0x21')][_0x47c5('0x9')](_0x47c5('0x1'),_0x47c5('0x13'),_0x47c5('0x5'),_0x57cc26[_0x47c5('0x21')][_0x47c5('0x1d')](_0x47c5('0x1'),null,'discard')),_0x57cc26[_0x47c5('0x21')][_0x47c5('0x9')](_0x47c5('0x1'),_0x47c5('0x13'),_0x47c5('0x22'),_0x57cc26[_0x47c5('0x21')][_0x47c5('0x1d')]('formatBlock',null,_0x47c5('0x5'))),_0x57cc26['_descriptionFactory'][_0x47c5('0x23')](this[_0x47c5('0x0')][_0x47c5('0x6')](this));}[_0x47c5('0x2')](_0x58cbaa,_0x87a973){const _0x4320f7=this[_0x47c5('0xe')][_0x47c5('0x17')][_0x47c5('0x8')](_0x47c5('0x25')),_0x553455=this[_0x47c5('0xe')][_0x47c5('0x17')][_0x47c5('0x8')]('TableColumnResizeEditing'),_0x2e9bbc=_0x87a973[_0x47c5('0xa')]||this[_0x47c5('0xe')][_0x47c5('0x24')][_0x47c5('0xc')]['selection'][_0x47c5('0xd')]();this[_0x47c5('0xe')][_0x47c5('0x24')]['change'](()=>{const _0x362ff8=_0x553455[_0x47c5('0x1c')](_0x2e9bbc);let _0x4979fd=_0x362ff8?_0x553455[_0x47c5('0xb')](_0x362ff8):null,_0x184b3d=_0x2e9bbc[_0x47c5('0x12')]('tableWidth')||null;const _0x3a11f0=_0x87a973[_0x47c5('0x3')]||_0x184b3d,_0x433b67=_0x87a973[_0x47c5('0x15')]||_0x4979fd,_0xe7bee4=this[_0x47c5('0xe')][_0x47c5('0x17')]['get'](_0x47c5('0x4'))['me'];for(const _0x40c6b7 of _0x4320f7[_0x47c5('0x18')]()){const _0x10174a=_0x40c6b7['getContainedElement']();if('resizeTable'===_0x40c6b7[_0x47c5('0x7')]&&_0x10174a===_0x2e9bbc){_0x40c6b7['author']!==_0xe7bee4&&_0x40c6b7[_0x47c5('0x22')]();const _0x1b33a4=_0x40c6b7['data'][_0x47c5('0xf')];_0x184b3d=_0x1b33a4[0x0][_0x47c5('0x3')],_0x4979fd=_0x1b33a4[0x0][_0x47c5('0x15')];break;}}_0x58cbaa({'table':_0x2e9bbc,'tableWidth':_0x3a11f0,'columnWidths':_0x433b67}),_0x4320f7[_0x47c5('0x1f')](_0x2e9bbc,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x184b3d,'columnWidths':_0x4979fd}],'formatGroupId':_0x47c5('0x13')},[],'resizeTable');});}[_0x47c5('0x0')](_0x533232){const {data:_0xcf7ff7}=_0x533232;if(_0xcf7ff7&&_0x47c5('0x13')===_0xcf7ff7[_0x47c5('0x14')]){const _0x41e1a7=_0x47c5('0x16');return{'type':_0x47c5('0x10'),'content':_0x49a302(this[_0x47c5('0xe')][_0x47c5('0x20')],_0x41e1a7)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41d2=['highest','mapper','nodeAfter','editor','findAncestor','_splitMarkerName','locale','data','setAttribute','createPositionBefore','cell','bindElementToMarker','editing','ck-suggestion-marker-','get','index','removeAttribute','has','getChild','value','unbindElementFromMarkerName','document','_suggestionFactory','parent','FORMAT_HEADER_COLUMN','downcastDispatcher','*Format:*\x20%0','setTableRowHeader','afterInit','data-suggestion','getCellLocation','registerCustomCallback','getAttribute','childCount','markBlockFormat','addClass','end','options','start','forceValue','commands','consume','stop','table','showSuggestionHighlights','removeMarker:suggestion','getRowIndexes','item','last','commandName','markerRange','selection','addMarker:suggestion','createPositionAfter','ck-suggestion-marker--active','_acceptFormatSuggestionCallbackFactory','from','nodeBefore','TableUtils','formatBlock','getSelectionAffectedTableCells','headingColumns','consumable','plugins','name','writer','createRange','toViewElement','setTableColumnHeader','markerName','FORMAT_REGULAR_ROW','change','createTableWalker','model','enableCommand','accept','getSuggestion','getColumnIndexes','removeClass','first'];(function(_0x53019a,_0x41d284){const _0x2f2581=function(_0x2e0550){while(--_0x2e0550){_0x53019a['push'](_0x53019a['shift']());}};_0x2f2581(++_0x41d284);}(_0x41d2,0x1c1));const _0x2f25=function(_0x53019a,_0x41d284){_0x53019a=_0x53019a-0x0;let _0x2f2581=_0x41d2[_0x53019a];return _0x2f2581;};import{Plugin as _0xd24dd9}from'ckeditor5/src/core';import _0x463786 from'./table';import{getTranslation as _0xd01cba}from'../utils/common-translations';export default class pt extends _0xd24dd9{static get['requires'](){return[_0x463786];}[_0x2f25('0x3b')](){const _0x4bfa2b=this[_0x2f25('0x22')];if(!_0x4bfa2b[_0x2f25('0xe')][_0x2f25('0x30')]('TableEditing'))return;const _0x1439c1=_0x4bfa2b[_0x2f25('0x25')],_0x3a6ccf=_0x4bfa2b[_0x2f25('0xe')]['get']('TrackChangesEditing'),_0x195e6e=_0x4bfa2b['plugins']['get'](_0x2f25('0x9')),_0x3060a1=_0x4bfa2b[_0x2f25('0xe')][_0x2f25('0x2d')](_0x463786);function _0x2d1d0d({showActiveMarker:_0x3b1694=!0x0,setDataAttribute:_0x4676eb=!0x0}={}){return(_0x5adffa,_0x38cbba,_0x55bc19)=>{const {type:_0x23cd1b,id:_0x47e20c}=_0x3a6ccf[_0x2f25('0x24')](_0x38cbba[_0x2f25('0x14')]),_0x1f9952=_0x3a6ccf['getSuggestion'](_0x47e20c);if(!_0x1f9952[_0x2f25('0x26')]||_0x2f25('0x13')!=_0x1f9952[_0x2f25('0x26')]['commandName'])return;if(_0x38cbba[_0x2f25('0x4e')])return void _0x5adffa[_0x2f25('0x49')]();if(!_0x55bc19[_0x2f25('0xd')][_0x2f25('0x48')](_0x38cbba[_0x2f25('0x1')],_0x5adffa[_0x2f25('0xf')]))return;const _0x463029=_0x38cbba[_0x2f25('0x1')][_0x2f25('0x45')][_0x2f25('0x21')],_0x4d619b=_0x38cbba['markerRange'][_0x2f25('0x43')][_0x2f25('0x8')],_0xa597aa=_0x463029[_0x2f25('0x36')]['parent'],{column:_0x453644}=_0x195e6e[_0x2f25('0x3d')](_0x463029),{column:_0x3aa747}=_0x195e6e[_0x2f25('0x3d')](_0x4d619b);for(let _0x5df807=_0x453644;_0x5df807<=_0x3aa747;_0x5df807++){const _0x4598c5=_0x195e6e[_0x2f25('0x17')](_0xa597aa,{'column':_0x5df807,'includeAllSlots':!0x1});for(const _0x37358a of _0x4598c5){const _0x2d2eda=_0x37358a['cell'],_0x207365=_0x55bc19['mapper'][_0x2f25('0x12')](_0x2d2eda);_0x55bc19[_0x2f25('0x10')][_0x2f25('0x42')](_0x2f25('0x2c')+_0x23cd1b,_0x207365),_0x4676eb&&_0x55bc19[_0x2f25('0x10')][_0x2f25('0x27')](_0x2f25('0x3c'),_0x47e20c,_0x207365),_0x55bc19['mapper'][_0x2f25('0x2a')](_0x207365,_0x38cbba[_0x2f25('0x14')]),_0x3b1694&&(_0x3a6ccf['activeMarkers']['includes'](_0x38cbba[_0x2f25('0x14')])?_0x55bc19[_0x2f25('0x10')][_0x2f25('0x42')](_0x2f25('0x5'),_0x207365):_0x55bc19[_0x2f25('0x10')]['removeClass'](_0x2f25('0x5'),_0x207365));}}};}_0x3a6ccf[_0x2f25('0x19')]('setTableRowHeader',(_0xc65ec1,_0x585dac)=>{const _0x22db7b=_0x195e6e['getSelectionAffectedTableCells'](_0x4bfa2b[_0x2f25('0x18')][_0x2f25('0x34')][_0x2f25('0x2')]),_0x23f5d5=_0x195e6e[_0x2f25('0x4d')](_0x22db7b),_0x2ec95a=_0x22db7b[0x0][_0x2f25('0x23')](_0x2f25('0x4a')),_0x239309=_0x2ec95a['getAttribute']('headingRows')||0x0,_0x3af7d6=_0x585dac&&null!==_0x585dac[_0x2f25('0x46')]?_0x585dac[_0x2f25('0x46')]:!_0x4bfa2b[_0x2f25('0x47')][_0x2f25('0x2d')]('setTableRowHeader')[_0x2f25('0x32')],_0x1eaae4=_0x3af7d6?_0x23f5d5[_0x2f25('0x4f')]:_0x23f5d5[_0x2f25('0x1e')],_0x527d18=_0x2ec95a[_0x2f25('0x31')](_0x1eaae4);let _0x238ce7;if(_0x3af7d6){const _0xd4ccbe=_0x2ec95a[_0x2f25('0x31')](_0x239309);if(_0x527d18[_0x2f25('0x2e')]<_0xd4ccbe[_0x2f25('0x2e')])return;_0x238ce7=_0x4bfa2b[_0x2f25('0x18')]['createRange'](_0x4bfa2b[_0x2f25('0x18')][_0x2f25('0x28')](_0xd4ccbe[_0x2f25('0x31')](0x0)),_0x4bfa2b[_0x2f25('0x18')][_0x2f25('0x4')](_0x527d18['getChild'](_0x527d18[_0x2f25('0x40')]-0x1)));}else{const _0x599308=_0x2ec95a[_0x2f25('0x31')](_0x239309-0x1);if(!_0x599308)return;_0x238ce7=_0x4bfa2b[_0x2f25('0x18')][_0x2f25('0x11')](_0x4bfa2b[_0x2f25('0x18')][_0x2f25('0x28')](_0x527d18[_0x2f25('0x31')](0x0)),_0x4bfa2b[_0x2f25('0x18')]['createPositionAfter'](_0x599308[_0x2f25('0x31')](_0x599308[_0x2f25('0x40')]-0x1)));}_0x4bfa2b[_0x2f25('0x18')]['change'](()=>{_0x3a6ccf[_0x2f25('0x41')](_0x238ce7,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x3af7d6}]},[],_0x2f25('0x3a'));});}),_0x3a6ccf['enableCommand']('setTableColumnHeader',(_0x6fc057,_0x50cde1)=>{const _0x534d9e=_0x4bfa2b['plugins'][_0x2f25('0x2d')](_0x2f25('0x9')),_0x23ae35=_0x534d9e[_0x2f25('0xb')](_0x4bfa2b[_0x2f25('0x18')][_0x2f25('0x34')][_0x2f25('0x2')]),_0x2454c7=_0x534d9e[_0x2f25('0x1c')](_0x23ae35),_0x15af96=_0x23ae35[0x0]['findAncestor'](_0x2f25('0x4a')),_0x20cb9a=_0x15af96[_0x2f25('0x3f')](_0x2f25('0xc'))||0x0,_0x2ae1af=_0x50cde1&&null!==_0x50cde1[_0x2f25('0x46')]?_0x50cde1['forceValue']:!_0x4bfa2b['commands'][_0x2f25('0x2d')](_0x2f25('0x13'))[_0x2f25('0x32')];let _0x1f7eea;const _0x42bb83=_0x15af96[_0x2f25('0x31')](0x0),_0xe3d076=_0x2ae1af?_0x2454c7[_0x2f25('0x4f')]:_0x2454c7[_0x2f25('0x1e')],_0x100fc0=_0x534d9e[_0x2f25('0x17')](_0x15af96,{'startRow':0x0,'column':_0xe3d076,'includeAllSlots':!0x1}),_0x44137c=Array[_0x2f25('0x7')](_0x100fc0)[0x0][_0x2f25('0x29')];if(_0x2ae1af){const _0x261989=_0x42bb83[_0x2f25('0x31')](_0x20cb9a);if(_0x44137c['isBefore'](_0x261989))return;_0x1f7eea=_0x4bfa2b[_0x2f25('0x18')][_0x2f25('0x11')](_0x4bfa2b['model'][_0x2f25('0x28')](_0x261989),_0x4bfa2b['model'][_0x2f25('0x4')](_0x44137c));}else{const _0x1a78cc=_0x42bb83[_0x2f25('0x31')](_0x20cb9a-0x1);if(!_0x1a78cc)return;_0x1f7eea=_0x4bfa2b[_0x2f25('0x18')][_0x2f25('0x11')](_0x4bfa2b[_0x2f25('0x18')]['createPositionBefore'](_0x44137c),_0x4bfa2b[_0x2f25('0x18')][_0x2f25('0x4')](_0x1a78cc));}_0x4bfa2b[_0x2f25('0x18')][_0x2f25('0x16')](()=>{_0x3a6ccf[_0x2f25('0x41')](_0x1f7eea,{'commandName':_0x2f25('0x13'),'commandParams':[{'forceValue':_0x2ae1af}]},[],_0x2f25('0x13'));});}),_0x4bfa2b[_0x2f25('0x2b')][_0x2f25('0x38')]['on']('addMarker:suggestion',_0x2d1d0d(),{'priority':'highest'}),_0x4bfa2b[_0x2f25('0x26')][_0x2f25('0x38')]['on'](_0x2f25('0x3'),(_0x1f3ffa,_0x1b1660,_0x4cde14)=>{_0x4cde14[_0x2f25('0x44')][_0x2f25('0x4b')]&&_0x2d1d0d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1f3ffa,_0x1b1660,_0x4cde14);},{'priority':_0x2f25('0x1f')}),_0x4bfa2b[_0x2f25('0x2b')][_0x2f25('0x38')]['on'](_0x2f25('0x4c'),(_0x4c8728,_0x1a7a32,_0x4d246a)=>{const {type:_0x4d70aa,id:_0x1cab76}=_0x3a6ccf[_0x2f25('0x24')](_0x1a7a32[_0x2f25('0x14')]),_0x560aee=_0x3a6ccf[_0x2f25('0x1b')](_0x1cab76);if(!_0x560aee['data']||_0x2f25('0x13')!=_0x560aee[_0x2f25('0x26')][_0x2f25('0x0')])return;const _0x33d1ab=_0x4d246a[_0x2f25('0x20')]['markerNameToElements'](_0x1a7a32[_0x2f25('0x14')]);if(_0x33d1ab)for(const _0x5b9db9 of _0x33d1ab)_0x4d246a['writer'][_0x2f25('0x1d')]('ck-suggestion-marker-'+_0x4d70aa,_0x5b9db9),_0x4d246a[_0x2f25('0x10')][_0x2f25('0x1d')](_0x2f25('0x5'),_0x5b9db9),_0x4d246a[_0x2f25('0x10')][_0x2f25('0x2f')](_0x2f25('0x3c'),_0x5b9db9),_0x4d246a[_0x2f25('0x20')][_0x2f25('0x33')](_0x5b9db9,_0x1a7a32[_0x2f25('0x14')]);},{'priority':_0x2f25('0x1f')}),_0x3a6ccf['_descriptionFactory']['registerDescriptionCallback'](_0x4cdbee=>{const {data:_0x5734e6}=_0x4cdbee;if(_0x5734e6){if(_0x2f25('0x3a')==_0x5734e6[_0x2f25('0x0')]){const _0x5f0437=_0x5734e6['commandParams'][0x0][_0x2f25('0x46')];return _0x30b754(_0xd01cba(_0x1439c1,_0x5f0437?'FORMAT_HEADER_ROW':_0x2f25('0x15')));}if(_0x2f25('0x13')==_0x5734e6[_0x2f25('0x0')]){const _0xe69c65=_0x5734e6['commandParams'][0x0][_0x2f25('0x46')];return _0x30b754(_0xd01cba(_0x1439c1,_0xe69c65?_0x2f25('0x37'):'FORMAT_REGULAR_COLUMN'));}}function _0x30b754(_0x48c5a7){return{'type':'format','content':_0xd01cba(_0x1439c1,_0x2f25('0x39'),_0x48c5a7)};}});const _0x1898a4=_0x3060a1[_0x2f25('0x6')]();_0x3a6ccf[_0x2f25('0x35')]['registerCustomCallback'](_0x2f25('0xa'),_0x2f25('0x3a'),_0x2f25('0x1a'),_0x1898a4),_0x3a6ccf['_suggestionFactory'][_0x2f25('0x3e')](_0x2f25('0xa'),_0x2f25('0x13'),'accept',_0x1898a4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54d4=['deletion','getFirstPosition','selection','mergeTableCellRight','markBlockFormat','stop','direction','*Split\x20cell:*\x20vertically','plugins','formatBlock','find','low','locale','set:isEnabled','highest','map','rootName','horizontally','insertion','commandName','_tablePostFixingSubtypes','document','TrackChangesEditing','length','type','registerDescriptionCallback','getAncestors','setSelection','subType','mergeTableCellUp','model','add','containsRange','requires','TableEditing','change','format','has','tableCell','table','markMultiRangeBlockFormat','mergeTableCellDown','TableUtils','cell','getCellLocation','getSuggestions','return','detach','forceDefaultExecution','$graveyard','_isForcedDefaultExecutionBlock','get','accept','_areMergableCells','from','getRanges','push','enableCommand','createRangeOn','size','trackChanges','findAncestor','getSelectionAffectedTableCells','execute','refresh','mergeTableCellLeft','_descriptionFactory','mergeTableCells','commands','splitTableCellVertically','element','_acceptFormatSuggestionCallbackFactory','afterInit','splitTableCellHorizontally','_suggestionFactory','editor','author','registerCustomCallback','_areSelectedCellsMergable'];(function(_0x31e3b7,_0x54d4f7){const _0x489fd2=function(_0x47d68c){while(--_0x47d68c){_0x31e3b7['push'](_0x31e3b7['shift']());}};_0x489fd2(++_0x54d4f7);}(_0x54d4,0x135));const _0x489f=function(_0x31e3b7,_0x54d4f7){_0x31e3b7=_0x31e3b7-0x0;let _0x489fd2=_0x54d4[_0x31e3b7];return _0x489fd2;};import{Plugin as _0x11626c}from'ckeditor5/src/core';import _0xf1238a from'./table';import{LiveRange as _0x3e6cfd}from'ckeditor5/src/engine';import{getTranslation as _0x2eded4}from'../utils/common-translations';export default class dt extends _0x11626c{static get[_0x489f('0x28')](){return[_0xf1238a];}[_0x489f('0x0')](){const _0x2236a7=this[_0x489f('0x3')],_0x17286f=_0x2236a7[_0x489f('0x25')][_0x489f('0x1c')][_0x489f('0x9')],_0xdb4711=_0x2236a7[_0x489f('0x13')];if(!_0x2236a7[_0x489f('0xf')][_0x489f('0x2c')](_0x489f('0x29')))return;const _0x4a6060=_0x2236a7[_0x489f('0xf')][_0x489f('0x3a')](_0x489f('0x1d')),_0x153474=_0x2236a7[_0x489f('0xf')][_0x489f('0x3a')](_0x489f('0x31')),_0x3adbb0=_0x2236a7[_0x489f('0xf')][_0x489f('0x3a')](_0xf1238a);_0x3adbb0[_0x489f('0x1b')][_0x489f('0x3f')](_0x489f('0x4a')),_0x4a6060[_0x489f('0x40')](_0x489f('0x4a'),()=>{const _0x4fbdc3=_0x153474[_0x489f('0x45')](_0x2236a7[_0x489f('0x25')]['document'][_0x489f('0x9')]);_0x2236a7['model'][_0x489f('0x2a')](()=>{_0x4a6060[_0x489f('0x2f')](_0x4fbdc3,{'commandName':_0x489f('0x4a'),'commandParams':[]},[],'mergeTableCells');});}),_0x2236a7[_0x489f('0x4b')]['get'](_0x489f('0x4a'))['on'](_0x489f('0x46'),(_0x5badfd,_0x39c526)=>{_0x2236a7['commands'][_0x489f('0x3a')](_0x489f('0x43'))['value']&&(_0x39c526[_0x489f('0x1e')]>0x0&&_0x39c526[_0x39c526[_0x489f('0x1e')]-0x1]&&_0x39c526[_0x39c526[_0x489f('0x1e')]-0x1][_0x489f('0x37')]||_0x4a6060[_0x489f('0x39')]||this[_0x489f('0x6')]()||_0x5badfd[_0x489f('0xc')]());},{'priority':_0x489f('0x15')});for(const _0x46cb7f of['mergeTableCellUp',_0x489f('0xa'),_0x489f('0x30'),_0x489f('0x48')]){const _0x42569c=_0x2236a7[_0x489f('0x4b')][_0x489f('0x3a')](_0x46cb7f);_0x4a6060[_0x489f('0x40')](_0x46cb7f,()=>{const _0x4b7333=_0x2236a7[_0x489f('0x25')]['document'][_0x489f('0x9')][_0x489f('0x8')]()['getAncestors']()[_0x489f('0x11')](_0x3e958a=>_0x3e958a['is']('element',_0x489f('0x2d'))),_0x34b8f9=_0x42569c['value'];_0x2236a7['model']['change'](()=>{_0x4a6060[_0x489f('0x2f')]([_0x4b7333,_0x34b8f9],{'commandName':_0x489f('0x4a'),'commandParams':[]},[],_0x489f('0x4a'));});});}for(const _0x351c7e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x47f180=_0x2236a7['commands'][_0x489f('0x3a')](_0x351c7e);_0x4a6060['enableCommand'](_0x351c7e,()=>{const _0x239dea=_0x153474[_0x489f('0x45')](_0x2236a7[_0x489f('0x25')][_0x489f('0x1c')]['selection'])[0x0],_0x2dfb63=_0x239dea[_0x489f('0x44')](_0x489f('0x2e')),{column:_0x2f6380,row:_0x2b2cb4}=_0x153474[_0x489f('0x33')](_0x239dea);let _0x232304=[];if(_0x489f('0x18')==_0x47f180[_0x489f('0xd')]){const _0x3f738b=_0x153474['createTableWalker'](_0x2dfb63,{'startRow':_0x2b2cb4,'endRow':_0x2b2cb4,'includeAllSlots':!0x0});_0x232304=Array[_0x489f('0x3d')](_0x3f738b)[_0x489f('0x16')](_0x428574=>_0x428574[_0x489f('0x32')]);}else{const _0x425014=_0x153474['createTableWalker'](_0x2dfb63,{'column':_0x2f6380,'includeAllSlots':!0x0});_0x232304=Array['from'](_0x425014)[_0x489f('0x16')](_0x4b7a4a=>_0x4b7a4a[_0x489f('0x32')]);}_0x2236a7[_0x489f('0x25')][_0x489f('0x2a')](_0x3ddd8d=>{_0x4a6060[_0x489f('0xb')](_0x3ddd8d[_0x489f('0x41')](_0x239dea),{'commandName':_0x351c7e,'commandParams':[]},_0x232304,_0x351c7e);});});}_0x4a6060[_0x489f('0x49')]['registerDescriptionCallback'](_0x10d343=>{const {data:_0x1a5ba4}=_0x10d343;if(_0x1a5ba4)return _0x489f('0x4a')==_0x1a5ba4[_0x489f('0x1a')]?{'type':'format','content':_0x2eded4(_0xdb4711,'*Merge\x20cells*')}:void 0x0;}),_0x4a6060[_0x489f('0x49')][_0x489f('0x20')](_0x2c8801=>{const {data:_0xae64ef}=_0x2c8801;if(_0xae64ef)return _0x489f('0x4c')==_0xae64ef[_0x489f('0x1a')]?{'type':'format','content':_0x2eded4(_0xdb4711,_0x489f('0xe'))}:'splitTableCellHorizontally'==_0xae64ef[_0x489f('0x1a')]?{'type':_0x489f('0x2b'),'content':_0x2eded4(_0xdb4711,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x1df5e2=_0x3adbb0[_0x489f('0x4e')]();for(const _0x5366ff of[_0x489f('0x24'),_0x489f('0xa'),_0x489f('0x30'),_0x489f('0x48')])_0x4a6060[_0x489f('0x2')]['registerCustomCallback'](_0x489f('0x10'),_0x5366ff,_0x489f('0x3b'),_0x1df5e2);for(const _0x34da7d of[_0x489f('0x4c'),_0x489f('0x1')])_0x4a6060[_0x489f('0x2')][_0x489f('0x5')]('formatBlock',_0x34da7d,_0x489f('0x3b'),_0x1df5e2);_0x4a6060['_suggestionFactory'][_0x489f('0x5')](_0x489f('0x10'),_0x489f('0x4a'),'accept',_0x15cb33=>{_0x2236a7[_0x489f('0x25')][_0x489f('0x2a')](_0x4be6e3=>{const _0x349f80=Array[_0x489f('0x3d')](_0x17286f['getRanges']())[_0x489f('0x16')](_0x30bf1f=>_0x3e6cfd['fromRange'](_0x30bf1f));_0x4be6e3[_0x489f('0x22')](_0x15cb33),_0x2236a7['commands'][_0x489f('0x3a')](_0x489f('0x4a'))[_0x489f('0x47')](),_0x2236a7['execute'](_0x489f('0x4a'),{'forceDefaultExecution':!0x0});const _0x92acec=_0x349f80['filter'](_0x7c839d=>_0x489f('0x38')!=_0x7c839d['root'][_0x489f('0x17')]);_0x92acec[_0x489f('0x1e')]>0x0&&_0x4be6e3[_0x489f('0x22')](_0x92acec);for(const _0xd36052 of _0x349f80)_0xd36052[_0x489f('0x36')]();});});for(const _0x1a60d5 of['mergeTableCellUp',_0x489f('0x30'),_0x489f('0x48'),'mergeTableCellRight']){const _0x38eef4=_0x2236a7[_0x489f('0x4b')][_0x489f('0x3a')](_0x1a60d5);_0x38eef4['on'](_0x489f('0x14'),(_0x376412,_0x3f154a,_0x3ccd14)=>{if(_0x3ccd14){const _0x3b8c7b=_0x2236a7[_0x489f('0x25')][_0x489f('0x1c')][_0x489f('0x9')][_0x489f('0x8')]()[_0x489f('0x21')]()[_0x489f('0x11')](_0x28df37=>_0x28df37['is'](_0x489f('0x4d'),_0x489f('0x2d')));this[_0x489f('0x3c')](_0x38eef4['value'],_0x3b8c7b)||(_0x376412[_0x489f('0x35')]=!0x1,_0x376412[_0x489f('0xc')]());}},{'priority':_0x489f('0x12')});}}[_0x489f('0x6')](){const _0x2d9cb0=this['editor']['commands'][_0x489f('0x3a')](_0x489f('0x4a')),_0x41619d=this[_0x489f('0x3')]['plugins'][_0x489f('0x3a')]('TableUtils');if(!_0x2d9cb0['isEnabled'])return!0x1;const _0x1ee674=_0x41619d[_0x489f('0x45')](this[_0x489f('0x3')]['model'][_0x489f('0x1c')][_0x489f('0x9')]);for(const _0x1989dc of _0x1ee674)for(const _0x115672 of _0x1ee674)if(_0x1989dc!=_0x115672&&!this[_0x489f('0x3c')](_0x1989dc,_0x115672))return!0x1;return!0x0;}[_0x489f('0x3c')](_0x2e573c,_0x5e337e){const _0x39a4a1=this['editor'][_0x489f('0xf')][_0x489f('0x3a')](_0x489f('0x1d')),_0x1a60d9=this[_0x489f('0x3')][_0x489f('0x25')][_0x489f('0x41')](_0x2e573c),_0x4c50c7=this[_0x489f('0x3')][_0x489f('0x25')][_0x489f('0x41')](_0x5e337e),_0x3c59ce=new Set(),_0x3fc6db=new Set();for(const _0x453fbd of _0x39a4a1[_0x489f('0x34')]())if((_0x489f('0x19')==_0x453fbd['type']||_0x489f('0x7')==_0x453fbd[_0x489f('0x1f')]||_0x489f('0x4a')==_0x453fbd[_0x489f('0x23')])&&_0x453fbd['isInContent'])for(const _0x2e6515 of _0x453fbd[_0x489f('0x3e')]())_0x2e6515[_0x489f('0x27')](_0x1a60d9,!0x0)&&_0x3c59ce[_0x489f('0x26')](_0x453fbd['type']+':'+_0x453fbd[_0x489f('0x4')]['id']),_0x2e6515[_0x489f('0x27')](_0x4c50c7,!0x0)&&_0x3fc6db[_0x489f('0x26')](_0x453fbd[_0x489f('0x1f')]+':'+_0x453fbd[_0x489f('0x4')]['id']);if(_0x3c59ce[_0x489f('0x42')]!=_0x3fc6db['size'])return!0x1;for(const _0x8012fb of _0x3c59ce)if(!_0x3fc6db['has'](_0x8012fb))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x321e=['enableCommand','TrackChangesEditing','_descriptionFactory','plugins','afterInit','get','insertTableOfContents','tableOfContents','registerElementLabel','editor'];(function(_0x10953a,_0x321e74){const _0x3f9051=function(_0x1ed027){while(--_0x1ed027){_0x10953a['push'](_0x10953a['shift']());}};_0x3f9051(++_0x321e74);}(_0x321e,0xa9));const _0x3f90=function(_0x10953a,_0x321e74){_0x10953a=_0x10953a-0x0;let _0x3f9051=_0x321e[_0x10953a];return _0x3f9051;};import{Plugin as _0x1c11a0}from'ckeditor5/src/core';import{getTranslation as _0x42d87e}from'../utils/common-translations';export default class bt extends _0x1c11a0{[_0x3f90('0x5')](){const _0x22ddf5=this[_0x3f90('0x0')];if(!_0x22ddf5['commands'][_0x3f90('0x6')]('insertTableOfContents'))return;_0x22ddf5[_0x3f90('0x4')][_0x3f90('0x6')](_0x3f90('0x2'))[_0x3f90('0x1')](_0x3f90('0x7'));const _0x1952dd=_0x22ddf5['plugins'][_0x3f90('0x6')](_0x3f90('0x2')),_0x468acd=_0x22ddf5['locale'];_0x1952dd[_0x3f90('0x3')][_0x3f90('0x9')](_0x3f90('0x8'),_0x3357e5=>_0x42d87e(_0x468acd,'ELEMENT_TABLE_OF_CONTENTS',_0x3357e5));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b35=['document','_descriptionFactory','join','selection','data','change','getAttribute','getContainedElement','*Format:*\x20change\x20table\x20properties','tableCellPadding','editor','table','tableBorderWidth','tableCellVerticalAlignment','tableCellBorderStyle','has','getFirstPosition','TableCellPropertiesEditing','_suggestionFactory','TablePropertiesEditing','setAttribute','commandParams','getSuggestionCallback','discard','format','markBlockFormat','enqueueChange','tableBorderColor','getSuggestions','findAncestor','tableCellBorderColor','enableCommand','batch','registerDescriptionCallback','removeAttribute','tableCellBackgroundColor','tableProperties','handleDiscardAction','nodeAfter','tableWidth','_getSuggestion','model','*Format:*\x20change\x20table\x20cell\x20properties','TableUtils','tableBackgroundColor','TrackChangesEditing','handleSuggestionDescription','subType','start','tableCellHeight','get','tableAlignment','tableCellProperties','plugins','tableBorderStyle','getSelectionAffectedTableCells','TrackChangesTableProperties','_handlePropertyChange','formatBlock','accept','locale','registerCustomCallback','tableCellWidth'];(function(_0xb40a73,_0x4b354c){const _0x435189=function(_0x1895bb){while(--_0x1895bb){_0xb40a73['push'](_0xb40a73['shift']());}};_0x435189(++_0x4b354c);}(_0x4b35,0x93));const _0x4351=function(_0xb40a73,_0x4b354c){_0xb40a73=_0xb40a73-0x0;let _0x435189=_0x4b35[_0xb40a73];return _0x435189;};import{Plugin as _0x2e9dd7}from'ckeditor5/src/core';import{getTranslation as _0x4d8b8c}from'../utils/common-translations';export default class Ct extends _0x2e9dd7{constructor(_0x24292c){super(_0x24292c),this[_0x4351('0xf')]=[_0x4351('0x6'),_0x4351('0x21'),_0x4351('0x36'),_0x4351('0x1e'),_0x4351('0x12'),'tableHeight',_0x4351('0x17')],this[_0x4351('0x1f')]=[_0x4351('0x9'),_0x4351('0x38'),'tableCellBorderWidth',_0x4351('0x33'),_0x4351('0x29'),_0x4351('0x1c'),_0x4351('0xe'),'tableCellHorizontalAlignment',_0x4351('0x37')];}static get['pluginName'](){return _0x4351('0x23');}['afterInit'](){const _0x2de3ad=this[_0x4351('0x34')][_0x4351('0x20')]['get']('TrackChangesEditing');if(this[_0x4351('0x34')][_0x4351('0x20')][_0x4351('0x39')](_0x4351('0x3d'))){for(const _0x350c96 of this['tableProperties'])_0x2de3ad[_0x4351('0xa')](_0x350c96,(_0x494ca1,_0x2ef526)=>{const _0x60d9d3=this[_0x4351('0x34')][_0x4351('0x14')][_0x4351('0x2a')]['selection'][_0x4351('0x3a')]()[_0x4351('0x8')](_0x4351('0x35'));this[_0x4351('0x24')](_0x350c96,[_0x60d9d3],this['tableProperties'],_0x4351('0xf'),_0x494ca1,_0x2ef526);});_0x2de3ad[_0x4351('0x3c')][_0x4351('0x28')](_0x4351('0x25'),_0x4351('0xf'),_0x4351('0x26'),_0x2de3ad[_0x4351('0x3c')]['getSuggestionCallback']('formatBlock',null,_0x4351('0x2'))),_0x2de3ad[_0x4351('0x3c')][_0x4351('0x28')](_0x4351('0x25'),_0x4351('0xf'),_0x4351('0x2'),(_0x3139e1,_0x262170)=>this['handleDiscardAction'](this[_0x4351('0xf')],_0x3139e1,_0x262170)),_0x2de3ad[_0x4351('0x3c')][_0x4351('0x28')]('formatBlock','tableProperties',_0x4351('0x2c'),()=>!0x1);}if(this[_0x4351('0x34')][_0x4351('0x20')][_0x4351('0x39')](_0x4351('0x3b'))){for(const _0x34a881 of this[_0x4351('0x1f')])_0x2de3ad[_0x4351('0xa')](_0x34a881,(_0x3cdbec,_0x45b162)=>{const _0x4ed277=this[_0x4351('0x34')][_0x4351('0x20')][_0x4351('0x1d')](_0x4351('0x16'))[_0x4351('0x22')](this[_0x4351('0x34')]['model']['document'][_0x4351('0x2d')]);this[_0x4351('0x24')](_0x34a881,_0x4ed277,this[_0x4351('0x1f')],_0x4351('0x1f'),_0x3cdbec,_0x45b162);});_0x2de3ad[_0x4351('0x3c')][_0x4351('0x28')](_0x4351('0x25'),_0x4351('0x1f'),_0x4351('0x26'),_0x2de3ad[_0x4351('0x3c')][_0x4351('0x1')]('formatBlock',null,_0x4351('0x2'))),_0x2de3ad[_0x4351('0x3c')][_0x4351('0x28')](_0x4351('0x25'),_0x4351('0x1f'),_0x4351('0x2'),(_0xcdd364,_0x23fc25)=>this[_0x4351('0x10')](this['tableCellProperties'],_0xcdd364,_0x23fc25)),_0x2de3ad[_0x4351('0x3c')][_0x4351('0x28')]('formatBlock',_0x4351('0x1f'),_0x4351('0x2c'),()=>!0x1);}_0x2de3ad[_0x4351('0x2b')][_0x4351('0xc')](_0x3f16e4=>this[_0x4351('0x19')](_0x3f16e4));}[_0x4351('0x24')](_0x5b0930,_0x4bfbeb,_0x2cb7ae,_0x2b4042,_0x93728d,_0x3eaa50){const _0x604415=this[_0x4351('0x34')][_0x4351('0x20')][_0x4351('0x1d')]('TrackChangesEditing');this[_0x4351('0x34')][_0x4351('0x14')][_0x4351('0x5')](_0x3eaa50[_0x4351('0xb')],()=>{for(const _0x74f67c of _0x4bfbeb){if(this[_0x4351('0x13')](_0x74f67c,_0x2b4042))_0x93728d(_0x3eaa50);else{const _0x31c0e4={};for(const _0x1252b2 of _0x2cb7ae){const _0x59d17e=_0x74f67c[_0x4351('0x30')](_0x1252b2);void 0x0!==_0x59d17e&&(_0x31c0e4[_0x1252b2]=_0x59d17e);}_0x93728d(_0x3eaa50),_0x604415[_0x4351('0x4')](_0x74f67c,{'commandParams':[_0x31c0e4]},[],_0x2b4042);}}});}[_0x4351('0x10')](_0x1900e3,_0x4770d6,_0x5214a2){const _0x1a0065=_0x4770d6[0x0][_0x4351('0x1b')][_0x4351('0x11')],_0x4d4bad=_0x5214a2[_0x4351('0x0')][0x0];this[_0x4351('0x34')][_0x4351('0x14')][_0x4351('0x2f')](_0x417475=>{for(const _0x48f21e of _0x1900e3)void 0x0!==_0x4d4bad[_0x48f21e]?_0x417475[_0x4351('0x3e')](_0x48f21e,_0x4d4bad[_0x48f21e],_0x1a0065):_0x417475[_0x4351('0xd')](_0x48f21e,_0x1a0065);});}[_0x4351('0x19')](_0x2fe188){if(_0x2fe188[_0x4351('0x2e')])switch(_0x2fe188[_0x4351('0x1a')]){case'tableProperties':return{'type':_0x4351('0x3'),'content':_0x4d8b8c(this[_0x4351('0x34')]['locale'],_0x4351('0x32'))};case _0x4351('0x1f'):return{'type':'format','content':_0x4d8b8c(this[_0x4351('0x34')][_0x4351('0x27')],_0x4351('0x15'))};}}[_0x4351('0x13')](_0x209ff0,_0x1ff98d){const _0x4315eb=this[_0x4351('0x34')][_0x4351('0x20')][_0x4351('0x1d')](_0x4351('0x18'));for(const _0x4da4b5 of _0x4315eb[_0x4351('0x7')]({'skipNotAttached':!0x0})){const _0x5266af=_0x4da4b5[_0x4351('0x31')]();if(_0x4da4b5[_0x4351('0x1a')]===_0x1ff98d&&_0x5266af===_0x209ff0)return _0x4da4b5;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17f0=['enableCommand','editor','TrackChangesEditing','Template','afterInit','insertTemplate','plugins'];(function(_0x29654c,_0x17f037){const _0x4c289c=function(_0x3c7ce2){while(--_0x3c7ce2){_0x29654c['push'](_0x29654c['shift']());}};_0x4c289c(++_0x17f037);}(_0x17f0,0x112));const _0x4c28=function(_0x29654c,_0x17f037){_0x29654c=_0x29654c-0x0;let _0x4c289c=_0x17f0[_0x29654c];return _0x4c289c;};import{Plugin as _0x5b46e0}from'ckeditor5/src/core';export default class yt extends _0x5b46e0{[_0x4c28('0x3')](){const _0x2c97a3=this[_0x4c28('0x0')];_0x2c97a3[_0x4c28('0x5')]['has'](_0x4c28('0x2'))&&_0x2c97a3['plugins']['get'](_0x4c28('0x1'))[_0x4c28('0x6')](_0x4c28('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbef0=['forward','nodeBefore','model','getChangedMarkers','getNearestSelectionRange','from','title-content','afterInit','removeMarker','registerPostFixer','end','get','element','suggestion','newRange','document','plugins','start','TrackChangesEditing','locale','Title','has'];(function(_0x1aeca5,_0xbef090){const _0x1a2c8f=function(_0x267ae8){while(--_0x267ae8){_0x1aeca5['push'](_0x1aeca5['shift']());}};_0x1a2c8f(++_0xbef090);}(_0xbef0,0xd5));const _0x1a2c=function(_0x1aeca5,_0xbef090){_0x1aeca5=_0x1aeca5-0x0;let _0x1a2c8f=_0xbef0[_0x1aeca5];return _0x1a2c8f;};import{Plugin as _0x45df52}from'ckeditor5/src/core';import{getTranslation as _0xbcb311}from'../utils/common-translations';export default class St extends _0x45df52{[_0x1a2c('0xe')](){const _0x455f92=this['editor'];if(!_0x455f92[_0x1a2c('0x1')][_0x1a2c('0x6')](_0x1a2c('0x5')))return;const _0x5595cd=_0x455f92[_0x1a2c('0x1')][_0x1a2c('0x12')](_0x1a2c('0x3'));_0x5595cd['_descriptionFactory']['registerElementLabel']('title-content',()=>_0xbcb311(_0x455f92[_0x1a2c('0x4')],'ELEMENT_TITLE')),_0x455f92[_0x1a2c('0x9')][_0x1a2c('0x0')][_0x1a2c('0x10')](_0x19eaa4=>{let _0x3629ab=!0x1;const _0x102703=Array[_0x1a2c('0xc')](_0x455f92['model']['document']['differ'][_0x1a2c('0xa')]());for(const {name:_0x731321,data:_0x463c9e}of _0x102703){const {group:_0x21f792}=_0x5595cd['_splitMarkerName'](_0x731321);if(_0x1a2c('0x14')!==_0x21f792||!_0x463c9e[_0x1a2c('0x15')])continue;const _0x39bb67=_0x463c9e[_0x1a2c('0x15')],_0x4d9fd7=_0x39bb67[_0x1a2c('0x11')][_0x1a2c('0x8')];if(!_0x4d9fd7||!_0x4d9fd7['is'](_0x1a2c('0x13'),_0x1a2c('0xd')))continue;if(!_0x39bb67['start']['isTouching'](_0x39bb67[_0x1a2c('0x11')]))continue;const _0x1aec2b=_0x455f92[_0x1a2c('0x9')]['schema'][_0x1a2c('0xb')](_0x39bb67[_0x1a2c('0x11')],_0x1a2c('0x7'));if(_0x1aec2b&&_0x1aec2b['isCollapsed']){const _0x18b025=_0x19eaa4['createRange'](_0x39bb67[_0x1a2c('0x2')],_0x1aec2b[_0x1a2c('0x2')]);_0x18b025['isEqual'](_0x39bb67)||(_0x19eaa4['updateMarker'](_0x731321,{'range':_0x18b025}),_0x3629ab=!0x0);}_0x3629ab||(_0x19eaa4[_0x1a2c('0xf')](_0x731321),_0x3629ab=!0x0);}return _0x3629ab;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x165b=['undo','redo','enableCommand','editor','TrackChangesEditing','plugins','afterInit'];(function(_0x12b3a9,_0x165b71){const _0x2e6472=function(_0x6b9364){while(--_0x6b9364){_0x12b3a9['push'](_0x12b3a9['shift']());}};_0x2e6472(++_0x165b71);}(_0x165b,0xb2));const _0x2e64=function(_0x12b3a9,_0x165b71){_0x12b3a9=_0x12b3a9-0x0;let _0x2e6472=_0x165b[_0x12b3a9];return _0x2e6472;};import{Plugin as _0x3f4c0c}from'ckeditor5/src/core';export default class It extends _0x3f4c0c{[_0x2e64('0x3')](){const _0x509aff=this[_0x2e64('0x0')],_0x1e8aad=_0x509aff[_0x2e64('0x2')]['get'](_0x2e64('0x1'));_0x509aff['plugins']['has']('UndoEditing')&&(_0x1e8aad[_0x2e64('0x6')](_0x2e64('0x4')),_0x1e8aad[_0x2e64('0x6')](_0x2e64('0x5')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e41=['markerRange','mapper','getCustomProperty','schema','isContent','consumable','hasAttribute','listItem','span','elementEnd','model','ck-suggestion-marker--active','insert','parent','item','plugins','nextSibling','addClass','previousPosition','getItems','element','createUIElement','type','ck-suggestion-marker-','markerName','start','toViewPosition','createRangeOn','includes','get','writer','listIndent','activeMarkers','getAttribute','push','getWalker','isBlock'];(function(_0x3e9a41,_0x3e411e){const _0x46f2f9=function(_0x171ecc){while(--_0x171ecc){_0x3e9a41['push'](_0x3e9a41['shift']());}};_0x46f2f9(++_0x3e411e);}(_0x3e41,0x16b));const _0x46f2=function(_0x3e9a41,_0x3e411e){_0x3e9a41=_0x3e9a41-0x0;let _0x46f2f9=_0x3e41[_0x3e9a41];return _0x46f2f9;};export function getRangesWithAttribute(_0x3bb5e1,_0x2076f4,_0x463ceb){const _0x239953=[];for(const _0x4d0514 of _0x2076f4[_0x46f2('0x1a')]())_0x4d0514[_0x46f2('0xd')](_0x3bb5e1)&&_0x239953[_0x46f2('0x4')](_0x463ceb[_0x46f2('0x22')](_0x4d0514));return _0x239953;}export function getElementsAffectedByListItemRename(_0x3308e5){const _0x1dcd14=[];if(_0x3308e5['is'](_0x46f2('0x1b'),_0x46f2('0xe'))){let _0x198446=_0x3308e5[_0x46f2('0x17')];for(;_0x198446&&_0x198446['is'](_0x46f2('0x1b'),'listItem')&&_0x198446[_0x46f2('0x3')](_0x46f2('0x1'))>0x0;)_0x1dcd14[_0x46f2('0x4')](_0x198446),_0x198446=_0x198446[_0x46f2('0x17')];}return _0x1dcd14;}export function downcastSplitMergeMarker(_0x4a23eb,_0x537e0d,{showActiveMarker:_0x3ccf00=!0x0}={}){const _0x56e383=_0x4a23eb[_0x46f2('0x16')][_0x46f2('0x24')]('TrackChangesEditing');return(_0x41937a,_0x14963c,_0x33988c)=>{if(!_0x33988c[_0x46f2('0xc')]['test'](_0x14963c['markerRange'],_0x41937a['name']))return;const _0x25ab68=_0x14963c[_0x46f2('0x7')][_0x46f2('0x5')](),_0x37117b=_0x14963c['markerRange'][_0x46f2('0x20')],_0x4fe8f8=_0x4a23eb[_0x46f2('0x11')][_0x46f2('0xa')];let _0x3a572e=null,_0x139fd0=null,_0x227b60=!0x1,_0x4e5c5f=!0x1;for(const _0x2a4e8f of _0x25ab68){const _0x36b969=_0x2a4e8f[_0x46f2('0x15')];_0x227b60=_0x227b60||_0x4fe8f8[_0x46f2('0xb')](_0x36b969);const _0xad562a=_0x33988c['mapper']['toViewElement'](_0x36b969);if(_0xad562a&&_0xad562a[_0x46f2('0x9')]('addHighlight'))return;_0x46f2('0x10')==_0x2a4e8f[_0x46f2('0x1d')]&&(_0x4fe8f8[_0x46f2('0x6')](_0x36b969)&&!_0x4fe8f8['isLimit'](_0x36b969)&&(_0x36b969[_0x46f2('0x17')]||_0x37117b['isAtEnd']?_0x3a572e&&_0x3a572e[_0x46f2('0x14')]==_0x36b969||(_0x3a572e=_0x36b969,_0x109e39(_0x2a4e8f['previousPosition']),_0x4e5c5f=!0x0):_0x139fd0=_0x139fd0||_0x2a4e8f[_0x46f2('0x19')]));}function _0x109e39(_0x3d29fd){const _0x3e2987=_0x33988c[_0x46f2('0x0')][_0x46f2('0x1c')](_0x46f2('0xf'),{'class':_0x46f2('0x1e')+_0x537e0d}),_0x2df1b4=_0x33988c[_0x46f2('0x8')][_0x46f2('0x21')](_0x3d29fd);_0x3ccf00&&_0x56e383[_0x46f2('0x2')][_0x46f2('0x23')](_0x14963c[_0x46f2('0x1f')])&&_0x33988c[_0x46f2('0x0')][_0x46f2('0x18')](_0x46f2('0x12'),_0x3e2987),_0x33988c[_0x46f2('0x0')][_0x46f2('0x13')](_0x2df1b4,_0x3e2987),_0x33988c['mapper']['bindElementToMarker'](_0x3e2987,_0x14963c[_0x46f2('0x1f')]);}_0x227b60||_0x4e5c5f||!_0x139fd0||_0x109e39(_0x139fd0);};}
|