@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230820.0 → 0.0.0-nightly-20230821.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +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 _0x29f1=['model','start','registerPostFixer','registerDescriptionCallback','root','getAttributes','getSelectionAffectedTableCells','activeMarkers','cell','table','move','removeMarker','tablePaste','getContainedElement','*Replace\x20table\x20cells*','rootName','element','fromEntries','stop','_createdBatches','columnInsertionRanges','unwrap','clipboardOutput','last','isInContent','type','remove','differ','add','for','every','getChildren','TableClipboard','editingDowncast','subType','removeRows','paragraph','attributes','getRowIndexes','from','has','author','markerName','previous','deletion','length','position','editing','map','entries','fill','findAncestor','find','selection','tableCellSuggestion','_tablePostFixingSubtypes','getMarkers','_getCoordsForCells','tablePasteRow','_splitMarkerName','markerAttributes','tableCell','return','some','view','tableCellBorderWidth','ck-suggestion-marker--active','_descriptionFactory','createElement','insertColumns','accept','suggestionUnloaded','includes','editor','tablePasteChainId','insertionRanges','value','getAllAdjacentSuggestions','first','low','oldRange','end','getRanges','row','getSuggestionCallback','change','endRow','suggestion:formatBlock:tablePasteCell','startsWith','tableCellBorderStyle','reduce','keys','batch','rows','insert','dataDowncast','set','join','markMultiRangeBlockFormat','markMultiRangeInsertion','getColumns','getChangedMarkers','ck-suggestion-marker-insertion','deletionRanges','createRangeOn','_suggestionFactory','containsRange','nodeAfter','suggestionLoaded','Users','high','trackChanges','cells','getItems','discard','createTableWalker','wrap','insertContent','plugins','name','newRange','columns','schema','TableUtils','createRangeIn','forceDefaultExecution','getRange','ck-suggestion-marker','_isForcedDefaultExecutionBlock','tablePasteCell','formatBlock','documentSelection','rowInsertionIndexes','removeMarkers','getTableIfOnlyTableInContent','setAttributes','conversion','isEqual','registerCustomCallback','suggestion','locale','markerToHighlight','_replaceTableSlotCell','tableCellBorderColor','tablePasteColumn','tableCellHorizontalAlignment','insertion','markers','rowInsertionRanges','listenTo','suggestion-td','getSuggestions','get','isEmpty','commands','columnInsertionIndexes','getShiftedBy','hasSuggestion','markMultiRangeDeletion','createPositionBefore','push','document','filter'];(function(_0x3b7fd6,_0x29f106){const _0x105f98=function(_0x8a9aac){while(--_0x8a9aac){_0x3b7fd6['push'](_0x3b7fd6['shift']());}};_0x105f98(++_0x29f106);}(_0x29f1,0x15e));const _0x105f=function(_0x3b7fd6,_0x29f106){_0x3b7fd6=_0x3b7fd6-0x0;let _0x105f98=_0x29f1[_0x3b7fd6];return _0x105f98;};import{getTranslation as _0x168430}from'../utils/common-translations';import{Plugin as _0x1f80dd}from'ckeditor5/src/core';import{uid as _0x574b1e,priorities as _0x57aa24}from'ckeditor5/src/utils';import _0x2628de from'./table';const le=[_0x105f('0x29'),_0x105f('0x77'),_0x105f('0x41'),_0x105f('0x79'),'tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ae=Object[_0x105f('0x9c')](le[_0x105f('0x18')](_0x2c5df8=>[_0x2c5df8,null]));export default class kt extends _0x1f80dd{static get['requires'](){return[_0x2628de];}['afterInit'](){const _0xb5b594=this[_0x105f('0x31')];if(!_0xb5b594[_0x105f('0x5e')]['has'](_0x105f('0x8')))return;const _0x5be372=_0xb5b594[_0x105f('0x5e')]['get']('TrackChangesEditing'),_0x2091af=_0xb5b594[_0x105f('0x5e')]['get'](_0x105f('0x63')),_0x3a3cc2=_0xb5b594[_0x105f('0x5e')]['get'](_0x2628de),_0x2d06f6=_0xb5b594[_0x105f('0x5e')][_0x105f('0x80')](_0x105f('0x8'));_0x3a3cc2[_0x105f('0x1f')][_0x105f('0x88')](_0x105f('0x22'),_0x105f('0x78')),_0xb5b594['model'][_0x105f('0x62')]['register'](_0x105f('0x1e'),{'allowIn':_0x105f('0x25'),'allowContentOf':'tableCell','isLimit':!0x0}),_0xb5b594[_0x105f('0x70')]['elementToElement']({'model':_0x105f('0x1e'),'view':'suggestion-td'});let _0x261c23=null;_0xb5b594[_0x105f('0x8b')]['on'](_0x105f('0x5d'),(_0x407d4d,_0x3a66d1)=>{const [_0x509e2a,_0xb6a843]=_0x3a66d1,_0x29259f=_0x3a66d1[_0x3a66d1[_0x105f('0x15')]-0x1];_0x29259f&&_0x29259f[_0x105f('0x65')]||_0x5be372[_0x105f('0x68')]||this[_0x105f('0x31')][_0x105f('0x82')][_0x105f('0x80')](_0x105f('0x57'))[_0x105f('0x34')]&&function(_0x534dc2,_0x1085b6,_0x55391b,_0x397c8a,_0x5b3db8){if(_0x1085b6&&!_0x1085b6['is'](_0x105f('0x6b')))return!0x1;const _0x760a0a=_0x5b3db8[_0x105f('0x6e')](_0x534dc2,_0x55391b);if(!_0x760a0a||!fe(_0x760a0a,void 0x0,_0x397c8a))return!0x1;const _0x4d56d4=_0x397c8a[_0x105f('0x91')](_0x55391b[_0x105f('0x89')][_0x105f('0x1d')]);if(!_0x4d56d4[_0x105f('0x15')])return!0x1;const _0x4e0943=_0x4d56d4[0x0][_0x105f('0x1b')]('table'),_0x1ab529=_0x397c8a[_0x105f('0xe')](_0x4d56d4),_0x2c2a3c=_0x397c8a['getColumnIndexes'](_0x4d56d4),_0x13c337={'startRow':_0x1ab529[_0x105f('0x36')],'endRow':_0x1ab529[_0x105f('0xa2')],'startColumn':_0x2c2a3c['first'],'endColumn':_0x2c2a3c['last']};return 0x1==_0x4d56d4[_0x105f('0x15')]&&(_0x13c337[_0x105f('0x3e')]+=_0x397c8a['getRows'](_0x760a0a)-0x1,_0x13c337['endColumn']+=_0x397c8a[_0x105f('0x4c')](_0x760a0a)-0x1),fe(_0x4e0943,_0x13c337,_0x397c8a);}(_0x509e2a,_0xb6a843,_0xb5b594['model'],_0x2091af,_0x2d06f6)&&(_0x407d4d[_0x105f('0x9d')](),_0x261c23={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xb5b594[_0x105f('0x8b')]['change'](()=>{_0xb5b594['model'][_0x105f('0x5d')](_0x3a66d1[0x0],_0x3a66d1[0x1],_0x3a66d1[0x2],{'forceDefaultExecution':!0x0});const _0x2c6b31=_0x574b1e(),{rowInsertionRanges:_0xb06287,columnInsertionRanges:_0x2e4ef7,insertionRanges:_0x46b87f,deletionRanges:_0x30d869,cells:_0x3e5eef}=_0x261c23;_0xb06287[_0x105f('0x15')]&&_0x5be372[_0x105f('0x4b')](_0xb06287,'tablePasteRow',{'tablePasteChainId':_0x2c6b31}),_0x2e4ef7['length']&&_0x5be372[_0x105f('0x4b')](_0x2e4ef7,_0x105f('0x78'),{'tablePasteChainId':_0x2c6b31}),_0x46b87f[_0x105f('0x15')]&&_0x5be372[_0x105f('0x4b')](_0x46b87f,_0x105f('0x97'),{'tablePasteChainId':_0x2c6b31,'skipNestingCheck':!0x0}),_0x30d869[_0x105f('0x15')]&&_0x5be372[_0x105f('0x86')](_0x30d869,_0x105f('0x97'),{'tablePasteChainId':_0x2c6b31,'skipNestingCheck':!0x0});const _0x10571f=_0x5be372[_0x105f('0x4a')](_0x3e5eef[_0x105f('0x18')](({element:_0x313d78})=>_0x313d78),{'formatGroupId':_0x574b1e()},[],_0x105f('0x69'),{'tablePasteChainId':_0x2c6b31});if(_0x10571f){const _0x1d6f60=_0x10571f[_0x105f('0x20')](),_0x5e04c8=[];for(const {element:_0x3a26e2,attributes:_0x28790e}of _0x3e5eef){if(!_0x28790e)continue;const _0x1870e7=_0xb5b594[_0x105f('0x8b')][_0x105f('0x50')](_0x3a26e2),_0x23a905=_0x1d6f60[_0x105f('0x1c')](_0x1d03a5=>_0x1d03a5[_0x105f('0x66')]()[_0x105f('0x71')](_0x1870e7));_0x23a905&&_0x5e04c8[_0x105f('0x88')]([_0x23a905['name'],_0x28790e]);}_0x5e04c8[_0x105f('0x15')]&&_0x10571f['setAttribute']('markerAttributes',Object[_0x105f('0x9c')](_0x5e04c8));}_0x261c23=null;}));},{'priority':_0x57aa24[_0x105f('0x56')]+0xa}),_0xb5b594[_0x105f('0x5e')][_0x105f('0x80')]('TableClipboard')['on'](_0x105f('0x76'),(_0x3142c8,_0x363a2f)=>{const [_0x51d1fb,_0x4e5bf4,,_0x33ed09]=_0x363a2f;if(!_0x261c23)return;_0x3142c8[_0x105f('0x9d')]();const _0x4d3d33=_0x51d1fb[_0x105f('0x93')],_0x544510=_0x4e5bf4,_0x111f03=ce(_0x4d3d33),_0x6b3650=ce(_0x544510);_0x3142c8[_0x105f('0x26')]=_0x4d3d33;let _0x2482e9=null,_0x205990=null;if(_0x6b3650||_0x111f03){if(_0x111f03&&!_0x6b3650){_0x33ed09[_0x105f('0x2')](_0x4d3d33['getChild'](0x0));for(const _0x5dc918 of Array[_0x105f('0xf')](_0x544510[_0x105f('0x7')]()))_0x33ed09[_0x105f('0x46')](_0x5dc918,_0x4d3d33,_0x105f('0x39'));const _0x1199e1=_0x261c23[_0x105f('0x6c')][_0x105f('0x30')](_0x51d1fb[_0x105f('0x3b')]),_0x17f479=_0x261c23['columnInsertionIndexes'][_0x105f('0x30')](_0x51d1fb['column']);_0x1199e1||_0x17f479||(_0x2482e9=_0x33ed09[_0x105f('0x64')](_0x4d3d33));}else _0x6b3650&&!_0x111f03&&(_0x205990=_0x33ed09[_0x105f('0x64')](_0x4d3d33));}else{const _0x197205=_0x33ed09[_0x105f('0x2c')](_0x105f('0x1e')),_0xdfe4d7=_0x33ed09[_0x105f('0x2c')](_0x105f('0x1e'));_0x33ed09[_0x105f('0x5c')](_0x33ed09['createRangeIn'](_0x4d3d33),_0xdfe4d7),_0x33ed09[_0x105f('0x46')](_0x197205,_0x4d3d33,0x0);for(const _0x5d61e6 of Array[_0x105f('0xf')](_0x544510[_0x105f('0x7')]()))_0x33ed09[_0x105f('0x46')](_0x5d61e6,_0x197205,_0x105f('0x39'));_0x2482e9=_0x33ed09[_0x105f('0x50')](_0x197205),_0x205990=_0x33ed09['createRangeOn'](_0xdfe4d7);}const _0x4506a3=Array[_0x105f('0xf')](_0x544510[_0x105f('0x90')]())[_0x105f('0x8a')](([_0x59456f])=>le['includes'](_0x59456f));_0x261c23[_0x105f('0x58')][_0x105f('0x88')]({'element':_0x4d3d33,'attributes':_0x4506a3[_0x105f('0x15')]?Object['fromEntries'](_0x4506a3):null}),_0x2482e9&&_0x261c23[_0x105f('0x33')][_0x105f('0x88')](_0x2482e9),_0x205990&&_0x261c23[_0x105f('0x4f')][_0x105f('0x88')](_0x205990);},{'priority':_0x105f('0x56')}),_0x2091af['on'](_0x105f('0x2d'),(_0x580985,_0x27d02a)=>{const [_0x471513,_0x2319a0={}]=_0x27d02a;if(!_0x261c23)return;const _0x4d53ff=_0x2319a0['at']||0x0,_0x5956e5=_0x2319a0[_0x105f('0x61')]||0x1;_0x261c23[_0x105f('0x83')]=new Array(_0x5956e5)[_0x105f('0x1a')](_0x4d53ff)[_0x105f('0x18')]((_0x5386ff,_0x14ee0d)=>_0x5386ff+_0x14ee0d);for(const {cell:_0xaa9453}of _0x2091af['createTableWalker'](_0x471513,{'startColumn':_0x4d53ff,'endColumn':_0x4d53ff+_0x5956e5-0x1}))_0x261c23[_0x105f('0x9f')][_0x105f('0x88')](_0xb5b594[_0x105f('0x8b')][_0x105f('0x50')](_0xaa9453));},{'priority':_0x105f('0x37')}),_0x2091af['on']('insertRows',(_0x31bea0,_0xcbd517)=>{const [_0x4c907a,_0xfa6da5={}]=_0xcbd517;if(!_0x261c23)return;const _0x36a518=_0xfa6da5['at']||0x0,_0x244ef0=_0xfa6da5[_0x105f('0x45')]||0x1;_0x261c23['rowInsertionIndexes']=new Array(_0x244ef0)[_0x105f('0x1a')](_0x36a518)[_0x105f('0x18')]((_0x21a83e,_0x131954)=>_0x21a83e+_0x131954);for(const {cell:_0x32bab3}of _0x2091af['createTableWalker'](_0x4c907a,{'startRow':_0x36a518,'endRow':_0x36a518+_0x244ef0-0x1}))_0x261c23[_0x105f('0x7c')][_0x105f('0x88')](_0xb5b594[_0x105f('0x8b')][_0x105f('0x50')](_0x32bab3));},{'priority':'low'}),_0x5be372[_0x105f('0x2b')][_0x105f('0x8e')](_0x2b23ac=>{if(_0x2b23ac[_0x105f('0xa')]&&_0x2b23ac[_0x105f('0xa')][_0x105f('0x40')](_0x105f('0x97')))return _0x2b23ac[_0x105f('0x13')]?{}:{'type':_0x105f('0x7a'),'content':_0x168430(_0xb5b594[_0x105f('0x74')],_0x105f('0x99'))};});const _0x49d6d7=()=>{};for(const _0x41f2e1 of['tablePaste',_0x105f('0x78'),_0x105f('0x22'),_0x105f('0x69')])_0x5be372[_0x105f('0x51')]['registerCustomCallback'](_0x105f('0x7a'),_0x41f2e1,_0x105f('0x49'),_0x49d6d7),_0x5be372[_0x105f('0x51')][_0x105f('0x72')](_0x105f('0x14'),_0x41f2e1,_0x105f('0x49'),_0x49d6d7);_0x5be372[_0x105f('0x51')][_0x105f('0x72')](_0x105f('0x6a'),_0x105f('0x69'),_0x105f('0x5a'),_0x49d6d7),_0x5be372[_0x105f('0x51')][_0x105f('0x72')]('formatBlock','tablePasteCell',_0x105f('0x2e'),(_0x11bc4e,_0x1cc436,_0x2fdbbb)=>{const _0x3b45fc=_0x11bc4e[_0x105f('0x18')](_0x41e596=>_0x41e596[_0x105f('0x98')]())[_0x105f('0x8a')](_0x2546a3=>_0x2546a3),_0x4756a3=new Map(_0x3b45fc[_0x105f('0x18')](_0x1e295a=>[_0x1e295a,null]));if(_0x261c23)for(const {element:_0x25d8a0,attributes:_0x4cb4d8}of _0x261c23[_0x105f('0x58')])_0x4cb4d8&&_0x4756a3[_0x105f('0x48')](_0x25d8a0,_0x4cb4d8);else{if(_0x2fdbbb&&_0x2fdbbb[_0x105f('0x24')])for(const [_0x44bc2c,_0x1dcc64]of Object[_0x105f('0x19')](_0x2fdbbb['markerAttributes'])){const _0x41989c=_0xb5b594[_0x105f('0x8b')][_0x105f('0x7b')][_0x105f('0x80')](_0x44bc2c),_0x50f018=_0x41989c?_0x41989c['getRange']()[_0x105f('0x98')]():null;_0x50f018&&_0x4756a3['set'](_0x50f018,_0x1dcc64);}}_0xb5b594['model'][_0x105f('0x3d')](_0x556b53=>{for(const [_0x2c39f9,_0x5572c3]of _0x4756a3)_0x556b53[_0x105f('0x6f')]({...ae,..._0x5572c3},_0x2c39f9);});});const _0x3764da=(_0x66aa6c,_0xb31a6f)=>{_0x5be372[_0x105f('0x51')][_0x105f('0x72')](_0x66aa6c,_0x105f('0x97'),_0xb31a6f,(_0x19c280,_0x5f49ca,_0x295bb1)=>{_0xb5b594[_0x105f('0x8b')][_0x105f('0x3d')](_0x69f042=>{const _0xbe6a8=[];for(const _0x19054c of _0x19c280){const _0x189580=_0x19054c[_0x105f('0x8c')][_0x105f('0x53')];_0x189580['is']('element',_0x105f('0x1e'))&&_0xbe6a8[_0x105f('0x88')](_0x189580);}_0x5be372['_suggestionFactory'][_0x105f('0x3c')](_0x66aa6c,null,_0xb31a6f)(_0x19c280,_0x5f49ca,_0x295bb1);for(const _0x45ea1a of _0xbe6a8)'$graveyard'!=_0x45ea1a[_0x105f('0x8f')][_0x105f('0x9a')]&&_0x69f042['unwrap'](_0x45ea1a);});});};_0x3764da(_0x105f('0x7a'),_0x105f('0x2e')),_0x3764da(_0x105f('0x7a'),'discard'),_0x3764da('deletion',_0x105f('0x2e')),_0x3764da(_0x105f('0x14'),'discard'),_0x5be372[_0x105f('0x51')]['registerCustomCallback'](_0x105f('0x7a'),_0x105f('0x22'),_0x105f('0x5a'),_0x30ebb0=>{const _0x1644ca=_0x30ebb0[_0x105f('0x18')](_0x52328c=>_0x52328c[_0x105f('0x98')]()),_0x275ebb=_0x1644ca[0x0][_0x105f('0x1b')](_0x105f('0x94')),{minRow:_0xcb77d5,maxRow:_0x466678}=_0x3a3cc2[_0x105f('0x21')](_0x1644ca);_0x2091af[_0x105f('0xb')](_0x275ebb,{'at':_0xcb77d5,'rows':_0x466678-_0xcb77d5+0x1});}),_0x5be372['_suggestionFactory']['registerCustomCallback']('insertion',_0x105f('0x78'),_0x105f('0x5a'),_0x1a1290=>{const _0x43dfed=_0x1a1290[_0x105f('0x18')](_0x486d9c=>_0x486d9c['getContainedElement']()),_0x11ad87=_0x43dfed[0x0][_0x105f('0x1b')](_0x105f('0x94')),{minColumn:_0x5d9139,maxColumn:_0xff469a}=_0x3a3cc2['_getCoordsForCells'](_0x43dfed);_0x2091af['removeColumns'](_0x11ad87,{'at':_0x5d9139,'columns':_0xff469a-_0x5d9139+0x1});});const _0x3ec71b=(_0x139b52,_0x8d2d53)=>{if(!_0x8d2d53[_0x105f('0xa')]||!_0x8d2d53[_0x105f('0xa')]['startsWith'](_0x105f('0x97')))return;const _0x4ef28a=_0x8d2d53[_0x105f('0xd')][_0x105f('0x32')],_0x58832e=_0x5be372[_0x105f('0x7f')]()[_0x105f('0x8a')](_0x538c46=>_0x538c46[_0x105f('0x0')]&&_0x538c46[_0x105f('0xd')]&&_0x538c46[_0x105f('0xd')][_0x105f('0x32')]==_0x4ef28a);_0x58832e[_0x105f('0x15')]&&_0x8d2d53['getAllAdjacentSuggestions']()[_0x105f('0x15')]!=_0x58832e[_0x105f('0x15')]&&_0x58832e[_0x105f('0x42')]((_0x4e7891,_0x4309b4)=>(_0x4e7891['next']=_0x4309b4,_0x4309b4['previous']=_0x4e7891,_0x4309b4));};function _0x4990d7(_0x3ae3d0,_0x5c4a08=!0x0){const {id:_0x3e93a8}=_0x5be372[_0x105f('0x23')](_0x3ae3d0[_0x105f('0x12')]),_0x294b64=[_0x105f('0x67'),_0x105f('0x4e')],_0x242576=_0x5be372[_0x105f('0x92')][_0x105f('0x30')](_0x3ae3d0[_0x105f('0x12')]);return _0x242576&&_0x294b64[_0x105f('0x88')](_0x105f('0x2a')),{'classes':_0x294b64,'attributes':{'data-suggestion':_0x3e93a8},'priority':_0x242576&&_0x5c4a08?0xbc2:0xbb8};}_0x5be372['on'](_0x105f('0x54'),_0x3ec71b,{'priority':'high'}),_0x5be372['on'](_0x105f('0x2f'),_0x3ec71b,{'priority':'high'}),_0xb5b594['model'][_0x105f('0x89')]['registerPostFixer'](()=>{let _0x55266c=!0x1;const _0x126d44=Array['from'](_0xb5b594['model'][_0x105f('0x89')][_0x105f('0x3')][_0x105f('0x4d')]());for(const {name:_0x11cfeb,data:_0xaf6a2a}of _0x126d44){const {group:_0x1aa340,type:_0x2368f2,id:_0x2e9059}=_0x5be372['_splitMarkerName'](_0x11cfeb);if(_0x105f('0x73')!=_0x1aa340||_0x105f('0x14')!=_0x2368f2||_0xaf6a2a[_0x105f('0x38')])continue;if(!_0x5be372[_0x105f('0x85')](_0x2e9059))continue;const _0x131af0=_0x5be372['getSuggestion'](_0x2e9059)[_0x105f('0x3a')](),_0x2b1fd3=_0xb5b594['plugins'][_0x105f('0x80')](_0x105f('0x55'))['me'];for(const _0x245fd2 of _0x5be372[_0x105f('0x7f')]()){if(!_0x245fd2['isInContent']||_0x245fd2['author']!=_0x2b1fd3)continue;if(_0x105f('0x6a')!=_0x245fd2[_0x105f('0x1')]||_0x105f('0x69')!=_0x245fd2['subType'])continue;if(_0x245fd2[_0x105f('0x3a')]()[_0x105f('0x6')](_0x35e7c9=>_0x131af0[_0x105f('0x27')](_0x43e38a=>_0x43e38a[_0x105f('0x52')](_0x35e7c9,!0x0))))for(const _0x4d04f5 of _0x245fd2[_0x105f('0x35')]())_0x4d04f5['isInContent']&&(_0x4d04f5[_0x105f('0x5a')](),_0x55266c=!0x0);}}return _0x55266c;}),_0xb5b594[_0x105f('0x8b')][_0x105f('0x89')][_0x105f('0x8d')](_0x5bd719=>{const _0x163272=_0xb5b594['commands']['get']('redo');if(!_0x163272||!_0x163272[_0x105f('0x9e')]['has'](_0x5bd719[_0x105f('0x44')]))return!0x1;let _0x10e4ae=!0x1;const _0xa2eb79=_0xb5b594[_0x105f('0x5e')][_0x105f('0x80')](_0x105f('0x55'))['me'],_0xf6fee3=_0xb5b594[_0x105f('0x8b')][_0x105f('0x89')][_0x105f('0x3')]['getChanges'](),_0x3b24b0=Array[_0x105f('0xf')](_0xb5b594['model']['document'][_0x105f('0x3')][_0x105f('0x4d')]())[_0x105f('0x8a')](({name:_0x113fe4,data:_0x5c59d8})=>{const {group:_0x43868f,subType:_0x48e1d5,authorId:_0x3188e2}=_0x5be372[_0x105f('0x23')](_0x113fe4);return _0x105f('0x73')==_0x43868f&&'tablePaste'==_0x48e1d5&&_0x3188e2==_0xa2eb79['id']&&!_0x5c59d8[_0x105f('0x38')];});for(const _0xb0eb12 of _0xf6fee3){if(_0x105f('0x46')!=_0xb0eb12[_0x105f('0x1')]||_0x105f('0x1e')!=_0xb0eb12[_0x105f('0x5f')]||0x1!=_0xb0eb12[_0x105f('0x15')])continue;const _0x4dc49d=_0x5bd719['createRange'](_0xb0eb12[_0x105f('0x16')],_0xb0eb12[_0x105f('0x16')][_0x105f('0x84')](0x1));if(!_0x3b24b0[_0x105f('0x1c')](({data:_0x37d0b6})=>_0x37d0b6[_0x105f('0x60')][_0x105f('0x71')](_0x4dc49d)))for(const {name:_0x38f311,data:_0x2a0f9b}of _0x3b24b0)if(_0x4dc49d['containsRange'](_0x2a0f9b['newRange'])){_0x5bd719['updateMarker'](_0x38f311,{'range':_0x4dc49d}),_0x10e4ae=!0x0;break;}}return _0x10e4ae;}),_0xb5b594[_0x105f('0x8b')][_0x105f('0x89')][_0x105f('0x8d')](_0xc2131=>{let _0x972fd4=!0x1;const _0x5c83dd=_0xb5b594[_0x105f('0x5e')]['get']('Users')['me'],_0x1b8913=_0x5be372['getSuggestions']()[_0x105f('0x8a')](_0x5afdb0=>_0x5afdb0['isInContent']&&_0x5afdb0[_0x105f('0x11')]==_0x5c83dd),_0x36f0a2=new Set(),_0x314f9e=new Set();for(const _0x17abe3 of _0x1b8913)if(_0x105f('0x97')==_0x17abe3[_0x105f('0xa')])for(const _0x5bcd1e of _0x17abe3[_0x105f('0x20')]()){const _0x164c3a=_0x5bcd1e[_0x105f('0x66')]()[_0x105f('0x98')]();if(_0x164c3a){if(_0x164c3a['is']('element',_0x105f('0x1e'))&&ce(_0x164c3a)){_0x17abe3[_0x105f('0x96')](_0x5bcd1e['name']),_0x36f0a2[_0x105f('0x4')](_0x164c3a),_0x972fd4=!0x0;const _0x433227=_0x164c3a['nextSibling'],_0x2b64cc=_0x164c3a['previousSibling'],_0x15b7ee=_0x433227&&_0x433227['is'](_0x105f('0x9b'),_0x105f('0x1e')),_0x161c53=_0x2b64cc&&_0x2b64cc['is'](_0x105f('0x9b'),_0x105f('0x1e'));_0x15b7ee&&!_0x36f0a2[_0x105f('0x10')](_0x433227)&&_0x314f9e[_0x105f('0x4')](_0x433227),_0x161c53&&!_0x36f0a2['has'](_0x2b64cc)&&_0x314f9e[_0x105f('0x4')](_0x2b64cc);}else _0x164c3a['is']('element','paragraph')&&_0x164c3a[_0x105f('0x81')]&&(_0x17abe3['removeMarker'](_0x5bcd1e[_0x105f('0x5f')]),_0x972fd4=!0x0);}}else{if(_0x105f('0x69')==_0x17abe3[_0x105f('0xa')]){if(!_0x17abe3['attributes']||!_0x17abe3[_0x105f('0xd')]['tablePasteChainId'])continue;const _0x3885d0=_0x17abe3[_0x105f('0xd')][_0x105f('0x24')];if(_0x3885d0&&Object[_0x105f('0x43')](_0x3885d0)[_0x105f('0x15')])continue;const _0x42da3a=_0x17abe3[_0x105f('0xd')][_0x105f('0x32')];let _0x2ae9e3=!0x0,_0x489bc6=!0x0;for(const _0x58881b of _0x1b8913)if(_0x58881b[_0x105f('0xa')]&&_0x58881b[_0x105f('0xa')][_0x105f('0x40')](_0x105f('0x97'))){if(!_0x58881b[_0x105f('0xd')][_0x105f('0x32')]){_0x489bc6=!0x1;break;}if(_0x58881b['id']!=_0x17abe3['id']&&_0x58881b[_0x105f('0xd')][_0x105f('0x32')]==_0x42da3a){_0x2ae9e3=!0x1;break;}}_0x489bc6&&_0x2ae9e3&&(_0x17abe3[_0x105f('0x6d')](),_0x972fd4=!0x0);}}for(const _0x4da11f of _0x36f0a2)_0xc2131[_0x105f('0x2')](_0x4da11f);for(const _0x380658 of _0x314f9e)_0xc2131[_0x105f('0xa0')](_0x380658);return _0x972fd4;}),_0xb5b594['conversion'][_0x105f('0x5')](_0x105f('0x9'))[_0x105f('0x75')]({'model':_0x105f('0x3f'),'view':(_0x5bf70e,_0x455d11)=>_0x4990d7(_0x5bf70e),'converterPriority':_0x105f('0x56')}),_0xb5b594['conversion'][_0x105f('0x5')](_0x105f('0x47'))[_0x105f('0x75')]({'model':_0x105f('0x3f'),'view':(_0x10ea7b,_0x157ff6)=>_0x157ff6['options']['showSuggestionHighlights']?_0x4990d7(_0x10ea7b,!0x1):null,'converterPriority':_0x105f('0x56')});const _0x5dd400=_0xb5b594[_0x105f('0x17')][_0x105f('0x28')];this[_0x105f('0x7d')](_0x5dd400[_0x105f('0x89')],_0x105f('0xa1'),(_0x1f789e,_0x59646d)=>{const _0x16c986=[];for(const _0x46361e of _0x5dd400[_0x105f('0x64')](_0x59646d['content'])[_0x105f('0x59')]())_0x46361e['is'](_0x105f('0x9b'),_0x105f('0x7e'))&&_0x16c986[_0x105f('0x88')](_0x46361e);_0x5dd400[_0x105f('0x3d')](_0x435441=>{for(const _0x246d8c of _0x16c986)_0x435441[_0x105f('0x95')](_0x435441[_0x105f('0x64')](_0x246d8c),_0x435441[_0x105f('0x87')](_0x246d8c)),_0x435441[_0x105f('0x2')](_0x246d8c);});});}}function ce(_0x4549aa){if(_0x4549aa['isEmpty'])return!0x0;const _0x5560e4=_0x4549aa['getChild'](0x0);return _0x5560e4['is']('element',_0x105f('0xc'))&&_0x5560e4[_0x105f('0x81')];}function fe(_0x15bcc7,_0x51fad5={},_0x9f7e8){for(const {isAnchor:_0x148190,cellHeight:_0x1261b5,cellWidth:_0x466035}of _0x9f7e8[_0x105f('0x5b')](_0x15bcc7,{'includeAllSlots':!0x0,..._0x51fad5}))if(!_0x148190||0x1!=_0x1261b5||0x1!=_0x466035)return!0x1;return!0x0;}
|
|
23
|
+
const _0x5e31=['schema','registerPostFixer','getChild','set','suggestion-td','createTableWalker','markMultiRangeInsertion','deletionRanges','tableCellVerticalAlignment','oldRange','remove','getRows','getContainedElement','rowInsertionIndexes','value','rows','suggestionLoaded','type','getRange','hasSuggestion','suggestionUnloaded','has','insertRows','containsRange','low','previousSibling','commands','conversion','isInContent','includes','editing','markMultiRangeBlockFormat','paragraph','insertContent','getItems','createRangeIn','name','from','getSuggestion','insertion','end','setAttributes','getColumnIndexes','createPositionBefore','endRow','insertionRanges','newRange','getSuggestions','subType','length','tablePaste','showSuggestionHighlights','editingDowncast','endColumn','createRange','columnInsertionRanges','getAllAdjacentSuggestions','removeMarker','removeRows','position','insertColumns','join','getSelectionAffectedTableCells','stop','deletion','push','fill','content','columns','_isForcedDefaultExecutionBlock','tableCellBorderWidth','map','tablePasteRow','_replaceTableSlotCell','previous','getRanges','dataDowncast','wrap','setAttribute','tableCellBackgroundColor','find','tableCellHorizontalAlignment','author','column','high','tableCellPadding','tableCellBorderStyle','tablePasteColumn','tablePasteCell','nextSibling','markers','element','options','plugins','get','tableCell','TableClipboard','unwrap','columnInsertionIndexes','next','findAncestor','removeMarkers','first','getChildren','TrackChangesEditing','redo','listenTo','isEqual','createElement','ck-suggestion-marker--active','getShiftedBy','trackChanges','for','keys','$graveyard','startsWith','return','root','_suggestionFactory','_tablePostFixingSubtypes','getMarkers','entries','registerCustomCallback','selection','getChangedMarkers','tableCellSuggestion','removeColumns','insert','elementToElement','forceDefaultExecution','tablePasteChainId','table','discard','Users','getChanges','_splitMarkerName','ck-suggestion-marker','model','filter','start','isEmpty','add','documentSelection','cell','attributes','createRangeOn','every','markerToHighlight','getSuggestionCallback','markerAttributes','document','move','fromEntries','differ','suggestion:formatBlock:tablePasteCell','formatBlock','rootName','_getCoordsForCells','last','change','accept','suggestion','afterInit'];(function(_0x4d2e41,_0x5e31af){const _0x1dc39c=function(_0x1793f7){while(--_0x1793f7){_0x4d2e41['push'](_0x4d2e41['shift']());}};_0x1dc39c(++_0x5e31af);}(_0x5e31,0x1a8));const _0x1dc3=function(_0x4d2e41,_0x5e31af){_0x4d2e41=_0x4d2e41-0x0;let _0x1dc39c=_0x5e31[_0x4d2e41];return _0x1dc39c;};import{getTranslation as _0x3f1492}from'../utils/common-translations';import{Plugin as _0x54a2c9}from'ckeditor5/src/core';import{uid as _0x41aee7,priorities as _0x239ac0}from'ckeditor5/src/utils';import _0x33c38f from'./table';const le=[_0x1dc3('0x87'),'tableCellBorderColor',_0x1dc3('0x97'),_0x1dc3('0x92'),_0x1dc3('0x49'),_0x1dc3('0x90'),_0x1dc3('0x96')],ae=Object[_0x1dc3('0x36')](le[_0x1dc3('0x88')](_0x4963b9=>[_0x4963b9,null]));export default class kt extends _0x54a2c9{static get['requires'](){return[_0x33c38f];}[_0x1dc3('0x40')](){const _0x43a966=this['editor'];if(!_0x43a966[_0x1dc3('0x9e')][_0x1dc3('0x56')](_0x1dc3('0xa1')))return;const _0x52b559=_0x43a966[_0x1dc3('0x9e')]['get'](_0x1dc3('0x6')),_0x45cd16=_0x43a966[_0x1dc3('0x9e')]['get']('TableUtils'),_0x42d14d=_0x43a966['plugins']['get'](_0x33c38f),_0x42de75=_0x43a966['plugins'][_0x1dc3('0x9f')](_0x1dc3('0xa1'));_0x42d14d[_0x1dc3('0x15')][_0x1dc3('0x82')]('tablePasteRow',_0x1dc3('0x98')),_0x43a966[_0x1dc3('0x27')][_0x1dc3('0x41')]['register'](_0x1dc3('0x1b'),{'allowIn':_0x1dc3('0xa0'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x43a966[_0x1dc3('0x5c')][_0x1dc3('0x1e')]({'model':'tableCellSuggestion','view':_0x1dc3('0x45')});let _0x189032=null;_0x43a966['model']['on'](_0x1dc3('0x62'),(_0x3d27b3,_0x307194)=>{const [_0x377b82,_0x77b656]=_0x307194,_0x42c2ef=_0x307194[_0x307194[_0x1dc3('0x72')]-0x1];_0x42c2ef&&_0x42c2ef[_0x1dc3('0x1f')]||_0x52b559[_0x1dc3('0x86')]||this['editor'][_0x1dc3('0x5b')]['get'](_0x1dc3('0xd'))[_0x1dc3('0x4f')]&&function(_0x264ef6,_0x2030c5,_0x294553,_0x309757,_0xbef8cd){if(_0x2030c5&&!_0x2030c5['is'](_0x1dc3('0x2c')))return!0x1;const _0x111f1f=_0xbef8cd['getTableIfOnlyTableInContent'](_0x264ef6,_0x294553);if(!_0x111f1f||!fe(_0x111f1f,void 0x0,_0x309757))return!0x1;const _0x178110=_0x309757[_0x1dc3('0x7f')](_0x294553[_0x1dc3('0x34')][_0x1dc3('0x19')]);if(!_0x178110[_0x1dc3('0x72')])return!0x1;const _0xca6480=_0x178110[0x0][_0x1dc3('0x2')](_0x1dc3('0x21')),_0x290d6d=_0x309757['getRowIndexes'](_0x178110),_0x36ef32=_0x309757[_0x1dc3('0x6b')](_0x178110),_0x174e5d={'startRow':_0x290d6d[_0x1dc3('0x4')],'endRow':_0x290d6d[_0x1dc3('0x3c')],'startColumn':_0x36ef32[_0x1dc3('0x4')],'endColumn':_0x36ef32[_0x1dc3('0x3c')]};return 0x1==_0x178110[_0x1dc3('0x72')]&&(_0x174e5d[_0x1dc3('0x6d')]+=_0x309757[_0x1dc3('0x4c')](_0x111f1f)-0x1,_0x174e5d[_0x1dc3('0x76')]+=_0x309757['getColumns'](_0x111f1f)-0x1),fe(_0xca6480,_0x174e5d,_0x309757);}(_0x377b82,_0x77b656,_0x43a966[_0x1dc3('0x27')],_0x45cd16,_0x42de75)&&(_0x3d27b3['stop'](),_0x189032={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x43a966[_0x1dc3('0x27')][_0x1dc3('0x3d')](()=>{_0x43a966[_0x1dc3('0x27')][_0x1dc3('0x62')](_0x307194[0x0],_0x307194[0x1],_0x307194[0x2],{'forceDefaultExecution':!0x0});const _0x1e74d8=_0x41aee7(),{rowInsertionRanges:_0x4e9768,columnInsertionRanges:_0x162190,insertionRanges:_0x1720f7,deletionRanges:_0x1db10a,cells:_0x3115b1}=_0x189032;_0x4e9768['length']&&_0x52b559[_0x1dc3('0x47')](_0x4e9768,'tablePasteRow',{'tablePasteChainId':_0x1e74d8}),_0x162190[_0x1dc3('0x72')]&&_0x52b559[_0x1dc3('0x47')](_0x162190,_0x1dc3('0x98'),{'tablePasteChainId':_0x1e74d8}),_0x1720f7[_0x1dc3('0x72')]&&_0x52b559['markMultiRangeInsertion'](_0x1720f7,_0x1dc3('0x73'),{'tablePasteChainId':_0x1e74d8,'skipNestingCheck':!0x0}),_0x1db10a[_0x1dc3('0x72')]&&_0x52b559['markMultiRangeDeletion'](_0x1db10a,_0x1dc3('0x73'),{'tablePasteChainId':_0x1e74d8,'skipNestingCheck':!0x0});const _0x19efeb=_0x52b559[_0x1dc3('0x60')](_0x3115b1['map'](({element:_0x2464e0})=>_0x2464e0),{'formatGroupId':_0x41aee7()},[],_0x1dc3('0x99'),{'tablePasteChainId':_0x1e74d8});if(_0x19efeb){const _0x24c5e8=_0x19efeb[_0x1dc3('0x16')](),_0x161e44=[];for(const {element:_0x861fd1,attributes:_0x4d4597}of _0x3115b1){if(!_0x4d4597)continue;const _0x4f4612=_0x43a966[_0x1dc3('0x27')][_0x1dc3('0x2f')](_0x861fd1),_0x5e1921=_0x24c5e8['find'](_0x2aae15=>_0x2aae15[_0x1dc3('0x53')]()[_0x1dc3('0x9')](_0x4f4612));_0x5e1921&&_0x161e44[_0x1dc3('0x82')]([_0x5e1921[_0x1dc3('0x65')],_0x4d4597]);}_0x161e44[_0x1dc3('0x72')]&&_0x19efeb[_0x1dc3('0x8f')]('markerAttributes',Object[_0x1dc3('0x36')](_0x161e44));}_0x189032=null;}));},{'priority':_0x239ac0[_0x1dc3('0x95')]+0xa}),_0x43a966[_0x1dc3('0x9e')][_0x1dc3('0x9f')]('TableClipboard')['on'](_0x1dc3('0x8a'),(_0x18258e,_0x13ec9d)=>{const [_0x13d3ea,_0x13a949,,_0x5cf266]=_0x13ec9d;if(!_0x189032)return;_0x18258e[_0x1dc3('0x80')]();const _0x5d5417=_0x13d3ea[_0x1dc3('0x2d')],_0x4daeb2=_0x13a949,_0x21b8f8=ce(_0x5d5417),_0x1fcf0d=ce(_0x4daeb2);_0x18258e[_0x1dc3('0x12')]=_0x5d5417;let _0x38e921=null,_0x494ecd=null;if(_0x1fcf0d||_0x21b8f8){if(_0x21b8f8&&!_0x1fcf0d){_0x5cf266[_0x1dc3('0x4b')](_0x5d5417[_0x1dc3('0x43')](0x0));for(const _0x40d167 of Array[_0x1dc3('0x66')](_0x4daeb2[_0x1dc3('0x5')]()))_0x5cf266['insert'](_0x40d167,_0x5d5417,_0x1dc3('0x69'));const _0x877d5=_0x189032[_0x1dc3('0x4e')][_0x1dc3('0x5e')](_0x13d3ea['row']),_0x4106cf=_0x189032[_0x1dc3('0x0')][_0x1dc3('0x5e')](_0x13d3ea[_0x1dc3('0x94')]);_0x877d5||_0x4106cf||(_0x38e921=_0x5cf266['createRangeIn'](_0x5d5417));}else _0x1fcf0d&&!_0x21b8f8&&(_0x494ecd=_0x5cf266[_0x1dc3('0x64')](_0x5d5417));}else{const _0x10cf0c=_0x5cf266[_0x1dc3('0xa')](_0x1dc3('0x1b')),_0x302adc=_0x5cf266[_0x1dc3('0xa')]('tableCellSuggestion');_0x5cf266[_0x1dc3('0x8e')](_0x5cf266[_0x1dc3('0x64')](_0x5d5417),_0x302adc),_0x5cf266['insert'](_0x10cf0c,_0x5d5417,0x0);for(const _0x75f215 of Array['from'](_0x4daeb2[_0x1dc3('0x5')]()))_0x5cf266[_0x1dc3('0x1d')](_0x75f215,_0x10cf0c,_0x1dc3('0x69'));_0x38e921=_0x5cf266[_0x1dc3('0x2f')](_0x10cf0c),_0x494ecd=_0x5cf266[_0x1dc3('0x2f')](_0x302adc);}const _0x13fdc1=Array[_0x1dc3('0x66')](_0x4daeb2['getAttributes']())[_0x1dc3('0x28')](([_0xa1db5b])=>le[_0x1dc3('0x5e')](_0xa1db5b));_0x189032['cells'][_0x1dc3('0x82')]({'element':_0x5d5417,'attributes':_0x13fdc1[_0x1dc3('0x72')]?Object[_0x1dc3('0x36')](_0x13fdc1):null}),_0x38e921&&_0x189032[_0x1dc3('0x6e')][_0x1dc3('0x82')](_0x38e921),_0x494ecd&&_0x189032[_0x1dc3('0x48')][_0x1dc3('0x82')](_0x494ecd);},{'priority':_0x1dc3('0x95')}),_0x45cd16['on'](_0x1dc3('0x7d'),(_0x2f3b97,_0x1d07b8)=>{const [_0x545f26,_0x367e08={}]=_0x1d07b8;if(!_0x189032)return;const _0x14f046=_0x367e08['at']||0x0,_0x36ea83=_0x367e08[_0x1dc3('0x85')]||0x1;_0x189032[_0x1dc3('0x0')]=new Array(_0x36ea83)[_0x1dc3('0x83')](_0x14f046)[_0x1dc3('0x88')]((_0x1b8679,_0x4f303a)=>_0x1b8679+_0x4f303a);for(const {cell:_0x468ca9}of _0x45cd16[_0x1dc3('0x46')](_0x545f26,{'startColumn':_0x14f046,'endColumn':_0x14f046+_0x36ea83-0x1}))_0x189032[_0x1dc3('0x78')][_0x1dc3('0x82')](_0x43a966[_0x1dc3('0x27')]['createRangeOn'](_0x468ca9));},{'priority':_0x1dc3('0x59')}),_0x45cd16['on'](_0x1dc3('0x57'),(_0x3ec3dc,_0x2b9e07)=>{const [_0x495594,_0x467e82={}]=_0x2b9e07;if(!_0x189032)return;const _0x2bc1cc=_0x467e82['at']||0x0,_0x3f0f9b=_0x467e82[_0x1dc3('0x50')]||0x1;_0x189032[_0x1dc3('0x4e')]=new Array(_0x3f0f9b)[_0x1dc3('0x83')](_0x2bc1cc)['map']((_0x460de9,_0x341b96)=>_0x460de9+_0x341b96);for(const {cell:_0xe6122c}of _0x45cd16[_0x1dc3('0x46')](_0x495594,{'startRow':_0x2bc1cc,'endRow':_0x2bc1cc+_0x3f0f9b-0x1}))_0x189032['rowInsertionRanges'][_0x1dc3('0x82')](_0x43a966[_0x1dc3('0x27')][_0x1dc3('0x2f')](_0xe6122c));},{'priority':_0x1dc3('0x59')}),_0x52b559['_descriptionFactory']['registerDescriptionCallback'](_0x19e82c=>{if(_0x19e82c[_0x1dc3('0x71')]&&_0x19e82c[_0x1dc3('0x71')][_0x1dc3('0x11')](_0x1dc3('0x73')))return _0x19e82c[_0x1dc3('0x8b')]?{}:{'type':_0x1dc3('0x68'),'content':_0x3f1492(_0x43a966['locale'],'*Replace\x20table\x20cells*')};});const _0x25c08d=()=>{};for(const _0xea66a1 of[_0x1dc3('0x73'),_0x1dc3('0x98'),'tablePasteRow',_0x1dc3('0x99')])_0x52b559[_0x1dc3('0x14')]['registerCustomCallback'](_0x1dc3('0x68'),_0xea66a1,_0x1dc3('0x7e'),_0x25c08d),_0x52b559[_0x1dc3('0x14')]['registerCustomCallback'](_0x1dc3('0x81'),_0xea66a1,'join',_0x25c08d);_0x52b559[_0x1dc3('0x14')][_0x1dc3('0x18')](_0x1dc3('0x39'),'tablePasteCell',_0x1dc3('0x22'),_0x25c08d),_0x52b559[_0x1dc3('0x14')][_0x1dc3('0x18')](_0x1dc3('0x39'),_0x1dc3('0x99'),_0x1dc3('0x3e'),(_0x4bfd32,_0x258ba9,_0x5a6fc5)=>{const _0xc0504f=_0x4bfd32[_0x1dc3('0x88')](_0x4e887b=>_0x4e887b['getContainedElement']())[_0x1dc3('0x28')](_0x21c9d7=>_0x21c9d7),_0x5bba58=new Map(_0xc0504f['map'](_0x45969e=>[_0x45969e,null]));if(_0x189032)for(const {element:_0x4d5986,attributes:_0x23edd0}of _0x189032['cells'])_0x23edd0&&_0x5bba58[_0x1dc3('0x44')](_0x4d5986,_0x23edd0);else{if(_0x5a6fc5&&_0x5a6fc5[_0x1dc3('0x33')])for(const [_0x1bb4c6,_0x5b7b29]of Object[_0x1dc3('0x17')](_0x5a6fc5[_0x1dc3('0x33')])){const _0x1b80da=_0x43a966[_0x1dc3('0x27')][_0x1dc3('0x9b')]['get'](_0x1bb4c6),_0x2b45eb=_0x1b80da?_0x1b80da['getRange']()[_0x1dc3('0x4d')]():null;_0x2b45eb&&_0x5bba58[_0x1dc3('0x44')](_0x2b45eb,_0x5b7b29);}}_0x43a966['model']['change'](_0x36788d=>{for(const [_0x5d43f4,_0x177d8a]of _0x5bba58)_0x36788d[_0x1dc3('0x6a')]({...ae,..._0x177d8a},_0x5d43f4);});});const _0xdb7f3=(_0x2d7495,_0x486739)=>{_0x52b559[_0x1dc3('0x14')][_0x1dc3('0x18')](_0x2d7495,_0x1dc3('0x73'),_0x486739,(_0x4ac2f2,_0xa5beec,_0x3eb8e4)=>{_0x43a966[_0x1dc3('0x27')][_0x1dc3('0x3d')](_0x1667b6=>{const _0x3673b6=[];for(const _0x1ab9cb of _0x4ac2f2){const _0x2e8f50=_0x1ab9cb[_0x1dc3('0x29')]['nodeAfter'];_0x2e8f50['is'](_0x1dc3('0x9c'),'tableCellSuggestion')&&_0x3673b6['push'](_0x2e8f50);}_0x52b559[_0x1dc3('0x14')][_0x1dc3('0x32')](_0x2d7495,null,_0x486739)(_0x4ac2f2,_0xa5beec,_0x3eb8e4);for(const _0x2266e9 of _0x3673b6)_0x1dc3('0x10')!=_0x2266e9[_0x1dc3('0x13')][_0x1dc3('0x3a')]&&_0x1667b6[_0x1dc3('0xa2')](_0x2266e9);});});};_0xdb7f3(_0x1dc3('0x68'),_0x1dc3('0x3e')),_0xdb7f3(_0x1dc3('0x68'),_0x1dc3('0x22')),_0xdb7f3(_0x1dc3('0x81'),'accept'),_0xdb7f3(_0x1dc3('0x81'),_0x1dc3('0x22')),_0x52b559[_0x1dc3('0x14')]['registerCustomCallback'](_0x1dc3('0x68'),_0x1dc3('0x89'),_0x1dc3('0x22'),_0x4687f=>{const _0x1c8a4d=_0x4687f['map'](_0x20a3bc=>_0x20a3bc[_0x1dc3('0x4d')]()),_0xfa907f=_0x1c8a4d[0x0][_0x1dc3('0x2')](_0x1dc3('0x21')),{minRow:_0x2da4e3,maxRow:_0x47e6de}=_0x42d14d[_0x1dc3('0x3b')](_0x1c8a4d);_0x45cd16[_0x1dc3('0x7b')](_0xfa907f,{'at':_0x2da4e3,'rows':_0x47e6de-_0x2da4e3+0x1});}),_0x52b559[_0x1dc3('0x14')][_0x1dc3('0x18')](_0x1dc3('0x68'),'tablePasteColumn',_0x1dc3('0x22'),_0x183be6=>{const _0x1bf3fa=_0x183be6[_0x1dc3('0x88')](_0x5b1d96=>_0x5b1d96[_0x1dc3('0x4d')]()),_0x5cc518=_0x1bf3fa[0x0][_0x1dc3('0x2')](_0x1dc3('0x21')),{minColumn:_0x48fe51,maxColumn:_0x371f56}=_0x42d14d[_0x1dc3('0x3b')](_0x1bf3fa);_0x45cd16[_0x1dc3('0x1c')](_0x5cc518,{'at':_0x48fe51,'columns':_0x371f56-_0x48fe51+0x1});});const _0xf6944e=(_0x3d05d8,_0x1c88bf)=>{if(!_0x1c88bf[_0x1dc3('0x71')]||!_0x1c88bf[_0x1dc3('0x71')][_0x1dc3('0x11')]('tablePaste'))return;const _0xf25cae=_0x1c88bf[_0x1dc3('0x2e')][_0x1dc3('0x20')],_0x40a37a=_0x52b559[_0x1dc3('0x70')]()['filter'](_0x512c94=>_0x512c94[_0x1dc3('0x5d')]&&_0x512c94[_0x1dc3('0x2e')]&&_0x512c94[_0x1dc3('0x2e')][_0x1dc3('0x20')]==_0xf25cae);_0x40a37a[_0x1dc3('0x72')]&&_0x1c88bf[_0x1dc3('0x79')]()[_0x1dc3('0x72')]!=_0x40a37a[_0x1dc3('0x72')]&&_0x40a37a['reduce']((_0x11f330,_0x2592e7)=>(_0x11f330[_0x1dc3('0x1')]=_0x2592e7,_0x2592e7[_0x1dc3('0x8b')]=_0x11f330,_0x2592e7));};function _0x3cbcc8(_0x4d8ad7,_0xfa0d0a=!0x0){const {id:_0x1448b0}=_0x52b559['_splitMarkerName'](_0x4d8ad7['markerName']),_0x61cf29=[_0x1dc3('0x26'),'ck-suggestion-marker-insertion'],_0x117c64=_0x52b559['activeMarkers']['includes'](_0x4d8ad7['markerName']);return _0x117c64&&_0x61cf29[_0x1dc3('0x82')](_0x1dc3('0xb')),{'classes':_0x61cf29,'attributes':{'data-suggestion':_0x1448b0},'priority':_0x117c64&&_0xfa0d0a?0xbc2:0xbb8};}_0x52b559['on'](_0x1dc3('0x51'),_0xf6944e,{'priority':'high'}),_0x52b559['on'](_0x1dc3('0x55'),_0xf6944e,{'priority':_0x1dc3('0x95')}),_0x43a966['model'][_0x1dc3('0x34')][_0x1dc3('0x42')](()=>{let _0x23b70b=!0x1;const _0x183069=Array[_0x1dc3('0x66')](_0x43a966[_0x1dc3('0x27')][_0x1dc3('0x34')][_0x1dc3('0x37')]['getChangedMarkers']());for(const {name:_0x58899a,data:_0x3a5fdf}of _0x183069){const {group:_0x4f10d3,type:_0x368d6f,id:_0x568c11}=_0x52b559[_0x1dc3('0x25')](_0x58899a);if(_0x1dc3('0x3f')!=_0x4f10d3||_0x1dc3('0x81')!=_0x368d6f||_0x3a5fdf[_0x1dc3('0x4a')])continue;if(!_0x52b559[_0x1dc3('0x54')](_0x568c11))continue;const _0x406152=_0x52b559[_0x1dc3('0x67')](_0x568c11)[_0x1dc3('0x8c')](),_0x52d7fc=_0x43a966[_0x1dc3('0x9e')][_0x1dc3('0x9f')](_0x1dc3('0x23'))['me'];for(const _0x5dc570 of _0x52b559['getSuggestions']()){if(!_0x5dc570[_0x1dc3('0x5d')]||_0x5dc570[_0x1dc3('0x93')]!=_0x52d7fc)continue;if('formatBlock'!=_0x5dc570[_0x1dc3('0x52')]||_0x1dc3('0x99')!=_0x5dc570[_0x1dc3('0x71')])continue;if(_0x5dc570[_0x1dc3('0x8c')]()[_0x1dc3('0x30')](_0x1cc4b8=>_0x406152['some'](_0x4566ee=>_0x4566ee[_0x1dc3('0x58')](_0x1cc4b8,!0x0))))for(const _0x45d0d0 of _0x5dc570[_0x1dc3('0x79')]())_0x45d0d0['isInContent']&&(_0x45d0d0[_0x1dc3('0x22')](),_0x23b70b=!0x0);}}return _0x23b70b;}),_0x43a966['model'][_0x1dc3('0x34')][_0x1dc3('0x42')](_0x24b5b9=>{const _0x3894f3=_0x43a966['commands'][_0x1dc3('0x9f')](_0x1dc3('0x7'));if(!_0x3894f3||!_0x3894f3['_createdBatches']['has'](_0x24b5b9['batch']))return!0x1;let _0x5c73f7=!0x1;const _0x350e1f=_0x43a966[_0x1dc3('0x9e')]['get'](_0x1dc3('0x23'))['me'],_0x106e2f=_0x43a966[_0x1dc3('0x27')][_0x1dc3('0x34')][_0x1dc3('0x37')][_0x1dc3('0x24')](),_0x2d4486=Array[_0x1dc3('0x66')](_0x43a966[_0x1dc3('0x27')][_0x1dc3('0x34')]['differ'][_0x1dc3('0x1a')]())[_0x1dc3('0x28')](({name:_0x4b05b3,data:_0x32f8a5})=>{const {group:_0xa5bcfb,subType:_0x61a974,authorId:_0x3e2325}=_0x52b559[_0x1dc3('0x25')](_0x4b05b3);return _0x1dc3('0x3f')==_0xa5bcfb&&_0x1dc3('0x73')==_0x61a974&&_0x3e2325==_0x350e1f['id']&&!_0x32f8a5[_0x1dc3('0x4a')];});for(const _0x315a13 of _0x106e2f){if(_0x1dc3('0x1d')!=_0x315a13[_0x1dc3('0x52')]||'tableCellSuggestion'!=_0x315a13[_0x1dc3('0x65')]||0x1!=_0x315a13[_0x1dc3('0x72')])continue;const _0x1a5541=_0x24b5b9[_0x1dc3('0x77')](_0x315a13['position'],_0x315a13[_0x1dc3('0x7c')][_0x1dc3('0xc')](0x1));if(!_0x2d4486[_0x1dc3('0x91')](({data:_0x238c6e})=>_0x238c6e[_0x1dc3('0x6f')][_0x1dc3('0x9')](_0x1a5541)))for(const {name:_0x37b182,data:_0x1e44c0}of _0x2d4486)if(_0x1a5541[_0x1dc3('0x58')](_0x1e44c0[_0x1dc3('0x6f')])){_0x24b5b9['updateMarker'](_0x37b182,{'range':_0x1a5541}),_0x5c73f7=!0x0;break;}}return _0x5c73f7;}),_0x43a966['model']['document'][_0x1dc3('0x42')](_0x2309dc=>{let _0xdbfd1b=!0x1;const _0x36b367=_0x43a966[_0x1dc3('0x9e')][_0x1dc3('0x9f')](_0x1dc3('0x23'))['me'],_0x387673=_0x52b559['getSuggestions']()[_0x1dc3('0x28')](_0x24cf1c=>_0x24cf1c[_0x1dc3('0x5d')]&&_0x24cf1c[_0x1dc3('0x93')]==_0x36b367),_0x2fa42e=new Set(),_0x204b53=new Set();for(const _0x11c796 of _0x387673)if(_0x1dc3('0x73')==_0x11c796[_0x1dc3('0x71')])for(const _0x4b083e of _0x11c796[_0x1dc3('0x16')]()){const _0x111d68=_0x4b083e[_0x1dc3('0x53')]()[_0x1dc3('0x4d')]();if(_0x111d68){if(_0x111d68['is']('element',_0x1dc3('0x1b'))&&ce(_0x111d68)){_0x11c796['removeMarker'](_0x4b083e['name']),_0x2fa42e[_0x1dc3('0x2b')](_0x111d68),_0xdbfd1b=!0x0;const _0x10c4fb=_0x111d68[_0x1dc3('0x9a')],_0x1be11e=_0x111d68[_0x1dc3('0x5a')],_0x2aaf40=_0x10c4fb&&_0x10c4fb['is'](_0x1dc3('0x9c'),_0x1dc3('0x1b')),_0x1ebc5c=_0x1be11e&&_0x1be11e['is']('element',_0x1dc3('0x1b'));_0x2aaf40&&!_0x2fa42e['has'](_0x10c4fb)&&_0x204b53['add'](_0x10c4fb),_0x1ebc5c&&!_0x2fa42e[_0x1dc3('0x56')](_0x1be11e)&&_0x204b53[_0x1dc3('0x2b')](_0x1be11e);}else _0x111d68['is']('element',_0x1dc3('0x61'))&&_0x111d68[_0x1dc3('0x2a')]&&(_0x11c796[_0x1dc3('0x7a')](_0x4b083e[_0x1dc3('0x65')]),_0xdbfd1b=!0x0);}}else{if(_0x1dc3('0x99')==_0x11c796[_0x1dc3('0x71')]){if(!_0x11c796['attributes']||!_0x11c796[_0x1dc3('0x2e')][_0x1dc3('0x20')])continue;const _0x1e8bf7=_0x11c796[_0x1dc3('0x2e')][_0x1dc3('0x33')];if(_0x1e8bf7&&Object[_0x1dc3('0xf')](_0x1e8bf7)[_0x1dc3('0x72')])continue;const _0x15e22b=_0x11c796[_0x1dc3('0x2e')][_0x1dc3('0x20')];let _0x49a4e7=!0x0,_0x506c3d=!0x0;for(const _0x15acd1 of _0x387673)if(_0x15acd1[_0x1dc3('0x71')]&&_0x15acd1[_0x1dc3('0x71')][_0x1dc3('0x11')](_0x1dc3('0x73'))){if(!_0x15acd1[_0x1dc3('0x2e')][_0x1dc3('0x20')]){_0x506c3d=!0x1;break;}if(_0x15acd1['id']!=_0x11c796['id']&&_0x15acd1['attributes'][_0x1dc3('0x20')]==_0x15e22b){_0x49a4e7=!0x1;break;}}_0x506c3d&&_0x49a4e7&&(_0x11c796[_0x1dc3('0x3')](),_0xdbfd1b=!0x0);}}for(const _0x3dff77 of _0x2fa42e)_0x2309dc[_0x1dc3('0x4b')](_0x3dff77);for(const _0x30b111 of _0x204b53)_0x2309dc['unwrap'](_0x30b111);return _0xdbfd1b;}),_0x43a966[_0x1dc3('0x5c')][_0x1dc3('0xe')](_0x1dc3('0x75'))[_0x1dc3('0x31')]({'model':_0x1dc3('0x38'),'view':(_0x6513fa,_0x417e33)=>_0x3cbcc8(_0x6513fa),'converterPriority':_0x1dc3('0x95')}),_0x43a966[_0x1dc3('0x5c')][_0x1dc3('0xe')](_0x1dc3('0x8d'))[_0x1dc3('0x31')]({'model':_0x1dc3('0x38'),'view':(_0x4cc8b4,_0x13a5a6)=>_0x13a5a6[_0x1dc3('0x9d')][_0x1dc3('0x74')]?_0x3cbcc8(_0x4cc8b4,!0x1):null,'converterPriority':_0x1dc3('0x95')});const _0x2c8f15=_0x43a966[_0x1dc3('0x5f')]['view'];this[_0x1dc3('0x8')](_0x2c8f15[_0x1dc3('0x34')],'clipboardOutput',(_0x11dc3e,_0x4bb501)=>{const _0x801856=[];for(const _0x402c01 of _0x2c8f15[_0x1dc3('0x64')](_0x4bb501[_0x1dc3('0x84')])[_0x1dc3('0x63')]())_0x402c01['is']('element',_0x1dc3('0x45'))&&_0x801856[_0x1dc3('0x82')](_0x402c01);_0x2c8f15['change'](_0x4e34a8=>{for(const _0x5d5f6c of _0x801856)_0x4e34a8[_0x1dc3('0x35')](_0x4e34a8[_0x1dc3('0x64')](_0x5d5f6c),_0x4e34a8[_0x1dc3('0x6c')](_0x5d5f6c)),_0x4e34a8[_0x1dc3('0x4b')](_0x5d5f6c);});});}}function ce(_0x5ba95e){if(_0x5ba95e['isEmpty'])return!0x0;const _0x3f60e2=_0x5ba95e[_0x1dc3('0x43')](0x0);return _0x3f60e2['is']('element',_0x1dc3('0x61'))&&_0x3f60e2[_0x1dc3('0x2a')];}function fe(_0x493379,_0x4e1312={},_0x401e1f){for(const {isAnchor:_0x5238e2,cellHeight:_0x52f9e3,cellWidth:_0x14da2c}of _0x401e1f[_0x1dc3('0x46')](_0x493379,{'includeAllSlots':!0x0,..._0x4e1312}))if(!_0x5238e2||0x1!=_0x52f9e3||0x1!=_0x14da2c)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x503d=['registerDescriptionCallback','discard','accept','resizeTableWidth','getSuggestions','bind','getContainedElement','_suggestionFactory','model','registerCustomCallback','tableWidth','subType','handleSuggestionDescription','table','change','*Format:*\x20resize\x20table','data','get','resizeTable','TrackChangesEditing','editor','columnWidths','TableColumnResizeEditing','_descriptionFactory','getAttribute','getTableColumnsWidths','enableCommand','locale','document','format','formatBlock','author','getSuggestionCallback','handleResizeTableWidthCommand','resizeColumnWidths','plugins','Users'];(function(_0xc81ed4,_0x503d25){const _0x59e6d1=function(_0x314ee6){while(--_0x314ee6){_0xc81ed4['push'](_0xc81ed4['shift']());}};_0x59e6d1(++_0x503d25);}(_0x503d,0x98));const _0x59e6=function(_0xc81ed4,_0x503d25){_0xc81ed4=_0xc81ed4-0x0;let _0x59e6d1=_0x503d[_0xc81ed4];return _0x59e6d1;};import{Plugin as _0x460708}from'ckeditor5/src/core';import{getTranslation as _0x1caa24}from'../utils/common-translations';export default class wt extends _0x460708{['afterInit'](){if(!this['editor'][_0x59e6('0x1f')]['has']('TableColumnResizeEditing'))return;const _0x3c7427=this[_0x59e6('0x10')][_0x59e6('0x1f')]['get']('TrackChangesEditing');_0x3c7427[_0x59e6('0x16')]('resizeTableWidth',this[_0x59e6('0x1d')][_0x59e6('0x1')](this)),_0x3c7427[_0x59e6('0x16')](_0x59e6('0x1e'),this[_0x59e6('0x1d')][_0x59e6('0x1')](this)),_0x3c7427[_0x59e6('0x3')][_0x59e6('0x5')]('formatBlock','resizeTable',_0x59e6('0x23'),_0x3c7427[_0x59e6('0x3')][_0x59e6('0x1c')](_0x59e6('0x1a'),null,_0x59e6('0x22'))),_0x3c7427[_0x59e6('0x3')][_0x59e6('0x5')](_0x59e6('0x1a'),_0x59e6('0xe'),_0x59e6('0x22'),_0x3c7427[_0x59e6('0x3')][_0x59e6('0x1c')](_0x59e6('0x1a'),null,_0x59e6('0x23'))),_0x3c7427[_0x59e6('0x13')][_0x59e6('0x21')](this[_0x59e6('0x8')][_0x59e6('0x1')](this));}[_0x59e6('0x1d')](_0x5851ae,_0x28f17e){const _0x1971a3=this[_0x59e6('0x10')][_0x59e6('0x1f')]['get'](_0x59e6('0xf')),_0x35b04b=this[_0x59e6('0x10')][_0x59e6('0x1f')][_0x59e6('0xd')](_0x59e6('0x12')),_0x250ee7=_0x28f17e[_0x59e6('0x9')]||this['editor'][_0x59e6('0x4')][_0x59e6('0x18')]['selection']['getSelectedElement']();this[_0x59e6('0x10')][_0x59e6('0x4')][_0x59e6('0xa')](()=>{const _0xe34800=_0x35b04b['getColumnGroupElement'](_0x250ee7);let _0x836d10=_0xe34800?_0x35b04b[_0x59e6('0x15')](_0xe34800):null,_0x33dcaf=_0x250ee7[_0x59e6('0x14')](_0x59e6('0x6'))||null;const _0x299c3f=_0x28f17e[_0x59e6('0x6')]||_0x33dcaf,_0x1c7ea2=_0x28f17e[_0x59e6('0x11')]||_0x836d10,_0x11313a=this[_0x59e6('0x10')][_0x59e6('0x1f')]['get'](_0x59e6('0x20'))['me'];for(const _0x179509 of _0x1971a3[_0x59e6('0x0')]()){const _0x50d7df=_0x179509[_0x59e6('0x2')]();if('resizeTable'===_0x179509[_0x59e6('0x7')]&&_0x50d7df===_0x250ee7){_0x179509[_0x59e6('0x1b')]!==_0x11313a&&_0x179509[_0x59e6('0x22')]();const _0x275c14=_0x179509[_0x59e6('0xc')]['commandParams'];_0x33dcaf=_0x275c14[0x0][_0x59e6('0x6')],_0x836d10=_0x275c14[0x0][_0x59e6('0x11')];break;}}_0x5851ae({'table':_0x250ee7,'tableWidth':_0x299c3f,'columnWidths':_0x1c7ea2}),_0x1971a3['markBlockFormat'](_0x250ee7,{'commandName':_0x59e6('0x24'),'commandParams':[{'tableWidth':_0x33dcaf,'columnWidths':_0x836d10}],'formatGroupId':'resizeTable'},[],'resizeTable');});}[_0x59e6('0x8')](_0x306ad6){const {data:_0x42ad8b}=_0x306ad6;if(_0x42ad8b&&_0x59e6('0xe')===_0x42ad8b['formatGroupId']){const _0x2aa986=_0x59e6('0xb');return{'type':_0x59e6('0x19'),'content':_0x1caa24(this[_0x59e6('0x10')][_0x59e6('0x17')],_0x2aa986)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39ab=['editor','consume','FORMAT_HEADER_ROW','addMarker:suggestion','removeClass','_suggestionFactory','getChild','bindElementToMarker','data-suggestion','plugins','accept','locale','value','document','cell','get','editing','registerDescriptionCallback','end','FORMAT_REGULAR_COLUMN','getRowIndexes','ck-suggestion-marker--active','index','removeAttribute','options','highest','has','enableCommand','stop','getAttribute','addClass','markerName','removeMarker:suggestion','commandName','FORMAT_REGULAR_ROW','_splitMarkerName','markBlockFormat','commands','ck-suggestion-marker-','table','createPositionAfter','_acceptFormatSuggestionCallbackFactory','mapper','includes','TrackChangesEditing','headingRows','first','TableUtils','getSuggestion','getCellLocation','headingColumns','from','setTableColumnHeader','requires','last','getColumnIndexes','childCount','writer','isBefore','change','markerRange','afterInit','data','getSelectionAffectedTableCells','downcastDispatcher','setTableRowHeader','forceValue','markerNameToElements','unbindElementFromMarkerName','selection','format','parent','model','name','nodeAfter','registerCustomCallback','createPositionBefore','_descriptionFactory','createRange','setAttribute','createTableWalker','nodeBefore'];(function(_0x3f2285,_0x39abd2){const _0xf7b35f=function(_0x55ed7e){while(--_0x55ed7e){_0x3f2285['push'](_0x3f2285['shift']());}};_0xf7b35f(++_0x39abd2);}(_0x39ab,0x16d));const _0xf7b3=function(_0x3f2285,_0x39abd2){_0x3f2285=_0x3f2285-0x0;let _0xf7b35f=_0x39ab[_0x3f2285];return _0xf7b35f;};import{Plugin as _0x3ef920}from'ckeditor5/src/core';import _0x5524e2 from'./table';import{getTranslation as _0x243e95}from'../utils/common-translations';export default class pt extends _0x3ef920{static get[_0xf7b3('0x10')](){return[_0x5524e2];}[_0xf7b3('0x18')](){const _0x166109=this[_0xf7b3('0x2d')];if(!_0x166109['plugins'][_0xf7b3('0x47')]('TableEditing'))return;const _0x5629b9=_0x166109[_0xf7b3('0x38')],_0x4ad47f=_0x166109[_0xf7b3('0x36')]['get'](_0xf7b3('0x7')),_0x5298d7=_0x166109['plugins'][_0xf7b3('0x3c')]('TableUtils'),_0x4d44cb=_0x166109[_0xf7b3('0x36')][_0xf7b3('0x3c')](_0x5524e2);function _0x3ae1db({showActiveMarker:_0x241045=!0x0,setDataAttribute:_0x39f788=!0x0}={}){return(_0xc39472,_0x4a8baf,_0xa7bba2)=>{const {type:_0x2f953f,id:_0x49cf4d}=_0x4ad47f[_0xf7b3('0x50')](_0x4a8baf[_0xf7b3('0x4c')]),_0x192c9c=_0x4ad47f[_0xf7b3('0xb')](_0x49cf4d);if(!_0x192c9c['data']||_0xf7b3('0xf')!=_0x192c9c['data'][_0xf7b3('0x4e')])return;if(_0x4a8baf['item'])return void _0xc39472[_0xf7b3('0x49')]();if(!_0xa7bba2['consumable'][_0xf7b3('0x2e')](_0x4a8baf[_0xf7b3('0x17')],_0xc39472[_0xf7b3('0x24')]))return;const _0x2b114e=_0x4a8baf[_0xf7b3('0x17')]['start'][_0xf7b3('0x25')],_0x3d397c=_0x4a8baf[_0xf7b3('0x17')][_0xf7b3('0x3f')][_0xf7b3('0x2c')],_0x531fb8=_0x2b114e[_0xf7b3('0x22')]['parent'],{column:_0x268929}=_0x5298d7[_0xf7b3('0xc')](_0x2b114e),{column:_0x5bbb7d}=_0x5298d7[_0xf7b3('0xc')](_0x3d397c);for(let _0x299cba=_0x268929;_0x299cba<=_0x5bbb7d;_0x299cba++){const _0x302739=_0x5298d7[_0xf7b3('0x2b')](_0x531fb8,{'column':_0x299cba,'includeAllSlots':!0x1});for(const _0x571797 of _0x302739){const _0xaa6594=_0x571797[_0xf7b3('0x3b')],_0x402cf6=_0xa7bba2[_0xf7b3('0x5')]['toViewElement'](_0xaa6594);_0xa7bba2[_0xf7b3('0x14')][_0xf7b3('0x4b')]('ck-suggestion-marker-'+_0x2f953f,_0x402cf6),_0x39f788&&_0xa7bba2[_0xf7b3('0x14')][_0xf7b3('0x2a')](_0xf7b3('0x35'),_0x49cf4d,_0x402cf6),_0xa7bba2[_0xf7b3('0x5')][_0xf7b3('0x34')](_0x402cf6,_0x4a8baf['markerName']),_0x241045&&(_0x4ad47f['activeMarkers'][_0xf7b3('0x6')](_0x4a8baf[_0xf7b3('0x4c')])?_0xa7bba2['writer'][_0xf7b3('0x4b')](_0xf7b3('0x42'),_0x402cf6):_0xa7bba2[_0xf7b3('0x14')]['removeClass'](_0xf7b3('0x42'),_0x402cf6));}}};}_0x4ad47f[_0xf7b3('0x48')](_0xf7b3('0x1c'),(_0x412b60,_0x129686)=>{const _0xe067d0=_0x5298d7[_0xf7b3('0x1a')](_0x166109[_0xf7b3('0x23')]['document'][_0xf7b3('0x20')]),_0xd4217e=_0x5298d7[_0xf7b3('0x41')](_0xe067d0),_0x15bc2b=_0xe067d0[0x0]['findAncestor']('table'),_0x1d026b=_0x15bc2b[_0xf7b3('0x4a')](_0xf7b3('0x8'))||0x0,_0xff8db8=_0x129686&&null!==_0x129686[_0xf7b3('0x1d')]?_0x129686['forceValue']:!_0x166109['commands'][_0xf7b3('0x3c')](_0xf7b3('0x1c'))[_0xf7b3('0x39')],_0x6eb36d=_0xff8db8?_0xd4217e[_0xf7b3('0x11')]:_0xd4217e['first'],_0x51f296=_0x15bc2b[_0xf7b3('0x33')](_0x6eb36d);let _0x56e35e;if(_0xff8db8){const _0x4c50db=_0x15bc2b['getChild'](_0x1d026b);if(_0x51f296[_0xf7b3('0x43')]<_0x4c50db[_0xf7b3('0x43')])return;_0x56e35e=_0x166109[_0xf7b3('0x23')]['createRange'](_0x166109['model'][_0xf7b3('0x27')](_0x4c50db['getChild'](0x0)),_0x166109[_0xf7b3('0x23')][_0xf7b3('0x3')](_0x51f296[_0xf7b3('0x33')](_0x51f296[_0xf7b3('0x13')]-0x1)));}else{const _0x1c5928=_0x15bc2b[_0xf7b3('0x33')](_0x1d026b-0x1);if(!_0x1c5928)return;_0x56e35e=_0x166109['model'][_0xf7b3('0x29')](_0x166109[_0xf7b3('0x23')][_0xf7b3('0x27')](_0x51f296['getChild'](0x0)),_0x166109[_0xf7b3('0x23')][_0xf7b3('0x3')](_0x1c5928[_0xf7b3('0x33')](_0x1c5928[_0xf7b3('0x13')]-0x1)));}_0x166109[_0xf7b3('0x23')][_0xf7b3('0x16')](()=>{_0x4ad47f[_0xf7b3('0x51')](_0x56e35e,{'commandName':_0xf7b3('0x1c'),'commandParams':[{'forceValue':_0xff8db8}]},[],_0xf7b3('0x1c'));});}),_0x4ad47f[_0xf7b3('0x48')]('setTableColumnHeader',(_0x36887d,_0x1e3ecf)=>{const _0x541681=_0x166109['plugins'][_0xf7b3('0x3c')](_0xf7b3('0xa')),_0x26d159=_0x541681[_0xf7b3('0x1a')](_0x166109[_0xf7b3('0x23')][_0xf7b3('0x3a')][_0xf7b3('0x20')]),_0x29357e=_0x541681[_0xf7b3('0x12')](_0x26d159),_0x10edee=_0x26d159[0x0]['findAncestor'](_0xf7b3('0x2')),_0x147f57=_0x10edee[_0xf7b3('0x4a')](_0xf7b3('0xd'))||0x0,_0x37a7c0=_0x1e3ecf&&null!==_0x1e3ecf['forceValue']?_0x1e3ecf[_0xf7b3('0x1d')]:!_0x166109[_0xf7b3('0x0')][_0xf7b3('0x3c')]('setTableColumnHeader')['value'];let _0x46bb54;const _0x3e1ba9=_0x10edee['getChild'](0x0),_0x38a593=_0x37a7c0?_0x29357e['last']:_0x29357e[_0xf7b3('0x9')],_0x3557b5=_0x541681['createTableWalker'](_0x10edee,{'startRow':0x0,'column':_0x38a593,'includeAllSlots':!0x1}),_0x32cf4d=Array[_0xf7b3('0xe')](_0x3557b5)[0x0]['cell'];if(_0x37a7c0){const _0x1868d7=_0x3e1ba9[_0xf7b3('0x33')](_0x147f57);if(_0x32cf4d[_0xf7b3('0x15')](_0x1868d7))return;_0x46bb54=_0x166109[_0xf7b3('0x23')][_0xf7b3('0x29')](_0x166109[_0xf7b3('0x23')][_0xf7b3('0x27')](_0x1868d7),_0x166109['model'][_0xf7b3('0x3')](_0x32cf4d));}else{const _0x31d97a=_0x3e1ba9[_0xf7b3('0x33')](_0x147f57-0x1);if(!_0x31d97a)return;_0x46bb54=_0x166109[_0xf7b3('0x23')][_0xf7b3('0x29')](_0x166109[_0xf7b3('0x23')]['createPositionBefore'](_0x32cf4d),_0x166109[_0xf7b3('0x23')][_0xf7b3('0x3')](_0x31d97a));}_0x166109[_0xf7b3('0x23')][_0xf7b3('0x16')](()=>{_0x4ad47f[_0xf7b3('0x51')](_0x46bb54,{'commandName':_0xf7b3('0xf'),'commandParams':[{'forceValue':_0x37a7c0}]},[],_0xf7b3('0xf'));});}),_0x166109[_0xf7b3('0x3d')][_0xf7b3('0x1b')]['on'](_0xf7b3('0x30'),_0x3ae1db(),{'priority':_0xf7b3('0x46')}),_0x166109[_0xf7b3('0x19')][_0xf7b3('0x1b')]['on'](_0xf7b3('0x30'),(_0x32d1d6,_0x42d878,_0xde72)=>{_0xde72[_0xf7b3('0x45')]['showSuggestionHighlights']&&_0x3ae1db({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x32d1d6,_0x42d878,_0xde72);},{'priority':_0xf7b3('0x46')}),_0x166109[_0xf7b3('0x3d')][_0xf7b3('0x1b')]['on'](_0xf7b3('0x4d'),(_0x5163a2,_0x43b37a,_0x464695)=>{const {type:_0x4a9387,id:_0x13dd5c}=_0x4ad47f[_0xf7b3('0x50')](_0x43b37a[_0xf7b3('0x4c')]),_0x36e133=_0x4ad47f[_0xf7b3('0xb')](_0x13dd5c);if(!_0x36e133[_0xf7b3('0x19')]||_0xf7b3('0xf')!=_0x36e133[_0xf7b3('0x19')][_0xf7b3('0x4e')])return;const _0x51a0a4=_0x464695[_0xf7b3('0x5')][_0xf7b3('0x1e')](_0x43b37a[_0xf7b3('0x4c')]);if(_0x51a0a4)for(const _0x4f9284 of _0x51a0a4)_0x464695[_0xf7b3('0x14')][_0xf7b3('0x31')](_0xf7b3('0x1')+_0x4a9387,_0x4f9284),_0x464695[_0xf7b3('0x14')][_0xf7b3('0x31')](_0xf7b3('0x42'),_0x4f9284),_0x464695['writer'][_0xf7b3('0x44')](_0xf7b3('0x35'),_0x4f9284),_0x464695['mapper'][_0xf7b3('0x1f')](_0x4f9284,_0x43b37a[_0xf7b3('0x4c')]);},{'priority':_0xf7b3('0x46')}),_0x4ad47f[_0xf7b3('0x28')][_0xf7b3('0x3e')](_0x14906a=>{const {data:_0x3ef0e5}=_0x14906a;if(_0x3ef0e5){if(_0xf7b3('0x1c')==_0x3ef0e5[_0xf7b3('0x4e')]){const _0x32554e=_0x3ef0e5['commandParams'][0x0][_0xf7b3('0x1d')];return _0x3f7fcf(_0x243e95(_0x5629b9,_0x32554e?_0xf7b3('0x2f'):_0xf7b3('0x4f')));}if(_0xf7b3('0xf')==_0x3ef0e5[_0xf7b3('0x4e')]){const _0x1b07e0=_0x3ef0e5['commandParams'][0x0][_0xf7b3('0x1d')];return _0x3f7fcf(_0x243e95(_0x5629b9,_0x1b07e0?'FORMAT_HEADER_COLUMN':_0xf7b3('0x40')));}}function _0x3f7fcf(_0x44c031){return{'type':_0xf7b3('0x21'),'content':_0x243e95(_0x5629b9,'*Format:*\x20%0',_0x44c031)};}});const _0x39a43=_0x4d44cb[_0xf7b3('0x4')]();_0x4ad47f[_0xf7b3('0x32')][_0xf7b3('0x26')]('formatBlock',_0xf7b3('0x1c'),_0xf7b3('0x37'),_0x39a43),_0x4ad47f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xf7b3('0xf'),_0xf7b3('0x37'),_0x39a43);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5107=['createRangeOn','fromRange','find','TableUtils','length','commands','enableCommand','stop','filter','root','change','$graveyard','has','mergeTableCellDown','tableCell','afterInit','execute','value','*Split\x20cell:*\x20horizontally','_tablePostFixingSubtypes','mergeTableCellRight','splitTableCellVertically','trackChanges','markBlockFormat','deletion','push','insertion','refresh','splitTableCellHorizontally','getFirstPosition','TableEditing','mergeTableCellUp','format','rootName','highest','_areMergableCells','plugins','element','_descriptionFactory','markMultiRangeBlockFormat','map','*Split\x20cell:*\x20vertically','TrackChangesEditing','editor','author','from','forceDefaultExecution','commandName','mergeTableCellLeft','registerCustomCallback','table','return','formatBlock','locale','findAncestor','selection','getRanges','mergeTableCells','size','type','setSelection','getCellLocation','containsRange','isEnabled','_suggestionFactory','isInContent','low','get','accept','subType','horizontally','model','direction','createTableWalker','_areSelectedCellsMergable','getSelectionAffectedTableCells','document','getAncestors','registerDescriptionCallback'];(function(_0x459c7b,_0x510712){const _0x180a3b=function(_0x36b61c){while(--_0x36b61c){_0x459c7b['push'](_0x459c7b['shift']());}};_0x180a3b(++_0x510712);}(_0x5107,0x188));const _0x180a=function(_0x459c7b,_0x510712){_0x459c7b=_0x459c7b-0x0;let _0x180a3b=_0x5107[_0x459c7b];return _0x180a3b;};import{Plugin as _0xdbf104}from'ckeditor5/src/core';import _0x450cb5 from'./table';import{LiveRange as _0x17f4f5}from'ckeditor5/src/engine';import{getTranslation as _0xcf0d7e}from'../utils/common-translations';export default class dt extends _0xdbf104{static get['requires'](){return[_0x450cb5];}[_0x180a('0x12')](){const _0x2775ea=this[_0x180a('0x2e')],_0x51e8cd=_0x2775ea[_0x180a('0x4a')][_0x180a('0x0')][_0x180a('0x3a')],_0x3d27da=_0x2775ea[_0x180a('0x38')];if(!_0x2775ea['plugins'][_0x180a('0xf')](_0x180a('0x21')))return;const _0x3a5b8d=_0x2775ea[_0x180a('0x27')][_0x180a('0x46')](_0x180a('0x2d')),_0x90ae2f=_0x2775ea['plugins']['get'](_0x180a('0x6')),_0x55bc2c=_0x2775ea[_0x180a('0x27')][_0x180a('0x46')](_0x450cb5);_0x55bc2c[_0x180a('0x16')][_0x180a('0x1c')](_0x180a('0x3c')),_0x3a5b8d['enableCommand'](_0x180a('0x3c'),()=>{const _0x225742=_0x90ae2f[_0x180a('0x4e')](_0x2775ea[_0x180a('0x4a')][_0x180a('0x0')]['selection']);_0x2775ea[_0x180a('0x4a')][_0x180a('0xd')](()=>{_0x3a5b8d[_0x180a('0x2a')](_0x225742,{'commandName':_0x180a('0x3c'),'commandParams':[]},[],_0x180a('0x3c'));});}),_0x2775ea[_0x180a('0x8')][_0x180a('0x46')](_0x180a('0x3c'))['on'](_0x180a('0x13'),(_0x4a573d,_0x5d8121)=>{_0x2775ea['commands'][_0x180a('0x46')](_0x180a('0x19'))[_0x180a('0x14')]&&(_0x5d8121['length']>0x0&&_0x5d8121[_0x5d8121['length']-0x1]&&_0x5d8121[_0x5d8121[_0x180a('0x7')]-0x1][_0x180a('0x31')]||_0x3a5b8d['_isForcedDefaultExecutionBlock']||this[_0x180a('0x4d')]()||_0x4a573d['stop']());},{'priority':_0x180a('0x25')});for(const _0x510f74 of[_0x180a('0x22'),_0x180a('0x17'),_0x180a('0x10'),_0x180a('0x33')]){const _0x3e52d4=_0x2775ea[_0x180a('0x8')][_0x180a('0x46')](_0x510f74);_0x3a5b8d[_0x180a('0x9')](_0x510f74,()=>{const _0x4f5f23=_0x2775ea['model'][_0x180a('0x0')][_0x180a('0x3a')][_0x180a('0x20')]()['getAncestors']()['find'](_0x1ac54c=>_0x1ac54c['is'](_0x180a('0x28'),_0x180a('0x11'))),_0x4add37=_0x3e52d4[_0x180a('0x14')];_0x2775ea[_0x180a('0x4a')][_0x180a('0xd')](()=>{_0x3a5b8d[_0x180a('0x2a')]([_0x4f5f23,_0x4add37],{'commandName':_0x180a('0x3c'),'commandParams':[]},[],_0x180a('0x3c'));});});}for(const _0x40add6 of[_0x180a('0x18'),_0x180a('0x1f')]){const _0x27391c=_0x2775ea[_0x180a('0x8')][_0x180a('0x46')](_0x40add6);_0x3a5b8d[_0x180a('0x9')](_0x40add6,()=>{const _0x25833f=_0x90ae2f['getSelectionAffectedTableCells'](_0x2775ea[_0x180a('0x4a')]['document'][_0x180a('0x3a')])[0x0],_0x423d12=_0x25833f[_0x180a('0x39')](_0x180a('0x35')),{column:_0x28550c,row:_0x5756e3}=_0x90ae2f[_0x180a('0x40')](_0x25833f);let _0x36b755=[];if(_0x180a('0x49')==_0x27391c[_0x180a('0x4b')]){const _0x430846=_0x90ae2f[_0x180a('0x4c')](_0x423d12,{'startRow':_0x5756e3,'endRow':_0x5756e3,'includeAllSlots':!0x0});_0x36b755=Array['from'](_0x430846)['map'](_0xcbdd7d=>_0xcbdd7d['cell']);}else{const _0x206d2c=_0x90ae2f[_0x180a('0x4c')](_0x423d12,{'column':_0x28550c,'includeAllSlots':!0x0});_0x36b755=Array[_0x180a('0x30')](_0x206d2c)[_0x180a('0x2b')](_0x1541c9=>_0x1541c9['cell']);}_0x2775ea[_0x180a('0x4a')][_0x180a('0xd')](_0xebde9a=>{_0x3a5b8d[_0x180a('0x1a')](_0xebde9a[_0x180a('0x3')](_0x25833f),{'commandName':_0x40add6,'commandParams':[]},_0x36b755,_0x40add6);});});}_0x3a5b8d[_0x180a('0x29')][_0x180a('0x2')](_0x45630e=>{const {data:_0x1d6de9}=_0x45630e;if(_0x1d6de9)return'mergeTableCells'==_0x1d6de9[_0x180a('0x32')]?{'type':_0x180a('0x23'),'content':_0xcf0d7e(_0x3d27da,'*Merge\x20cells*')}:void 0x0;}),_0x3a5b8d[_0x180a('0x29')][_0x180a('0x2')](_0x90c9f7=>{const {data:_0xe44593}=_0x90c9f7;if(_0xe44593)return _0x180a('0x18')==_0xe44593['commandName']?{'type':_0x180a('0x23'),'content':_0xcf0d7e(_0x3d27da,_0x180a('0x2c'))}:_0x180a('0x1f')==_0xe44593[_0x180a('0x32')]?{'type':_0x180a('0x23'),'content':_0xcf0d7e(_0x3d27da,_0x180a('0x15'))}:void 0x0;});const _0x31aa39=_0x55bc2c['_acceptFormatSuggestionCallbackFactory']();for(const _0x22fa70 of[_0x180a('0x22'),'mergeTableCellRight',_0x180a('0x10'),_0x180a('0x33')])_0x3a5b8d[_0x180a('0x43')]['registerCustomCallback'](_0x180a('0x37'),_0x22fa70,_0x180a('0x47'),_0x31aa39);for(const _0x2f3b23 of['splitTableCellVertically',_0x180a('0x1f')])_0x3a5b8d[_0x180a('0x43')][_0x180a('0x34')](_0x180a('0x37'),_0x2f3b23,'accept',_0x31aa39);_0x3a5b8d['_suggestionFactory'][_0x180a('0x34')](_0x180a('0x37'),'mergeTableCells','accept',_0x156ab0=>{_0x2775ea['model'][_0x180a('0xd')](_0xfdcd90=>{const _0x48cc56=Array[_0x180a('0x30')](_0x51e8cd[_0x180a('0x3b')]())[_0x180a('0x2b')](_0x5938d6=>_0x17f4f5[_0x180a('0x4')](_0x5938d6));_0xfdcd90[_0x180a('0x3f')](_0x156ab0),_0x2775ea[_0x180a('0x8')][_0x180a('0x46')](_0x180a('0x3c'))[_0x180a('0x1e')](),_0x2775ea[_0x180a('0x13')](_0x180a('0x3c'),{'forceDefaultExecution':!0x0});const _0x2b374f=_0x48cc56[_0x180a('0xb')](_0x34632f=>_0x180a('0xe')!=_0x34632f[_0x180a('0xc')][_0x180a('0x24')]);_0x2b374f['length']>0x0&&_0xfdcd90[_0x180a('0x3f')](_0x2b374f);for(const _0x568b49 of _0x48cc56)_0x568b49['detach']();});});for(const _0x5a2aa1 of[_0x180a('0x22'),_0x180a('0x10'),_0x180a('0x33'),_0x180a('0x17')]){const _0x183276=_0x2775ea[_0x180a('0x8')][_0x180a('0x46')](_0x5a2aa1);_0x183276['on']('set:isEnabled',(_0x34d679,_0x5c70c2,_0x45e206)=>{if(_0x45e206){const _0x3797ea=_0x2775ea[_0x180a('0x4a')]['document'][_0x180a('0x3a')][_0x180a('0x20')]()[_0x180a('0x1')]()[_0x180a('0x5')](_0x1b9975=>_0x1b9975['is']('element','tableCell'));this[_0x180a('0x26')](_0x183276[_0x180a('0x14')],_0x3797ea)||(_0x34d679[_0x180a('0x36')]=!0x1,_0x34d679[_0x180a('0xa')]());}},{'priority':_0x180a('0x45')});}}[_0x180a('0x4d')](){const _0x4af572=this[_0x180a('0x2e')][_0x180a('0x8')][_0x180a('0x46')](_0x180a('0x3c')),_0x13b827=this['editor'][_0x180a('0x27')][_0x180a('0x46')](_0x180a('0x6'));if(!_0x4af572[_0x180a('0x42')])return!0x1;const _0x188ce9=_0x13b827[_0x180a('0x4e')](this[_0x180a('0x2e')][_0x180a('0x4a')][_0x180a('0x0')]['selection']);for(const _0xc7e175 of _0x188ce9)for(const _0x5cabd2 of _0x188ce9)if(_0xc7e175!=_0x5cabd2&&!this[_0x180a('0x26')](_0xc7e175,_0x5cabd2))return!0x1;return!0x0;}[_0x180a('0x26')](_0x41ff2c,_0x2839d9){const _0x19e644=this[_0x180a('0x2e')][_0x180a('0x27')][_0x180a('0x46')](_0x180a('0x2d')),_0x3ba143=this[_0x180a('0x2e')][_0x180a('0x4a')][_0x180a('0x3')](_0x41ff2c),_0x332e3a=this['editor'][_0x180a('0x4a')][_0x180a('0x3')](_0x2839d9),_0xf359d3=new Set(),_0x7bce65=new Set();for(const _0x1c8fd4 of _0x19e644['getSuggestions']())if((_0x180a('0x1d')==_0x1c8fd4[_0x180a('0x3e')]||_0x180a('0x1b')==_0x1c8fd4[_0x180a('0x3e')]||_0x180a('0x3c')==_0x1c8fd4[_0x180a('0x48')])&&_0x1c8fd4[_0x180a('0x44')])for(const _0x731df8 of _0x1c8fd4[_0x180a('0x3b')]())_0x731df8['containsRange'](_0x3ba143,!0x0)&&_0xf359d3['add'](_0x1c8fd4[_0x180a('0x3e')]+':'+_0x1c8fd4[_0x180a('0x2f')]['id']),_0x731df8[_0x180a('0x41')](_0x332e3a,!0x0)&&_0x7bce65['add'](_0x1c8fd4[_0x180a('0x3e')]+':'+_0x1c8fd4['author']['id']);if(_0xf359d3[_0x180a('0x3d')]!=_0x7bce65['size'])return!0x1;for(const _0x1e3314 of _0xf359d3)if(!_0x7bce65[_0x180a('0xf')](_0x1e3314))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39c5=['insertTableOfContents','enableCommand','afterInit','plugins','_descriptionFactory','ELEMENT_TABLE_OF_CONTENTS','tableOfContents','get','registerElementLabel'];(function(_0x4a8b41,_0x39c51e){const _0x23f097=function(_0x48f8c6){while(--_0x48f8c6){_0x4a8b41['push'](_0x4a8b41['shift']());}};_0x23f097(++_0x39c51e);}(_0x39c5,0x77));const _0x23f0=function(_0x4a8b41,_0x39c51e){_0x4a8b41=_0x4a8b41-0x0;let _0x23f097=_0x39c5[_0x4a8b41];return _0x23f097;};import{Plugin as _0x5f546a}from'ckeditor5/src/core';import{getTranslation as _0xf481e6}from'../utils/common-translations';export default class bt extends _0x5f546a{[_0x23f0('0x0')](){const _0x7f08a9=this['editor'];if(!_0x7f08a9['commands']['get']('insertTableOfContents'))return;_0x7f08a9[_0x23f0('0x1')][_0x23f0('0x5')]('TrackChangesEditing')[_0x23f0('0x8')](_0x23f0('0x7'));const _0x332446=_0x7f08a9[_0x23f0('0x1')]['get']('TrackChangesEditing'),_0x2ad1df=_0x7f08a9['locale'];_0x332446[_0x23f0('0x2')][_0x23f0('0x6')](_0x23f0('0x4'),_0x56b4a7=>_0xf481e6(_0x2ad1df,_0x23f0('0x3'),_0x56b4a7));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3712=['tableCellProperties','tableCellHeight','setAttribute','subType','get','locale','registerDescriptionCallback','removeAttribute','pluginName','tableCellWidth','*Format:*\x20change\x20table\x20cell\x20properties','start','_getSuggestion','tableHeight','tableBorderColor','tableCellPadding','tableCellBorderWidth','enqueueChange','getSuggestions','enableCommand','accept','getContainedElement','tableBorderStyle','registerCustomCallback','tableCellHorizontalAlignment','TrackChangesEditing','handleSuggestionDescription','_suggestionFactory','handleDiscardAction','tableAlignment','tableCellBorderStyle','has','discard','selection','tableWidth','TablePropertiesEditing','join','tableCellVerticalAlignment','tableCellBorderColor','_handlePropertyChange','model','editor','findAncestor','document','batch','TableCellPropertiesEditing','afterInit','TableUtils','table','plugins','data','format','markBlockFormat','nodeAfter','change','formatBlock','getFirstPosition','*Format:*\x20change\x20table\x20properties','tableBorderWidth','tableProperties','TrackChangesTableProperties'];(function(_0x1de3ba,_0x371235){const _0x2fd359=function(_0x6d4406){while(--_0x6d4406){_0x1de3ba['push'](_0x1de3ba['shift']());}};_0x2fd359(++_0x371235);}(_0x3712,0xe1));const _0x2fd3=function(_0x1de3ba,_0x371235){_0x1de3ba=_0x1de3ba-0x0;let _0x2fd359=_0x3712[_0x1de3ba];return _0x2fd359;};import{Plugin as _0x252d68}from'ckeditor5/src/core';import{getTranslation as _0x440b84}from'../utils/common-translations';export default class Ct extends _0x252d68{constructor(_0x241639){super(_0x241639),this['tableProperties']=[_0x2fd3('0x21'),_0x2fd3('0x29'),_0x2fd3('0x10'),_0x2fd3('0x30'),_0x2fd3('0x35'),_0x2fd3('0x20'),'tableBackgroundColor'],this[_0x2fd3('0x13')]=[_0x2fd3('0x39'),_0x2fd3('0x31'),_0x2fd3('0x23'),_0x2fd3('0x22'),_0x2fd3('0x1c'),_0x2fd3('0x14'),'tableCellBackgroundColor',_0x2fd3('0x2b'),_0x2fd3('0x38')];}static get[_0x2fd3('0x1b')](){return _0x2fd3('0x12');}[_0x2fd3('0x4')](){const _0x1525f9=this[_0x2fd3('0x3c')][_0x2fd3('0x7')][_0x2fd3('0x17')](_0x2fd3('0x2c'));if(this[_0x2fd3('0x3c')]['plugins'][_0x2fd3('0x32')](_0x2fd3('0x36'))){for(const _0x162ba1 of this[_0x2fd3('0x11')])_0x1525f9[_0x2fd3('0x26')](_0x162ba1,(_0x5e5859,_0x267ae6)=>{const _0x1b252c=this['editor'][_0x2fd3('0x3b')][_0x2fd3('0x1')][_0x2fd3('0x34')][_0x2fd3('0xe')]()[_0x2fd3('0x0')](_0x2fd3('0x6'));this['_handlePropertyChange'](_0x162ba1,[_0x1b252c],this[_0x2fd3('0x11')],'tableProperties',_0x5e5859,_0x267ae6);});_0x1525f9[_0x2fd3('0x2e')]['registerCustomCallback'](_0x2fd3('0xd'),_0x2fd3('0x11'),_0x2fd3('0x27'),_0x1525f9[_0x2fd3('0x2e')]['getSuggestionCallback'](_0x2fd3('0xd'),null,_0x2fd3('0x33'))),_0x1525f9[_0x2fd3('0x2e')][_0x2fd3('0x2a')]('formatBlock',_0x2fd3('0x11'),_0x2fd3('0x33'),(_0x2635b2,_0x32548f)=>this[_0x2fd3('0x2f')](this[_0x2fd3('0x11')],_0x2635b2,_0x32548f)),_0x1525f9[_0x2fd3('0x2e')][_0x2fd3('0x2a')]('formatBlock',_0x2fd3('0x11'),_0x2fd3('0x37'),()=>!0x1);}if(this[_0x2fd3('0x3c')][_0x2fd3('0x7')][_0x2fd3('0x32')](_0x2fd3('0x3'))){for(const _0x58cb26 of this[_0x2fd3('0x13')])_0x1525f9[_0x2fd3('0x26')](_0x58cb26,(_0x2c9a63,_0x1f6d40)=>{const _0x1b3b07=this[_0x2fd3('0x3c')]['plugins'][_0x2fd3('0x17')](_0x2fd3('0x5'))['getSelectionAffectedTableCells'](this[_0x2fd3('0x3c')][_0x2fd3('0x3b')][_0x2fd3('0x1')][_0x2fd3('0x34')]);this[_0x2fd3('0x3a')](_0x58cb26,_0x1b3b07,this['tableCellProperties'],_0x2fd3('0x13'),_0x2c9a63,_0x1f6d40);});_0x1525f9[_0x2fd3('0x2e')][_0x2fd3('0x2a')](_0x2fd3('0xd'),_0x2fd3('0x13'),_0x2fd3('0x27'),_0x1525f9[_0x2fd3('0x2e')]['getSuggestionCallback'](_0x2fd3('0xd'),null,_0x2fd3('0x33'))),_0x1525f9[_0x2fd3('0x2e')][_0x2fd3('0x2a')](_0x2fd3('0xd'),_0x2fd3('0x13'),_0x2fd3('0x33'),(_0x3c1fc6,_0x278930)=>this[_0x2fd3('0x2f')](this[_0x2fd3('0x13')],_0x3c1fc6,_0x278930)),_0x1525f9['_suggestionFactory'][_0x2fd3('0x2a')](_0x2fd3('0xd'),_0x2fd3('0x13'),_0x2fd3('0x37'),()=>!0x1);}_0x1525f9['_descriptionFactory'][_0x2fd3('0x19')](_0x13ca1a=>this[_0x2fd3('0x2d')](_0x13ca1a));}[_0x2fd3('0x3a')](_0xa43eb1,_0x19cc5d,_0x1bc8a8,_0x45184b,_0xd1e36e,_0x561ac9){const _0xfd89a8=this['editor']['plugins'][_0x2fd3('0x17')](_0x2fd3('0x2c'));this[_0x2fd3('0x3c')][_0x2fd3('0x3b')][_0x2fd3('0x24')](_0x561ac9[_0x2fd3('0x2')],()=>{for(const _0x2fddb4 of _0x19cc5d){if(this[_0x2fd3('0x1f')](_0x2fddb4,_0x45184b))_0xd1e36e(_0x561ac9);else{const _0x2c7bfd={};for(const _0x34d505 of _0x1bc8a8){const _0x4251ca=_0x2fddb4['getAttribute'](_0x34d505);void 0x0!==_0x4251ca&&(_0x2c7bfd[_0x34d505]=_0x4251ca);}_0xd1e36e(_0x561ac9),_0xfd89a8[_0x2fd3('0xa')](_0x2fddb4,{'commandParams':[_0x2c7bfd]},[],_0x45184b);}}});}[_0x2fd3('0x2f')](_0x23140f,_0x107639,_0x8bb99a){const _0x30a452=_0x107639[0x0][_0x2fd3('0x1e')][_0x2fd3('0xb')],_0x365760=_0x8bb99a['commandParams'][0x0];this[_0x2fd3('0x3c')]['model'][_0x2fd3('0xc')](_0x34ccff=>{for(const _0x185d27 of _0x23140f)void 0x0!==_0x365760[_0x185d27]?_0x34ccff[_0x2fd3('0x15')](_0x185d27,_0x365760[_0x185d27],_0x30a452):_0x34ccff[_0x2fd3('0x1a')](_0x185d27,_0x30a452);});}['handleSuggestionDescription'](_0x3cbb12){if(_0x3cbb12[_0x2fd3('0x8')])switch(_0x3cbb12[_0x2fd3('0x16')]){case _0x2fd3('0x11'):return{'type':_0x2fd3('0x9'),'content':_0x440b84(this['editor'][_0x2fd3('0x18')],_0x2fd3('0xf'))};case _0x2fd3('0x13'):return{'type':_0x2fd3('0x9'),'content':_0x440b84(this[_0x2fd3('0x3c')][_0x2fd3('0x18')],_0x2fd3('0x1d'))};}}[_0x2fd3('0x1f')](_0x3a976e,_0x2b34d3){const _0x2fbdf6=this[_0x2fd3('0x3c')][_0x2fd3('0x7')]['get'](_0x2fd3('0x2c'));for(const _0x5c5d10 of _0x2fbdf6[_0x2fd3('0x25')]({'skipNotAttached':!0x0})){const _0x20831c=_0x5c5d10[_0x2fd3('0x28')]();if(_0x5c5d10[_0x2fd3('0x16')]===_0x2b34d3&&_0x20831c===_0x3a976e)return _0x5c5d10;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3903=['TrackChangesEditing','plugins','insertTemplate','enableCommand','afterInit','Template','editor'];(function(_0x2c1222,_0x39032e){const _0x3bc3bc=function(_0x2e74b1){while(--_0x2e74b1){_0x2c1222['push'](_0x2c1222['shift']());}};_0x3bc3bc(++_0x39032e);}(_0x3903,0x11d));const _0x3bc3=function(_0x2c1222,_0x39032e){_0x2c1222=_0x2c1222-0x0;let _0x3bc3bc=_0x3903[_0x2c1222];return _0x3bc3bc;};import{Plugin as _0x28bddf}from'ckeditor5/src/core';export default class yt extends _0x28bddf{[_0x3bc3('0x6')](){const _0xab968d=this[_0x3bc3('0x1')];_0xab968d[_0x3bc3('0x3')]['has'](_0x3bc3('0x0'))&&_0xab968d['plugins']['get'](_0x3bc3('0x2'))[_0x3bc3('0x5')](_0x3bc3('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58fe=['get','registerPostFixer','plugins','suggestion','ELEMENT_TITLE','schema','locale','differ','editor','_descriptionFactory','newRange','document','getNearestSelectionRange','isCollapsed','start','from','element','registerElementLabel','getChangedMarkers','model','end','Title','title-content','updateMarker','isTouching'];(function(_0x59936d,_0x58fee4){const _0x39d97b=function(_0x2fa1ef){while(--_0x2fa1ef){_0x59936d['push'](_0x59936d['shift']());}};_0x39d97b(++_0x58fee4);}(_0x58fe,0x1dc));const _0x39d9=function(_0x59936d,_0x58fee4){_0x59936d=_0x59936d-0x0;let _0x39d97b=_0x58fe[_0x59936d];return _0x39d97b;};import{Plugin as _0x306f84}from'ckeditor5/src/core';import{getTranslation as _0x320e86}from'../utils/common-translations';export default class St extends _0x306f84{['afterInit'](){const _0x529d74=this[_0x39d9('0x7')];if(!_0x529d74[_0x39d9('0x1')]['has'](_0x39d9('0x14')))return;const _0x2e9bf5=_0x529d74['plugins'][_0x39d9('0x18')]('TrackChangesEditing');_0x2e9bf5[_0x39d9('0x8')][_0x39d9('0x10')]('title-content',()=>_0x320e86(_0x529d74[_0x39d9('0x5')],_0x39d9('0x3'))),_0x529d74[_0x39d9('0x12')]['document'][_0x39d9('0x0')](_0x1c44e6=>{let _0x4c8fc1=!0x1;const _0x53dae4=Array[_0x39d9('0xe')](_0x529d74[_0x39d9('0x12')][_0x39d9('0xa')][_0x39d9('0x6')][_0x39d9('0x11')]());for(const {name:_0x17d05c,data:_0x338b26}of _0x53dae4){const {group:_0x5afdd4}=_0x2e9bf5['_splitMarkerName'](_0x17d05c);if(_0x39d9('0x2')!==_0x5afdd4||!_0x338b26[_0x39d9('0x9')])continue;const _0x1ef19f=_0x338b26['newRange'],_0x2564b8=_0x1ef19f[_0x39d9('0x13')]['nodeBefore'];if(!_0x2564b8||!_0x2564b8['is'](_0x39d9('0xf'),_0x39d9('0x15')))continue;if(!_0x1ef19f[_0x39d9('0xd')][_0x39d9('0x17')](_0x1ef19f[_0x39d9('0x13')]))continue;const _0x734518=_0x529d74[_0x39d9('0x12')][_0x39d9('0x4')][_0x39d9('0xb')](_0x1ef19f['end'],'forward');if(_0x734518&&_0x734518[_0x39d9('0xc')]){const _0x37dd31=_0x1c44e6['createRange'](_0x1ef19f[_0x39d9('0xd')],_0x734518[_0x39d9('0xd')]);_0x37dd31['isEqual'](_0x1ef19f)||(_0x1c44e6[_0x39d9('0x16')](_0x17d05c,{'range':_0x37dd31}),_0x4c8fc1=!0x0);}_0x4c8fc1||(_0x1c44e6['removeMarker'](_0x17d05c),_0x4c8fc1=!0x0);}return _0x4c8fc1;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f4c=['undo','plugins','editor','get','redo','UndoEditing','TrackChangesEditing','afterInit','enableCommand','has'];(function(_0x295440,_0x5f4ce6){const _0x10b833=function(_0x905d0b){while(--_0x905d0b){_0x295440['push'](_0x295440['shift']());}};_0x10b833(++_0x5f4ce6);}(_0x5f4c,0x111));const _0x10b8=function(_0x295440,_0x5f4ce6){_0x295440=_0x295440-0x0;let _0x10b833=_0x5f4c[_0x295440];return _0x10b833;};import{Plugin as _0x2486f8}from'ckeditor5/src/core';export default class It extends _0x2486f8{[_0x10b8('0x4')](){const _0x4635cc=this[_0x10b8('0x9')],_0x2bbc1a=_0x4635cc[_0x10b8('0x8')][_0x10b8('0x0')](_0x10b8('0x3'));_0x4635cc[_0x10b8('0x8')][_0x10b8('0x6')](_0x10b8('0x2'))&&(_0x2bbc1a['enableCommand'](_0x10b8('0x7')),_0x2bbc1a[_0x10b8('0x5')](_0x10b8('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf15c=['TrackChangesEditing','span','includes','elementEnd','parent','markerRange','isContent','push','type','mapper','start','get','getCustomProperty','name','listItem','activeMarkers','addHighlight','getItems','nextSibling','hasAttribute','element','test','isLimit','getWalker','createUIElement','isAtEnd','previousPosition','writer','markerName','model','plugins','consumable'];(function(_0x3b55fc,_0xf15cd1){const _0x45ba8e=function(_0x5673e3){while(--_0x5673e3){_0x3b55fc['push'](_0x3b55fc['shift']());}};_0x45ba8e(++_0xf15cd1);}(_0xf15c,0x15d));const _0x45ba=function(_0x3b55fc,_0xf15cd1){_0x3b55fc=_0x3b55fc-0x0;let _0x45ba8e=_0xf15c[_0x3b55fc];return _0x45ba8e;};export function getRangesWithAttribute(_0x2a0d29,_0x45c8bd,_0x411c2b){const _0x28f740=[];for(const _0x4688e2 of _0x45c8bd[_0x45ba('0x14')]())_0x4688e2[_0x45ba('0x16')](_0x2a0d29)&&_0x28f740[_0x45ba('0xa')](_0x411c2b['createRangeOn'](_0x4688e2));return _0x28f740;}export function getElementsAffectedByListItemRename(_0x84b02a){const _0x4f1f1e=[];if(_0x84b02a['is'](_0x45ba('0x17'),_0x45ba('0x11'))){let _0x3cccf9=_0x84b02a[_0x45ba('0x15')];for(;_0x3cccf9&&_0x3cccf9['is'](_0x45ba('0x17'),_0x45ba('0x11'))&&_0x3cccf9['getAttribute']('listIndent')>0x0;)_0x4f1f1e[_0x45ba('0xa')](_0x3cccf9),_0x3cccf9=_0x3cccf9['nextSibling'];}return _0x4f1f1e;}export function downcastSplitMergeMarker(_0x123be6,_0x2c9ddb,{showActiveMarker:_0x2f0f13=!0x0}={}){const _0x298a70=_0x123be6[_0x45ba('0x1')][_0x45ba('0xe')](_0x45ba('0x3'));return(_0x5452e8,_0x1d95ae,_0x57097b)=>{if(!_0x57097b[_0x45ba('0x2')][_0x45ba('0x18')](_0x1d95ae[_0x45ba('0x8')],_0x5452e8[_0x45ba('0x10')]))return;const _0x268331=_0x1d95ae[_0x45ba('0x8')][_0x45ba('0x1a')](),_0x22fa36=_0x1d95ae[_0x45ba('0x8')][_0x45ba('0xd')],_0x2e32ae=_0x123be6[_0x45ba('0x0')]['schema'];let _0x43acd6=null,_0x3b1cbb=null,_0x526f85=!0x1,_0x45c318=!0x1;for(const _0x3a676a of _0x268331){const _0x1c4f8a=_0x3a676a['item'];_0x526f85=_0x526f85||_0x2e32ae[_0x45ba('0x9')](_0x1c4f8a);const _0x1ac6ad=_0x57097b[_0x45ba('0xc')]['toViewElement'](_0x1c4f8a);if(_0x1ac6ad&&_0x1ac6ad[_0x45ba('0xf')](_0x45ba('0x13')))return;_0x45ba('0x6')==_0x3a676a[_0x45ba('0xb')]&&(_0x2e32ae['isBlock'](_0x1c4f8a)&&!_0x2e32ae[_0x45ba('0x19')](_0x1c4f8a)&&(_0x1c4f8a[_0x45ba('0x15')]||_0x22fa36[_0x45ba('0x1c')]?_0x43acd6&&_0x43acd6[_0x45ba('0x7')]==_0x1c4f8a||(_0x43acd6=_0x1c4f8a,_0x2d47c4(_0x3a676a['previousPosition']),_0x45c318=!0x0):_0x3b1cbb=_0x3b1cbb||_0x3a676a[_0x45ba('0x1d')]));}function _0x2d47c4(_0x2ec5a6){const _0x493985=_0x57097b['writer'][_0x45ba('0x1b')](_0x45ba('0x4'),{'class':'ck-suggestion-marker-'+_0x2c9ddb}),_0x47320b=_0x57097b[_0x45ba('0xc')]['toViewPosition'](_0x2ec5a6);_0x2f0f13&&_0x298a70[_0x45ba('0x12')][_0x45ba('0x5')](_0x1d95ae[_0x45ba('0x1f')])&&_0x57097b[_0x45ba('0x1e')]['addClass']('ck-suggestion-marker--active',_0x493985),_0x57097b[_0x45ba('0x1e')]['insert'](_0x47320b,_0x493985),_0x57097b[_0x45ba('0xc')]['bindElementToMarker'](_0x493985,_0x1d95ae[_0x45ba('0x1f')]);}_0x526f85||_0x45c318||!_0x3b1cbb||_0x2d47c4(_0x3b1cbb);};}
|