@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230727.0 → 0.0.0-nightly-20230729.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/sq.js +1 -0
- package/lang/translations/gl.po +23 -23
- package/lang/translations/sq.po +487 -0
- 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 _0x1a9f=['*Replace\x20table\x20cells*','cells','activeMarkers','unwrap','setAttributes','afterInit','subType','getAllAdjacentSuggestions','insertRows','element','paragraph','view','suggestionUnloaded','map','length','markMultiRangeBlockFormat','suggestion-td','next','getRanges','tableCellVerticalAlignment','attributes','findAncestor','nextSibling','createTableWalker','newRange','conversion','insertContent','removeColumns','columnInsertionRanges','tableCellBackgroundColor','removeMarker','commands','selection','tableCellPadding','remove','has','document','insertColumns','TableUtils','tableCellBorderWidth','tableCellSuggestion','_isForcedDefaultExecutionBlock','author','fromEntries','createRangeOn','change','containsRange','Users','insertion','keys','insert','suggestion','register','tablePasteColumn','getMarkers','tableCell','reduce','push','plugins','getColumnIndexes','registerPostFixer','fill','ck-suggestion-marker','content','_splitMarkerName','table','for','suggestion:formatBlock:tablePasteCell','low','tablePaste','get','requires','join','end','stop','isEqual','_descriptionFactory','_suggestionFactory','differ','createPositionBefore','editing','getRows','previousSibling','isInContent','setAttribute','entries','getRange','name','getChanges','type','value','first','find','oldRange','locale','every','createElement','columns','tablePasteChainId','tablePasteRow','start','includes','accept','cell','getColumns','tablePasteCell','getSelectionAffectedTableCells','high','set','dataDowncast','rootName','registerCustomCallback','clipboardOutput','createRangeIn','discard','from','deletion','documentSelection','last','getChildren','showSuggestionHighlights','TableClipboard','_getCoordsForCells','return','position','editor','listenTo','registerDescriptionCallback','markMultiRangeInsertion','markerToHighlight','markerName','batch','elementToElement','markerAttributes','getContainedElement','formatBlock','removeMarkers','wrap','startsWith','endRow','isEmpty','columnInsertionIndexes','getAttributes','some','markMultiRangeDeletion','getSuggestions','redo','ck-suggestion-marker--active','trackChanges','filter','nodeAfter','getChangedMarkers','getChild','model','editingDowncast','_tablePostFixingSubtypes','markers'];(function(_0x1fcb93,_0x1a9f48){const _0x527a82=function(_0x110745){while(--_0x110745){_0x1fcb93['push'](_0x1fcb93['shift']());}};_0x527a82(++_0x1a9f48);}(_0x1a9f,0xe9));const _0x527a=function(_0x1fcb93,_0x1a9f48){_0x1fcb93=_0x1fcb93-0x0;let _0x527a82=_0x1a9f[_0x1fcb93];return _0x527a82;};import{getTranslation as _0x15b521}from'../utils/common-translations';import{Plugin as _0x23cec6}from'ckeditor5/src/core';import{uid as _0x178ce6,priorities as _0x200aa0}from'ckeditor5/src/utils';import _0x3ceadb from'./table';const le=[_0x527a('0x78'),'tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment',_0x527a('0x64'),_0x527a('0x6e'),_0x527a('0x72')],ae=Object[_0x527a('0x7c')](le[_0x527a('0x5e')](_0x111560=>[_0x111560,null]));export default class kt extends _0x23cec6{static get[_0x527a('0x98')](){return[_0x3ceadb];}[_0x527a('0x56')](){const _0x218d5f=this[_0x527a('0x31')];if(!_0x218d5f[_0x527a('0x8b')][_0x527a('0x74')](_0x527a('0x2d')))return;const _0x1827bd=_0x218d5f[_0x527a('0x8b')][_0x527a('0x97')]('TrackChangesEditing'),_0x341208=_0x218d5f[_0x527a('0x8b')][_0x527a('0x97')](_0x527a('0x77')),_0x3fab5e=_0x218d5f[_0x527a('0x8b')][_0x527a('0x97')](_0x3ceadb),_0x53e385=_0x218d5f[_0x527a('0x8b')][_0x527a('0x97')](_0x527a('0x2d'));_0x3fab5e[_0x527a('0x4f')][_0x527a('0x8a')](_0x527a('0x17'),_0x527a('0x86')),_0x218d5f[_0x527a('0x4d')]['schema'][_0x527a('0x85')]('tableCellSuggestion',{'allowIn':_0x527a('0x88'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x218d5f['conversion'][_0x527a('0x38')]({'model':_0x527a('0x79'),'view':_0x527a('0x61')});let _0x361de3=null;_0x218d5f[_0x527a('0x4d')]['on'](_0x527a('0x6b'),(_0xcf96dc,_0x1a3bdf)=>{const [_0x2b8ec6,_0xd8fe2d]=_0x1a3bdf,_0x125a13=_0x1a3bdf[_0x1a3bdf[_0x527a('0x5f')]-0x1];_0x125a13&&_0x125a13['forceDefaultExecution']||_0x1827bd[_0x527a('0x7a')]||this['editor']['commands']['get'](_0x527a('0x48'))[_0x527a('0xe')]&&function(_0x9e7bb,_0x498bf8,_0x456c6f,_0xcce1e5,_0x2cdc76){if(_0x498bf8&&!_0x498bf8['is'](_0x527a('0x29')))return!0x1;const _0x30977b=_0x2cdc76['getTableIfOnlyTableInContent'](_0x9e7bb,_0x456c6f);if(!_0x30977b||!fe(_0x30977b,void 0x0,_0xcce1e5))return!0x1;const _0x5eb310=_0xcce1e5[_0x527a('0x1e')](_0x456c6f[_0x527a('0x75')][_0x527a('0x71')]);if(!_0x5eb310[_0x527a('0x5f')])return!0x1;const _0x51332e=_0x5eb310[0x0][_0x527a('0x66')](_0x527a('0x92')),_0xb60d1b=_0xcce1e5['getRowIndexes'](_0x5eb310),_0x1d942a=_0xcce1e5[_0x527a('0x8c')](_0x5eb310),_0x525bbc={'startRow':_0xb60d1b[_0x527a('0xf')],'endRow':_0xb60d1b[_0x527a('0x2a')],'startColumn':_0x1d942a['first'],'endColumn':_0x1d942a[_0x527a('0x2a')]};return 0x1==_0x5eb310['length']&&(_0x525bbc[_0x527a('0x3f')]+=_0xcce1e5[_0x527a('0x5')](_0x30977b)-0x1,_0x525bbc['endColumn']+=_0xcce1e5[_0x527a('0x1c')](_0x30977b)-0x1),fe(_0x51332e,_0x525bbc,_0xcce1e5);}(_0x2b8ec6,_0xd8fe2d,_0x218d5f['model'],_0x341208,_0x53e385)&&(_0xcf96dc[_0x527a('0x9b')](),_0x361de3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x218d5f[_0x527a('0x4d')][_0x527a('0x7e')](()=>{_0x218d5f[_0x527a('0x4d')][_0x527a('0x6b')](_0x1a3bdf[0x0],_0x1a3bdf[0x1],_0x1a3bdf[0x2],{'forceDefaultExecution':!0x0});const _0x584eb7=_0x178ce6(),{rowInsertionRanges:_0x3f95a7,columnInsertionRanges:_0x2c8ec1,insertionRanges:_0x2a470a,deletionRanges:_0x4265a4,cells:_0x4bd43d}=_0x361de3;_0x3f95a7[_0x527a('0x5f')]&&_0x1827bd['markMultiRangeInsertion'](_0x3f95a7,'tablePasteRow',{'tablePasteChainId':_0x584eb7}),_0x2c8ec1[_0x527a('0x5f')]&&_0x1827bd[_0x527a('0x34')](_0x2c8ec1,_0x527a('0x86'),{'tablePasteChainId':_0x584eb7}),_0x2a470a[_0x527a('0x5f')]&&_0x1827bd[_0x527a('0x34')](_0x2a470a,_0x527a('0x96'),{'tablePasteChainId':_0x584eb7,'skipNestingCheck':!0x0}),_0x4265a4[_0x527a('0x5f')]&&_0x1827bd[_0x527a('0x44')](_0x4265a4,'tablePaste',{'tablePasteChainId':_0x584eb7,'skipNestingCheck':!0x0});const _0x564700=_0x1827bd[_0x527a('0x60')](_0x4bd43d[_0x527a('0x5e')](({element:_0xd4306f})=>_0xd4306f),{'formatGroupId':_0x178ce6()},[],_0x527a('0x1d'),{'tablePasteChainId':_0x584eb7});if(_0x564700){const _0x1cfdc8=_0x564700[_0x527a('0x87')](),_0x32c7cf=[];for(const {element:_0xa6b147,attributes:_0x4f6390}of _0x4bd43d){if(!_0x4f6390)continue;const _0x447746=_0x218d5f[_0x527a('0x4d')]['createRangeOn'](_0xa6b147),_0x32c4ff=_0x1cfdc8[_0x527a('0x10')](_0x5bc937=>_0x5bc937[_0x527a('0xa')]()[_0x527a('0x9c')](_0x447746));_0x32c4ff&&_0x32c7cf[_0x527a('0x8a')]([_0x32c4ff[_0x527a('0xb')],_0x4f6390]);}_0x32c7cf['length']&&_0x564700[_0x527a('0x8')]('markerAttributes',Object[_0x527a('0x7c')](_0x32c7cf));}_0x361de3=null;}));},{'priority':_0x200aa0[_0x527a('0x1f')]+0xa}),_0x218d5f[_0x527a('0x8b')][_0x527a('0x97')]('TableClipboard')['on']('_replaceTableSlotCell',(_0x26adb7,_0x39e47e)=>{const [_0xca4667,_0x45fe53,,_0xb30241]=_0x39e47e;if(!_0x361de3)return;_0x26adb7['stop']();const _0x2eed0f=_0xca4667[_0x527a('0x1b')],_0x50ecd5=_0x45fe53,_0x1239fe=ce(_0x2eed0f),_0x30917e=ce(_0x50ecd5);_0x26adb7[_0x527a('0x2f')]=_0x2eed0f;let _0x4e83c9=null,_0x5b400e=null;if(_0x30917e||_0x1239fe){if(_0x1239fe&&!_0x30917e){_0xb30241['remove'](_0x2eed0f[_0x527a('0x4c')](0x0));for(const _0x49acd7 of Array[_0x527a('0x27')](_0x50ecd5[_0x527a('0x2b')]()))_0xb30241[_0x527a('0x83')](_0x49acd7,_0x2eed0f,'end');const _0x3620a0=_0x361de3['rowInsertionIndexes']['includes'](_0xca4667['row']),_0x169b30=_0x361de3[_0x527a('0x41')][_0x527a('0x19')](_0xca4667['column']);_0x3620a0||_0x169b30||(_0x4e83c9=_0xb30241['createRangeIn'](_0x2eed0f));}else _0x30917e&&!_0x1239fe&&(_0x5b400e=_0xb30241[_0x527a('0x25')](_0x2eed0f));}else{const _0xb0374e=_0xb30241['createElement']('tableCellSuggestion'),_0x193ec9=_0xb30241[_0x527a('0x14')](_0x527a('0x79'));_0xb30241[_0x527a('0x3d')](_0xb30241[_0x527a('0x25')](_0x2eed0f),_0x193ec9),_0xb30241['insert'](_0xb0374e,_0x2eed0f,0x0);for(const _0x595391 of Array[_0x527a('0x27')](_0x50ecd5[_0x527a('0x2b')]()))_0xb30241[_0x527a('0x83')](_0x595391,_0xb0374e,_0x527a('0x9a'));_0x4e83c9=_0xb30241[_0x527a('0x7d')](_0xb0374e),_0x5b400e=_0xb30241['createRangeOn'](_0x193ec9);}const _0x4d88e2=Array[_0x527a('0x27')](_0x50ecd5[_0x527a('0x42')]())[_0x527a('0x49')](([_0xa55fb6])=>le[_0x527a('0x19')](_0xa55fb6));_0x361de3['cells'][_0x527a('0x8a')]({'element':_0x2eed0f,'attributes':_0x4d88e2[_0x527a('0x5f')]?Object[_0x527a('0x7c')](_0x4d88e2):null}),_0x4e83c9&&_0x361de3['insertionRanges'][_0x527a('0x8a')](_0x4e83c9),_0x5b400e&&_0x361de3['deletionRanges'][_0x527a('0x8a')](_0x5b400e);},{'priority':_0x527a('0x1f')}),_0x341208['on'](_0x527a('0x76'),(_0x2efcd8,_0x505e92)=>{const [_0xe5f8e4,_0x37f328={}]=_0x505e92;if(!_0x361de3)return;const _0x17ad47=_0x37f328['at']||0x0,_0x3a5848=_0x37f328[_0x527a('0x15')]||0x1;_0x361de3[_0x527a('0x41')]=new Array(_0x3a5848)[_0x527a('0x8e')](_0x17ad47)[_0x527a('0x5e')]((_0x2216dc,_0x22c2cd)=>_0x2216dc+_0x22c2cd);for(const {cell:_0x4fd727}of _0x341208[_0x527a('0x68')](_0xe5f8e4,{'startColumn':_0x17ad47,'endColumn':_0x17ad47+_0x3a5848-0x1}))_0x361de3[_0x527a('0x6d')]['push'](_0x218d5f[_0x527a('0x4d')][_0x527a('0x7d')](_0x4fd727));},{'priority':_0x527a('0x95')}),_0x341208['on'](_0x527a('0x59'),(_0x5a83d1,_0x43774e)=>{const [_0x116588,_0x1ae344={}]=_0x43774e;if(!_0x361de3)return;const _0x4d39f3=_0x1ae344['at']||0x0,_0x38b1d8=_0x1ae344['rows']||0x1;_0x361de3['rowInsertionIndexes']=new Array(_0x38b1d8)[_0x527a('0x8e')](_0x4d39f3)[_0x527a('0x5e')]((_0x1de77d,_0x17d64f)=>_0x1de77d+_0x17d64f);for(const {cell:_0x4bc7cc}of _0x341208[_0x527a('0x68')](_0x116588,{'startRow':_0x4d39f3,'endRow':_0x4d39f3+_0x38b1d8-0x1}))_0x361de3['rowInsertionRanges'][_0x527a('0x8a')](_0x218d5f[_0x527a('0x4d')][_0x527a('0x7d')](_0x4bc7cc));},{'priority':_0x527a('0x95')}),_0x1827bd[_0x527a('0x0')][_0x527a('0x33')](_0x2d38d9=>{if(_0x2d38d9[_0x527a('0x57')]&&_0x2d38d9[_0x527a('0x57')][_0x527a('0x3e')](_0x527a('0x96')))return _0x2d38d9['previous']?{}:{'type':_0x527a('0x81'),'content':_0x15b521(_0x218d5f[_0x527a('0x12')],_0x527a('0x51'))};});const _0x468b1=()=>{};for(const _0x504448 of[_0x527a('0x96'),_0x527a('0x86'),_0x527a('0x17'),_0x527a('0x1d')])_0x1827bd[_0x527a('0x1')][_0x527a('0x23')](_0x527a('0x81'),_0x504448,_0x527a('0x99'),_0x468b1),_0x1827bd[_0x527a('0x1')][_0x527a('0x23')]('deletion',_0x504448,_0x527a('0x99'),_0x468b1);_0x1827bd['_suggestionFactory']['registerCustomCallback'](_0x527a('0x3b'),'tablePasteCell',_0x527a('0x26'),_0x468b1),_0x1827bd[_0x527a('0x1')][_0x527a('0x23')](_0x527a('0x3b'),_0x527a('0x1d'),_0x527a('0x1a'),(_0xa23a6,_0x1297b8,_0x563aba)=>{const _0x3dbb6b=_0xa23a6['map'](_0x12cf36=>_0x12cf36[_0x527a('0x3a')]())[_0x527a('0x49')](_0x3cb661=>_0x3cb661),_0x29979d=new Map(_0x3dbb6b[_0x527a('0x5e')](_0x2e9f3c=>[_0x2e9f3c,null]));if(_0x361de3)for(const {element:_0x6269da,attributes:_0x182bff}of _0x361de3[_0x527a('0x52')])_0x182bff&&_0x29979d[_0x527a('0x20')](_0x6269da,_0x182bff);else{if(_0x563aba&&_0x563aba['markerAttributes'])for(const [_0x39d8dc,_0x247420]of Object[_0x527a('0x9')](_0x563aba[_0x527a('0x39')])){const _0x56e776=_0x218d5f[_0x527a('0x4d')][_0x527a('0x50')][_0x527a('0x97')](_0x39d8dc),_0x2b3e71=_0x56e776?_0x56e776[_0x527a('0xa')]()[_0x527a('0x3a')]():null;_0x2b3e71&&_0x29979d[_0x527a('0x20')](_0x2b3e71,_0x247420);}}_0x218d5f[_0x527a('0x4d')][_0x527a('0x7e')](_0xb0c99f=>{for(const [_0x568033,_0x22a41e]of _0x29979d)_0xb0c99f[_0x527a('0x55')]({...ae,..._0x22a41e},_0x568033);});});const _0x2d9ce4=(_0x52fd77,_0x36bd3f)=>{_0x1827bd[_0x527a('0x1')][_0x527a('0x23')](_0x52fd77,_0x527a('0x96'),_0x36bd3f,(_0x3f5ecf,_0x3dc391,_0x4f1d7b)=>{_0x218d5f[_0x527a('0x4d')][_0x527a('0x7e')](_0x522dee=>{const _0x329f6a=[];for(const _0x50b642 of _0x3f5ecf){const _0x1472d1=_0x50b642[_0x527a('0x18')][_0x527a('0x4a')];_0x1472d1['is'](_0x527a('0x5a'),_0x527a('0x79'))&&_0x329f6a['push'](_0x1472d1);}_0x1827bd[_0x527a('0x1')]['getSuggestionCallback'](_0x52fd77,null,_0x36bd3f)(_0x3f5ecf,_0x3dc391,_0x4f1d7b);for(const _0x411627 of _0x329f6a)'$graveyard'!=_0x411627['root'][_0x527a('0x22')]&&_0x522dee[_0x527a('0x54')](_0x411627);});});};_0x2d9ce4(_0x527a('0x81'),'accept'),_0x2d9ce4(_0x527a('0x81'),'discard'),_0x2d9ce4(_0x527a('0x28'),_0x527a('0x1a')),_0x2d9ce4(_0x527a('0x28'),_0x527a('0x26')),_0x1827bd['_suggestionFactory'][_0x527a('0x23')](_0x527a('0x81'),_0x527a('0x17'),'discard',_0x8855da=>{const _0x5c59e2=_0x8855da[_0x527a('0x5e')](_0x1c7752=>_0x1c7752[_0x527a('0x3a')]()),_0x1f1073=_0x5c59e2[0x0][_0x527a('0x66')](_0x527a('0x92')),{minRow:_0x22566d,maxRow:_0x487880}=_0x3fab5e[_0x527a('0x2e')](_0x5c59e2);_0x341208['removeRows'](_0x1f1073,{'at':_0x22566d,'rows':_0x487880-_0x22566d+0x1});}),_0x1827bd[_0x527a('0x1')][_0x527a('0x23')](_0x527a('0x81'),_0x527a('0x86'),'discard',_0x5ba5ce=>{const _0x2b5c86=_0x5ba5ce[_0x527a('0x5e')](_0x101b76=>_0x101b76[_0x527a('0x3a')]()),_0x4a250a=_0x2b5c86[0x0][_0x527a('0x66')](_0x527a('0x92')),{minColumn:_0x2a7009,maxColumn:_0x54f245}=_0x3fab5e[_0x527a('0x2e')](_0x2b5c86);_0x341208[_0x527a('0x6c')](_0x4a250a,{'at':_0x2a7009,'columns':_0x54f245-_0x2a7009+0x1});});const _0x4a07a1=(_0x12df8f,_0x3a63d9)=>{if(!_0x3a63d9[_0x527a('0x57')]||!_0x3a63d9[_0x527a('0x57')][_0x527a('0x3e')](_0x527a('0x96')))return;const _0x455206=_0x3a63d9[_0x527a('0x65')][_0x527a('0x16')],_0x15e4c0=_0x1827bd['getSuggestions']()['filter'](_0x3bb916=>_0x3bb916[_0x527a('0x7')]&&_0x3bb916[_0x527a('0x65')]&&_0x3bb916[_0x527a('0x65')][_0x527a('0x16')]==_0x455206);_0x15e4c0[_0x527a('0x5f')]&&_0x3a63d9[_0x527a('0x58')]()[_0x527a('0x5f')]!=_0x15e4c0[_0x527a('0x5f')]&&_0x15e4c0[_0x527a('0x89')]((_0x53ceae,_0x1f84fe)=>(_0x53ceae[_0x527a('0x62')]=_0x1f84fe,_0x1f84fe['previous']=_0x53ceae,_0x1f84fe));};function _0xf194ef(_0x34f834,_0x21ff6c=!0x0){const {id:_0x33fe33}=_0x1827bd[_0x527a('0x91')](_0x34f834[_0x527a('0x36')]),_0x583c94=[_0x527a('0x8f'),'ck-suggestion-marker-insertion'],_0x1d28f5=_0x1827bd[_0x527a('0x53')][_0x527a('0x19')](_0x34f834[_0x527a('0x36')]);return _0x1d28f5&&_0x583c94[_0x527a('0x8a')](_0x527a('0x47')),{'classes':_0x583c94,'attributes':{'data-suggestion':_0x33fe33},'priority':_0x1d28f5&&_0x21ff6c?0xbc2:0xbb8};}_0x1827bd['on']('suggestionLoaded',_0x4a07a1,{'priority':_0x527a('0x1f')}),_0x1827bd['on'](_0x527a('0x5d'),_0x4a07a1,{'priority':_0x527a('0x1f')}),_0x218d5f['model']['document'][_0x527a('0x8d')](()=>{let _0x59fc85=!0x1;const _0x3eb85b=Array[_0x527a('0x27')](_0x218d5f[_0x527a('0x4d')][_0x527a('0x75')][_0x527a('0x2')][_0x527a('0x4b')]());for(const {name:_0x4958ad,data:_0x455542}of _0x3eb85b){const {group:_0x1bb835,type:_0x4d8aea,id:_0x1bff1e}=_0x1827bd[_0x527a('0x91')](_0x4958ad);if(_0x527a('0x84')!=_0x1bb835||_0x527a('0x28')!=_0x4d8aea||_0x455542['oldRange'])continue;if(!_0x1827bd['hasSuggestion'](_0x1bff1e))continue;const _0x766c6c=_0x1827bd['getSuggestion'](_0x1bff1e)[_0x527a('0x63')](),_0x567d6f=_0x218d5f['plugins'][_0x527a('0x97')](_0x527a('0x80'))['me'];for(const _0x18c679 of _0x1827bd[_0x527a('0x45')]()){if(!_0x18c679[_0x527a('0x7')]||_0x18c679['author']!=_0x567d6f)continue;if('formatBlock'!=_0x18c679['type']||'tablePasteCell'!=_0x18c679['subType'])continue;if(_0x18c679[_0x527a('0x63')]()[_0x527a('0x13')](_0xf77aba=>_0x766c6c[_0x527a('0x43')](_0x5201e8=>_0x5201e8[_0x527a('0x7f')](_0xf77aba,!0x0))))for(const _0x37a459 of _0x18c679['getAllAdjacentSuggestions']())_0x37a459[_0x527a('0x7')]&&(_0x37a459[_0x527a('0x26')](),_0x59fc85=!0x0);}}return _0x59fc85;}),_0x218d5f['model'][_0x527a('0x75')][_0x527a('0x8d')](_0x5ed590=>{const _0x405180=_0x218d5f[_0x527a('0x70')]['get'](_0x527a('0x46'));if(!_0x405180||!_0x405180['_createdBatches'][_0x527a('0x74')](_0x5ed590[_0x527a('0x37')]))return!0x1;let _0x22a1b2=!0x1;const _0x2b962e=_0x218d5f[_0x527a('0x8b')][_0x527a('0x97')](_0x527a('0x80'))['me'],_0x6a81d3=_0x218d5f[_0x527a('0x4d')][_0x527a('0x75')]['differ'][_0x527a('0xc')](),_0x1be199=Array[_0x527a('0x27')](_0x218d5f[_0x527a('0x4d')][_0x527a('0x75')][_0x527a('0x2')][_0x527a('0x4b')]())[_0x527a('0x49')](({name:_0x3573b4,data:_0x478458})=>{const {group:_0x4f1073,subType:_0x2ce7f2,authorId:_0xc29cf5}=_0x1827bd['_splitMarkerName'](_0x3573b4);return'suggestion'==_0x4f1073&&_0x527a('0x96')==_0x2ce7f2&&_0xc29cf5==_0x2b962e['id']&&!_0x478458[_0x527a('0x11')];});for(const _0x2aa8e4 of _0x6a81d3){if(_0x527a('0x83')!=_0x2aa8e4[_0x527a('0xd')]||_0x527a('0x79')!=_0x2aa8e4[_0x527a('0xb')]||0x1!=_0x2aa8e4['length'])continue;const _0x6cb9da=_0x5ed590['createRange'](_0x2aa8e4[_0x527a('0x30')],_0x2aa8e4[_0x527a('0x30')]['getShiftedBy'](0x1));if(!_0x1be199[_0x527a('0x10')](({data:_0x28e5b5})=>_0x28e5b5[_0x527a('0x69')][_0x527a('0x9c')](_0x6cb9da)))for(const {name:_0x333ca0,data:_0x4f0b0b}of _0x1be199)if(_0x6cb9da['containsRange'](_0x4f0b0b[_0x527a('0x69')])){_0x5ed590['updateMarker'](_0x333ca0,{'range':_0x6cb9da}),_0x22a1b2=!0x0;break;}}return _0x22a1b2;}),_0x218d5f['model'][_0x527a('0x75')]['registerPostFixer'](_0x4b27a9=>{let _0x56aaf6=!0x1;const _0x1028ed=_0x218d5f[_0x527a('0x8b')][_0x527a('0x97')](_0x527a('0x80'))['me'],_0xb75aff=_0x1827bd[_0x527a('0x45')]()[_0x527a('0x49')](_0x113121=>_0x113121[_0x527a('0x7')]&&_0x113121[_0x527a('0x7b')]==_0x1028ed),_0xd745ed=new Set(),_0x3766fa=new Set();for(const _0x40fd07 of _0xb75aff)if('tablePaste'==_0x40fd07['subType'])for(const _0x15c26e of _0x40fd07[_0x527a('0x87')]()){const _0x3d73b0=_0x15c26e[_0x527a('0xa')]()[_0x527a('0x3a')]();if(_0x3d73b0){if(_0x3d73b0['is'](_0x527a('0x5a'),_0x527a('0x79'))&&ce(_0x3d73b0)){_0x40fd07[_0x527a('0x6f')](_0x15c26e[_0x527a('0xb')]),_0xd745ed['add'](_0x3d73b0),_0x56aaf6=!0x0;const _0x21e118=_0x3d73b0[_0x527a('0x67')],_0x207074=_0x3d73b0[_0x527a('0x6')],_0x42fa96=_0x21e118&&_0x21e118['is'](_0x527a('0x5a'),_0x527a('0x79')),_0x1d5ff4=_0x207074&&_0x207074['is'](_0x527a('0x5a'),_0x527a('0x79'));_0x42fa96&&!_0xd745ed[_0x527a('0x74')](_0x21e118)&&_0x3766fa['add'](_0x21e118),_0x1d5ff4&&!_0xd745ed['has'](_0x207074)&&_0x3766fa['add'](_0x207074);}else _0x3d73b0['is'](_0x527a('0x5a'),_0x527a('0x5b'))&&_0x3d73b0[_0x527a('0x40')]&&(_0x40fd07[_0x527a('0x6f')](_0x15c26e[_0x527a('0xb')]),_0x56aaf6=!0x0);}}else{if('tablePasteCell'==_0x40fd07[_0x527a('0x57')]){if(!_0x40fd07[_0x527a('0x65')]||!_0x40fd07['attributes']['tablePasteChainId'])continue;const _0x268281=_0x40fd07[_0x527a('0x65')][_0x527a('0x39')];if(_0x268281&&Object[_0x527a('0x82')](_0x268281)[_0x527a('0x5f')])continue;const _0x4eb1a6=_0x40fd07[_0x527a('0x65')][_0x527a('0x16')];let _0x3049fd=!0x0,_0x5872fd=!0x0;for(const _0x155136 of _0xb75aff)if(_0x155136['subType']&&_0x155136[_0x527a('0x57')]['startsWith']('tablePaste')){if(!_0x155136['attributes'][_0x527a('0x16')]){_0x5872fd=!0x1;break;}if(_0x155136['id']!=_0x40fd07['id']&&_0x155136[_0x527a('0x65')]['tablePasteChainId']==_0x4eb1a6){_0x3049fd=!0x1;break;}}_0x5872fd&&_0x3049fd&&(_0x40fd07[_0x527a('0x3c')](),_0x56aaf6=!0x0);}}for(const _0x1c561f of _0xd745ed)_0x4b27a9['remove'](_0x1c561f);for(const _0x31bf59 of _0x3766fa)_0x4b27a9[_0x527a('0x54')](_0x31bf59);return _0x56aaf6;}),_0x218d5f[_0x527a('0x6a')][_0x527a('0x93')](_0x527a('0x4e'))[_0x527a('0x35')]({'model':_0x527a('0x94'),'view':(_0x2b5fb7,_0x155631)=>_0xf194ef(_0x2b5fb7),'converterPriority':'high'}),_0x218d5f[_0x527a('0x6a')][_0x527a('0x93')](_0x527a('0x21'))[_0x527a('0x35')]({'model':_0x527a('0x94'),'view':(_0x4b9a0e,_0x23e33d)=>_0x23e33d['options'][_0x527a('0x2c')]?_0xf194ef(_0x4b9a0e,!0x1):null,'converterPriority':_0x527a('0x1f')});const _0x371f4a=_0x218d5f[_0x527a('0x4')][_0x527a('0x5c')];this[_0x527a('0x32')](_0x371f4a[_0x527a('0x75')],_0x527a('0x24'),(_0x3f954a,_0x4fcb5d)=>{const _0x462ef6=[];for(const _0x5424ce of _0x371f4a[_0x527a('0x25')](_0x4fcb5d[_0x527a('0x90')])['getItems']())_0x5424ce['is'](_0x527a('0x5a'),_0x527a('0x61'))&&_0x462ef6[_0x527a('0x8a')](_0x5424ce);_0x371f4a[_0x527a('0x7e')](_0x17fe8d=>{for(const _0x5d7c8b of _0x462ef6)_0x17fe8d['move'](_0x17fe8d['createRangeIn'](_0x5d7c8b),_0x17fe8d[_0x527a('0x3')](_0x5d7c8b)),_0x17fe8d[_0x527a('0x73')](_0x5d7c8b);});});}}function ce(_0x38836d){if(_0x38836d[_0x527a('0x40')])return!0x0;const _0x45ed4d=_0x38836d['getChild'](0x0);return _0x45ed4d['is'](_0x527a('0x5a'),_0x527a('0x5b'))&&_0x45ed4d['isEmpty'];}function fe(_0x430300,_0x5cd49d={},_0x34fcf2){for(const {isAnchor:_0x3c4bab,cellHeight:_0x227717,cellWidth:_0x3d1396}of _0x34fcf2[_0x527a('0x68')](_0x430300,{'includeAllSlots':!0x0,..._0x5cd49d}))if(!_0x3c4bab||0x1!=_0x227717||0x1!=_0x3d1396)return!0x1;return!0x0;}
|
|
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;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a36=['get','document','_suggestionFactory','model','enableCommand','getContainedElement','resizeTable','getSuggestions','columnWidths','markBlockFormat','editor','getTableColumnsWidths','TableColumnResizeEditing','formatGroupId','plugins','accept','afterInit','bind','TrackChangesEditing','registerCustomCallback','has','getSelectedElement','data','commandParams','getSuggestionCallback','formatBlock','getColumnGroupElement','registerDescriptionCallback','tableWidth','discard','*Format:*\x20resize\x20table','handleResizeTableWidthCommand'];(function(_0x367acc,_0x4a36b4){const _0xd423d0=function(_0x399c7d){while(--_0x399c7d){_0x367acc['push'](_0x367acc['shift']());}};_0xd423d0(++_0x4a36b4);}(_0x4a36,0x149));const _0xd423=function(_0x367acc,_0x4a36b4){_0x367acc=_0x367acc-0x0;let _0xd423d0=_0x4a36[_0x367acc];return _0xd423d0;};import{Plugin as _0x56d04b}from'ckeditor5/src/core';import{getTranslation as _0x1fad54}from'../utils/common-translations';export default class wt extends _0x56d04b{[_0xd423('0x7')](){if(!this[_0xd423('0x1')][_0xd423('0x5')][_0xd423('0xb')](_0xd423('0x3')))return;const _0x30013b=this['editor'][_0xd423('0x5')][_0xd423('0x17')](_0xd423('0x9'));_0x30013b[_0xd423('0x1b')]('resizeTableWidth',this[_0xd423('0x16')][_0xd423('0x8')](this)),_0x30013b['enableCommand']('resizeColumnWidths',this[_0xd423('0x16')][_0xd423('0x8')](this)),_0x30013b[_0xd423('0x19')][_0xd423('0xa')](_0xd423('0x10'),_0xd423('0x1d'),_0xd423('0x6'),_0x30013b[_0xd423('0x19')][_0xd423('0xf')](_0xd423('0x10'),null,'discard')),_0x30013b['_suggestionFactory'][_0xd423('0xa')]('formatBlock',_0xd423('0x1d'),_0xd423('0x14'),_0x30013b['_suggestionFactory']['getSuggestionCallback'](_0xd423('0x10'),null,'accept')),_0x30013b['_descriptionFactory'][_0xd423('0x12')](this['handleSuggestionDescription'][_0xd423('0x8')](this));}['handleResizeTableWidthCommand'](_0x4f3e83,_0x51aafa){const _0x4084c4=this[_0xd423('0x1')][_0xd423('0x5')][_0xd423('0x17')]('TrackChangesEditing'),_0x2cd221=this[_0xd423('0x1')][_0xd423('0x5')][_0xd423('0x17')]('TableColumnResizeEditing'),_0x2d5fda=_0x51aafa['table']||this[_0xd423('0x1')][_0xd423('0x1a')][_0xd423('0x18')]['selection'][_0xd423('0xc')]();this['editor'][_0xd423('0x1a')]['change'](()=>{const _0x271a47=_0x2cd221[_0xd423('0x11')](_0x2d5fda);let _0x5c794f=_0x271a47?_0x2cd221[_0xd423('0x2')](_0x271a47):null,_0x5c6c06=_0x2d5fda['getAttribute'](_0xd423('0x13'))||null;const _0x1ccd90=_0x51aafa[_0xd423('0x13')]||_0x5c6c06,_0x55538c=_0x51aafa[_0xd423('0x1f')]||_0x5c794f,_0x197ab3=this[_0xd423('0x1')][_0xd423('0x5')][_0xd423('0x17')]('Users')['me'];for(const _0x346544 of _0x4084c4[_0xd423('0x1e')]()){const _0x5e25e2=_0x346544[_0xd423('0x1c')]();if('resizeTable'===_0x346544['subType']&&_0x5e25e2===_0x2d5fda){_0x346544['author']!==_0x197ab3&&_0x346544[_0xd423('0x14')]();const _0x4c0c23=_0x346544[_0xd423('0xd')][_0xd423('0xe')];_0x5c6c06=_0x4c0c23[0x0][_0xd423('0x13')],_0x5c794f=_0x4c0c23[0x0]['columnWidths'];break;}}_0x4f3e83({'table':_0x2d5fda,'tableWidth':_0x1ccd90,'columnWidths':_0x55538c}),_0x4084c4[_0xd423('0x0')](_0x2d5fda,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5c6c06,'columnWidths':_0x5c794f}],'formatGroupId':_0xd423('0x1d')},[],'resizeTable');});}['handleSuggestionDescription'](_0x325792){const {data:_0x1e50aa}=_0x325792;if(_0x1e50aa&&_0xd423('0x1d')===_0x1e50aa[_0xd423('0x4')]){const _0x52fbdb=_0xd423('0x15');return{'type':'format','content':_0x1fad54(this[_0xd423('0x1')]['locale'],_0x52fbdb)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d0f=['unbindElementFromMarkerName','FORMAT_REGULAR_COLUMN','TrackChangesEditing','showSuggestionHighlights','toViewElement','change','_descriptionFactory','FORMAT_REGULAR_ROW','nodeAfter','requires','last','accept','commands','locale','commandParams','markerNameToElements','parent','registerCustomCallback','createPositionAfter','afterInit','TableUtils','removeClass','highest','FORMAT_HEADER_ROW','_splitMarkerName','first','markBlockFormat','downcastDispatcher','setAttribute','_suggestionFactory','enableCommand','registerDescriptionCallback','markerName','getChild','formatBlock','getSelectionAffectedTableCells','end','has','activeMarkers','data','removeMarker:suggestion','markerRange','ck-suggestion-marker--active','_acceptFormatSuggestionCallbackFactory','createRange','getRowIndexes','childCount','writer','commandName','consume','forceValue','table','from','mapper','item','getSuggestion','start','findAncestor','addClass','cell','index','model','document','includes','data-suggestion','TableEditing','getCellLocation','value','setTableRowHeader','createPositionBefore','addMarker:suggestion','createTableWalker','getAttribute','name','headingRows','plugins','editing','get','getColumnIndexes','setTableColumnHeader','format'];(function(_0x453aa3,_0x2d0f26){const _0x5cecb4=function(_0x3079e1){while(--_0x3079e1){_0x453aa3['push'](_0x453aa3['shift']());}};_0x5cecb4(++_0x2d0f26);}(_0x2d0f,0x187));const _0x5cec=function(_0x453aa3,_0x2d0f26){_0x453aa3=_0x453aa3-0x0;let _0x5cecb4=_0x2d0f[_0x453aa3];return _0x5cecb4;};import{Plugin as _0x34e615}from'ckeditor5/src/core';import _0x7e359f from'./table';import{getTranslation as _0x294bc3}from'../utils/common-translations';export default class pt extends _0x34e615{static get[_0x5cec('0x17')](){return[_0x7e359f];}[_0x5cec('0x21')](){const _0x3d958a=this['editor'];if(!_0x3d958a[_0x5cec('0x8')][_0x5cec('0x33')](_0x5cec('0x4f')))return;const _0x3b9d6b=_0x3d958a[_0x5cec('0x1b')],_0x2f6c18=_0x3d958a[_0x5cec('0x8')]['get'](_0x5cec('0x10')),_0x180ee6=_0x3d958a[_0x5cec('0x8')][_0x5cec('0xa')](_0x5cec('0x22')),_0x52529a=_0x3d958a['plugins'][_0x5cec('0xa')](_0x7e359f);function _0x28a6f0({showActiveMarker:_0xcefbb4=!0x0,setDataAttribute:_0x3c0eec=!0x0}={}){return(_0x105505,_0x44c4e5,_0x3b6400)=>{const {type:_0x529723,id:_0x4254dc}=_0x2f6c18[_0x5cec('0x26')](_0x44c4e5[_0x5cec('0x2e')]),_0x47666d=_0x2f6c18[_0x5cec('0x45')](_0x4254dc);if(!_0x47666d[_0x5cec('0x35')]||_0x5cec('0xc')!=_0x47666d['data'][_0x5cec('0x3e')])return;if(_0x44c4e5[_0x5cec('0x44')])return void _0x105505['stop']();if(!_0x3b6400['consumable'][_0x5cec('0x3f')](_0x44c4e5[_0x5cec('0x37')],_0x105505[_0x5cec('0x6')]))return;const _0x391621=_0x44c4e5[_0x5cec('0x37')][_0x5cec('0x46')][_0x5cec('0x16')],_0x1594c7=_0x44c4e5[_0x5cec('0x37')][_0x5cec('0x32')]['nodeBefore'],_0x386f2d=_0x391621[_0x5cec('0x1e')][_0x5cec('0x1e')],{column:_0x209a9f}=_0x180ee6[_0x5cec('0x50')](_0x391621),{column:_0x4e374e}=_0x180ee6[_0x5cec('0x50')](_0x1594c7);for(let _0x931f72=_0x209a9f;_0x931f72<=_0x4e374e;_0x931f72++){const _0x268e1b=_0x180ee6[_0x5cec('0x4')](_0x386f2d,{'column':_0x931f72,'includeAllSlots':!0x1});for(const _0x148f7e of _0x268e1b){const _0x322f29=_0x148f7e[_0x5cec('0x49')],_0x366ce5=_0x3b6400[_0x5cec('0x43')][_0x5cec('0x12')](_0x322f29);_0x3b6400[_0x5cec('0x3d')][_0x5cec('0x48')]('ck-suggestion-marker-'+_0x529723,_0x366ce5),_0x3c0eec&&_0x3b6400['writer'][_0x5cec('0x2a')](_0x5cec('0x4e'),_0x4254dc,_0x366ce5),_0x3b6400[_0x5cec('0x43')]['bindElementToMarker'](_0x366ce5,_0x44c4e5[_0x5cec('0x2e')]),_0xcefbb4&&(_0x2f6c18[_0x5cec('0x34')][_0x5cec('0x4d')](_0x44c4e5[_0x5cec('0x2e')])?_0x3b6400['writer'][_0x5cec('0x48')]('ck-suggestion-marker--active',_0x366ce5):_0x3b6400['writer'][_0x5cec('0x23')](_0x5cec('0x38'),_0x366ce5));}}};}_0x2f6c18[_0x5cec('0x2c')](_0x5cec('0x1'),(_0x24502f,_0x42f01c)=>{const _0x265afd=_0x180ee6[_0x5cec('0x31')](_0x3d958a[_0x5cec('0x4b')][_0x5cec('0x4c')]['selection']),_0x48d0bb=_0x180ee6[_0x5cec('0x3b')](_0x265afd),_0x16c067=_0x265afd[0x0]['findAncestor'](_0x5cec('0x41')),_0x99533f=_0x16c067[_0x5cec('0x5')](_0x5cec('0x7'))||0x0,_0x24935b=_0x42f01c&&null!==_0x42f01c[_0x5cec('0x40')]?_0x42f01c[_0x5cec('0x40')]:!_0x3d958a[_0x5cec('0x1a')]['get'](_0x5cec('0x1'))[_0x5cec('0x0')],_0x3123ed=_0x24935b?_0x48d0bb[_0x5cec('0x18')]:_0x48d0bb[_0x5cec('0x27')],_0x5b9e30=_0x16c067[_0x5cec('0x2f')](_0x3123ed);let _0x286d53;if(_0x24935b){const _0x1a0184=_0x16c067[_0x5cec('0x2f')](_0x99533f);if(_0x5b9e30['index']<_0x1a0184[_0x5cec('0x4a')])return;_0x286d53=_0x3d958a[_0x5cec('0x4b')][_0x5cec('0x3a')](_0x3d958a[_0x5cec('0x4b')][_0x5cec('0x2')](_0x1a0184[_0x5cec('0x2f')](0x0)),_0x3d958a[_0x5cec('0x4b')][_0x5cec('0x20')](_0x5b9e30[_0x5cec('0x2f')](_0x5b9e30[_0x5cec('0x3c')]-0x1)));}else{const _0x8c92d1=_0x16c067['getChild'](_0x99533f-0x1);if(!_0x8c92d1)return;_0x286d53=_0x3d958a[_0x5cec('0x4b')][_0x5cec('0x3a')](_0x3d958a[_0x5cec('0x4b')]['createPositionBefore'](_0x5b9e30[_0x5cec('0x2f')](0x0)),_0x3d958a[_0x5cec('0x4b')]['createPositionAfter'](_0x8c92d1['getChild'](_0x8c92d1[_0x5cec('0x3c')]-0x1)));}_0x3d958a[_0x5cec('0x4b')][_0x5cec('0x13')](()=>{_0x2f6c18[_0x5cec('0x28')](_0x286d53,{'commandName':_0x5cec('0x1'),'commandParams':[{'forceValue':_0x24935b}]},[],_0x5cec('0x1'));});}),_0x2f6c18[_0x5cec('0x2c')](_0x5cec('0xc'),(_0x2300ff,_0x6f4883)=>{const _0x10f758=_0x3d958a['plugins'][_0x5cec('0xa')]('TableUtils'),_0x1e9939=_0x10f758[_0x5cec('0x31')](_0x3d958a[_0x5cec('0x4b')]['document']['selection']),_0x599e39=_0x10f758[_0x5cec('0xb')](_0x1e9939),_0x1c46ef=_0x1e9939[0x0][_0x5cec('0x47')](_0x5cec('0x41')),_0x42656b=_0x1c46ef['getAttribute']('headingColumns')||0x0,_0x2f6e08=_0x6f4883&&null!==_0x6f4883[_0x5cec('0x40')]?_0x6f4883[_0x5cec('0x40')]:!_0x3d958a[_0x5cec('0x1a')][_0x5cec('0xa')]('setTableColumnHeader')[_0x5cec('0x0')];let _0x12e586;const _0x3ba118=_0x1c46ef['getChild'](0x0),_0x5cd806=_0x2f6e08?_0x599e39[_0x5cec('0x18')]:_0x599e39[_0x5cec('0x27')],_0x51877d=_0x10f758[_0x5cec('0x4')](_0x1c46ef,{'startRow':0x0,'column':_0x5cd806,'includeAllSlots':!0x1}),_0x41557e=Array[_0x5cec('0x42')](_0x51877d)[0x0][_0x5cec('0x49')];if(_0x2f6e08){const _0x1e0459=_0x3ba118[_0x5cec('0x2f')](_0x42656b);if(_0x41557e['isBefore'](_0x1e0459))return;_0x12e586=_0x3d958a[_0x5cec('0x4b')][_0x5cec('0x3a')](_0x3d958a[_0x5cec('0x4b')][_0x5cec('0x2')](_0x1e0459),_0x3d958a['model'][_0x5cec('0x20')](_0x41557e));}else{const _0x1369c8=_0x3ba118[_0x5cec('0x2f')](_0x42656b-0x1);if(!_0x1369c8)return;_0x12e586=_0x3d958a[_0x5cec('0x4b')][_0x5cec('0x3a')](_0x3d958a[_0x5cec('0x4b')]['createPositionBefore'](_0x41557e),_0x3d958a['model'][_0x5cec('0x20')](_0x1369c8));}_0x3d958a['model']['change'](()=>{_0x2f6c18[_0x5cec('0x28')](_0x12e586,{'commandName':_0x5cec('0xc'),'commandParams':[{'forceValue':_0x2f6e08}]},[],_0x5cec('0xc'));});}),_0x3d958a[_0x5cec('0x9')][_0x5cec('0x29')]['on'](_0x5cec('0x3'),_0x28a6f0(),{'priority':_0x5cec('0x24')}),_0x3d958a[_0x5cec('0x35')][_0x5cec('0x29')]['on']('addMarker:suggestion',(_0x54f0b2,_0x1c0736,_0xc6d5a2)=>{_0xc6d5a2['options'][_0x5cec('0x11')]&&_0x28a6f0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x54f0b2,_0x1c0736,_0xc6d5a2);},{'priority':_0x5cec('0x24')}),_0x3d958a[_0x5cec('0x9')][_0x5cec('0x29')]['on'](_0x5cec('0x36'),(_0x39d57d,_0xa476c5,_0x391168)=>{const {type:_0x560d08,id:_0x5b436c}=_0x2f6c18[_0x5cec('0x26')](_0xa476c5['markerName']),_0x293258=_0x2f6c18['getSuggestion'](_0x5b436c);if(!_0x293258[_0x5cec('0x35')]||_0x5cec('0xc')!=_0x293258[_0x5cec('0x35')]['commandName'])return;const _0x4456a1=_0x391168[_0x5cec('0x43')][_0x5cec('0x1d')](_0xa476c5[_0x5cec('0x2e')]);if(_0x4456a1)for(const _0x4495b4 of _0x4456a1)_0x391168[_0x5cec('0x3d')][_0x5cec('0x23')]('ck-suggestion-marker-'+_0x560d08,_0x4495b4),_0x391168[_0x5cec('0x3d')][_0x5cec('0x23')](_0x5cec('0x38'),_0x4495b4),_0x391168['writer']['removeAttribute'](_0x5cec('0x4e'),_0x4495b4),_0x391168['mapper'][_0x5cec('0xe')](_0x4495b4,_0xa476c5[_0x5cec('0x2e')]);},{'priority':'highest'}),_0x2f6c18[_0x5cec('0x14')][_0x5cec('0x2d')](_0x23ead5=>{const {data:_0x443f2f}=_0x23ead5;if(_0x443f2f){if('setTableRowHeader'==_0x443f2f[_0x5cec('0x3e')]){const _0x7e3e03=_0x443f2f[_0x5cec('0x1c')][0x0][_0x5cec('0x40')];return _0x2da1cf(_0x294bc3(_0x3b9d6b,_0x7e3e03?_0x5cec('0x25'):_0x5cec('0x15')));}if(_0x5cec('0xc')==_0x443f2f[_0x5cec('0x3e')]){const _0x32da48=_0x443f2f[_0x5cec('0x1c')][0x0][_0x5cec('0x40')];return _0x2da1cf(_0x294bc3(_0x3b9d6b,_0x32da48?'FORMAT_HEADER_COLUMN':_0x5cec('0xf')));}}function _0x2da1cf(_0x305e1a){return{'type':_0x5cec('0xd'),'content':_0x294bc3(_0x3b9d6b,'*Format:*\x20%0',_0x305e1a)};}});const _0x1a886e=_0x52529a[_0x5cec('0x39')]();_0x2f6c18[_0x5cec('0x2b')][_0x5cec('0x1f')](_0x5cec('0x30'),_0x5cec('0x1'),_0x5cec('0x19'),_0x1a886e),_0x2f6c18[_0x5cec('0x2b')][_0x5cec('0x1f')](_0x5cec('0x30'),_0x5cec('0xc'),_0x5cec('0x19'),_0x1a886e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c70=['createRangeOn','getRanges','locale','_areSelectedCellsMergable','isInContent','selection','stop','find','execute','return','low','model','tableCell','isEnabled','add','requires','direction','has','enableCommand','_areMergableCells','commands','_isForcedDefaultExecutionBlock','accept','registerCustomCallback','TableUtils','subType','*Merge\x20cells*','change','findAncestor','splitTableCellHorizontally','createTableWalker','highest','_suggestionFactory','filter','root','markMultiRangeBlockFormat','commandName','*Split\x20cell:*\x20vertically','*Split\x20cell:*\x20horizontally','registerDescriptionCallback','push','getSelectionAffectedTableCells','_acceptFormatSuggestionCallbackFactory','editor','cell','getAncestors','length','element','getSuggestions','value','mergeTableCellDown','format','document','_descriptionFactory','TableEditing','map','formatBlock','get','size','rootName','getFirstPosition','TrackChangesEditing','setSelection','plugins','type','mergeTableCellUp','forceDefaultExecution','horizontally','mergeTableCellLeft','from','mergeTableCellRight','trackChanges','splitTableCellVertically','author','afterInit','mergeTableCells','detach','containsRange','$graveyard'];(function(_0x438864,_0x2c70ae){const _0x2d2d99=function(_0x5bab4d){while(--_0x5bab4d){_0x438864['push'](_0x438864['shift']());}};_0x2d2d99(++_0x2c70ae);}(_0x2c70,0x17f));const _0x2d2d=function(_0x438864,_0x2c70ae){_0x438864=_0x438864-0x0;let _0x2d2d99=_0x2c70[_0x438864];return _0x2d2d99;};import{Plugin as _0x5c8447}from'ckeditor5/src/core';import _0x5340e9 from'./table';import{LiveRange as _0x32e8ac}from'ckeditor5/src/engine';import{getTranslation as _0x234375}from'../utils/common-translations';export default class dt extends _0x5c8447{static get[_0x2d2d('0x1b')](){return[_0x5340e9];}[_0x2d2d('0x7')](){const _0x3d827f=this[_0x2d2d('0x37')],_0x19d168=_0x3d827f[_0x2d2d('0x17')][_0x2d2d('0x40')]['selection'],_0x180fe1=_0x3d827f[_0x2d2d('0xe')];if(!_0x3d827f[_0x2d2d('0x4b')][_0x2d2d('0x1d')](_0x2d2d('0x42')))return;const _0x3e39cf=_0x3d827f['plugins'][_0x2d2d('0x45')]('TrackChangesEditing'),_0x372629=_0x3d827f[_0x2d2d('0x4b')][_0x2d2d('0x45')](_0x2d2d('0x24')),_0x34d128=_0x3d827f[_0x2d2d('0x4b')][_0x2d2d('0x45')](_0x5340e9);_0x34d128['_tablePostFixingSubtypes'][_0x2d2d('0x34')](_0x2d2d('0x8')),_0x3e39cf[_0x2d2d('0x1e')](_0x2d2d('0x8'),()=>{const _0x455409=_0x372629[_0x2d2d('0x35')](_0x3d827f[_0x2d2d('0x17')][_0x2d2d('0x40')][_0x2d2d('0x11')]);_0x3d827f[_0x2d2d('0x17')][_0x2d2d('0x27')](()=>{_0x3e39cf[_0x2d2d('0x2f')](_0x455409,{'commandName':_0x2d2d('0x8'),'commandParams':[]},[],_0x2d2d('0x8'));});}),_0x3d827f[_0x2d2d('0x20')][_0x2d2d('0x45')]('mergeTableCells')['on'](_0x2d2d('0x14'),(_0xab9af7,_0x2e2e6b)=>{_0x3d827f[_0x2d2d('0x20')][_0x2d2d('0x45')](_0x2d2d('0x4'))['value']&&(_0x2e2e6b[_0x2d2d('0x3a')]>0x0&&_0x2e2e6b[_0x2e2e6b[_0x2d2d('0x3a')]-0x1]&&_0x2e2e6b[_0x2e2e6b[_0x2d2d('0x3a')]-0x1][_0x2d2d('0x4e')]||_0x3e39cf[_0x2d2d('0x21')]||this[_0x2d2d('0xf')]()||_0xab9af7[_0x2d2d('0x12')]());},{'priority':_0x2d2d('0x2b')});for(const _0x1de934 of[_0x2d2d('0x4d'),_0x2d2d('0x3'),_0x2d2d('0x3e'),'mergeTableCellLeft']){const _0x5f1aff=_0x3d827f['commands']['get'](_0x1de934);_0x3e39cf['enableCommand'](_0x1de934,()=>{const _0x52546d=_0x3d827f['model']['document']['selection']['getFirstPosition']()[_0x2d2d('0x39')]()[_0x2d2d('0x13')](_0x275e90=>_0x275e90['is'](_0x2d2d('0x3b'),_0x2d2d('0x18'))),_0x5a2ac5=_0x5f1aff['value'];_0x3d827f['model']['change'](()=>{_0x3e39cf[_0x2d2d('0x2f')]([_0x52546d,_0x5a2ac5],{'commandName':_0x2d2d('0x8'),'commandParams':[]},[],_0x2d2d('0x8'));});});}for(const _0x438911 of[_0x2d2d('0x5'),_0x2d2d('0x29')]){const _0x5a59bc=_0x3d827f[_0x2d2d('0x20')]['get'](_0x438911);_0x3e39cf[_0x2d2d('0x1e')](_0x438911,()=>{const _0x15b128=_0x372629[_0x2d2d('0x35')](_0x3d827f['model']['document']['selection'])[0x0],_0x19ee8d=_0x15b128[_0x2d2d('0x28')]('table'),{column:_0x231ab1,row:_0x25dd69}=_0x372629['getCellLocation'](_0x15b128);let _0x4c9077=[];if(_0x2d2d('0x0')==_0x5a59bc[_0x2d2d('0x1c')]){const _0x27fad2=_0x372629['createTableWalker'](_0x19ee8d,{'startRow':_0x25dd69,'endRow':_0x25dd69,'includeAllSlots':!0x0});_0x4c9077=Array[_0x2d2d('0x2')](_0x27fad2)[_0x2d2d('0x43')](_0x279278=>_0x279278[_0x2d2d('0x38')]);}else{const _0x322756=_0x372629[_0x2d2d('0x2a')](_0x19ee8d,{'column':_0x231ab1,'includeAllSlots':!0x0});_0x4c9077=Array[_0x2d2d('0x2')](_0x322756)[_0x2d2d('0x43')](_0x369a53=>_0x369a53[_0x2d2d('0x38')]);}_0x3d827f[_0x2d2d('0x17')][_0x2d2d('0x27')](_0x341939=>{_0x3e39cf['markBlockFormat'](_0x341939[_0x2d2d('0xc')](_0x15b128),{'commandName':_0x438911,'commandParams':[]},_0x4c9077,_0x438911);});});}_0x3e39cf['_descriptionFactory'][_0x2d2d('0x33')](_0x1cc1e5=>{const {data:_0x4530b2}=_0x1cc1e5;if(_0x4530b2)return _0x2d2d('0x8')==_0x4530b2[_0x2d2d('0x30')]?{'type':_0x2d2d('0x3f'),'content':_0x234375(_0x180fe1,_0x2d2d('0x26'))}:void 0x0;}),_0x3e39cf[_0x2d2d('0x41')][_0x2d2d('0x33')](_0x107c4f=>{const {data:_0x308758}=_0x107c4f;if(_0x308758)return _0x2d2d('0x5')==_0x308758[_0x2d2d('0x30')]?{'type':_0x2d2d('0x3f'),'content':_0x234375(_0x180fe1,_0x2d2d('0x31'))}:_0x2d2d('0x29')==_0x308758['commandName']?{'type':_0x2d2d('0x3f'),'content':_0x234375(_0x180fe1,_0x2d2d('0x32'))}:void 0x0;});const _0x11fa0c=_0x34d128[_0x2d2d('0x36')]();for(const _0x586781 of['mergeTableCellUp',_0x2d2d('0x3'),_0x2d2d('0x3e'),_0x2d2d('0x1')])_0x3e39cf[_0x2d2d('0x2c')][_0x2d2d('0x23')](_0x2d2d('0x44'),_0x586781,'accept',_0x11fa0c);for(const _0x39c403 of['splitTableCellVertically',_0x2d2d('0x29')])_0x3e39cf[_0x2d2d('0x2c')][_0x2d2d('0x23')](_0x2d2d('0x44'),_0x39c403,_0x2d2d('0x22'),_0x11fa0c);_0x3e39cf[_0x2d2d('0x2c')][_0x2d2d('0x23')]('formatBlock',_0x2d2d('0x8'),_0x2d2d('0x22'),_0x191ff8=>{_0x3d827f[_0x2d2d('0x17')][_0x2d2d('0x27')](_0x5eca02=>{const _0x217849=Array['from'](_0x19d168[_0x2d2d('0xd')]())[_0x2d2d('0x43')](_0x7e5067=>_0x32e8ac['fromRange'](_0x7e5067));_0x5eca02[_0x2d2d('0x4a')](_0x191ff8),_0x3d827f['commands']['get']('mergeTableCells')['refresh'](),_0x3d827f[_0x2d2d('0x14')](_0x2d2d('0x8'),{'forceDefaultExecution':!0x0});const _0x1f748a=_0x217849[_0x2d2d('0x2d')](_0x5de149=>_0x2d2d('0xb')!=_0x5de149[_0x2d2d('0x2e')][_0x2d2d('0x47')]);_0x1f748a[_0x2d2d('0x3a')]>0x0&&_0x5eca02[_0x2d2d('0x4a')](_0x1f748a);for(const _0x59cc5b of _0x217849)_0x59cc5b[_0x2d2d('0x9')]();});});for(const _0x14121e of[_0x2d2d('0x4d'),_0x2d2d('0x3e'),_0x2d2d('0x1'),_0x2d2d('0x3')]){const _0x48d08b=_0x3d827f['commands'][_0x2d2d('0x45')](_0x14121e);_0x48d08b['on']('set:isEnabled',(_0x4a4564,_0x1f1534,_0x34fc49)=>{if(_0x34fc49){const _0x583f78=_0x3d827f['model'][_0x2d2d('0x40')][_0x2d2d('0x11')][_0x2d2d('0x48')]()[_0x2d2d('0x39')]()['find'](_0x2aa65c=>_0x2aa65c['is'](_0x2d2d('0x3b'),'tableCell'));this['_areMergableCells'](_0x48d08b[_0x2d2d('0x3d')],_0x583f78)||(_0x4a4564[_0x2d2d('0x15')]=!0x1,_0x4a4564[_0x2d2d('0x12')]());}},{'priority':_0x2d2d('0x16')});}}['_areSelectedCellsMergable'](){const _0xfa03f4=this[_0x2d2d('0x37')][_0x2d2d('0x20')][_0x2d2d('0x45')]('mergeTableCells'),_0x1eb7b5=this[_0x2d2d('0x37')][_0x2d2d('0x4b')][_0x2d2d('0x45')](_0x2d2d('0x24'));if(!_0xfa03f4[_0x2d2d('0x19')])return!0x1;const _0xcbd5de=_0x1eb7b5[_0x2d2d('0x35')](this['editor'][_0x2d2d('0x17')][_0x2d2d('0x40')][_0x2d2d('0x11')]);for(const _0x25962f of _0xcbd5de)for(const _0x49b6e0 of _0xcbd5de)if(_0x25962f!=_0x49b6e0&&!this[_0x2d2d('0x1f')](_0x25962f,_0x49b6e0))return!0x1;return!0x0;}['_areMergableCells'](_0x553a85,_0x4fcf07){const _0x5aae5f=this[_0x2d2d('0x37')][_0x2d2d('0x4b')]['get'](_0x2d2d('0x49')),_0x33644b=this[_0x2d2d('0x37')][_0x2d2d('0x17')][_0x2d2d('0xc')](_0x553a85),_0x128543=this[_0x2d2d('0x37')][_0x2d2d('0x17')][_0x2d2d('0xc')](_0x4fcf07),_0x4fd632=new Set(),_0x27f5d0=new Set();for(const _0x266ab1 of _0x5aae5f[_0x2d2d('0x3c')]())if(('insertion'==_0x266ab1[_0x2d2d('0x4c')]||'deletion'==_0x266ab1[_0x2d2d('0x4c')]||'mergeTableCells'==_0x266ab1[_0x2d2d('0x25')])&&_0x266ab1[_0x2d2d('0x10')])for(const _0x3e5bb1 of _0x266ab1[_0x2d2d('0xd')]())_0x3e5bb1[_0x2d2d('0xa')](_0x33644b,!0x0)&&_0x4fd632['add'](_0x266ab1['type']+':'+_0x266ab1[_0x2d2d('0x6')]['id']),_0x3e5bb1['containsRange'](_0x128543,!0x0)&&_0x27f5d0[_0x2d2d('0x1a')](_0x266ab1['type']+':'+_0x266ab1[_0x2d2d('0x6')]['id']);if(_0x4fd632[_0x2d2d('0x46')]!=_0x27f5d0[_0x2d2d('0x46')])return!0x1;for(const _0x33e31c of _0x4fd632)if(!_0x27f5d0[_0x2d2d('0x1d')](_0x33e31c))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29aa=['tableOfContents','ELEMENT_TABLE_OF_CONTENTS','TrackChangesEditing','commands','plugins','enableCommand','editor','locale','_descriptionFactory','afterInit','insertTableOfContents','get'];(function(_0x1c3fa7,_0x29aac0){const _0x47263a=function(_0x913fc5){while(--_0x913fc5){_0x1c3fa7['push'](_0x1c3fa7['shift']());}};_0x47263a(++_0x29aac0);}(_0x29aa,0xda));const _0x4726=function(_0x1c3fa7,_0x29aac0){_0x1c3fa7=_0x1c3fa7-0x0;let _0x47263a=_0x29aa[_0x1c3fa7];return _0x47263a;};import{Plugin as _0xef6585}from'ckeditor5/src/core';import{getTranslation as _0x76623a}from'../utils/common-translations';export default class bt extends _0xef6585{[_0x4726('0x7')](){const _0x308c93=this[_0x4726('0x4')];if(!_0x308c93[_0x4726('0x1')][_0x4726('0x9')]('insertTableOfContents'))return;_0x308c93[_0x4726('0x2')][_0x4726('0x9')](_0x4726('0x0'))[_0x4726('0x3')](_0x4726('0x8'));const _0x534f29=_0x308c93[_0x4726('0x2')][_0x4726('0x9')](_0x4726('0x0')),_0x406922=_0x308c93[_0x4726('0x5')];_0x534f29[_0x4726('0x6')]['registerElementLabel'](_0x4726('0xa'),_0x2eaa79=>_0x76623a(_0x406922,_0x4726('0xb'),_0x2eaa79));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x487d=['getAttribute','findAncestor','tableCellBorderWidth','_suggestionFactory','nodeAfter','tableCellHeight','selection','editor','getSuggestions','registerCustomCallback','tableCellWidth','tableHeight','subType','tableCellProperties','start','getSelectionAffectedTableCells','pluginName','table','handleDiscardAction','tableBackgroundColor','removeAttribute','has','*Format:*\x20change\x20table\x20cell\x20properties','tableCellBorderColor','format','tableProperties','get','tableCellBackgroundColor','handleSuggestionDescription','document','enableCommand','tableBorderColor','tableCellPadding','locale','_handlePropertyChange','commandParams','getFirstPosition','change','_descriptionFactory','discard','tableCellHorizontalAlignment','tableAlignment','registerDescriptionCallback','batch','_getSuggestion','formatBlock','tableWidth','data','setAttribute','plugins','accept','TablePropertiesEditing','getSuggestionCallback','tableCellVerticalAlignment','tableCellBorderStyle','TableCellPropertiesEditing','TrackChangesEditing','model','*Format:*\x20change\x20table\x20properties'];(function(_0x35a501,_0x487d89){const _0x3fc605=function(_0x3eacb6){while(--_0x3eacb6){_0x35a501['push'](_0x35a501['shift']());}};_0x3fc605(++_0x487d89);}(_0x487d,0x145));const _0x3fc6=function(_0x35a501,_0x487d89){_0x35a501=_0x35a501-0x0;let _0x3fc605=_0x487d[_0x35a501];return _0x3fc605;};import{Plugin as _0x265353}from'ckeditor5/src/core';import{getTranslation as _0x3bff51}from'../utils/common-translations';export default class Ct extends _0x265353{constructor(_0x19de0f){super(_0x19de0f),this[_0x3fc6('0x36')]=[_0x3fc6('0x1'),'tableBorderStyle','tableBorderWidth',_0x3fc6('0xb'),_0x3fc6('0x10'),_0x3fc6('0x28'),_0x3fc6('0x30')],this['tableCellProperties']=[_0x3fc6('0x34'),_0x3fc6('0x18'),_0x3fc6('0x1f'),_0x3fc6('0x2'),_0x3fc6('0x27'),_0x3fc6('0x22'),_0x3fc6('0x38'),_0x3fc6('0xa'),_0x3fc6('0x17')];}static get[_0x3fc6('0x2d')](){return'TrackChangesTableProperties';}['afterInit'](){const _0x39b6be=this[_0x3fc6('0x24')]['plugins'][_0x3fc6('0x37')](_0x3fc6('0x1a'));if(this[_0x3fc6('0x24')]['plugins']['has'](_0x3fc6('0x15'))){for(const _0x108ae4 of this[_0x3fc6('0x36')])_0x39b6be['enableCommand'](_0x108ae4,(_0x55de26,_0x2dd131)=>{const _0x249510=this[_0x3fc6('0x24')][_0x3fc6('0x1b')]['document']['selection'][_0x3fc6('0x6')]()[_0x3fc6('0x1e')](_0x3fc6('0x2e'));this[_0x3fc6('0x4')](_0x108ae4,[_0x249510],this['tableProperties'],'tableProperties',_0x55de26,_0x2dd131);});_0x39b6be['_suggestionFactory'][_0x3fc6('0x26')](_0x3fc6('0xf'),_0x3fc6('0x36'),_0x3fc6('0x14'),_0x39b6be[_0x3fc6('0x20')]['getSuggestionCallback'](_0x3fc6('0xf'),null,_0x3fc6('0x9'))),_0x39b6be[_0x3fc6('0x20')][_0x3fc6('0x26')](_0x3fc6('0xf'),_0x3fc6('0x36'),_0x3fc6('0x9'),(_0x4fc110,_0x355186)=>this[_0x3fc6('0x2f')](this['tableProperties'],_0x4fc110,_0x355186)),_0x39b6be['_suggestionFactory'][_0x3fc6('0x26')](_0x3fc6('0xf'),_0x3fc6('0x36'),'join',()=>!0x1);}if(this['editor'][_0x3fc6('0x13')][_0x3fc6('0x32')](_0x3fc6('0x19'))){for(const _0x452bd1 of this[_0x3fc6('0x2a')])_0x39b6be[_0x3fc6('0x0')](_0x452bd1,(_0x50c17c,_0x2837b6)=>{const _0x17db7c=this[_0x3fc6('0x24')]['plugins'][_0x3fc6('0x37')]('TableUtils')[_0x3fc6('0x2c')](this[_0x3fc6('0x24')]['model'][_0x3fc6('0x3a')][_0x3fc6('0x23')]);this[_0x3fc6('0x4')](_0x452bd1,_0x17db7c,this[_0x3fc6('0x2a')],_0x3fc6('0x2a'),_0x50c17c,_0x2837b6);});_0x39b6be[_0x3fc6('0x20')]['registerCustomCallback'](_0x3fc6('0xf'),'tableCellProperties',_0x3fc6('0x14'),_0x39b6be['_suggestionFactory'][_0x3fc6('0x16')](_0x3fc6('0xf'),null,_0x3fc6('0x9'))),_0x39b6be['_suggestionFactory'][_0x3fc6('0x26')](_0x3fc6('0xf'),'tableCellProperties',_0x3fc6('0x9'),(_0x36271c,_0x3c27f9)=>this[_0x3fc6('0x2f')](this[_0x3fc6('0x2a')],_0x36271c,_0x3c27f9)),_0x39b6be[_0x3fc6('0x20')][_0x3fc6('0x26')]('formatBlock',_0x3fc6('0x2a'),'join',()=>!0x1);}_0x39b6be[_0x3fc6('0x8')][_0x3fc6('0xc')](_0x34a1ad=>this[_0x3fc6('0x39')](_0x34a1ad));}['_handlePropertyChange'](_0x20f136,_0x5bcd1c,_0x73bf93,_0x271915,_0x3a8ec9,_0xe0b1f7){const _0x5dc985=this[_0x3fc6('0x24')][_0x3fc6('0x13')][_0x3fc6('0x37')]('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xe0b1f7[_0x3fc6('0xd')],()=>{for(const _0xbf1e8f of _0x5bcd1c){if(this[_0x3fc6('0xe')](_0xbf1e8f,_0x271915))_0x3a8ec9(_0xe0b1f7);else{const _0x2a96d8={};for(const _0x3f57a7 of _0x73bf93){const _0x3418e5=_0xbf1e8f[_0x3fc6('0x1d')](_0x3f57a7);void 0x0!==_0x3418e5&&(_0x2a96d8[_0x3f57a7]=_0x3418e5);}_0x3a8ec9(_0xe0b1f7),_0x5dc985['markBlockFormat'](_0xbf1e8f,{'commandParams':[_0x2a96d8]},[],_0x271915);}}});}[_0x3fc6('0x2f')](_0x29c15d,_0x1c886e,_0x1582b9){const _0x2db9c8=_0x1c886e[0x0][_0x3fc6('0x2b')][_0x3fc6('0x21')],_0x2927ae=_0x1582b9[_0x3fc6('0x5')][0x0];this[_0x3fc6('0x24')][_0x3fc6('0x1b')][_0x3fc6('0x7')](_0x4e9f86=>{for(const _0x4085fb of _0x29c15d)void 0x0!==_0x2927ae[_0x4085fb]?_0x4e9f86[_0x3fc6('0x12')](_0x4085fb,_0x2927ae[_0x4085fb],_0x2db9c8):_0x4e9f86[_0x3fc6('0x31')](_0x4085fb,_0x2db9c8);});}[_0x3fc6('0x39')](_0x5f2920){if(_0x5f2920[_0x3fc6('0x11')])switch(_0x5f2920[_0x3fc6('0x29')]){case _0x3fc6('0x36'):return{'type':_0x3fc6('0x35'),'content':_0x3bff51(this[_0x3fc6('0x24')][_0x3fc6('0x3')],_0x3fc6('0x1c'))};case _0x3fc6('0x2a'):return{'type':_0x3fc6('0x35'),'content':_0x3bff51(this[_0x3fc6('0x24')]['locale'],_0x3fc6('0x33'))};}}[_0x3fc6('0xe')](_0x3c7616,_0x4014a5){const _0x4635a4=this['editor'][_0x3fc6('0x13')][_0x3fc6('0x37')](_0x3fc6('0x1a'));for(const _0x489b0e of _0x4635a4[_0x3fc6('0x25')]({'skipNotAttached':!0x0})){const _0x4a8aab=_0x489b0e['getContainedElement']();if(_0x489b0e['subType']===_0x4014a5&&_0x4a8aab===_0x3c7616)return _0x489b0e;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x370b=['TrackChangesEditing','enableCommand','Template','insertTemplate','get','has','afterInit','plugins'];(function(_0x15ee94,_0x370b92){const _0x281cea=function(_0x2f6055){while(--_0x2f6055){_0x15ee94['push'](_0x15ee94['shift']());}};_0x281cea(++_0x370b92);}(_0x370b,0xc0));const _0x281c=function(_0x15ee94,_0x370b92){_0x15ee94=_0x15ee94-0x0;let _0x281cea=_0x370b[_0x15ee94];return _0x281cea;};import{Plugin as _0x3b3a35}from'ckeditor5/src/core';export default class yt extends _0x3b3a35{[_0x281c('0x6')](){const _0x52f6c3=this['editor'];_0x52f6c3['plugins'][_0x281c('0x5')](_0x281c('0x2'))&&_0x52f6c3[_0x281c('0x7')][_0x281c('0x4')](_0x281c('0x0'))[_0x281c('0x1')](_0x281c('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x556d=['newRange','title-content','registerElementLabel','element','_descriptionFactory','removeMarker','TrackChangesEditing','differ','isTouching','registerPostFixer','getChangedMarkers','ELEMENT_TITLE','forward','schema','afterInit','isCollapsed','createRange','document','get','plugins','start','updateMarker','locale','model','from','Title','end','suggestion','getNearestSelectionRange','isEqual'];(function(_0x38472e,_0x556dc0){const _0x288933=function(_0x5805c6){while(--_0x5805c6){_0x38472e['push'](_0x38472e['shift']());}};_0x288933(++_0x556dc0);}(_0x556d,0x150));const _0x2889=function(_0x38472e,_0x556dc0){_0x38472e=_0x38472e-0x0;let _0x288933=_0x556d[_0x38472e];return _0x288933;};import{Plugin as _0x14852b}from'ckeditor5/src/core';import{getTranslation as _0x5379ca}from'../utils/common-translations';export default class St extends _0x14852b{[_0x2889('0x8')](){const _0x3448d6=this['editor'];if(!_0x3448d6[_0x2889('0xd')]['has'](_0x2889('0x13')))return;const _0x2c6e19=_0x3448d6[_0x2889('0xd')][_0x2889('0xc')](_0x2889('0x0'));_0x2c6e19[_0x2889('0x1c')][_0x2889('0x1a')](_0x2889('0x19'),()=>_0x5379ca(_0x3448d6[_0x2889('0x10')],_0x2889('0x5'))),_0x3448d6[_0x2889('0x11')]['document'][_0x2889('0x3')](_0x3999ec=>{let _0x1af5a9=!0x1;const _0x967920=Array[_0x2889('0x12')](_0x3448d6['model'][_0x2889('0xb')][_0x2889('0x1')][_0x2889('0x4')]());for(const {name:_0x425daa,data:_0x1e38c2}of _0x967920){const {group:_0x7060c}=_0x2c6e19['_splitMarkerName'](_0x425daa);if(_0x2889('0x15')!==_0x7060c||!_0x1e38c2[_0x2889('0x18')])continue;const _0x306b02=_0x1e38c2[_0x2889('0x18')],_0x139d61=_0x306b02[_0x2889('0x14')]['nodeBefore'];if(!_0x139d61||!_0x139d61['is'](_0x2889('0x1b'),_0x2889('0x19')))continue;if(!_0x306b02['start'][_0x2889('0x2')](_0x306b02[_0x2889('0x14')]))continue;const _0x13d4ae=_0x3448d6['model'][_0x2889('0x7')][_0x2889('0x16')](_0x306b02['end'],_0x2889('0x6'));if(_0x13d4ae&&_0x13d4ae[_0x2889('0x9')]){const _0xe169a6=_0x3999ec[_0x2889('0xa')](_0x306b02[_0x2889('0xe')],_0x13d4ae[_0x2889('0xe')]);_0xe169a6[_0x2889('0x17')](_0x306b02)||(_0x3999ec[_0x2889('0xf')](_0x425daa,{'range':_0xe169a6}),_0x1af5a9=!0x0);}_0x1af5a9||(_0x3999ec[_0x2889('0x1d')](_0x425daa),_0x1af5a9=!0x0);}return _0x1af5a9;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x286e=['plugins','undo','get','TrackChangesEditing','editor','UndoEditing','has','enableCommand'];(function(_0x5c42f4,_0x286eb1){const _0x3132e9=function(_0x5d31e2){while(--_0x5d31e2){_0x5c42f4['push'](_0x5c42f4['shift']());}};_0x3132e9(++_0x286eb1);}(_0x286e,0x1e7));const _0x3132=function(_0x5c42f4,_0x286eb1){_0x5c42f4=_0x5c42f4-0x0;let _0x3132e9=_0x286e[_0x5c42f4];return _0x3132e9;};import{Plugin as _0x2c1b63}from'ckeditor5/src/core';export default class It extends _0x2c1b63{['afterInit'](){const _0xfb8cc2=this[_0x3132('0x5')],_0x31bd44=_0xfb8cc2['plugins'][_0x3132('0x3')](_0x3132('0x4'));_0xfb8cc2[_0x3132('0x1')][_0x3132('0x7')](_0x3132('0x6'))&&(_0x31bd44[_0x3132('0x0')](_0x3132('0x2')),_0x31bd44['enableCommand']('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3603=['createRangeOn','previousPosition','addHighlight','writer','span','isBlock','listIndent','schema','nextSibling','ck-suggestion-marker--active','listItem','getItems','getWalker','insert','getCustomProperty','isLimit','toViewElement','model','createUIElement','consumable','hasAttribute','parent','ck-suggestion-marker-','getAttribute','push','get','TrackChangesEditing','start','activeMarkers','elementEnd','isAtEnd','isContent','markerRange','type','includes','markerName','addClass','bindElementToMarker','toViewPosition','mapper','element'];(function(_0xe46aed,_0x36032a){const _0x2491a0=function(_0x3de99b){while(--_0x3de99b){_0xe46aed['push'](_0xe46aed['shift']());}};_0x2491a0(++_0x36032a);}(_0x3603,0x9f));const _0x2491=function(_0xe46aed,_0x36032a){_0xe46aed=_0xe46aed-0x0;let _0x2491a0=_0x3603[_0xe46aed];return _0x2491a0;};export function getRangesWithAttribute(_0x4febe3,_0x28df4c,_0x5d9e10){const _0x18691c=[];for(const _0x39b758 of _0x28df4c[_0x2491('0x10')]())_0x39b758[_0x2491('0x19')](_0x4febe3)&&_0x18691c[_0x2491('0x1d')](_0x5d9e10[_0x2491('0x5')](_0x39b758));return _0x18691c;}export function getElementsAffectedByListItemRename(_0x1a81bb){const _0x35663d=[];if(_0x1a81bb['is'](_0x2491('0x4'),_0x2491('0xf'))){let _0x2e4090=_0x1a81bb[_0x2491('0xd')];for(;_0x2e4090&&_0x2e4090['is'](_0x2491('0x4'),_0x2491('0xf'))&&_0x2e4090[_0x2491('0x1c')](_0x2491('0xb'))>0x0;)_0x35663d[_0x2491('0x1d')](_0x2e4090),_0x2e4090=_0x2e4090[_0x2491('0xd')];}return _0x35663d;}export function downcastSplitMergeMarker(_0x145a01,_0x431319,{showActiveMarker:_0x18c875=!0x0}={}){const _0x2dd694=_0x145a01['plugins'][_0x2491('0x1e')](_0x2491('0x1f'));return(_0x1690dc,_0x45a719,_0x432b1f)=>{if(!_0x432b1f[_0x2491('0x18')]['test'](_0x45a719[_0x2491('0x25')],_0x1690dc['name']))return;const _0x25505e=_0x45a719[_0x2491('0x25')][_0x2491('0x11')](),_0x3639a3=_0x45a719[_0x2491('0x25')][_0x2491('0x20')],_0x5955c6=_0x145a01[_0x2491('0x16')][_0x2491('0xc')];let _0x47b839=null,_0x51709c=null,_0x34693a=!0x1,_0x2fccf2=!0x1;for(const _0x206e3f of _0x25505e){const _0x432f81=_0x206e3f['item'];_0x34693a=_0x34693a||_0x5955c6[_0x2491('0x24')](_0x432f81);const _0x3f7b9d=_0x432b1f[_0x2491('0x3')][_0x2491('0x15')](_0x432f81);if(_0x3f7b9d&&_0x3f7b9d[_0x2491('0x13')](_0x2491('0x7')))return;_0x2491('0x22')==_0x206e3f[_0x2491('0x26')]&&(_0x5955c6[_0x2491('0xa')](_0x432f81)&&!_0x5955c6[_0x2491('0x14')](_0x432f81)&&(_0x432f81[_0x2491('0xd')]||_0x3639a3[_0x2491('0x23')]?_0x47b839&&_0x47b839[_0x2491('0x1a')]==_0x432f81||(_0x47b839=_0x432f81,_0x336009(_0x206e3f[_0x2491('0x6')]),_0x2fccf2=!0x0):_0x51709c=_0x51709c||_0x206e3f[_0x2491('0x6')]));}function _0x336009(_0x5ed731){const _0x58e938=_0x432b1f['writer'][_0x2491('0x17')](_0x2491('0x9'),{'class':_0x2491('0x1b')+_0x431319}),_0x370f41=_0x432b1f[_0x2491('0x3')][_0x2491('0x2')](_0x5ed731);_0x18c875&&_0x2dd694[_0x2491('0x21')][_0x2491('0x27')](_0x45a719[_0x2491('0x28')])&&_0x432b1f[_0x2491('0x8')][_0x2491('0x0')](_0x2491('0xe'),_0x58e938),_0x432b1f['writer'][_0x2491('0x12')](_0x370f41,_0x58e938),_0x432b1f[_0x2491('0x3')][_0x2491('0x1')](_0x58e938,_0x45a719[_0x2491('0x28')]);}_0x34693a||_0x2fccf2||!_0x51709c||_0x336009(_0x51709c);};}
|