@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231204.0 → 0.0.0-nightly-20231206.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.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 _0x30a0=['join','getSuggestion','containsRange','afterInit','unwrap','name','commands','*Replace\x20table\x20cells*','activeMarkers','_getCoordsForCells','low','tableCellHorizontalAlignment','getChild','getItems','trackChanges','getAllAdjacentSuggestions','createRangeIn','showSuggestionHighlights','createPositionBefore','from','markMultiRangeDeletion','editor','cell','_suggestionFactory','getRowIndexes','getChildren','getShiftedBy','TableUtils','suggestion-td','createRangeOn','subType','markers','root','getSuggestions','keys','cells','markerAttributes','getRanges','view','getRows','nextSibling','length','nodeAfter','createElement','tableCellBorderColor','insert','tablePasteRow','tableCellSuggestion','tablePasteColumn','editingDowncast','wrap','insertContent','getMarkers','deletion','markMultiRangeInsertion','stop','reduce','rowInsertionRanges','tablePasteChainId','removeMarker','find','table','author','formatBlock','_isForcedDefaultExecutionBlock','last','push','suggestionUnloaded','for','removeColumns','options','TrackChangesEditing','suggestion:formatBlock:tablePasteCell','tableCellPadding','setAttribute','getContainedElement','position','startsWith','insertion','content','ck-suggestion-marker','tablePasteCell','newRange','getTableIfOnlyTableInContent','listenTo','has','attributes','createTableWalker','rowInsertionIndexes','removeRows','isInContent','getChanges','isEqual','move','registerPostFixer','createRange','tableCellBorderStyle','elementToElement','fill','_descriptionFactory','getSuggestionCallback','tableCellBackgroundColor','dataDowncast','next','registerCustomCallback','registerDescriptionCallback','suggestion','getChangedMarkers','markMultiRangeBlockFormat','return','insertionRanges','row','forceDefaultExecution','tablePaste','some','get','differ','register','findAncestor','redo','updateMarker','getColumnIndexes','change','tableCellBorderWidth','includes','paragraph','map','markerName','set','conversion','oldRange','isEmpty','plugins','type','rootName','endRow','accept','previous','model','end','high','getRange','value','add','insertColumns','discard','documentSelection','previousSibling','remove','column','suggestionLoaded','filter','hasSuggestion','TableClipboard','clipboardOutput','locale','markerToHighlight','Users','columnInsertionIndexes','document','element','start','getColumns','_splitMarkerName','setAttributes','_replaceTableSlotCell'];(function(_0x2f29a6,_0x30a0a8){const _0x4ea457=function(_0x4bc26b){while(--_0x4bc26b){_0x2f29a6['push'](_0x2f29a6['shift']());}};_0x4ea457(++_0x30a0a8);}(_0x30a0,0x12a));const _0x4ea4=function(_0x2f29a6,_0x30a0a8){_0x2f29a6=_0x2f29a6-0x0;let _0x4ea457=_0x30a0[_0x2f29a6];return _0x4ea457;};import{getTranslation as _0x172592}from'../utils/common-translations';import{Plugin as _0x4b384}from'ckeditor5/src/core';import{uid as _0x12082c,priorities as _0x4c9fc6}from'ckeditor5/src/utils';import _0x3a8c82 from'./table';const le=[_0x4ea4('0x9d'),_0x4ea4('0x4e'),_0x4ea4('0x82'),_0x4ea4('0x2d'),'tableCellVerticalAlignment',_0x4ea4('0x87'),_0x4ea4('0x6b')],ae=Object['fromEntries'](le['map'](_0x590507=>[_0x590507,null]));export default class At extends _0x4b384{static get['requires'](){return[_0x3a8c82];}[_0x4ea4('0x25')](){const _0x198b86=this[_0x4ea4('0x37')];if(!_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x77')]('TableClipboard'))return;const _0x4f05d4=_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')](_0x4ea4('0x69')),_0x339be0=_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')](_0x4ea4('0x3d')),_0xac261b=_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')](_0x3a8c82),_0x2ceade=_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')](_0x4ea4('0x15'));_0xac261b['_tablePostFixingSubtypes'][_0x4ea4('0x64')]('tablePasteRow','tablePasteColumn'),_0x198b86[_0x4ea4('0x6')]['schema'][_0x4ea4('0x97')]('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x198b86[_0x4ea4('0xa3')][_0x4ea4('0x83')]({'model':_0x4ea4('0x51'),'view':'suggestion-td'});let _0x34b6c7=null;_0x198b86[_0x4ea4('0x6')]['on'](_0x4ea4('0x55'),(_0x10eab5,_0x42e1ee)=>{const [_0x2c9d9d,_0xf035cd]=_0x42e1ee,_0x5e5978=_0x42e1ee[_0x42e1ee['length']-0x1];_0x5e5978&&_0x5e5978[_0x4ea4('0x92')]||_0x4f05d4[_0x4ea4('0x62')]||this['editor'][_0x4ea4('0x28')][_0x4ea4('0x95')](_0x4ea4('0x30'))[_0x4ea4('0xa')]&&function(_0x21f233,_0x145925,_0x100a6c,_0x1fa9e6,_0xda9b7){if(_0x145925&&!_0x145925['is'](_0x4ea4('0xe')))return!0x1;const _0x1a2aa0=_0xda9b7[_0x4ea4('0x75')](_0x21f233,_0x100a6c);if(!_0x1a2aa0||!fe(_0x1a2aa0,void 0x0,_0x1fa9e6))return!0x1;const _0x22d727=_0x1fa9e6['getSelectionAffectedTableCells'](_0x100a6c[_0x4ea4('0x1b')]['selection']);if(!_0x22d727[_0x4ea4('0x4b')])return!0x1;const _0x370d67=_0x22d727[0x0]['findAncestor']('table'),_0x90d2d3=_0x1fa9e6[_0x4ea4('0x3a')](_0x22d727),_0x270941=_0x1fa9e6[_0x4ea4('0x9b')](_0x22d727),_0x16a5f6={'startRow':_0x90d2d3['first'],'endRow':_0x90d2d3[_0x4ea4('0x63')],'startColumn':_0x270941['first'],'endColumn':_0x270941['last']};return 0x1==_0x22d727[_0x4ea4('0x4b')]&&(_0x16a5f6[_0x4ea4('0x3')]+=_0x1fa9e6[_0x4ea4('0x49')](_0x1a2aa0)-0x1,_0x16a5f6['endColumn']+=_0x1fa9e6[_0x4ea4('0x1e')](_0x1a2aa0)-0x1),fe(_0x370d67,_0x16a5f6,_0x1fa9e6);}(_0x2c9d9d,_0xf035cd,_0x198b86[_0x4ea4('0x6')],_0x339be0,_0x2ceade)&&(_0x10eab5[_0x4ea4('0x59')](),_0x34b6c7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x9c')](()=>{_0x198b86['model'][_0x4ea4('0x55')](_0x42e1ee[0x0],_0x42e1ee[0x1],_0x42e1ee[0x2],{'forceDefaultExecution':!0x0});const _0x120f16=_0x12082c(),{rowInsertionRanges:_0x1c7878,columnInsertionRanges:_0x3017f0,insertionRanges:_0x2598cd,deletionRanges:_0x18e035,cells:_0x115dd2}=_0x34b6c7;_0x1c7878['length']&&_0x4f05d4[_0x4ea4('0x58')](_0x1c7878,_0x4ea4('0x50'),{'tablePasteChainId':_0x120f16}),_0x3017f0['length']&&_0x4f05d4[_0x4ea4('0x58')](_0x3017f0,_0x4ea4('0x52'),{'tablePasteChainId':_0x120f16}),_0x2598cd[_0x4ea4('0x4b')]&&_0x4f05d4[_0x4ea4('0x58')](_0x2598cd,_0x4ea4('0x93'),{'tablePasteChainId':_0x120f16,'skipNestingCheck':!0x0}),_0x18e035[_0x4ea4('0x4b')]&&_0x4f05d4[_0x4ea4('0x36')](_0x18e035,_0x4ea4('0x93'),{'tablePasteChainId':_0x120f16,'skipNestingCheck':!0x0});const _0x279b55=_0x4f05d4[_0x4ea4('0x8e')](_0x115dd2[_0x4ea4('0xa0')](({element:_0x599400})=>_0x599400),{'formatGroupId':_0x12082c()},[],_0x4ea4('0x73'),{'tablePasteChainId':_0x120f16});if(_0x279b55){const _0x514b75=_0x279b55[_0x4ea4('0x56')](),_0x3da021=[];for(const {element:_0xe1a574,attributes:_0x236ee8}of _0x115dd2){if(!_0x236ee8)continue;const _0x5902d6=_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x3f')](_0xe1a574),_0x106988=_0x514b75[_0x4ea4('0x5e')](_0x480091=>_0x480091[_0x4ea4('0x9')]()[_0x4ea4('0x7e')](_0x5902d6));_0x106988&&_0x3da021['push']([_0x106988['name'],_0x236ee8]);}_0x3da021[_0x4ea4('0x4b')]&&_0x279b55[_0x4ea4('0x6c')](_0x4ea4('0x46'),Object['fromEntries'](_0x3da021));}_0x34b6c7=null;}));},{'priority':_0x4c9fc6[_0x4ea4('0x8')]+0xa}),_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')]('TableClipboard')['on'](_0x4ea4('0x21'),(_0x1e9a34,_0x44c7f3)=>{const [_0x4267ad,_0x7e2476,,_0x8378ea]=_0x44c7f3;if(!_0x34b6c7)return;_0x1e9a34[_0x4ea4('0x59')]();const _0x12f85f=_0x4267ad[_0x4ea4('0x38')],_0x1bcbf0=_0x7e2476,_0x267e8d=ce(_0x12f85f),_0x5509e6=ce(_0x1bcbf0);_0x1e9a34[_0x4ea4('0x8f')]=_0x12f85f;let _0x1fd70f=null,_0x27595f=null;if(_0x5509e6||_0x267e8d){if(_0x267e8d&&!_0x5509e6){_0x8378ea['remove'](_0x12f85f[_0x4ea4('0x2e')](0x0));for(const _0x213653 of Array['from'](_0x1bcbf0[_0x4ea4('0x3b')]()))_0x8378ea['insert'](_0x213653,_0x12f85f,'end');const _0x50f935=_0x34b6c7[_0x4ea4('0x7a')]['includes'](_0x4267ad[_0x4ea4('0x91')]),_0x67e50c=_0x34b6c7[_0x4ea4('0x1a')]['includes'](_0x4267ad[_0x4ea4('0x11')]);_0x50f935||_0x67e50c||(_0x1fd70f=_0x8378ea[_0x4ea4('0x32')](_0x12f85f));}else _0x5509e6&&!_0x267e8d&&(_0x27595f=_0x8378ea[_0x4ea4('0x32')](_0x12f85f));}else{const _0x4344e2=_0x8378ea[_0x4ea4('0x4d')](_0x4ea4('0x51')),_0x536ca1=_0x8378ea[_0x4ea4('0x4d')]('tableCellSuggestion');_0x8378ea[_0x4ea4('0x54')](_0x8378ea['createRangeIn'](_0x12f85f),_0x536ca1),_0x8378ea['insert'](_0x4344e2,_0x12f85f,0x0);for(const _0x4a4dc8 of Array[_0x4ea4('0x35')](_0x1bcbf0[_0x4ea4('0x3b')]()))_0x8378ea[_0x4ea4('0x4f')](_0x4a4dc8,_0x4344e2,_0x4ea4('0x7'));_0x1fd70f=_0x8378ea[_0x4ea4('0x3f')](_0x4344e2),_0x27595f=_0x8378ea[_0x4ea4('0x3f')](_0x536ca1);}const _0x3724dd=Array[_0x4ea4('0x35')](_0x1bcbf0['getAttributes']())[_0x4ea4('0x13')](([_0x187df0])=>le[_0x4ea4('0x9e')](_0x187df0));_0x34b6c7[_0x4ea4('0x45')][_0x4ea4('0x64')]({'element':_0x12f85f,'attributes':_0x3724dd['length']?Object['fromEntries'](_0x3724dd):null}),_0x1fd70f&&_0x34b6c7[_0x4ea4('0x90')][_0x4ea4('0x64')](_0x1fd70f),_0x27595f&&_0x34b6c7['deletionRanges'][_0x4ea4('0x64')](_0x27595f);},{'priority':_0x4ea4('0x8')}),_0x339be0['on'](_0x4ea4('0xc'),(_0x1d03dd,_0x4c53ae)=>{const [_0x411c7e,_0x4ddb0b={}]=_0x4c53ae;if(!_0x34b6c7)return;const _0x1bbf0f=_0x4ddb0b['at']||0x0,_0x2c1179=_0x4ddb0b['columns']||0x1;_0x34b6c7[_0x4ea4('0x1a')]=new Array(_0x2c1179)['fill'](_0x1bbf0f)['map']((_0x5ccbc8,_0x4f365d)=>_0x5ccbc8+_0x4f365d);for(const {cell:_0x565d08}of _0x339be0['createTableWalker'](_0x411c7e,{'startColumn':_0x1bbf0f,'endColumn':_0x1bbf0f+_0x2c1179-0x1}))_0x34b6c7['columnInsertionRanges']['push'](_0x198b86['model'][_0x4ea4('0x3f')](_0x565d08));},{'priority':_0x4ea4('0x2c')}),_0x339be0['on']('insertRows',(_0x37310c,_0x321c96)=>{const [_0x35c003,_0x1c8221={}]=_0x321c96;if(!_0x34b6c7)return;const _0x18cd18=_0x1c8221['at']||0x0,_0x107534=_0x1c8221['rows']||0x1;_0x34b6c7[_0x4ea4('0x7a')]=new Array(_0x107534)[_0x4ea4('0x84')](_0x18cd18)[_0x4ea4('0xa0')]((_0x427816,_0x265540)=>_0x427816+_0x265540);for(const {cell:_0x462471}of _0x339be0[_0x4ea4('0x79')](_0x35c003,{'startRow':_0x18cd18,'endRow':_0x18cd18+_0x107534-0x1}))_0x34b6c7[_0x4ea4('0x5b')][_0x4ea4('0x64')](_0x198b86['model']['createRangeOn'](_0x462471));},{'priority':_0x4ea4('0x2c')}),_0x4f05d4[_0x4ea4('0x85')][_0x4ea4('0x8b')](_0x4f7c82=>{if(_0x4f7c82[_0x4ea4('0x40')]&&_0x4f7c82[_0x4ea4('0x40')][_0x4ea4('0x6f')]('tablePaste'))return _0x4f7c82['previous']?{}:{'type':_0x4ea4('0x70'),'content':_0x172592(_0x198b86[_0x4ea4('0x17')],_0x4ea4('0x29'))};});const _0x471bf1=()=>!0x1;for(const _0x4faa5a of[_0x4ea4('0x93'),_0x4ea4('0x52'),_0x4ea4('0x50'),_0x4ea4('0x73')])_0x4f05d4['_suggestionFactory'][_0x4ea4('0x8a')](_0x4ea4('0x70'),_0x4faa5a,_0x4ea4('0x22'),_0x471bf1),_0x4f05d4['_suggestionFactory']['registerCustomCallback'](_0x4ea4('0x57'),_0x4faa5a,_0x4ea4('0x22'),_0x471bf1),_0x4f05d4[_0x4ea4('0x39')][_0x4ea4('0x8a')](_0x4ea4('0x61'),_0x4faa5a,_0x4ea4('0x22'),_0x471bf1);_0x4f05d4[_0x4ea4('0x39')][_0x4ea4('0x8a')](_0x4ea4('0x61'),'tablePasteCell',_0x4ea4('0xd'),_0x471bf1),_0x4f05d4['_suggestionFactory'][_0x4ea4('0x8a')]('formatBlock','tablePasteCell',_0x4ea4('0x4'),(_0x2b8e8b,_0x2121bf,_0x5bb026)=>{const _0x5bc613=_0x2b8e8b[_0x4ea4('0xa0')](_0x319ec7=>_0x319ec7[_0x4ea4('0x6d')]())[_0x4ea4('0x13')](_0x59e89b=>_0x59e89b),_0x257a9f=new Map(_0x5bc613['map'](_0x1bd78a=>[_0x1bd78a,null]));if(_0x34b6c7)for(const {element:_0x271a3e,attributes:_0x10e981}of _0x34b6c7[_0x4ea4('0x45')])_0x10e981&&_0x257a9f['set'](_0x271a3e,_0x10e981);else{if(_0x5bb026&&_0x5bb026['markerAttributes'])for(const [_0x285669,_0x3ce442]of Object['entries'](_0x5bb026[_0x4ea4('0x46')])){const _0xf7f741=_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x41')][_0x4ea4('0x95')](_0x285669),_0x3da1bd=_0xf7f741?_0xf7f741[_0x4ea4('0x9')]()['getContainedElement']():null;_0x3da1bd&&_0x257a9f[_0x4ea4('0xa2')](_0x3da1bd,_0x3ce442);}}_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x9c')](_0x2ab06f=>{for(const [_0x5e304f,_0x176ae8]of _0x257a9f)_0x2ab06f[_0x4ea4('0x20')]({...ae,..._0x176ae8},_0x5e304f);});});const _0x74d5bf=(_0x12afd2,_0x1e70ad)=>{_0x4f05d4['_suggestionFactory'][_0x4ea4('0x8a')](_0x12afd2,_0x4ea4('0x93'),_0x1e70ad,(_0x2e7b87,_0x46a731,_0x5c87d4)=>{_0x198b86['model'][_0x4ea4('0x9c')](_0x3e5dcd=>{const _0x2ff19a=[];for(const _0x13dcfd of _0x2e7b87){const _0x37a41a=_0x13dcfd[_0x4ea4('0x1d')][_0x4ea4('0x4c')];_0x37a41a['is'](_0x4ea4('0x1c'),_0x4ea4('0x51'))&&_0x2ff19a['push'](_0x37a41a);}_0x4f05d4[_0x4ea4('0x39')][_0x4ea4('0x86')](_0x12afd2,null,_0x1e70ad)(_0x2e7b87,_0x46a731,_0x5c87d4);for(const _0x5ce2a3 of _0x2ff19a)'$graveyard'!=_0x5ce2a3[_0x4ea4('0x42')][_0x4ea4('0x2')]&&_0x3e5dcd[_0x4ea4('0x26')](_0x5ce2a3);});});};_0x74d5bf(_0x4ea4('0x70'),_0x4ea4('0x4')),_0x74d5bf(_0x4ea4('0x70'),_0x4ea4('0xd')),_0x74d5bf(_0x4ea4('0x57'),_0x4ea4('0x4')),_0x74d5bf('deletion',_0x4ea4('0xd')),_0x4f05d4[_0x4ea4('0x39')][_0x4ea4('0x8a')](_0x4ea4('0x70'),_0x4ea4('0x50'),_0x4ea4('0xd'),_0x8a1bee=>{const _0x3c5520=_0x8a1bee[_0x4ea4('0xa0')](_0x19c383=>_0x19c383[_0x4ea4('0x6d')]()),_0x3585cc=_0x3c5520[0x0][_0x4ea4('0x98')](_0x4ea4('0x5f')),{minRow:_0xbc71cb,maxRow:_0x55e05a}=_0xac261b['_getCoordsForCells'](_0x3c5520);_0x339be0[_0x4ea4('0x7b')](_0x3585cc,{'at':_0xbc71cb,'rows':_0x55e05a-_0xbc71cb+0x1});}),_0x4f05d4[_0x4ea4('0x39')][_0x4ea4('0x8a')](_0x4ea4('0x70'),_0x4ea4('0x52'),_0x4ea4('0xd'),_0x527b8f=>{const _0x9193fa=_0x527b8f[_0x4ea4('0xa0')](_0x184c28=>_0x184c28[_0x4ea4('0x6d')]()),_0x34956c=_0x9193fa[0x0][_0x4ea4('0x98')](_0x4ea4('0x5f')),{minColumn:_0x19c1aa,maxColumn:_0x16d71a}=_0xac261b[_0x4ea4('0x2b')](_0x9193fa);_0x339be0[_0x4ea4('0x67')](_0x34956c,{'at':_0x19c1aa,'columns':_0x16d71a-_0x19c1aa+0x1});});const _0x1117e6=(_0x47ac72,_0x1cb554)=>{if(!_0x1cb554[_0x4ea4('0x40')]||!_0x1cb554[_0x4ea4('0x40')]['startsWith']('tablePaste'))return;const _0x25079e=_0x1cb554['attributes'][_0x4ea4('0x5c')],_0x8d7975=_0x4f05d4[_0x4ea4('0x43')]()[_0x4ea4('0x13')](_0x5527d6=>_0x5527d6[_0x4ea4('0x7c')]&&_0x5527d6[_0x4ea4('0x78')]&&_0x5527d6['attributes'][_0x4ea4('0x5c')]==_0x25079e);_0x8d7975['length']&&_0x1cb554[_0x4ea4('0x31')]()[_0x4ea4('0x4b')]!=_0x8d7975['length']&&_0x8d7975[_0x4ea4('0x5a')]((_0x48d739,_0x3f1915)=>(_0x48d739[_0x4ea4('0x89')]=_0x3f1915,_0x3f1915[_0x4ea4('0x5')]=_0x48d739,_0x3f1915));};function _0x1a9f59(_0x3ae76c,_0x16d791=!0x0){const {id:_0x195439}=_0x4f05d4[_0x4ea4('0x1f')](_0x3ae76c[_0x4ea4('0xa1')]),_0x4fed6c=[_0x4ea4('0x72'),'ck-suggestion-marker-insertion'],_0x1bdc81=_0x4f05d4[_0x4ea4('0x2a')]['includes'](_0x3ae76c[_0x4ea4('0xa1')]);return _0x1bdc81&&_0x4fed6c[_0x4ea4('0x64')]('ck-suggestion-marker--active'),{'classes':_0x4fed6c,'attributes':{'data-suggestion':_0x195439},'priority':_0x1bdc81&&_0x16d791?0xbc2:0xbb8};}_0x4f05d4['on'](_0x4ea4('0x12'),_0x1117e6,{'priority':'high'}),_0x4f05d4['on'](_0x4ea4('0x65'),_0x1117e6,{'priority':'high'}),_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x1b')][_0x4ea4('0x80')](()=>{let _0x5b4552=!0x1;const _0x4c1138=Array[_0x4ea4('0x35')](_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x1b')][_0x4ea4('0x96')]['getChangedMarkers']());for(const {name:_0x40d0e0,data:_0x480f47}of _0x4c1138){const {group:_0x4335eb,type:_0x356fe9,id:_0x48f34a}=_0x4f05d4[_0x4ea4('0x1f')](_0x40d0e0);if(_0x4ea4('0x8c')!=_0x4335eb||_0x4ea4('0x57')!=_0x356fe9||_0x480f47['oldRange'])continue;if(!_0x4f05d4[_0x4ea4('0x14')](_0x48f34a))continue;const _0x442bf9=_0x4f05d4[_0x4ea4('0x23')](_0x48f34a)[_0x4ea4('0x47')](),_0x485816=_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')](_0x4ea4('0x19'))['me'];for(const _0x313b75 of _0x4f05d4['getSuggestions']()){if(!_0x313b75[_0x4ea4('0x7c')]||_0x313b75[_0x4ea4('0x60')]!=_0x485816)continue;if(_0x4ea4('0x61')!=_0x313b75[_0x4ea4('0x1')]||_0x4ea4('0x73')!=_0x313b75[_0x4ea4('0x40')])continue;if(_0x313b75['getRanges']()['every'](_0x53e68d=>_0x442bf9[_0x4ea4('0x94')](_0x5b6dff=>_0x5b6dff[_0x4ea4('0x24')](_0x53e68d,!0x0))))for(const _0x323d15 of _0x313b75[_0x4ea4('0x31')]())_0x323d15[_0x4ea4('0x7c')]&&(_0x323d15[_0x4ea4('0xd')](),_0x5b4552=!0x0);}}return _0x5b4552;}),_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x1b')][_0x4ea4('0x80')](_0xe6d26=>{const _0x3abe8f=_0x198b86['commands'][_0x4ea4('0x95')](_0x4ea4('0x99'));if(!_0x3abe8f||!_0x3abe8f['_createdBatches'][_0x4ea4('0x77')](_0xe6d26['batch']))return!0x1;let _0x21f62c=!0x1;const _0x49a95b=_0x198b86['plugins'][_0x4ea4('0x95')]('Users')['me'],_0x515c14=_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x1b')][_0x4ea4('0x96')][_0x4ea4('0x7d')](),_0x3f8ff0=Array[_0x4ea4('0x35')](_0x198b86[_0x4ea4('0x6')]['document'][_0x4ea4('0x96')][_0x4ea4('0x8d')]())[_0x4ea4('0x13')](({name:_0x202d89,data:_0x198801})=>{const {group:_0x6e57f8,subType:_0x54a9fb,authorId:_0x3039f2}=_0x4f05d4[_0x4ea4('0x1f')](_0x202d89);return _0x4ea4('0x8c')==_0x6e57f8&&_0x4ea4('0x93')==_0x54a9fb&&_0x3039f2==_0x49a95b['id']&&!_0x198801[_0x4ea4('0xa4')];});for(const _0x782542 of _0x515c14){if(_0x4ea4('0x4f')!=_0x782542[_0x4ea4('0x1')]||_0x4ea4('0x51')!=_0x782542[_0x4ea4('0x27')]||0x1!=_0x782542[_0x4ea4('0x4b')])continue;const _0x10e7c9=_0xe6d26[_0x4ea4('0x81')](_0x782542[_0x4ea4('0x6e')],_0x782542[_0x4ea4('0x6e')][_0x4ea4('0x3c')](0x1));if(!_0x3f8ff0['find'](({data:_0x3d6b31})=>_0x3d6b31[_0x4ea4('0x74')][_0x4ea4('0x7e')](_0x10e7c9)))for(const {name:_0x263a59,data:_0x111b7a}of _0x3f8ff0)if(_0x10e7c9['containsRange'](_0x111b7a[_0x4ea4('0x74')])){_0xe6d26[_0x4ea4('0x9a')](_0x263a59,{'range':_0x10e7c9}),_0x21f62c=!0x0;break;}}return _0x21f62c;}),_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x1b')][_0x4ea4('0x80')](_0x5850fa=>{let _0x2da760=!0x1;const _0x591fbe=_0x198b86[_0x4ea4('0x0')]['get'](_0x4ea4('0x19'))['me'],_0x5a2e60=_0x4f05d4[_0x4ea4('0x43')]()[_0x4ea4('0x13')](_0x294cc5=>_0x294cc5[_0x4ea4('0x7c')]&&_0x294cc5['author']==_0x591fbe),_0x2aa10a=new Set(),_0xd9985=new Set();for(const _0x2ab9db of _0x5a2e60)if(_0x4ea4('0x93')==_0x2ab9db[_0x4ea4('0x40')])for(const _0x340262 of _0x2ab9db[_0x4ea4('0x56')]()){const _0x52a074=_0x340262[_0x4ea4('0x9')]()[_0x4ea4('0x6d')]();if(_0x52a074){if(_0x52a074['is'](_0x4ea4('0x1c'),_0x4ea4('0x51'))&&ce(_0x52a074)){_0x2ab9db[_0x4ea4('0x5d')](_0x340262[_0x4ea4('0x27')]),_0x2aa10a[_0x4ea4('0xb')](_0x52a074),_0x2da760=!0x0;const _0xd793d=_0x52a074[_0x4ea4('0x4a')],_0x39514b=_0x52a074[_0x4ea4('0xf')],_0x516b6d=_0xd793d&&_0xd793d['is'](_0x4ea4('0x1c'),_0x4ea4('0x51')),_0x58d126=_0x39514b&&_0x39514b['is'](_0x4ea4('0x1c'),_0x4ea4('0x51'));_0x516b6d&&!_0x2aa10a[_0x4ea4('0x77')](_0xd793d)&&_0xd9985[_0x4ea4('0xb')](_0xd793d),_0x58d126&&!_0x2aa10a[_0x4ea4('0x77')](_0x39514b)&&_0xd9985['add'](_0x39514b);}else _0x52a074['is']('element',_0x4ea4('0x9f'))&&_0x52a074[_0x4ea4('0xa5')]&&(_0x2ab9db['removeMarker'](_0x340262['name']),_0x2da760=!0x0);}}else{if('tablePasteCell'==_0x2ab9db[_0x4ea4('0x40')]){if(!_0x2ab9db[_0x4ea4('0x78')]||!_0x2ab9db[_0x4ea4('0x78')][_0x4ea4('0x5c')])continue;const _0x128f1a=_0x2ab9db[_0x4ea4('0x78')][_0x4ea4('0x46')];if(_0x128f1a&&Object[_0x4ea4('0x44')](_0x128f1a)[_0x4ea4('0x4b')])continue;const _0x4e91a0=_0x2ab9db[_0x4ea4('0x78')][_0x4ea4('0x5c')];let _0x3225aa=!0x0,_0x43c2d8=!0x0;for(const _0x6b9afb of _0x5a2e60)if(_0x6b9afb['subType']&&_0x6b9afb['subType']['startsWith']('tablePaste')){if(!_0x6b9afb[_0x4ea4('0x78')][_0x4ea4('0x5c')]){_0x43c2d8=!0x1;break;}if(_0x6b9afb['id']!=_0x2ab9db['id']&&_0x6b9afb[_0x4ea4('0x78')]['tablePasteChainId']==_0x4e91a0){_0x3225aa=!0x1;break;}}_0x43c2d8&&_0x3225aa&&(_0x2ab9db['removeMarkers'](),_0x2da760=!0x0);}}for(const _0x4c2029 of _0x2aa10a)_0x5850fa['remove'](_0x4c2029);for(const _0xa2145f of _0xd9985)_0x5850fa[_0x4ea4('0x26')](_0xa2145f);return _0x2da760;}),_0x198b86[_0x4ea4('0xa3')][_0x4ea4('0x66')](_0x4ea4('0x53'))[_0x4ea4('0x18')]({'model':_0x4ea4('0x6a'),'view':(_0x33cdb7,_0xef0f91)=>_0x1a9f59(_0x33cdb7),'converterPriority':_0x4ea4('0x8')}),_0x198b86['conversion'][_0x4ea4('0x66')](_0x4ea4('0x88'))[_0x4ea4('0x18')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x24487e,_0x7faa4a)=>_0x7faa4a[_0x4ea4('0x68')][_0x4ea4('0x33')]?_0x1a9f59(_0x24487e,!0x1):null,'converterPriority':_0x4ea4('0x8')});const _0x4325c4=_0x198b86['editing'][_0x4ea4('0x48')];this[_0x4ea4('0x76')](_0x4325c4[_0x4ea4('0x1b')],_0x4ea4('0x16'),(_0x182b93,_0x3fc0c2)=>{const _0x2034f3=[];for(const _0x584613 of _0x4325c4[_0x4ea4('0x32')](_0x3fc0c2[_0x4ea4('0x71')])[_0x4ea4('0x2f')]())_0x584613['is']('element',_0x4ea4('0x3e'))&&_0x2034f3['push'](_0x584613);_0x4325c4[_0x4ea4('0x9c')](_0x5962ab=>{for(const _0x3c4954 of _0x2034f3)_0x5962ab[_0x4ea4('0x7f')](_0x5962ab['createRangeIn'](_0x3c4954),_0x5962ab[_0x4ea4('0x34')](_0x3c4954)),_0x5962ab[_0x4ea4('0x10')](_0x3c4954);});});}}function ce(_0x2b3338){if(_0x2b3338[_0x4ea4('0xa5')])return!0x0;const _0x574b16=_0x2b3338[_0x4ea4('0x2e')](0x0);return _0x574b16['is']('element',_0x4ea4('0x9f'))&&_0x574b16['isEmpty'];}function fe(_0x1dcc18,_0x531104={},_0x202689){for(const {isAnchor:_0x4f56a2,cellHeight:_0x2b2752,cellWidth:_0x53b588}of _0x202689[_0x4ea4('0x79')](_0x1dcc18,{'includeAllSlots':!0x0,..._0x531104}))if(!_0x4f56a2||0x1!=_0x2b2752||0x1!=_0x53b588)return!0x1;return!0x0;}
|
|
23
|
+
const _0xf473=['_descriptionFactory','content','attributes','has','getChanges','getShiftedBy','element','insertRows','set','documentSelection','getSelectionAffectedTableCells','markMultiRangeInsertion','map','batch','suggestionUnloaded','showSuggestionHighlights','markerAttributes','containsRange','newRange','length','tablePasteRow','_createdBatches','paragraph','getAllAdjacentSuggestions','accept','insertContent','endColumn','*Replace\x20table\x20cells*','getAttributes','columns','findAncestor','tableCellVerticalAlignment','conversion','rowInsertionRanges','position','column','ck-suggestion-marker','previous','start','cell','registerDescriptionCallback','isEqual','cells','editor','getColumns','ck-suggestion-marker-insertion','setAttribute','suggestion-td','end','forceDefaultExecution','getContainedElement','markMultiRangeDeletion','activeMarkers','getChildren','_getCoordsForCells','isInContent','_suggestionFactory','TrackChangesEditing','name','editingDowncast','tablePasteCell','value','getChangedMarkers','clipboardOutput','endRow','selection','getSuggestions','tableCellHorizontalAlignment','redo','getRanges','_tablePostFixingSubtypes','suggestion:formatBlock:tablePasteCell','createElement','document','join','getSuggestionCallback','getRows','editing','options','low','root','rows','high','reduce','elementToElement','removeMarker','insertion','listenTo','for','markerName','find','registerCustomCallback','fill','getChild','insert','subType','rowInsertionIndexes','unwrap','wrap','filter','from','oldRange','tableCellPadding','tablePasteChainId','differ','startsWith','return','_replaceTableSlotCell','rootName','registerPostFixer','afterInit','getRange','previousSibling','_splitMarkerName','fromEntries','createTableWalker','remove','register','tableCell','ck-suggestion-marker--active','TableClipboard','markMultiRangeBlockFormat','nextSibling','table','author','removeMarkers','_isForcedDefaultExecutionBlock','deletionRanges','change','markers','tableCellBackgroundColor','getMarkers','formatBlock','getItems','isEmpty','includes','last','tableCellBorderWidth','tablePaste','next','Users','push','createRangeIn','type','createPositionBefore','removeRows','first','updateMarker','tableCellSuggestion','tablePasteColumn','markerToHighlight','model','plugins','get','add','createRangeOn','getTableIfOnlyTableInContent','deletion','schema','discard'];(function(_0x1b4e68,_0xf4732c){const _0x506caa=function(_0x2e6e81){while(--_0x2e6e81){_0x1b4e68['push'](_0x1b4e68['shift']());}};_0x506caa(++_0xf4732c);}(_0xf473,0xd6));const _0x506c=function(_0x1b4e68,_0xf4732c){_0x1b4e68=_0x1b4e68-0x0;let _0x506caa=_0xf473[_0x1b4e68];return _0x506caa;};import{getTranslation as _0x378a0d}from'../utils/common-translations';import{Plugin as _0x3fb493}from'ckeditor5/src/core';import{uid as _0x503416,priorities as _0xb29e5f}from'ckeditor5/src/utils';import _0x49d087 from'./table';const le=[_0x506c('0x53'),'tableCellBorderColor','tableCellBorderStyle',_0x506c('0xd'),_0x506c('0x89'),_0x506c('0x4c'),_0x506c('0x30')],ae=Object[_0x506c('0x3c')](le[_0x506c('0x76')](_0x58ab09=>[_0x58ab09,null]));export default class At extends _0x3fb493{static get['requires'](){return[_0x49d087];}[_0x506c('0x38')](){const _0x219381=this[_0x506c('0x95')];if(!_0x219381[_0x506c('0x62')][_0x506c('0x6d')](_0x506c('0x42')))return;const _0x4f1e92=_0x219381[_0x506c('0x62')][_0x506c('0x63')](_0x506c('0x3')),_0x225bf4=_0x219381['plugins'][_0x506c('0x63')]('TableUtils'),_0x3c2562=_0x219381['plugins'][_0x506c('0x63')](_0x49d087),_0xc61a43=_0x219381[_0x506c('0x62')][_0x506c('0x63')](_0x506c('0x42'));_0x3c2562[_0x506c('0x10')]['push'](_0x506c('0x7e'),_0x506c('0x5f')),_0x219381['model'][_0x506c('0x68')][_0x506c('0x3f')]('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':_0x506c('0x40'),'isLimit':!0x0}),_0x219381[_0x506c('0x8a')][_0x506c('0x1e')]({'model':'tableCellSuggestion','view':_0x506c('0x99')});let _0x498d4c=null;_0x219381[_0x506c('0x61')]['on'](_0x506c('0x83'),(_0x53c362,_0x1dc20f)=>{const [_0xf5a6f,_0x1e8038]=_0x1dc20f,_0x38a8f4=_0x1dc20f[_0x1dc20f['length']-0x1];_0x38a8f4&&_0x38a8f4[_0x506c('0x9b')]||_0x4f1e92[_0x506c('0x48')]||this['editor']['commands'][_0x506c('0x63')]('trackChanges')[_0x506c('0x7')]&&function(_0x243227,_0x978b59,_0x30d2df,_0x1a134f,_0x231468){if(_0x978b59&&!_0x978b59['is'](_0x506c('0x73')))return!0x1;const _0xf36b65=_0x231468[_0x506c('0x66')](_0x243227,_0x30d2df);if(!_0xf36b65||!fe(_0xf36b65,void 0x0,_0x1a134f))return!0x1;const _0x5de461=_0x1a134f[_0x506c('0x74')](_0x30d2df[_0x506c('0x13')][_0x506c('0xb')]);if(!_0x5de461[_0x506c('0x7d')])return!0x1;const _0x1b70a1=_0x5de461[0x0][_0x506c('0x88')](_0x506c('0x45')),_0x4f88a9=_0x1a134f['getRowIndexes'](_0x5de461),_0x453fde=_0x1a134f['getColumnIndexes'](_0x5de461),_0x3ebb8e={'startRow':_0x4f88a9[_0x506c('0x5c')],'endRow':_0x4f88a9[_0x506c('0x52')],'startColumn':_0x453fde[_0x506c('0x5c')],'endColumn':_0x453fde[_0x506c('0x52')]};return 0x1==_0x5de461[_0x506c('0x7d')]&&(_0x3ebb8e[_0x506c('0xa')]+=_0x1a134f[_0x506c('0x16')](_0xf36b65)-0x1,_0x3ebb8e[_0x506c('0x84')]+=_0x1a134f[_0x506c('0x96')](_0xf36b65)-0x1),fe(_0x1b70a1,_0x3ebb8e,_0x1a134f);}(_0xf5a6f,_0x1e8038,_0x219381['model'],_0x225bf4,_0xc61a43)&&(_0x53c362['stop'](),_0x498d4c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x219381[_0x506c('0x61')][_0x506c('0x4a')](()=>{_0x219381[_0x506c('0x61')]['insertContent'](_0x1dc20f[0x0],_0x1dc20f[0x1],_0x1dc20f[0x2],{'forceDefaultExecution':!0x0});const _0x441d76=_0x503416(),{rowInsertionRanges:_0x36464d,columnInsertionRanges:_0x160b73,insertionRanges:_0x3a7c9d,deletionRanges:_0x5bb216,cells:_0x5f615d}=_0x498d4c;_0x36464d['length']&&_0x4f1e92[_0x506c('0x75')](_0x36464d,'tablePasteRow',{'tablePasteChainId':_0x441d76}),_0x160b73[_0x506c('0x7d')]&&_0x4f1e92[_0x506c('0x75')](_0x160b73,_0x506c('0x5f'),{'tablePasteChainId':_0x441d76}),_0x3a7c9d['length']&&_0x4f1e92['markMultiRangeInsertion'](_0x3a7c9d,'tablePaste',{'tablePasteChainId':_0x441d76,'skipNestingCheck':!0x0}),_0x5bb216['length']&&_0x4f1e92[_0x506c('0x9d')](_0x5bb216,_0x506c('0x54'),{'tablePasteChainId':_0x441d76,'skipNestingCheck':!0x0});const _0x21f143=_0x4f1e92[_0x506c('0x43')](_0x5f615d['map'](({element:_0x5bac81})=>_0x5bac81),{'formatGroupId':_0x503416()},[],_0x506c('0x6'),{'tablePasteChainId':_0x441d76});if(_0x21f143){const _0x1f59ea=_0x21f143[_0x506c('0x4d')](),_0x231a6d=[];for(const {element:_0x5f162e,attributes:_0x1dff5e}of _0x5f615d){if(!_0x1dff5e)continue;const _0x3e6789=_0x219381[_0x506c('0x61')]['createRangeOn'](_0x5f162e),_0x223893=_0x1f59ea[_0x506c('0x24')](_0x1f5db9=>_0x1f5db9[_0x506c('0x39')]()[_0x506c('0x93')](_0x3e6789));_0x223893&&_0x231a6d[_0x506c('0x57')]([_0x223893[_0x506c('0x4')],_0x1dff5e]);}_0x231a6d['length']&&_0x21f143[_0x506c('0x98')](_0x506c('0x7a'),Object[_0x506c('0x3c')](_0x231a6d));}_0x498d4c=null;}));},{'priority':_0xb29e5f['high']+0xa}),_0x219381[_0x506c('0x62')]['get']('TableClipboard')['on'](_0x506c('0x35'),(_0x443e2d,_0x2d4d64)=>{const [_0x43dd74,_0x5b12bf,,_0x14ff4a]=_0x2d4d64;if(!_0x498d4c)return;_0x443e2d['stop']();const _0x52453a=_0x43dd74[_0x506c('0x91')],_0x57113c=_0x5b12bf,_0x5adda4=ce(_0x52453a),_0x480f40=ce(_0x57113c);_0x443e2d[_0x506c('0x34')]=_0x52453a;let _0xb57c6f=null,_0x50ed56=null;if(_0x480f40||_0x5adda4){if(_0x5adda4&&!_0x480f40){_0x14ff4a[_0x506c('0x3e')](_0x52453a[_0x506c('0x27')](0x0));for(const _0x1c754f of Array['from'](_0x57113c[_0x506c('0x9f')]()))_0x14ff4a[_0x506c('0x28')](_0x1c754f,_0x52453a,_0x506c('0x9a'));const _0x41467a=_0x498d4c[_0x506c('0x2a')][_0x506c('0x51')](_0x43dd74['row']),_0x57b238=_0x498d4c['columnInsertionIndexes'][_0x506c('0x51')](_0x43dd74[_0x506c('0x8d')]);_0x41467a||_0x57b238||(_0xb57c6f=_0x14ff4a[_0x506c('0x58')](_0x52453a));}else _0x480f40&&!_0x5adda4&&(_0x50ed56=_0x14ff4a[_0x506c('0x58')](_0x52453a));}else{const _0xde85ca=_0x14ff4a[_0x506c('0x12')](_0x506c('0x5e')),_0x5200af=_0x14ff4a['createElement'](_0x506c('0x5e'));_0x14ff4a[_0x506c('0x2c')](_0x14ff4a[_0x506c('0x58')](_0x52453a),_0x5200af),_0x14ff4a[_0x506c('0x28')](_0xde85ca,_0x52453a,0x0);for(const _0x1f522a of Array[_0x506c('0x2e')](_0x57113c['getChildren']()))_0x14ff4a[_0x506c('0x28')](_0x1f522a,_0xde85ca,'end');_0xb57c6f=_0x14ff4a[_0x506c('0x65')](_0xde85ca),_0x50ed56=_0x14ff4a['createRangeOn'](_0x5200af);}const _0x2363c9=Array[_0x506c('0x2e')](_0x57113c[_0x506c('0x86')]())['filter'](([_0x19db3b])=>le[_0x506c('0x51')](_0x19db3b));_0x498d4c[_0x506c('0x94')][_0x506c('0x57')]({'element':_0x52453a,'attributes':_0x2363c9[_0x506c('0x7d')]?Object[_0x506c('0x3c')](_0x2363c9):null}),_0xb57c6f&&_0x498d4c['insertionRanges'][_0x506c('0x57')](_0xb57c6f),_0x50ed56&&_0x498d4c[_0x506c('0x49')][_0x506c('0x57')](_0x50ed56);},{'priority':_0x506c('0x1c')}),_0x225bf4['on']('insertColumns',(_0xd5cdcc,_0x407534)=>{const [_0x4c91df,_0x1ccffc={}]=_0x407534;if(!_0x498d4c)return;const _0x5bc579=_0x1ccffc['at']||0x0,_0x26e927=_0x1ccffc[_0x506c('0x87')]||0x1;_0x498d4c['columnInsertionIndexes']=new Array(_0x26e927)[_0x506c('0x26')](_0x5bc579)['map']((_0xa535c,_0x10e6c2)=>_0xa535c+_0x10e6c2);for(const {cell:_0x4b90e1}of _0x225bf4[_0x506c('0x3d')](_0x4c91df,{'startColumn':_0x5bc579,'endColumn':_0x5bc579+_0x26e927-0x1}))_0x498d4c['columnInsertionRanges'][_0x506c('0x57')](_0x219381['model'][_0x506c('0x65')](_0x4b90e1));},{'priority':_0x506c('0x19')}),_0x225bf4['on'](_0x506c('0x71'),(_0x5bff75,_0x222177)=>{const [_0x5a16f5,_0xb48285={}]=_0x222177;if(!_0x498d4c)return;const _0x1c75d2=_0xb48285['at']||0x0,_0x2fdcf3=_0xb48285[_0x506c('0x1b')]||0x1;_0x498d4c[_0x506c('0x2a')]=new Array(_0x2fdcf3)[_0x506c('0x26')](_0x1c75d2)[_0x506c('0x76')]((_0x3d3241,_0x33cb70)=>_0x3d3241+_0x33cb70);for(const {cell:_0x2676e8}of _0x225bf4['createTableWalker'](_0x5a16f5,{'startRow':_0x1c75d2,'endRow':_0x1c75d2+_0x2fdcf3-0x1}))_0x498d4c[_0x506c('0x8b')][_0x506c('0x57')](_0x219381[_0x506c('0x61')][_0x506c('0x65')](_0x2676e8));},{'priority':_0x506c('0x19')}),_0x4f1e92[_0x506c('0x6a')][_0x506c('0x92')](_0x1495da=>{if(_0x1495da[_0x506c('0x29')]&&_0x1495da[_0x506c('0x29')][_0x506c('0x33')](_0x506c('0x54')))return _0x1495da[_0x506c('0x8f')]?{}:{'type':_0x506c('0x20'),'content':_0x378a0d(_0x219381['locale'],_0x506c('0x85'))};});const _0x48ee66=()=>!0x1;for(const _0x47c822 of[_0x506c('0x54'),_0x506c('0x5f'),_0x506c('0x7e'),_0x506c('0x6')])_0x4f1e92['_suggestionFactory'][_0x506c('0x25')](_0x506c('0x20'),_0x47c822,_0x506c('0x14'),_0x48ee66),_0x4f1e92['_suggestionFactory']['registerCustomCallback']('deletion',_0x47c822,_0x506c('0x14'),_0x48ee66),_0x4f1e92[_0x506c('0x2')]['registerCustomCallback'](_0x506c('0x4e'),_0x47c822,_0x506c('0x14'),_0x48ee66);_0x4f1e92[_0x506c('0x2')][_0x506c('0x25')](_0x506c('0x4e'),'tablePasteCell',_0x506c('0x69'),_0x48ee66),_0x4f1e92[_0x506c('0x2')][_0x506c('0x25')](_0x506c('0x4e'),'tablePasteCell',_0x506c('0x82'),(_0xb64a49,_0x190754,_0x3364df)=>{const _0x317837=_0xb64a49[_0x506c('0x76')](_0x10e8d7=>_0x10e8d7['getContainedElement']())[_0x506c('0x2d')](_0x47c381=>_0x47c381),_0x1a68e4=new Map(_0x317837[_0x506c('0x76')](_0x3073d7=>[_0x3073d7,null]));if(_0x498d4c)for(const {element:_0x340d7f,attributes:_0x1bd33f}of _0x498d4c[_0x506c('0x94')])_0x1bd33f&&_0x1a68e4[_0x506c('0x72')](_0x340d7f,_0x1bd33f);else{if(_0x3364df&&_0x3364df['markerAttributes'])for(const [_0x1c0719,_0x2e54b4]of Object['entries'](_0x3364df['markerAttributes'])){const _0x616bfd=_0x219381['model'][_0x506c('0x4b')][_0x506c('0x63')](_0x1c0719),_0x1273ca=_0x616bfd?_0x616bfd[_0x506c('0x39')]()[_0x506c('0x9c')]():null;_0x1273ca&&_0x1a68e4[_0x506c('0x72')](_0x1273ca,_0x2e54b4);}}_0x219381[_0x506c('0x61')][_0x506c('0x4a')](_0x313294=>{for(const [_0x53a40b,_0x44aa8c]of _0x1a68e4)_0x313294['setAttributes']({...ae,..._0x44aa8c},_0x53a40b);});});const _0x144065=(_0xe7c500,_0x5b5fa3)=>{_0x4f1e92['_suggestionFactory']['registerCustomCallback'](_0xe7c500,_0x506c('0x54'),_0x5b5fa3,(_0x45e2ca,_0x1adc62,_0x4fccc8)=>{_0x219381[_0x506c('0x61')][_0x506c('0x4a')](_0x30a5c3=>{const _0xa94f6d=[];for(const _0x224599 of _0x45e2ca){const _0x5d4dc4=_0x224599[_0x506c('0x90')]['nodeAfter'];_0x5d4dc4['is'](_0x506c('0x70'),_0x506c('0x5e'))&&_0xa94f6d[_0x506c('0x57')](_0x5d4dc4);}_0x4f1e92[_0x506c('0x2')][_0x506c('0x15')](_0xe7c500,null,_0x5b5fa3)(_0x45e2ca,_0x1adc62,_0x4fccc8);for(const _0xdab19b of _0xa94f6d)'$graveyard'!=_0xdab19b[_0x506c('0x1a')][_0x506c('0x36')]&&_0x30a5c3[_0x506c('0x2b')](_0xdab19b);});});};_0x144065(_0x506c('0x20'),_0x506c('0x82')),_0x144065('insertion','discard'),_0x144065('deletion',_0x506c('0x82')),_0x144065(_0x506c('0x67'),_0x506c('0x69')),_0x4f1e92['_suggestionFactory'][_0x506c('0x25')](_0x506c('0x20'),_0x506c('0x7e'),'discard',_0x45cccc=>{const _0x32f8fe=_0x45cccc['map'](_0x3755bf=>_0x3755bf[_0x506c('0x9c')]()),_0x57f378=_0x32f8fe[0x0][_0x506c('0x88')](_0x506c('0x45')),{minRow:_0x12b5a3,maxRow:_0x1c86d4}=_0x3c2562[_0x506c('0x0')](_0x32f8fe);_0x225bf4[_0x506c('0x5b')](_0x57f378,{'at':_0x12b5a3,'rows':_0x1c86d4-_0x12b5a3+0x1});}),_0x4f1e92['_suggestionFactory']['registerCustomCallback'](_0x506c('0x20'),'tablePasteColumn','discard',_0x27b825=>{const _0x20ae0c=_0x27b825[_0x506c('0x76')](_0x9ed4a3=>_0x9ed4a3[_0x506c('0x9c')]()),_0x566c81=_0x20ae0c[0x0][_0x506c('0x88')](_0x506c('0x45')),{minColumn:_0x19887f,maxColumn:_0x2e4e58}=_0x3c2562[_0x506c('0x0')](_0x20ae0c);_0x225bf4['removeColumns'](_0x566c81,{'at':_0x19887f,'columns':_0x2e4e58-_0x19887f+0x1});});const _0x4c04c5=(_0x1d1da0,_0x382992)=>{if(!_0x382992[_0x506c('0x29')]||!_0x382992[_0x506c('0x29')][_0x506c('0x33')](_0x506c('0x54')))return;const _0x4de366=_0x382992['attributes'][_0x506c('0x31')],_0x59c888=_0x4f1e92[_0x506c('0xc')]()[_0x506c('0x2d')](_0x29dbfa=>_0x29dbfa[_0x506c('0x1')]&&_0x29dbfa[_0x506c('0x6c')]&&_0x29dbfa['attributes']['tablePasteChainId']==_0x4de366);_0x59c888[_0x506c('0x7d')]&&_0x382992[_0x506c('0x81')]()[_0x506c('0x7d')]!=_0x59c888[_0x506c('0x7d')]&&_0x59c888[_0x506c('0x1d')]((_0x58da0a,_0x58fc59)=>(_0x58da0a[_0x506c('0x55')]=_0x58fc59,_0x58fc59[_0x506c('0x8f')]=_0x58da0a,_0x58fc59));};function _0x3b470c(_0x591496,_0x1a38a2=!0x0){const {id:_0x1b0cb0}=_0x4f1e92[_0x506c('0x3b')](_0x591496[_0x506c('0x23')]),_0x486abc=[_0x506c('0x8e'),_0x506c('0x97')],_0xe83e35=_0x4f1e92[_0x506c('0x9e')][_0x506c('0x51')](_0x591496[_0x506c('0x23')]);return _0xe83e35&&_0x486abc[_0x506c('0x57')](_0x506c('0x41')),{'classes':_0x486abc,'attributes':{'data-suggestion':_0x1b0cb0},'priority':_0xe83e35&&_0x1a38a2?0xbc2:0xbb8};}_0x4f1e92['on']('suggestionLoaded',_0x4c04c5,{'priority':'high'}),_0x4f1e92['on'](_0x506c('0x78'),_0x4c04c5,{'priority':'high'}),_0x219381['model']['document']['registerPostFixer'](()=>{let _0x38c96c=!0x1;const _0x5636cd=Array[_0x506c('0x2e')](_0x219381[_0x506c('0x61')][_0x506c('0x13')][_0x506c('0x32')][_0x506c('0x8')]());for(const {name:_0x285aa6,data:_0x16535f}of _0x5636cd){const {group:_0x522d56,type:_0x3f286b,id:_0x49a28b}=_0x4f1e92[_0x506c('0x3b')](_0x285aa6);if('suggestion'!=_0x522d56||'deletion'!=_0x3f286b||_0x16535f[_0x506c('0x2f')])continue;if(!_0x4f1e92['hasSuggestion'](_0x49a28b))continue;const _0x4075d6=_0x4f1e92['getSuggestion'](_0x49a28b)[_0x506c('0xf')](),_0x172951=_0x219381[_0x506c('0x62')][_0x506c('0x63')](_0x506c('0x56'))['me'];for(const _0x204085 of _0x4f1e92[_0x506c('0xc')]()){if(!_0x204085[_0x506c('0x1')]||_0x204085[_0x506c('0x46')]!=_0x172951)continue;if('formatBlock'!=_0x204085[_0x506c('0x59')]||_0x506c('0x6')!=_0x204085[_0x506c('0x29')])continue;if(_0x204085[_0x506c('0xf')]()['every'](_0x329e68=>_0x4075d6['some'](_0x11aaf0=>_0x11aaf0[_0x506c('0x7b')](_0x329e68,!0x0))))for(const _0xc4e061 of _0x204085[_0x506c('0x81')]())_0xc4e061[_0x506c('0x1')]&&(_0xc4e061[_0x506c('0x69')](),_0x38c96c=!0x0);}}return _0x38c96c;}),_0x219381[_0x506c('0x61')][_0x506c('0x13')]['registerPostFixer'](_0x1c782a=>{const _0x2a7a83=_0x219381['commands']['get'](_0x506c('0xe'));if(!_0x2a7a83||!_0x2a7a83[_0x506c('0x7f')][_0x506c('0x6d')](_0x1c782a[_0x506c('0x77')]))return!0x1;let _0x4896fd=!0x1;const _0xc9a092=_0x219381[_0x506c('0x62')][_0x506c('0x63')]('Users')['me'],_0x388d9=_0x219381[_0x506c('0x61')][_0x506c('0x13')]['differ'][_0x506c('0x6e')](),_0x2881b3=Array[_0x506c('0x2e')](_0x219381['model']['document'][_0x506c('0x32')][_0x506c('0x8')]())['filter'](({name:_0x3d0fad,data:_0x3d1a68})=>{const {group:_0x5ee79d,subType:_0x4b3b8f,authorId:_0xbca6f7}=_0x4f1e92[_0x506c('0x3b')](_0x3d0fad);return'suggestion'==_0x5ee79d&&'tablePaste'==_0x4b3b8f&&_0xbca6f7==_0xc9a092['id']&&!_0x3d1a68[_0x506c('0x2f')];});for(const _0x467a3c of _0x388d9){if(_0x506c('0x28')!=_0x467a3c[_0x506c('0x59')]||_0x506c('0x5e')!=_0x467a3c['name']||0x1!=_0x467a3c[_0x506c('0x7d')])continue;const _0x282195=_0x1c782a['createRange'](_0x467a3c[_0x506c('0x8c')],_0x467a3c['position'][_0x506c('0x6f')](0x1));if(!_0x2881b3['find'](({data:_0x18ac85})=>_0x18ac85[_0x506c('0x7c')][_0x506c('0x93')](_0x282195)))for(const {name:_0x2a2716,data:_0x3bec10}of _0x2881b3)if(_0x282195[_0x506c('0x7b')](_0x3bec10[_0x506c('0x7c')])){_0x1c782a[_0x506c('0x5d')](_0x2a2716,{'range':_0x282195}),_0x4896fd=!0x0;break;}}return _0x4896fd;}),_0x219381['model'][_0x506c('0x13')][_0x506c('0x37')](_0x3cbf8f=>{let _0x592c3d=!0x1;const _0x5312a5=_0x219381['plugins']['get']('Users')['me'],_0x4b74b1=_0x4f1e92[_0x506c('0xc')]()[_0x506c('0x2d')](_0x2a8c2d=>_0x2a8c2d['isInContent']&&_0x2a8c2d[_0x506c('0x46')]==_0x5312a5),_0x120fdb=new Set(),_0x517f02=new Set();for(const _0x4d8ccb of _0x4b74b1)if(_0x506c('0x54')==_0x4d8ccb[_0x506c('0x29')])for(const _0x38fedc of _0x4d8ccb[_0x506c('0x4d')]()){const _0x2bbf8c=_0x38fedc[_0x506c('0x39')]()['getContainedElement']();if(_0x2bbf8c){if(_0x2bbf8c['is'](_0x506c('0x70'),_0x506c('0x5e'))&&ce(_0x2bbf8c)){_0x4d8ccb[_0x506c('0x1f')](_0x38fedc[_0x506c('0x4')]),_0x120fdb['add'](_0x2bbf8c),_0x592c3d=!0x0;const _0x17ca4d=_0x2bbf8c[_0x506c('0x44')],_0x52c281=_0x2bbf8c[_0x506c('0x3a')],_0x25db51=_0x17ca4d&&_0x17ca4d['is'](_0x506c('0x70'),_0x506c('0x5e')),_0x5a0d61=_0x52c281&&_0x52c281['is'](_0x506c('0x70'),_0x506c('0x5e'));_0x25db51&&!_0x120fdb['has'](_0x17ca4d)&&_0x517f02[_0x506c('0x64')](_0x17ca4d),_0x5a0d61&&!_0x120fdb[_0x506c('0x6d')](_0x52c281)&&_0x517f02[_0x506c('0x64')](_0x52c281);}else _0x2bbf8c['is'](_0x506c('0x70'),_0x506c('0x80'))&&_0x2bbf8c['isEmpty']&&(_0x4d8ccb[_0x506c('0x1f')](_0x38fedc[_0x506c('0x4')]),_0x592c3d=!0x0);}}else{if(_0x506c('0x6')==_0x4d8ccb[_0x506c('0x29')]){if(!_0x4d8ccb[_0x506c('0x6c')]||!_0x4d8ccb['attributes'][_0x506c('0x31')])continue;const _0x2b73b8=_0x4d8ccb[_0x506c('0x6c')][_0x506c('0x7a')];if(_0x2b73b8&&Object['keys'](_0x2b73b8)[_0x506c('0x7d')])continue;const _0xef1093=_0x4d8ccb[_0x506c('0x6c')]['tablePasteChainId'];let _0x5cc9ba=!0x0,_0x4831f3=!0x0;for(const _0x4c821a of _0x4b74b1)if(_0x4c821a[_0x506c('0x29')]&&_0x4c821a['subType'][_0x506c('0x33')](_0x506c('0x54'))){if(!_0x4c821a['attributes']['tablePasteChainId']){_0x4831f3=!0x1;break;}if(_0x4c821a['id']!=_0x4d8ccb['id']&&_0x4c821a[_0x506c('0x6c')][_0x506c('0x31')]==_0xef1093){_0x5cc9ba=!0x1;break;}}_0x4831f3&&_0x5cc9ba&&(_0x4d8ccb[_0x506c('0x47')](),_0x592c3d=!0x0);}}for(const _0x4fe1e1 of _0x120fdb)_0x3cbf8f[_0x506c('0x3e')](_0x4fe1e1);for(const _0x2ebdf2 of _0x517f02)_0x3cbf8f[_0x506c('0x2b')](_0x2ebdf2);return _0x592c3d;}),_0x219381['conversion'][_0x506c('0x22')](_0x506c('0x5'))['markerToHighlight']({'model':_0x506c('0x11'),'view':(_0x5cf716,_0x1ddb0e)=>_0x3b470c(_0x5cf716),'converterPriority':_0x506c('0x1c')}),_0x219381['conversion'][_0x506c('0x22')]('dataDowncast')[_0x506c('0x60')]({'model':_0x506c('0x11'),'view':(_0x208f8e,_0x3b7023)=>_0x3b7023[_0x506c('0x18')][_0x506c('0x79')]?_0x3b470c(_0x208f8e,!0x1):null,'converterPriority':'high'});const _0x129e22=_0x219381[_0x506c('0x17')]['view'];this[_0x506c('0x21')](_0x129e22[_0x506c('0x13')],_0x506c('0x9'),(_0x1a30bb,_0x4db634)=>{const _0x2e3968=[];for(const _0x529b36 of _0x129e22[_0x506c('0x58')](_0x4db634[_0x506c('0x6b')])[_0x506c('0x4f')]())_0x529b36['is'](_0x506c('0x70'),_0x506c('0x99'))&&_0x2e3968[_0x506c('0x57')](_0x529b36);_0x129e22[_0x506c('0x4a')](_0x39bd3a=>{for(const _0x477bd6 of _0x2e3968)_0x39bd3a['move'](_0x39bd3a[_0x506c('0x58')](_0x477bd6),_0x39bd3a[_0x506c('0x5a')](_0x477bd6)),_0x39bd3a[_0x506c('0x3e')](_0x477bd6);});});}}function ce(_0x53dcc0){if(_0x53dcc0[_0x506c('0x50')])return!0x0;const _0x3b7a8b=_0x53dcc0[_0x506c('0x27')](0x0);return _0x3b7a8b['is'](_0x506c('0x70'),_0x506c('0x80'))&&_0x3b7a8b['isEmpty'];}function fe(_0x16adc4,_0x19b931={},_0x3d5441){for(const {isAnchor:_0x3551b9,cellHeight:_0x25384d,cellWidth:_0x408436}of _0x3d5441[_0x506c('0x3d')](_0x16adc4,{'includeAllSlots':!0x0,..._0x19b931}))if(!_0x3551b9||0x1!=_0x25384d||0x1!=_0x408436)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a9f=['_suggestionFactory','_descriptionFactory','TrackChangesEditing','editor','handleSuggestionDescription','getContainedElement','author','getSuggestions','TableColumnResizeEditing','getColumnGroupElement','registerDescriptionCallback','formatGroupId','commandParams','getSelectedElement','plugins','model','resizeTable','bind','subType','has','*Format:*\x20resize\x20table','discard','formatInline','registerCustomCallback','getSuggestionCallback','markBlockFormat','type','resizeTableWidth','afterInit','tableWidth','accept','handleResizeTableWidthCommand','columnWidths','formatBlock','locale','format','getAttribute','get'];(function(_0x119c4e,_0x2a9f34){const _0x464281=function(_0x4b0946){while(--_0x4b0946){_0x119c4e['push'](_0x119c4e['shift']());}};_0x464281(++_0x2a9f34);}(_0x2a9f,0xae));const _0x4642=function(_0x119c4e,_0x2a9f34){_0x119c4e=_0x119c4e-0x0;let _0x464281=_0x2a9f[_0x119c4e];return _0x464281;};import{Plugin as _0x582de2}from'ckeditor5/src/core';import{getTranslation as _0x2bb44e}from'../utils/common-translations';export default class It extends _0x582de2{[_0x4642('0x6')](){if(!this[_0x4642('0x13')][_0x4642('0x1e')][_0x4642('0x23')]('TableColumnResizeEditing'))return;const _0x1cea41=this[_0x4642('0x13')][_0x4642('0x1e')][_0x4642('0xf')](_0x4642('0x12'));_0x1cea41['enableCommand'](_0x4642('0x5'),this[_0x4642('0x9')]['bind'](this)),_0x1cea41[_0x4642('0x10')][_0x4642('0x1')](_0x4642('0xb'),'resizeTable',_0x4642('0x8'),_0x1cea41[_0x4642('0x10')][_0x4642('0x2')]('formatBlock',null,'discard')),_0x1cea41[_0x4642('0x10')]['registerCustomCallback'](_0x4642('0xb'),'resizeTable',_0x4642('0x25'),_0x1cea41[_0x4642('0x10')][_0x4642('0x2')](_0x4642('0xb'),null,'accept')),_0x1cea41[_0x4642('0x11')][_0x4642('0x1a')](this[_0x4642('0x14')][_0x4642('0x21')](this));}[_0x4642('0x9')](_0x3310de,_0x352de2){const _0x534554=this[_0x4642('0x13')][_0x4642('0x1e')][_0x4642('0xf')](_0x4642('0x12')),_0x4155de=this[_0x4642('0x13')][_0x4642('0x1e')][_0x4642('0xf')](_0x4642('0x18')),_0xf1242d=_0x352de2['table']||this[_0x4642('0x13')][_0x4642('0x1f')]['document']['selection'][_0x4642('0x1d')]();this[_0x4642('0x13')][_0x4642('0x1f')]['change'](()=>{const _0xd3c09e=_0x4155de[_0x4642('0x19')](_0xf1242d);let _0x25db36=_0xd3c09e?_0x4155de['getTableColumnsWidths'](_0xd3c09e):null,_0x8e0807=_0xf1242d[_0x4642('0xe')](_0x4642('0x7'))||null;const _0x387ed8=_0x352de2[_0x4642('0x7')]||_0x8e0807,_0x4bcb15=_0x352de2[_0x4642('0xa')]||_0x25db36,_0x4cc502=this['editor'][_0x4642('0x1e')][_0x4642('0xf')]('Users')['me'];for(const _0x2b7c7c of _0x534554[_0x4642('0x17')]()){const _0x2f8560=_0x2b7c7c[_0x4642('0x15')]();if(_0x4642('0x20')===_0x2b7c7c[_0x4642('0x22')]&&_0x2f8560===_0xf1242d){_0x2b7c7c[_0x4642('0x16')]!==_0x4cc502&&_0x2b7c7c[_0x4642('0x25')]();const _0x237b0a=_0x2b7c7c['data'][_0x4642('0x1c')];_0x8e0807=_0x237b0a[0x0]['tableWidth'],_0x25db36=_0x237b0a[0x0][_0x4642('0xa')];break;}}_0x3310de({'table':_0xf1242d,'tableWidth':_0x387ed8,'columnWidths':_0x4bcb15}),_0x534554[_0x4642('0x3')](_0xf1242d,{'commandName':_0x4642('0x5'),'commandParams':[{'tableWidth':_0x8e0807,'columnWidths':_0x25db36}],'formatGroupId':_0x4642('0x20')},[],'resizeTable');});}[_0x4642('0x14')](_0x57abfd){if(_0x4642('0xb')!=_0x57abfd[_0x4642('0x4')]&&_0x4642('0x0')!=_0x57abfd['type'])return;const {data:_0x1eb43f}=_0x57abfd;if(_0x1eb43f&&_0x4642('0x20')===_0x1eb43f[_0x4642('0x1b')]){const _0x59c2ec=_0x4642('0x24');return{'type':_0x4642('0xd'),'content':_0x2bb44e(this['editor'][_0x4642('0xc')],_0x59c2ec)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5616=['_enableDefaultAttributesIntegration','commandParams','FORMAT_REGULAR_COLUMN','forceValue','mapper','toViewElement','downcastDispatcher','_suggestionFactory','getSuggestion','removeAttribute','type','TrackChangesEditing','markerNameToElements','removeClass','getCellLocation','registerDescriptionCallback','includes','formatBlock','afterInit','markerName','FORMAT_HEADER_ROW','start','setTableRowHeader','headingRows','_registerLegacyDescription','FORMAT_REGULAR_ROW','commandName','*Format:*\x20%0','highest','removeMarker:suggestion','writer','cell','stop','bindElementToMarker','get','plugins','setAttribute','activeMarkers','headingColumns','parent','consume','createTableWalker','markerRange','accept','FORMAT_HEADER_COLUMN','data-suggestion','registerAttributeLabel','ck-suggestion-marker-','_acceptFormatSuggestionCallbackFactory','editor','unbindElementFromMarkerName','addMarker:suggestion','data','locale','item','nodeAfter','ck-suggestion-marker--active','end','_descriptionFactory','editing','has','setTableColumnHeader','showSuggestionHighlights','addClass'];(function(_0x2210af,_0x5616d2){const _0x52ab55=function(_0xda0f48){while(--_0xda0f48){_0x2210af['push'](_0x2210af['shift']());}};_0x52ab55(++_0x5616d2);}(_0x5616,0xf3));const _0x52ab=function(_0x2210af,_0x5616d2){_0x2210af=_0x2210af-0x0;let _0x52ab55=_0x5616[_0x2210af];return _0x52ab55;};import{Plugin as _0x194b6d}from'ckeditor5/src/core';import _0x5a2f42 from'./table';import{getTranslation as _0x4d859e}from'../utils/common-translations';export default class St extends _0x194b6d{static get['requires'](){return[_0x5a2f42];}[_0x52ab('0x1f')](){const _0x3c5a61=this[_0x52ab('0x3e')];if(!_0x3c5a61['plugins'][_0x52ab('0x9')]('TableEditing'))return;const _0x123705=_0x3c5a61['locale'],_0x31232b=_0x3c5a61[_0x52ab('0x30')][_0x52ab('0x2f')](_0x52ab('0x18'));_0x31232b['_enableDefaultAttributesIntegration'](_0x52ab('0x23'),[],['headingRows']),_0x31232b[_0x52ab('0xd')](_0x52ab('0xa'),[],[_0x52ab('0x33')]),_0x31232b[_0x52ab('0x7')]['registerAttributeLabel'](_0x52ab('0x24'),_0x4d859e(_0x123705,_0x52ab('0x21'))),_0x31232b['_descriptionFactory'][_0x52ab('0x3b')](_0x52ab('0x33'),_0x4d859e(_0x123705,_0x52ab('0x39'))),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3ed8c2=this[_0x52ab('0x3e')][_0x52ab('0x30')][_0x52ab('0x2f')](_0x52ab('0x18')),_0x2e45d4=this[_0x52ab('0x3e')]['plugins'][_0x52ab('0x2f')]('TableUtils'),_0x55550e=this[_0x52ab('0x3e')]['plugins']['get'](_0x5a2f42)[_0x52ab('0x3d')]();function _0x5d7726({showActiveMarker:_0x48f1b4=!0x0,setDataAttribute:_0x2ae272=!0x0}={}){return(_0x46a361,_0x3a3d99,_0x34f98f)=>{const {type:_0x3c7f1e,id:_0x4ba7d8}=_0x3ed8c2['_splitMarkerName'](_0x3a3d99[_0x52ab('0x20')]),_0x11cea3=_0x3ed8c2[_0x52ab('0x15')](_0x4ba7d8),_0x4cca33=_0x11cea3[_0x52ab('0x1')];if(_0x52ab('0x1e')!=_0x11cea3[_0x52ab('0x17')]||!_0x4cca33||_0x52ab('0xa')!=_0x4cca33[_0x52ab('0x27')])return;if(_0x3a3d99[_0x52ab('0x3')])return void _0x46a361[_0x52ab('0x2d')]();if(!_0x34f98f['consumable'][_0x52ab('0x35')](_0x3a3d99[_0x52ab('0x37')],_0x46a361['name']))return;const _0x1597bc=_0x3a3d99[_0x52ab('0x37')][_0x52ab('0x22')][_0x52ab('0x4')],_0x58e784=_0x3a3d99[_0x52ab('0x37')][_0x52ab('0x6')]['nodeBefore'],_0x5d94f7=_0x1597bc[_0x52ab('0x34')][_0x52ab('0x34')],{column:_0x1156be}=_0x2e45d4[_0x52ab('0x1b')](_0x1597bc),{column:_0xfead47}=_0x2e45d4[_0x52ab('0x1b')](_0x58e784);for(let _0x1e8710=_0x1156be;_0x1e8710<=_0xfead47;_0x1e8710++){const _0x4c721c=_0x2e45d4[_0x52ab('0x36')](_0x5d94f7,{'column':_0x1e8710,'includeAllSlots':!0x1});for(const _0x4a03ae of _0x4c721c){const _0x3c2d64=_0x4a03ae[_0x52ab('0x2c')],_0x52c2fb=_0x34f98f['mapper'][_0x52ab('0x12')](_0x3c2d64);_0x34f98f['writer'][_0x52ab('0xc')](_0x52ab('0x3c')+_0x3c7f1e,_0x52c2fb),_0x2ae272&&_0x34f98f['writer'][_0x52ab('0x31')](_0x52ab('0x3a'),_0x4ba7d8,_0x52c2fb),_0x34f98f[_0x52ab('0x11')][_0x52ab('0x2e')](_0x52c2fb,_0x3a3d99[_0x52ab('0x20')]),_0x48f1b4&&(_0x3ed8c2[_0x52ab('0x32')][_0x52ab('0x1d')](_0x3a3d99['markerName'])?_0x34f98f[_0x52ab('0x2b')][_0x52ab('0xc')](_0x52ab('0x5'),_0x52c2fb):_0x34f98f[_0x52ab('0x2b')][_0x52ab('0x1a')](_0x52ab('0x5'),_0x52c2fb));}}};}_0x3ed8c2[_0x52ab('0x14')]['registerCustomCallback'](_0x52ab('0x1e'),_0x52ab('0x23'),_0x52ab('0x38'),_0x55550e),_0x3ed8c2[_0x52ab('0x14')]['registerCustomCallback'](_0x52ab('0x1e'),'setTableColumnHeader',_0x52ab('0x38'),_0x55550e),this[_0x52ab('0x3e')][_0x52ab('0x8')][_0x52ab('0x13')]['on'](_0x52ab('0x0'),_0x5d7726(),{'priority':_0x52ab('0x29')}),this['editor']['data'][_0x52ab('0x13')]['on']('addMarker:suggestion',(_0x2a552d,_0x584ad7,_0x16aa3e)=>{_0x16aa3e['options'][_0x52ab('0xb')]&&_0x5d7726({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2a552d,_0x584ad7,_0x16aa3e);},{'priority':_0x52ab('0x29')}),this[_0x52ab('0x3e')]['editing'][_0x52ab('0x13')]['on'](_0x52ab('0x2a'),(_0x41696a,_0xf5132e,_0x432730)=>{const {type:_0x57afd9,id:_0x384322}=_0x3ed8c2['_splitMarkerName'](_0xf5132e[_0x52ab('0x20')]),_0x1a2e1d=_0x3ed8c2[_0x52ab('0x15')](_0x384322),_0x4e789b=_0x1a2e1d[_0x52ab('0x1')];if('formatBlock'!=_0x1a2e1d[_0x52ab('0x17')]||!_0x4e789b||'setTableColumnHeader'!=_0x4e789b[_0x52ab('0x27')])return;const _0x13e8c5=_0x432730[_0x52ab('0x11')][_0x52ab('0x19')](_0xf5132e['markerName']);if(_0x13e8c5)for(const _0x1873c6 of _0x13e8c5)_0x432730['writer'][_0x52ab('0x1a')](_0x52ab('0x3c')+_0x57afd9,_0x1873c6),_0x432730[_0x52ab('0x2b')][_0x52ab('0x1a')]('ck-suggestion-marker--active',_0x1873c6),_0x432730[_0x52ab('0x2b')][_0x52ab('0x16')](_0x52ab('0x3a'),_0x1873c6),_0x432730[_0x52ab('0x11')][_0x52ab('0x3f')](_0x1873c6,_0xf5132e[_0x52ab('0x20')]);},{'priority':'highest'}),this['_registerLegacyDescription']();}[_0x52ab('0x25')](){const _0x2cd02f=this[_0x52ab('0x3e')],_0x1ec041=_0x2cd02f[_0x52ab('0x2')];function _0x574334(_0x45522c){return{'type':'format','content':_0x4d859e(_0x1ec041,_0x52ab('0x28'),_0x45522c)};}_0x2cd02f[_0x52ab('0x30')][_0x52ab('0x2f')](_0x52ab('0x18'))['_descriptionFactory'][_0x52ab('0x1c')](_0x4ac7ca=>{if(_0x52ab('0x1e')!=_0x4ac7ca['type'])return;const {data:_0x39060a}=_0x4ac7ca;if(_0x39060a){if(_0x52ab('0x23')==_0x39060a[_0x52ab('0x27')]){const _0x2a25d9=_0x39060a['commandParams'][0x0][_0x52ab('0x10')];return _0x574334(_0x4d859e(_0x1ec041,_0x2a25d9?_0x52ab('0x21'):_0x52ab('0x26')));}if('setTableColumnHeader'==_0x39060a[_0x52ab('0x27')]){const _0x44da9d=_0x39060a[_0x52ab('0xe')][0x0][_0x52ab('0x10')];return _0x574334(_0x4d859e(_0x1ec041,_0x44da9d?'FORMAT_HEADER_COLUMN':_0x52ab('0xf')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34aa=['commands','direction','cell','forceDefaultExecution','mergeTableCellUp','_suggestionFactory','execute','rootName','horizontally','getSelectionAffectedTableCells','_isForcedDefaultExecutionBlock','low','containsRange','$graveyard','_areSelectedCellsMergable','registerDescriptionCallback','format','fromRange','return','find','mergeTableCellDown','from','stop','getAncestors','set:isEnabled','_descriptionFactory','getRanges','enableCommand','setSelection','element','filter','_areMergableCells','type','markBlockFormat','createRangeOn','registerCustomCallback','plugins','*Split\x20cell:*\x20horizontally','markMultiRangeBlockFormat','length','size','table','TrackChangesEditing','root','mergeTableCellRight','document','*Merge\x20cells*','get','*Split\x20cell:*\x20vertically','model','splitTableCellHorizontally','splitTableCellVertically','change','value','isEnabled','map','has','accept','highest','formatInline','tableCell','author','trackChanges','commandName','selection','TableUtils','TableEditing','subType','detach','formatBlock','getCellLocation','isInContent','deletion','_tablePostFixingSubtypes','refresh','mergeTableCellLeft','editor','add','createTableWalker','mergeTableCells'];(function(_0x1fcb57,_0x34aa05){const _0x566c0c=function(_0x16d157){while(--_0x16d157){_0x1fcb57['push'](_0x1fcb57['shift']());}};_0x566c0c(++_0x34aa05);}(_0x34aa,0xe9));const _0x566c=function(_0x1fcb57,_0x34aa05){_0x1fcb57=_0x1fcb57-0x0;let _0x566c0c=_0x34aa[_0x1fcb57];return _0x566c0c;};import{Plugin as _0x3045e1}from'ckeditor5/src/core';import _0x38427c from'./table';import{LiveRange as _0x1476b9}from'ckeditor5/src/engine';import{getTranslation as _0xe6661d}from'../utils/common-translations';export default class yt extends _0x3045e1{static get['requires'](){return[_0x38427c];}['afterInit'](){const _0x3ae54c=this[_0x566c('0x3')],_0xa6d2d0=_0x3ae54c[_0x566c('0x38')]['document']['selection'],_0x617490=_0x3ae54c['locale'];if(!_0x3ae54c[_0x566c('0x2b')]['has'](_0x566c('0x49')))return;const _0x5a8f95=_0x3ae54c[_0x566c('0x2b')][_0x566c('0x36')](_0x566c('0x31')),_0x1f71cd=_0x3ae54c[_0x566c('0x2b')]['get'](_0x566c('0x48')),_0x22deb4=_0x3ae54c[_0x566c('0x2b')][_0x566c('0x36')](_0x38427c);_0x22deb4[_0x566c('0x0')]['push'](_0x566c('0x6')),_0x5a8f95['enableCommand'](_0x566c('0x6'),()=>{const _0x115fd0=_0x1f71cd[_0x566c('0x10')](_0x3ae54c[_0x566c('0x38')][_0x566c('0x34')][_0x566c('0x47')]);_0x3ae54c[_0x566c('0x38')][_0x566c('0x3b')](()=>{_0x5a8f95[_0x566c('0x2d')](_0x115fd0,{'commandName':_0x566c('0x6'),'commandParams':[]},[],'mergeTableCells');});}),_0x3ae54c[_0x566c('0x7')][_0x566c('0x36')](_0x566c('0x6'))['on'](_0x566c('0xd'),(_0x44ca9d,_0x5cb09e)=>{_0x3ae54c[_0x566c('0x7')][_0x566c('0x36')](_0x566c('0x45'))[_0x566c('0x3c')]&&(_0x5cb09e['length']>0x0&&_0x5cb09e[_0x5cb09e[_0x566c('0x2e')]-0x1]&&_0x5cb09e[_0x5cb09e[_0x566c('0x2e')]-0x1][_0x566c('0xa')]||_0x5a8f95[_0x566c('0x11')]||this[_0x566c('0x15')]()||_0x44ca9d[_0x566c('0x1d')]());},{'priority':_0x566c('0x41')});for(const _0x24d31e of[_0x566c('0xb'),_0x566c('0x33'),_0x566c('0x1b'),'mergeTableCellLeft']){const _0x29af96=_0x3ae54c[_0x566c('0x7')][_0x566c('0x36')](_0x24d31e);_0x5a8f95['enableCommand'](_0x24d31e,()=>{const _0x42df79=_0x3ae54c[_0x566c('0x38')][_0x566c('0x34')]['selection']['getFirstPosition']()[_0x566c('0x1e')]()[_0x566c('0x1a')](_0x1688b8=>_0x1688b8['is'](_0x566c('0x24'),_0x566c('0x43'))),_0x26aabf=_0x29af96['value'];_0x3ae54c[_0x566c('0x38')][_0x566c('0x3b')](()=>{_0x5a8f95[_0x566c('0x2d')]([_0x42df79,_0x26aabf],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x49ed22 of[_0x566c('0x3a'),_0x566c('0x39')]){const _0x463f84=_0x3ae54c['commands']['get'](_0x49ed22);_0x5a8f95[_0x566c('0x22')](_0x49ed22,()=>{const _0x19af21=_0x1f71cd[_0x566c('0x10')](_0x3ae54c['model']['document'][_0x566c('0x47')])[0x0],_0x3dad7c=_0x19af21['findAncestor'](_0x566c('0x30')),{column:_0x79e72a,row:_0x6a9e50}=_0x1f71cd[_0x566c('0x4d')](_0x19af21);let _0x5337d3=[];if(_0x566c('0xf')==_0x463f84[_0x566c('0x8')]){const _0x5a8331=_0x1f71cd['createTableWalker'](_0x3dad7c,{'startRow':_0x6a9e50,'endRow':_0x6a9e50,'includeAllSlots':!0x0});_0x5337d3=Array[_0x566c('0x1c')](_0x5a8331)[_0x566c('0x3e')](_0x7b32a9=>_0x7b32a9[_0x566c('0x9')]);}else{const _0x293727=_0x1f71cd[_0x566c('0x5')](_0x3dad7c,{'column':_0x79e72a,'includeAllSlots':!0x0});_0x5337d3=Array[_0x566c('0x1c')](_0x293727)[_0x566c('0x3e')](_0x3e9283=>_0x3e9283[_0x566c('0x9')]);}_0x3ae54c[_0x566c('0x38')]['change'](_0x576032=>{_0x5a8f95[_0x566c('0x28')](_0x576032[_0x566c('0x29')](_0x19af21),{'commandName':_0x49ed22,'commandParams':[]},_0x5337d3,_0x49ed22);});});}_0x5a8f95[_0x566c('0x20')][_0x566c('0x16')](_0x3da153=>{if(_0x566c('0x4c')!=_0x3da153[_0x566c('0x27')]&&_0x566c('0x42')!=_0x3da153['type'])return;const {data:_0x5c3abd}=_0x3da153;return _0x5c3abd&&_0x566c('0x6')==_0x5c3abd['commandName']?{'type':'format','content':_0xe6661d(_0x617490,_0x566c('0x35'))}:void 0x0;}),_0x5a8f95[_0x566c('0x20')]['registerDescriptionCallback'](_0x2ec31a=>{if(_0x566c('0x4c')!=_0x2ec31a[_0x566c('0x27')]&&_0x566c('0x42')!=_0x2ec31a['type'])return;const {data:_0x39ee82}=_0x2ec31a;return _0x39ee82?_0x566c('0x3a')==_0x39ee82[_0x566c('0x46')]?{'type':_0x566c('0x17'),'content':_0xe6661d(_0x617490,_0x566c('0x37'))}:_0x566c('0x39')==_0x39ee82[_0x566c('0x46')]?{'type':'format','content':_0xe6661d(_0x617490,_0x566c('0x2c'))}:void 0x0:void 0x0;});const _0x5cd426=_0x22deb4['_acceptFormatSuggestionCallbackFactory']();for(const _0x245969 of[_0x566c('0xb'),_0x566c('0x33'),_0x566c('0x1b'),'mergeTableCellLeft'])_0x5a8f95[_0x566c('0xc')][_0x566c('0x2a')](_0x566c('0x4c'),_0x245969,_0x566c('0x40'),_0x5cd426);for(const _0x3c1cd7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5a8f95[_0x566c('0xc')]['registerCustomCallback']('formatBlock',_0x3c1cd7,_0x566c('0x40'),_0x5cd426);_0x5a8f95['_suggestionFactory']['registerCustomCallback'](_0x566c('0x4c'),_0x566c('0x6'),_0x566c('0x40'),_0x578968=>{_0x3ae54c[_0x566c('0x38')][_0x566c('0x3b')](_0x545a00=>{const _0x1a36a5=Array['from'](_0xa6d2d0['getRanges']())['map'](_0x288c70=>_0x1476b9[_0x566c('0x18')](_0x288c70));_0x545a00[_0x566c('0x23')](_0x578968),_0x3ae54c['commands'][_0x566c('0x36')]('mergeTableCells')[_0x566c('0x1')](),_0x3ae54c['execute'](_0x566c('0x6'),{'forceDefaultExecution':!0x0});const _0x333929=_0x1a36a5[_0x566c('0x25')](_0x5f3342=>_0x566c('0x14')!=_0x5f3342[_0x566c('0x32')][_0x566c('0xe')]);_0x333929[_0x566c('0x2e')]>0x0&&_0x545a00[_0x566c('0x23')](_0x333929);for(const _0x33b35a of _0x1a36a5)_0x33b35a[_0x566c('0x4b')]();});});for(const _0x484bb0 of[_0x566c('0xb'),'mergeTableCellDown',_0x566c('0x2'),'mergeTableCellRight']){const _0x216a4f=_0x3ae54c['commands'][_0x566c('0x36')](_0x484bb0);_0x216a4f['on'](_0x566c('0x1f'),(_0x2d6f9b,_0x358f65,_0x4bef75)=>{if(_0x4bef75){const _0x3c7b07=_0x3ae54c[_0x566c('0x38')][_0x566c('0x34')]['selection']['getFirstPosition']()[_0x566c('0x1e')]()[_0x566c('0x1a')](_0x11a556=>_0x11a556['is'](_0x566c('0x24'),_0x566c('0x43')));this[_0x566c('0x26')](_0x216a4f['value'],_0x3c7b07)||(_0x2d6f9b[_0x566c('0x19')]=!0x1,_0x2d6f9b['stop']());}},{'priority':_0x566c('0x12')});}}[_0x566c('0x15')](){const _0x26e28a=this[_0x566c('0x3')][_0x566c('0x7')][_0x566c('0x36')](_0x566c('0x6')),_0x3ee1ea=this[_0x566c('0x3')][_0x566c('0x2b')][_0x566c('0x36')](_0x566c('0x48'));if(!_0x26e28a[_0x566c('0x3d')])return!0x1;const _0x429504=_0x3ee1ea['getSelectionAffectedTableCells'](this[_0x566c('0x3')][_0x566c('0x38')][_0x566c('0x34')][_0x566c('0x47')]);for(const _0x5822a0 of _0x429504)for(const _0x41d501 of _0x429504)if(_0x5822a0!=_0x41d501&&!this[_0x566c('0x26')](_0x5822a0,_0x41d501))return!0x1;return!0x0;}['_areMergableCells'](_0x10f961,_0x1de38e){const _0x4718cb=this[_0x566c('0x3')][_0x566c('0x2b')][_0x566c('0x36')]('TrackChangesEditing'),_0x2aea4c=this['editor']['model'][_0x566c('0x29')](_0x10f961),_0x3d3266=this[_0x566c('0x3')]['model'][_0x566c('0x29')](_0x1de38e),_0x1533a1=new Set(),_0x2a7736=new Set();for(const _0x27b1ee of _0x4718cb['getSuggestions']())if(('insertion'==_0x27b1ee[_0x566c('0x27')]||_0x566c('0x4f')==_0x27b1ee[_0x566c('0x27')]||_0x566c('0x6')==_0x27b1ee[_0x566c('0x4a')])&&_0x27b1ee[_0x566c('0x4e')])for(const _0x446e10 of _0x27b1ee[_0x566c('0x21')]())_0x446e10[_0x566c('0x13')](_0x2aea4c,!0x0)&&_0x1533a1[_0x566c('0x4')](_0x27b1ee[_0x566c('0x27')]+':'+_0x27b1ee[_0x566c('0x44')]['id']),_0x446e10[_0x566c('0x13')](_0x3d3266,!0x0)&&_0x2a7736[_0x566c('0x4')](_0x27b1ee[_0x566c('0x27')]+':'+_0x27b1ee[_0x566c('0x44')]['id']);if(_0x1533a1[_0x566c('0x2f')]!=_0x2a7736['size'])return!0x1;for(const _0x5dc4fb of _0x1533a1)if(!_0x2a7736[_0x566c('0x3f')](_0x5dc4fb))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfdf3=['registerElementLabel','plugins','commands','TrackChangesEditing','enableCommand','_descriptionFactory','get','ELEMENT_TABLE_OF_CONTENTS','locale','editor','afterInit'];(function(_0xedbc37,_0xfdf31b){const _0x51729a=function(_0x216244){while(--_0x216244){_0xedbc37['push'](_0xedbc37['shift']());}};_0x51729a(++_0xfdf31b);}(_0xfdf3,0xa2));const _0x5172=function(_0xedbc37,_0xfdf31b){_0xedbc37=_0xedbc37-0x0;let _0x51729a=_0xfdf3[_0xedbc37];return _0x51729a;};import{Plugin as _0x3b60df}from'ckeditor5/src/core';import{getTranslation as _0x357eca}from'../utils/common-translations';export default class Ct extends _0x3b60df{[_0x5172('0x2')](){const _0x4cb39c=this[_0x5172('0x1')];if(!_0x4cb39c[_0x5172('0x5')][_0x5172('0x9')]('insertTableOfContents'))return;_0x4cb39c['plugins'][_0x5172('0x9')](_0x5172('0x6'))[_0x5172('0x7')]('insertTableOfContents');const _0x17b2be=_0x4cb39c[_0x5172('0x4')][_0x5172('0x9')](_0x5172('0x6')),_0x235a28=_0x4cb39c[_0x5172('0x0')];_0x17b2be[_0x5172('0x8')][_0x5172('0x3')]('tableOfContents',_0x544e0b=>_0x357eca(_0x235a28,_0x5172('0xa'),_0x544e0b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29aa=['tableBorderColor','tableCellHeight','discard','_descriptionFactory','tableHeight','*Format:*\x20change\x20table\x20properties','tableProperties','get','getSuggestionCallback','tableCellVerticalAlignment','TableCellPropertiesEditing','pluginName','removeAttribute','subType','accept','tableCellBorderWidth','TableUtils','tableCellBackgroundColor','tableCellPadding','tableCellProperties','selection','formatBlock','afterInit','model','enableCommand','enqueueChange','format','_handlePropertyChange','plugins','handleDiscardAction','handleSuggestionDescription','tableAlignment','commandParams','has','tableBorderWidth','_getSuggestion','table','nodeAfter','markBlockFormat','document','locale','TrackChangesTableProperties','registerCustomCallback','getContainedElement','TrackChangesEditing','registerDescriptionCallback','editor','start','tableCellBorderStyle','tableCellHorizontalAlignment','getSuggestions','_suggestionFactory','tableWidth','batch','join'];(function(_0x35507a,_0x29aab1){const _0x4555ea=function(_0x56723c){while(--_0x56723c){_0x35507a['push'](_0x35507a['shift']());}};_0x4555ea(++_0x29aab1);}(_0x29aa,0x144));const _0x4555=function(_0x35507a,_0x29aab1){_0x35507a=_0x35507a-0x0;let _0x4555ea=_0x29aa[_0x35507a];return _0x4555ea;};import{Plugin as _0x3b2c3c}from'ckeditor5/src/core';import{getTranslation as _0x5dbe65}from'../utils/common-translations';export default class Mt extends _0x3b2c3c{constructor(_0x444919){super(_0x444919),this[_0x4555('0xc')]=[_0x4555('0x6'),'tableBorderStyle',_0x4555('0x28'),_0x4555('0x25'),_0x4555('0x3'),_0x4555('0xa'),'tableBackgroundColor'],this[_0x4555('0x19')]=['tableCellBorderColor',_0x4555('0x36'),_0x4555('0x15'),_0x4555('0x18'),'tableCellWidth',_0x4555('0x7'),_0x4555('0x17'),_0x4555('0x0'),_0x4555('0xf')];}static get[_0x4555('0x11')](){return _0x4555('0x2f');}[_0x4555('0x1c')](){const _0x19eeb2=this[_0x4555('0x34')][_0x4555('0x22')][_0x4555('0xd')](_0x4555('0x32'));if(this[_0x4555('0x34')][_0x4555('0x22')][_0x4555('0x27')]('TablePropertiesEditing')){for(const _0x3b3ab5 of this[_0x4555('0xc')])_0x19eeb2[_0x4555('0x1e')](_0x3b3ab5,(_0x97075c,_0x49d77d)=>{const _0x24dd67=this[_0x4555('0x34')][_0x4555('0x1d')]['document']['selection']['getFirstPosition']()['findAncestor'](_0x4555('0x2a'));this[_0x4555('0x21')](_0x3b3ab5,[_0x24dd67],this[_0x4555('0xc')],_0x4555('0xc'),_0x97075c,_0x49d77d);});_0x19eeb2[_0x4555('0x2')][_0x4555('0x30')]('formatBlock',_0x4555('0xc'),_0x4555('0x14'),_0x19eeb2[_0x4555('0x2')][_0x4555('0xe')]('formatBlock',null,_0x4555('0x8'))),_0x19eeb2[_0x4555('0x2')]['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x46f936,_0x1cbcd7)=>this[_0x4555('0x23')](this['tableProperties'],_0x46f936,_0x1cbcd7)),_0x19eeb2[_0x4555('0x2')][_0x4555('0x30')]('formatBlock',_0x4555('0xc'),'join',()=>!0x1);}if(this['editor'][_0x4555('0x22')][_0x4555('0x27')](_0x4555('0x10'))){for(const _0x2d16db of this[_0x4555('0x19')])_0x19eeb2['enableCommand'](_0x2d16db,(_0x1df5f2,_0x430377)=>{const _0x2042fa=this[_0x4555('0x34')][_0x4555('0x22')][_0x4555('0xd')](_0x4555('0x16'))['getSelectionAffectedTableCells'](this['editor'][_0x4555('0x1d')][_0x4555('0x2d')][_0x4555('0x1a')]);this[_0x4555('0x21')](_0x2d16db,_0x2042fa,this[_0x4555('0x19')],_0x4555('0x19'),_0x1df5f2,_0x430377);});_0x19eeb2[_0x4555('0x2')][_0x4555('0x30')]('formatBlock',_0x4555('0x19'),_0x4555('0x14'),_0x19eeb2[_0x4555('0x2')][_0x4555('0xe')](_0x4555('0x1b'),null,_0x4555('0x8'))),_0x19eeb2[_0x4555('0x2')][_0x4555('0x30')](_0x4555('0x1b'),_0x4555('0x19'),_0x4555('0x8'),(_0x1eea81,_0x23f7df)=>this[_0x4555('0x23')](this['tableCellProperties'],_0x1eea81,_0x23f7df)),_0x19eeb2[_0x4555('0x2')][_0x4555('0x30')](_0x4555('0x1b'),'tableCellProperties',_0x4555('0x5'),()=>!0x1);}_0x19eeb2[_0x4555('0x9')][_0x4555('0x33')](_0x1c8d9e=>this['handleSuggestionDescription'](_0x1c8d9e));}[_0x4555('0x21')](_0x2930cc,_0x4f93e3,_0x45818a,_0x4a5714,_0x4ac0cb,_0x3374fd){const _0x1a3963=this['editor']['plugins']['get'](_0x4555('0x32'));this['editor'][_0x4555('0x1d')][_0x4555('0x1f')](_0x3374fd[_0x4555('0x4')],()=>{for(const _0x11dc0c of _0x4f93e3){if(this[_0x4555('0x29')](_0x11dc0c,_0x4a5714))_0x4ac0cb(_0x3374fd);else{const _0x351fc0={};for(const _0x140380 of _0x45818a){const _0x407843=_0x11dc0c['getAttribute'](_0x140380);void 0x0!==_0x407843&&(_0x351fc0[_0x140380]=_0x407843);}_0x4ac0cb(_0x3374fd),_0x1a3963[_0x4555('0x2c')](_0x11dc0c,{'commandParams':[_0x351fc0]},[],_0x4a5714);}}});}[_0x4555('0x23')](_0x20eaab,_0x330b17,_0x1f0242){const _0xa78abf=_0x330b17[0x0][_0x4555('0x35')][_0x4555('0x2b')],_0xf14983=_0x1f0242[_0x4555('0x26')][0x0];this['editor'][_0x4555('0x1d')]['change'](_0xf5d9b2=>{for(const _0x1df45c of _0x20eaab)void 0x0!==_0xf14983[_0x1df45c]?_0xf5d9b2['setAttribute'](_0x1df45c,_0xf14983[_0x1df45c],_0xa78abf):_0xf5d9b2[_0x4555('0x12')](_0x1df45c,_0xa78abf);});}[_0x4555('0x24')](_0x4bc4bc){if(_0x4bc4bc['data'])switch(_0x4bc4bc['subType']){case _0x4555('0xc'):return{'type':_0x4555('0x20'),'content':_0x5dbe65(this[_0x4555('0x34')][_0x4555('0x2e')],_0x4555('0xb'))};case'tableCellProperties':return{'type':_0x4555('0x20'),'content':_0x5dbe65(this[_0x4555('0x34')][_0x4555('0x2e')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x4555('0x29')](_0x249385,_0x4e2890){const _0x3e09d5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1c59dc of _0x3e09d5[_0x4555('0x1')]({'skipNotAttached':!0x0})){const _0xd93cc=_0x1c59dc[_0x4555('0x31')]();if(_0x1c59dc[_0x4555('0x13')]===_0x4e2890&&_0xd93cc===_0x249385)return _0x1c59dc;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x165d=['plugins','insertTemplate','editor','Template','enableCommand','afterInit','TrackChangesEditing'];(function(_0x33f258,_0x165d19){const _0x2ba609=function(_0x1c0fc4){while(--_0x1c0fc4){_0x33f258['push'](_0x33f258['shift']());}};_0x2ba609(++_0x165d19);}(_0x165d,0x13e));const _0x2ba6=function(_0x33f258,_0x165d19){_0x33f258=_0x33f258-0x0;let _0x2ba609=_0x165d[_0x33f258];return _0x2ba609;};import{Plugin as _0x4dfaa2}from'ckeditor5/src/core';export default class vt extends _0x4dfaa2{[_0x2ba6('0x2')](){const _0x50bf60=this[_0x2ba6('0x6')];_0x50bf60[_0x2ba6('0x4')]['has'](_0x2ba6('0x0'))&&_0x50bf60[_0x2ba6('0x4')]['get'](_0x2ba6('0x3'))[_0x2ba6('0x1')](_0x2ba6('0x5'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x850f=['isTouching','model','has','ELEMENT_TITLE','removeMarker','registerElementLabel','element','createRange','isEqual','locale','get','getNearestSelectionRange','schema','suggestion','end','Title','updateMarker','isCollapsed','editor','title-content','start','plugins','TrackChangesEditing','registerPostFixer','document','getChangedMarkers','from','_descriptionFactory','newRange','afterInit','differ'];(function(_0x2655b7,_0x850fbf){const _0x3ae93f=function(_0x3f7889){while(--_0x3f7889){_0x2655b7['push'](_0x2655b7['shift']());}};_0x3ae93f(++_0x850fbf);}(_0x850f,0x105));const _0x3ae9=function(_0x2655b7,_0x850fbf){_0x2655b7=_0x2655b7-0x0;let _0x3ae93f=_0x850f[_0x2655b7];return _0x3ae93f;};import{Plugin as _0x35ec51}from'ckeditor5/src/core';import{getTranslation as _0x1dce0a}from'../utils/common-translations';export default class _t extends _0x35ec51{[_0x3ae9('0x10')](){const _0x3ea472=this[_0x3ae9('0x5')];if(!_0x3ea472['plugins'][_0x3ae9('0x14')](_0x3ae9('0x2')))return;const _0xa137e4=_0x3ea472[_0x3ae9('0x8')][_0x3ae9('0x1c')](_0x3ae9('0x9'));_0xa137e4[_0x3ae9('0xe')][_0x3ae9('0x17')]('title-content',()=>_0x1dce0a(_0x3ea472[_0x3ae9('0x1b')],_0x3ae9('0x15'))),_0x3ea472[_0x3ae9('0x13')]['document'][_0x3ae9('0xa')](_0x2a6136=>{let _0x568cba=!0x1;const _0x1b7a61=Array[_0x3ae9('0xd')](_0x3ea472[_0x3ae9('0x13')][_0x3ae9('0xb')][_0x3ae9('0x11')][_0x3ae9('0xc')]());for(const {name:_0x1481fa,data:_0x3b0e7c}of _0x1b7a61){const {group:_0x3518dc}=_0xa137e4['_splitMarkerName'](_0x1481fa);if(_0x3ae9('0x0')!==_0x3518dc||!_0x3b0e7c[_0x3ae9('0xf')])continue;const _0x552b86=_0x3b0e7c[_0x3ae9('0xf')],_0x5679f6=_0x552b86[_0x3ae9('0x1')]['nodeBefore'];if(!_0x5679f6||!_0x5679f6['is'](_0x3ae9('0x18'),_0x3ae9('0x6')))continue;if(!_0x552b86[_0x3ae9('0x7')][_0x3ae9('0x12')](_0x552b86['end']))continue;const _0x56fc70=_0x3ea472[_0x3ae9('0x13')][_0x3ae9('0x1e')][_0x3ae9('0x1d')](_0x552b86[_0x3ae9('0x1')],'forward');if(_0x56fc70&&_0x56fc70[_0x3ae9('0x4')]){const _0x46f8d6=_0x2a6136[_0x3ae9('0x19')](_0x552b86['start'],_0x56fc70[_0x3ae9('0x7')]);_0x46f8d6[_0x3ae9('0x1a')](_0x552b86)||(_0x2a6136[_0x3ae9('0x3')](_0x1481fa,{'range':_0x46f8d6}),_0x568cba=!0x0);}_0x568cba||(_0x2a6136[_0x3ae9('0x16')](_0x1481fa),_0x568cba=!0x0);}return _0x568cba;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd722=['UndoEditing','TrackChangesEditing','plugins','redo','afterInit','undo','get','enableCommand','has'];(function(_0x42b12b,_0xd72295){const _0x148928=function(_0xe3b641){while(--_0xe3b641){_0x42b12b['push'](_0x42b12b['shift']());}};_0x148928(++_0xd72295);}(_0xd722,0x17c));const _0x1489=function(_0x42b12b,_0xd72295){_0x42b12b=_0x42b12b-0x0;let _0x148928=_0xd722[_0x42b12b];return _0x148928;};import{Plugin as _0x1193d6}from'ckeditor5/src/core';export default class Dt extends _0x1193d6{[_0x1489('0x2')](){const _0x25d807=this['editor'],_0x8f16bf=_0x25d807[_0x1489('0x0')][_0x1489('0x4')](_0x1489('0x8'));_0x25d807[_0x1489('0x0')][_0x1489('0x6')](_0x1489('0x7'))&&(_0x8f16bf[_0x1489('0x5')](_0x1489('0x3')),_0x8f16bf[_0x1489('0x5')](_0x1489('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3447=['markerName','getItems','isAtEnd','ck-suggestion-marker-','nextSibling','toViewElement','isLimit','writer','previousPosition','hasAttribute','includes','addHighlight','isContent','addClass','name','item','getCustomProperty','mapper','markerRange','push','elementEnd','listItem','getAttribute','get','span','TrackChangesEditing','createUIElement','plugins','start','model','test','schema','consumable','toViewPosition','element','ck-suggestion-marker--active','createRangeOn','getWalker'];(function(_0x3aac09,_0x344783){const _0x411c77=function(_0x198acb){while(--_0x198acb){_0x3aac09['push'](_0x3aac09['shift']());}};_0x411c77(++_0x344783);}(_0x3447,0x73));const _0x411c=function(_0x3aac09,_0x344783){_0x3aac09=_0x3aac09-0x0;let _0x411c77=_0x3447[_0x3aac09];return _0x411c77;};export function getRangesWithAttribute(_0x410304,_0x577808,_0x2ad600){const _0x4a9da2=[];for(const _0x5a95d8 of _0x577808[_0x411c('0x0')]())_0x5a95d8[_0x411c('0x8')](_0x410304)&&_0x4a9da2[_0x411c('0x12')](_0x2ad600[_0x411c('0x23')](_0x5a95d8));return _0x4a9da2;}export function getElementsAffectedByListItemRename(_0xe289d6){const _0xd72603=[];if(_0xe289d6['is'](_0x411c('0x21'),'listItem')){let _0x28eef6=_0xe289d6[_0x411c('0x3')];for(;_0x28eef6&&_0x28eef6['is']('element',_0x411c('0x14'))&&_0x28eef6[_0x411c('0x15')]('listIndent')>0x0;)_0xd72603[_0x411c('0x12')](_0x28eef6),_0x28eef6=_0x28eef6[_0x411c('0x3')];}return _0xd72603;}export function downcastSplitMergeMarker(_0x56fe95,_0x4c675c,{showActiveMarker:_0x3ebd1e=!0x0}={}){const _0x498b78=_0x56fe95[_0x411c('0x1a')][_0x411c('0x16')](_0x411c('0x18'));return(_0x320e0a,_0x35e5f4,_0x2260f7)=>{if(!_0x2260f7[_0x411c('0x1f')][_0x411c('0x1d')](_0x35e5f4[_0x411c('0x11')],_0x320e0a[_0x411c('0xd')]))return;const _0x194565=_0x35e5f4['markerRange'][_0x411c('0x24')](),_0x245a25=_0x35e5f4['markerRange'][_0x411c('0x1b')],_0x4493d7=_0x56fe95[_0x411c('0x1c')][_0x411c('0x1e')];let _0x23faf2=null,_0x42bdc4=null,_0x4d144f=!0x1,_0xa52ac9=!0x1;for(const _0x2beede of _0x194565){const _0x4f7acb=_0x2beede[_0x411c('0xe')];_0x4d144f=_0x4d144f||_0x4493d7[_0x411c('0xb')](_0x4f7acb);const _0x3648a5=_0x2260f7['mapper'][_0x411c('0x4')](_0x4f7acb);if(_0x3648a5&&_0x3648a5[_0x411c('0xf')](_0x411c('0xa')))return;_0x411c('0x13')==_0x2beede['type']&&(_0x4493d7['isBlock'](_0x4f7acb)&&!_0x4493d7[_0x411c('0x5')](_0x4f7acb)&&(_0x4f7acb[_0x411c('0x3')]||_0x245a25[_0x411c('0x1')]?_0x23faf2&&_0x23faf2['parent']==_0x4f7acb||(_0x23faf2=_0x4f7acb,_0x181115(_0x2beede[_0x411c('0x7')]),_0xa52ac9=!0x0):_0x42bdc4=_0x42bdc4||_0x2beede['previousPosition']));}function _0x181115(_0x3e917f){const _0x588a20=_0x2260f7['writer'][_0x411c('0x19')](_0x411c('0x17'),{'class':_0x411c('0x2')+_0x4c675c}),_0x1d68a7=_0x2260f7[_0x411c('0x10')][_0x411c('0x20')](_0x3e917f);_0x3ebd1e&&_0x498b78['activeMarkers'][_0x411c('0x9')](_0x35e5f4[_0x411c('0x25')])&&_0x2260f7[_0x411c('0x6')][_0x411c('0xc')](_0x411c('0x22'),_0x588a20),_0x2260f7[_0x411c('0x6')]['insert'](_0x1d68a7,_0x588a20),_0x2260f7[_0x411c('0x10')]['bindElementToMarker'](_0x588a20,_0x35e5f4[_0x411c('0x25')]);}_0x4d144f||_0xa52ac9||!_0x42bdc4||_0x181115(_0x42bdc4);};}
|