@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240204.0 → 0.0.0-nightly-20240206.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/casechange.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/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/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.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 _0x1df8=['TableClipboard','for','getSuggestionCallback','isEmpty','tablePasteRow','get','getChangedMarkers','_createdBatches','differ','suggestion','table','endColumn','TrackChangesEditing','getShiftedBy','startsWith','schema','createPositionBefore','markMultiRangeBlockFormat','fill','containsRange','isInContent','registerDescriptionCallback','forceDefaultExecution','join','has','tableCellPadding','deletion','getRange','createTableWalker','findAncestor','columnInsertionIndexes','attributes','tableCellHorizontalAlignment','insertion','afterInit','editing','low','trackChanges','options','columnInsertionRanges','type','length','rowInsertionRanges','removeMarkers','ck-suggestion-marker','selection','getContainedElement','getChanges','end','createRangeIn','next','content','_splitMarkerName','getItems','author','getMarkers','registerCustomCallback','column','suggestion-td','tablePaste','insertContent','getRanges','return','getChild','*Replace\x20table\x20cells*','tablePasteCell','tableCellBackgroundColor','filter','subType','first','map','keys','getAllAdjacentSuggestions','_descriptionFactory','start','insertionRanges','showSuggestionHighlights','setAttributes','accept','_replaceTableSlotCell','oldRange','register','every','reduce','createRangeOn','insertRows','cell','ck-suggestion-marker--active','_isForcedDefaultExecutionBlock','markMultiRangeInsertion','element','fromEntries','includes','remove','batch','getChildren','setAttribute','getColumns','view','hasSuggestion','add','tablePasteChainId','name','push','getTableIfOnlyTableInContent','position','Users','root','nextSibling','rowInsertionIndexes','documentSelection','getColumnIndexes','change','tableCellBorderColor','from','suggestionLoaded','commands','set','markerName','entries','tableCellSuggestion','stop','getRowIndexes','activeMarkers','previous','createElement','paragraph','isEqual','redo','previousSibling','formatBlock','_suggestionFactory','markerAttributes','rows','requires','unwrap','tablePasteColumn','markerToHighlight','move','clipboardOutput','discard','value','$graveyard','elementToElement','removeMarker','document','suggestion:formatBlock:tablePasteCell','cells','model','conversion','tableCell','insert','nodeAfter','markers','high','tableCellBorderWidth','removeRows','getSuggestions','last','registerPostFixer','editor','newRange','plugins'];(function(_0x16b6b0,_0x1df835){const _0x4071fc=function(_0x11547e){while(--_0x11547e){_0x16b6b0['push'](_0x16b6b0['shift']());}};_0x4071fc(++_0x1df835);}(_0x1df8,0xc3));const _0x4071=function(_0x16b6b0,_0x1df835){_0x16b6b0=_0x16b6b0-0x0;let _0x4071fc=_0x1df8[_0x16b6b0];return _0x4071fc;};import{getTranslation as _0x3b8243}from'../utils/common-translations.js';import{Plugin as _0x53607b}from'ckeditor5/src/core.js';import{uid as _0x25cb51,priorities as _0x4fc7b6}from'ckeditor5/src/utils.js';import _0x25336b from'./table.js';const fe=[_0x4071('0x7b'),_0x4071('0x51'),'tableCellBorderStyle',_0x4071('0x0'),'tableCellVerticalAlignment',_0x4071('0x22'),_0x4071('0x9c')],be=Object['fromEntries'](fe[_0x4071('0x26')](_0x16aaf2=>[_0x16aaf2,null]));export default class At extends _0x53607b{static get[_0x4071('0x66')](){return[_0x25336b];}[_0x4071('0x2')](){const _0x181912=this[_0x4071('0x80')];if(!_0x181912['plugins']['has'](_0x4071('0x83')))return;const _0x41e509=_0x181912['plugins']['get'](_0x4071('0x8f')),_0x22bb4a=_0x181912['plugins'][_0x4071('0x88')]('TableUtils'),_0x34fdd9=_0x181912[_0x4071('0x82')][_0x4071('0x88')](_0x25336b),_0x2c677a=_0x181912[_0x4071('0x82')][_0x4071('0x88')](_0x4071('0x83'));_0x34fdd9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x181912[_0x4071('0x74')][_0x4071('0x92')][_0x4071('0x31')]('tableCellSuggestion',{'allowIn':_0x4071('0x76'),'allowContentOf':_0x4071('0x76'),'isLimit':!0x0}),_0x181912[_0x4071('0x75')][_0x4071('0x6f')]({'model':_0x4071('0x58'),'view':'suggestion-td'});let _0x44fb59=null;_0x181912['model']['on']('insertContent',(_0x3268aa,_0x14ee61)=>{const [_0x4d69a9,_0x14bd0f]=_0x14ee61,_0x4b78d0=_0x14ee61[_0x14ee61[_0x4071('0x9')]-0x1];_0x4b78d0&&_0x4b78d0[_0x4071('0x99')]||_0x41e509[_0x4071('0x38')]||this[_0x4071('0x80')][_0x4071('0x54')][_0x4071('0x88')](_0x4071('0x5'))[_0x4071('0x6d')]&&function(_0x53f198,_0x41654e,_0x3443bf,_0x463b54,_0x4c4cce){if(_0x41654e&&!_0x41654e['is'](_0x4071('0x4e')))return!0x1;const _0x24fd95=_0x4c4cce[_0x4071('0x48')](_0x53f198,_0x3443bf);if(!_0x24fd95||!de(_0x24fd95,void 0x0,_0x463b54))return!0x1;const _0x169e5b=_0x463b54['getSelectionAffectedTableCells'](_0x3443bf[_0x4071('0x71')][_0x4071('0xd')]);if(!_0x169e5b['length'])return!0x1;const _0x46248c=_0x169e5b[0x0][_0x4071('0xa0')](_0x4071('0x8d')),_0x47f2dc=_0x463b54[_0x4071('0x5a')](_0x169e5b),_0x425a27=_0x463b54[_0x4071('0x4f')](_0x169e5b),_0x5ecdcf={'startRow':_0x47f2dc[_0x4071('0x25')],'endRow':_0x47f2dc[_0x4071('0x7e')],'startColumn':_0x425a27[_0x4071('0x25')],'endColumn':_0x425a27[_0x4071('0x7e')]};return 0x1==_0x169e5b['length']&&(_0x5ecdcf['endRow']+=_0x463b54['getRows'](_0x24fd95)-0x1,_0x5ecdcf[_0x4071('0x8e')]+=_0x463b54[_0x4071('0x41')](_0x24fd95)-0x1),de(_0x46248c,_0x5ecdcf,_0x463b54);}(_0x4d69a9,_0x14bd0f,_0x181912[_0x4071('0x74')],_0x22bb4a,_0x2c677a)&&(_0x3268aa['stop'](),_0x44fb59={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x181912[_0x4071('0x74')]['change'](()=>{_0x181912[_0x4071('0x74')][_0x4071('0x1c')](_0x14ee61[0x0],_0x14ee61[0x1],_0x14ee61[0x2],{'forceDefaultExecution':!0x0});const _0x160e5e=_0x25cb51(),{rowInsertionRanges:_0x399e03,columnInsertionRanges:_0x58ae05,insertionRanges:_0x40c8af,deletionRanges:_0x3221c6,cells:_0x5eb4ae}=_0x44fb59;_0x399e03[_0x4071('0x9')]&&_0x41e509[_0x4071('0x39')](_0x399e03,_0x4071('0x87'),{'tablePasteChainId':_0x160e5e}),_0x58ae05[_0x4071('0x9')]&&_0x41e509[_0x4071('0x39')](_0x58ae05,_0x4071('0x68'),{'tablePasteChainId':_0x160e5e}),_0x40c8af[_0x4071('0x9')]&&_0x41e509[_0x4071('0x39')](_0x40c8af,'tablePaste',{'tablePasteChainId':_0x160e5e,'skipNestingCheck':!0x0}),_0x3221c6[_0x4071('0x9')]&&_0x41e509['markMultiRangeDeletion'](_0x3221c6,_0x4071('0x1b'),{'tablePasteChainId':_0x160e5e,'skipNestingCheck':!0x0});const _0x3f581e=_0x41e509[_0x4071('0x94')](_0x5eb4ae[_0x4071('0x26')](({element:_0x4de15c})=>_0x4de15c),{'formatGroupId':_0x25cb51()},[],_0x4071('0x21'),{'tablePasteChainId':_0x160e5e});if(_0x3f581e){const _0x4b14ca=_0x3f581e['getMarkers'](),_0x3a3481=[];for(const {element:_0x35ca77,attributes:_0x246d1e}of _0x5eb4ae){if(!_0x246d1e)continue;const _0x5861b6=_0x181912[_0x4071('0x74')][_0x4071('0x34')](_0x35ca77),_0x4d744b=_0x4b14ca['find'](_0x55f3c9=>_0x55f3c9['getRange']()['isEqual'](_0x5861b6));_0x4d744b&&_0x3a3481['push']([_0x4d744b[_0x4071('0x46')],_0x246d1e]);}_0x3a3481[_0x4071('0x9')]&&_0x3f581e[_0x4071('0x40')]('markerAttributes',Object[_0x4071('0x3b')](_0x3a3481));}_0x44fb59=null;}));},{'priority':_0x4fc7b6['high']+0xa}),_0x181912[_0x4071('0x82')][_0x4071('0x88')](_0x4071('0x83'))['on'](_0x4071('0x2f'),(_0x1c9598,_0x275e88)=>{const [_0x9aab14,_0x394d35,,_0x320063]=_0x275e88;if(!_0x44fb59)return;_0x1c9598[_0x4071('0x59')]();const _0x1cdba1=_0x9aab14[_0x4071('0x36')],_0x5e596b=_0x394d35,_0x972169=ge(_0x1cdba1),_0x2ae8a6=ge(_0x5e596b);_0x1c9598[_0x4071('0x1e')]=_0x1cdba1;let _0x56f7e8=null,_0x4aae70=null;if(_0x2ae8a6||_0x972169){if(_0x972169&&!_0x2ae8a6){_0x320063[_0x4071('0x3d')](_0x1cdba1[_0x4071('0x1f')](0x0));for(const _0x4bf1e6 of Array[_0x4071('0x52')](_0x5e596b['getChildren']()))_0x320063[_0x4071('0x77')](_0x4bf1e6,_0x1cdba1,_0x4071('0x10'));const _0x5c465f=_0x44fb59[_0x4071('0x4d')][_0x4071('0x3c')](_0x9aab14['row']),_0x347fc2=_0x44fb59[_0x4071('0xa1')]['includes'](_0x9aab14[_0x4071('0x19')]);_0x5c465f||_0x347fc2||(_0x56f7e8=_0x320063[_0x4071('0x11')](_0x1cdba1));}else _0x2ae8a6&&!_0x972169&&(_0x4aae70=_0x320063[_0x4071('0x11')](_0x1cdba1));}else{const _0x54bc3c=_0x320063['createElement'](_0x4071('0x58')),_0x398235=_0x320063[_0x4071('0x5d')](_0x4071('0x58'));_0x320063['wrap'](_0x320063[_0x4071('0x11')](_0x1cdba1),_0x398235),_0x320063[_0x4071('0x77')](_0x54bc3c,_0x1cdba1,0x0);for(const _0x3f4888 of Array[_0x4071('0x52')](_0x5e596b[_0x4071('0x3f')]()))_0x320063[_0x4071('0x77')](_0x3f4888,_0x54bc3c,_0x4071('0x10'));_0x56f7e8=_0x320063['createRangeOn'](_0x54bc3c),_0x4aae70=_0x320063[_0x4071('0x34')](_0x398235);}const _0x265809=Array[_0x4071('0x52')](_0x5e596b['getAttributes']())[_0x4071('0x23')](([_0x1289de])=>fe['includes'](_0x1289de));_0x44fb59[_0x4071('0x73')][_0x4071('0x47')]({'element':_0x1cdba1,'attributes':_0x265809[_0x4071('0x9')]?Object[_0x4071('0x3b')](_0x265809):null}),_0x56f7e8&&_0x44fb59[_0x4071('0x2b')][_0x4071('0x47')](_0x56f7e8),_0x4aae70&&_0x44fb59['deletionRanges'][_0x4071('0x47')](_0x4aae70);},{'priority':_0x4071('0x7a')}),_0x22bb4a['on']('insertColumns',(_0x31cba5,_0x4cb295)=>{const [_0x1aa345,_0x552805={}]=_0x4cb295;if(!_0x44fb59)return;const _0x4c9cce=_0x552805['at']||0x0,_0xbcbb45=_0x552805['columns']||0x1;_0x44fb59[_0x4071('0xa1')]=new Array(_0xbcbb45)['fill'](_0x4c9cce)[_0x4071('0x26')]((_0x43a1bb,_0x5c66c0)=>_0x43a1bb+_0x5c66c0);for(const {cell:_0x387431}of _0x22bb4a[_0x4071('0x9f')](_0x1aa345,{'startColumn':_0x4c9cce,'endColumn':_0x4c9cce+_0xbcbb45-0x1}))_0x44fb59[_0x4071('0x7')][_0x4071('0x47')](_0x181912[_0x4071('0x74')][_0x4071('0x34')](_0x387431));},{'priority':_0x4071('0x4')}),_0x22bb4a['on'](_0x4071('0x35'),(_0x5cbf7a,_0x35c18b)=>{const [_0x483f3c,_0x424b40={}]=_0x35c18b;if(!_0x44fb59)return;const _0x42a64f=_0x424b40['at']||0x0,_0x5214dc=_0x424b40[_0x4071('0x65')]||0x1;_0x44fb59[_0x4071('0x4d')]=new Array(_0x5214dc)[_0x4071('0x95')](_0x42a64f)[_0x4071('0x26')]((_0x17ea29,_0x301279)=>_0x17ea29+_0x301279);for(const {cell:_0x385aa8}of _0x22bb4a[_0x4071('0x9f')](_0x483f3c,{'startRow':_0x42a64f,'endRow':_0x42a64f+_0x5214dc-0x1}))_0x44fb59[_0x4071('0xa')][_0x4071('0x47')](_0x181912[_0x4071('0x74')]['createRangeOn'](_0x385aa8));},{'priority':_0x4071('0x4')}),_0x41e509[_0x4071('0x29')][_0x4071('0x98')](_0x1ac4fd=>{if(_0x1ac4fd[_0x4071('0x24')]&&_0x1ac4fd[_0x4071('0x24')][_0x4071('0x91')](_0x4071('0x1b')))return _0x1ac4fd[_0x4071('0x5c')]?{}:{'type':_0x4071('0x1'),'content':_0x3b8243(_0x181912['locale'],_0x4071('0x20'))};});const _0x4151eb=()=>!0x1;for(const _0x50fa8a of[_0x4071('0x1b'),_0x4071('0x68'),_0x4071('0x87'),_0x4071('0x21')])_0x41e509[_0x4071('0x63')][_0x4071('0x18')](_0x4071('0x1'),_0x50fa8a,_0x4071('0x9a'),_0x4151eb),_0x41e509[_0x4071('0x63')][_0x4071('0x18')](_0x4071('0x9d'),_0x50fa8a,_0x4071('0x9a'),_0x4151eb),_0x41e509[_0x4071('0x63')][_0x4071('0x18')](_0x4071('0x62'),_0x50fa8a,_0x4071('0x9a'),_0x4151eb);_0x41e509['_suggestionFactory'][_0x4071('0x18')](_0x4071('0x62'),_0x4071('0x21'),_0x4071('0x6c'),_0x4151eb),_0x41e509['_suggestionFactory'][_0x4071('0x18')](_0x4071('0x62'),_0x4071('0x21'),_0x4071('0x2e'),(_0x5595ca,_0x1dc67d,_0x1ed338)=>{const _0x5d6e19=_0x5595ca[_0x4071('0x26')](_0x5d7b44=>_0x5d7b44['getContainedElement']())[_0x4071('0x23')](_0x2d853e=>_0x2d853e),_0x15e169=new Map(_0x5d6e19[_0x4071('0x26')](_0x554c5a=>[_0x554c5a,null]));if(_0x44fb59)for(const {element:_0x2ea3b5,attributes:_0x37435d}of _0x44fb59[_0x4071('0x73')])_0x37435d&&_0x15e169[_0x4071('0x55')](_0x2ea3b5,_0x37435d);else{if(_0x1ed338&&_0x1ed338[_0x4071('0x64')])for(const [_0x4de8ac,_0x2d2be4]of Object[_0x4071('0x57')](_0x1ed338[_0x4071('0x64')])){const _0x43202f=_0x181912[_0x4071('0x74')][_0x4071('0x79')][_0x4071('0x88')](_0x4de8ac),_0x2c614f=_0x43202f?_0x43202f['getRange']()[_0x4071('0xe')]():null;_0x2c614f&&_0x15e169[_0x4071('0x55')](_0x2c614f,_0x2d2be4);}}_0x181912['model'][_0x4071('0x50')](_0x3c98eb=>{for(const [_0x3f75da,_0x589efb]of _0x15e169)_0x3c98eb[_0x4071('0x2d')]({...be,..._0x589efb},_0x3f75da);});});const _0x2d3760=(_0xb3dde3,_0x228705)=>{_0x41e509[_0x4071('0x63')][_0x4071('0x18')](_0xb3dde3,_0x4071('0x1b'),_0x228705,(_0x260bce,_0x48ea45,_0x32b809)=>{_0x181912[_0x4071('0x74')][_0x4071('0x50')](_0x5dd653=>{const _0x59d65c=[];for(const _0x4605d8 of _0x260bce){const _0x1d015a=_0x4605d8[_0x4071('0x2a')][_0x4071('0x78')];_0x1d015a['is']('element',_0x4071('0x58'))&&_0x59d65c[_0x4071('0x47')](_0x1d015a);}_0x41e509[_0x4071('0x63')][_0x4071('0x85')](_0xb3dde3,null,_0x228705)(_0x260bce,_0x48ea45,_0x32b809);for(const _0x26d932 of _0x59d65c)_0x4071('0x6e')!=_0x26d932[_0x4071('0x4b')]['rootName']&&_0x5dd653[_0x4071('0x67')](_0x26d932);});});};_0x2d3760(_0x4071('0x1'),'accept'),_0x2d3760('insertion',_0x4071('0x6c')),_0x2d3760(_0x4071('0x9d'),_0x4071('0x2e')),_0x2d3760(_0x4071('0x9d'),_0x4071('0x6c')),_0x41e509[_0x4071('0x63')][_0x4071('0x18')]('insertion',_0x4071('0x87'),_0x4071('0x6c'),_0x5d5d9d=>{const _0x20d935=_0x5d5d9d[_0x4071('0x26')](_0x206ad5=>_0x206ad5[_0x4071('0xe')]()),_0x557f55=_0x20d935[0x0]['findAncestor'](_0x4071('0x8d')),{minRow:_0x8ba6ba,maxRow:_0x1191ed}=_0x34fdd9['_getCoordsForCells'](_0x20d935);_0x22bb4a[_0x4071('0x7c')](_0x557f55,{'at':_0x8ba6ba,'rows':_0x1191ed-_0x8ba6ba+0x1});}),_0x41e509[_0x4071('0x63')]['registerCustomCallback'](_0x4071('0x1'),_0x4071('0x68'),_0x4071('0x6c'),_0x60380a=>{const _0x2201ed=_0x60380a[_0x4071('0x26')](_0x28732b=>_0x28732b['getContainedElement']()),_0x4c7a4f=_0x2201ed[0x0][_0x4071('0xa0')](_0x4071('0x8d')),{minColumn:_0xe3dfe,maxColumn:_0x3488ac}=_0x34fdd9['_getCoordsForCells'](_0x2201ed);_0x22bb4a['removeColumns'](_0x4c7a4f,{'at':_0xe3dfe,'columns':_0x3488ac-_0xe3dfe+0x1});});const _0x216031=(_0x150997,_0x27a528)=>{if(!_0x27a528[_0x4071('0x24')]||!_0x27a528['subType'][_0x4071('0x91')](_0x4071('0x1b')))return;const _0x29c5fb=_0x27a528[_0x4071('0xa2')][_0x4071('0x45')],_0x3a3e1f=_0x41e509[_0x4071('0x7d')]()[_0x4071('0x23')](_0x465267=>_0x465267[_0x4071('0x97')]&&_0x465267[_0x4071('0xa2')]&&_0x465267['attributes'][_0x4071('0x45')]==_0x29c5fb);_0x3a3e1f[_0x4071('0x9')]&&_0x27a528['getAllAdjacentSuggestions']()[_0x4071('0x9')]!=_0x3a3e1f[_0x4071('0x9')]&&_0x3a3e1f[_0x4071('0x33')]((_0x19ac48,_0x152422)=>(_0x19ac48[_0x4071('0x12')]=_0x152422,_0x152422[_0x4071('0x5c')]=_0x19ac48,_0x152422));};function _0x216b3d(_0x35d016,_0x1226b3=!0x0){const {id:_0x10a7e8}=_0x41e509[_0x4071('0x14')](_0x35d016['markerName']),_0x441a27=[_0x4071('0xc'),'ck-suggestion-marker-insertion'],_0x15d869=_0x41e509[_0x4071('0x5b')][_0x4071('0x3c')](_0x35d016[_0x4071('0x56')]);return _0x15d869&&_0x441a27[_0x4071('0x47')](_0x4071('0x37')),{'classes':_0x441a27,'attributes':{'data-suggestion':_0x10a7e8},'priority':_0x15d869&&_0x1226b3?0xbc2:0xbb8};}_0x41e509['on'](_0x4071('0x53'),_0x216031,{'priority':_0x4071('0x7a')}),_0x41e509['on']('suggestionUnloaded',_0x216031,{'priority':_0x4071('0x7a')}),_0x181912[_0x4071('0x74')]['document'][_0x4071('0x7f')](()=>{let _0x3a4223=!0x1;const _0x2bcfd0=Array[_0x4071('0x52')](_0x181912[_0x4071('0x74')]['document'][_0x4071('0x8b')][_0x4071('0x89')]());for(const {name:_0x5657a9,data:_0x3063c8}of _0x2bcfd0){const {group:_0x3a1666,type:_0xae05a6,id:_0x23e7e7}=_0x41e509['_splitMarkerName'](_0x5657a9);if(_0x4071('0x8c')!=_0x3a1666||'deletion'!=_0xae05a6||_0x3063c8['oldRange'])continue;if(!_0x41e509[_0x4071('0x43')](_0x23e7e7))continue;const _0x7cc860=_0x41e509['getSuggestion'](_0x23e7e7)[_0x4071('0x1d')](),_0x338254=_0x181912['plugins'][_0x4071('0x88')](_0x4071('0x4a'))['me'];for(const _0x1ed6af of _0x41e509[_0x4071('0x7d')]()){if(!_0x1ed6af[_0x4071('0x97')]||_0x1ed6af[_0x4071('0x16')]!=_0x338254)continue;if(_0x4071('0x62')!=_0x1ed6af[_0x4071('0x8')]||_0x4071('0x21')!=_0x1ed6af[_0x4071('0x24')])continue;if(_0x1ed6af[_0x4071('0x1d')]()[_0x4071('0x32')](_0x2fe722=>_0x7cc860['some'](_0x30b11a=>_0x30b11a[_0x4071('0x96')](_0x2fe722,!0x0))))for(const _0x12aa2c of _0x1ed6af[_0x4071('0x28')]())_0x12aa2c[_0x4071('0x97')]&&(_0x12aa2c[_0x4071('0x6c')](),_0x3a4223=!0x0);}}return _0x3a4223;}),_0x181912['model'][_0x4071('0x71')][_0x4071('0x7f')](_0x2ff3f3=>{const _0x2e8ce4=_0x181912['commands'][_0x4071('0x88')](_0x4071('0x60'));if(!_0x2e8ce4||!_0x2e8ce4[_0x4071('0x8a')][_0x4071('0x9b')](_0x2ff3f3[_0x4071('0x3e')]))return!0x1;let _0x1f9190=!0x1;const _0x53f0a7=_0x181912[_0x4071('0x82')][_0x4071('0x88')](_0x4071('0x4a'))['me'],_0x4c11f6=_0x181912['model'][_0x4071('0x71')]['differ'][_0x4071('0xf')](),_0x2c3292=Array[_0x4071('0x52')](_0x181912[_0x4071('0x74')][_0x4071('0x71')][_0x4071('0x8b')][_0x4071('0x89')]())[_0x4071('0x23')](({name:_0x523598,data:_0x509a5c})=>{const {group:_0x4ca052,subType:_0x2694f6,authorId:_0x39aff4}=_0x41e509[_0x4071('0x14')](_0x523598);return _0x4071('0x8c')==_0x4ca052&&_0x4071('0x1b')==_0x2694f6&&_0x39aff4==_0x53f0a7['id']&&!_0x509a5c[_0x4071('0x30')];});for(const _0x18e07c of _0x4c11f6){if(_0x4071('0x77')!=_0x18e07c[_0x4071('0x8')]||_0x4071('0x58')!=_0x18e07c[_0x4071('0x46')]||0x1!=_0x18e07c['length'])continue;const _0x3c150e=_0x2ff3f3['createRange'](_0x18e07c['position'],_0x18e07c[_0x4071('0x49')][_0x4071('0x90')](0x1));if(!_0x2c3292['find'](({data:_0x282aab})=>_0x282aab[_0x4071('0x81')][_0x4071('0x5f')](_0x3c150e)))for(const {name:_0x4b6835,data:_0x345f8d}of _0x2c3292)if(_0x3c150e[_0x4071('0x96')](_0x345f8d[_0x4071('0x81')])){_0x2ff3f3['updateMarker'](_0x4b6835,{'range':_0x3c150e}),_0x1f9190=!0x0;break;}}return _0x1f9190;}),_0x181912[_0x4071('0x74')][_0x4071('0x71')][_0x4071('0x7f')](_0x205fe3=>{let _0x143db3=!0x1;const _0x6e9c73=_0x181912['plugins'][_0x4071('0x88')](_0x4071('0x4a'))['me'],_0x5556a9=_0x41e509[_0x4071('0x7d')]()[_0x4071('0x23')](_0x120b3e=>_0x120b3e['isInContent']&&_0x120b3e[_0x4071('0x16')]==_0x6e9c73),_0x478107=new Set(),_0x4eb2ba=new Set();for(const _0x293d5a of _0x5556a9)if('tablePaste'==_0x293d5a[_0x4071('0x24')])for(const _0x2d2489 of _0x293d5a[_0x4071('0x17')]()){const _0x19c8d2=_0x2d2489[_0x4071('0x9e')]()[_0x4071('0xe')]();if(_0x19c8d2){if(_0x19c8d2['is'](_0x4071('0x3a'),_0x4071('0x58'))&&ge(_0x19c8d2)){_0x293d5a[_0x4071('0x70')](_0x2d2489[_0x4071('0x46')]),_0x478107[_0x4071('0x44')](_0x19c8d2),_0x143db3=!0x0;const _0x4cb8ad=_0x19c8d2[_0x4071('0x4c')],_0x1ac6d3=_0x19c8d2[_0x4071('0x61')],_0x25c1ea=_0x4cb8ad&&_0x4cb8ad['is'](_0x4071('0x3a'),_0x4071('0x58')),_0x1adb65=_0x1ac6d3&&_0x1ac6d3['is'](_0x4071('0x3a'),_0x4071('0x58'));_0x25c1ea&&!_0x478107['has'](_0x4cb8ad)&&_0x4eb2ba['add'](_0x4cb8ad),_0x1adb65&&!_0x478107[_0x4071('0x9b')](_0x1ac6d3)&&_0x4eb2ba[_0x4071('0x44')](_0x1ac6d3);}else _0x19c8d2['is'](_0x4071('0x3a'),_0x4071('0x5e'))&&_0x19c8d2[_0x4071('0x86')]&&(_0x293d5a[_0x4071('0x70')](_0x2d2489[_0x4071('0x46')]),_0x143db3=!0x0);}}else{if(_0x4071('0x21')==_0x293d5a[_0x4071('0x24')]){if(!_0x293d5a[_0x4071('0xa2')]||!_0x293d5a[_0x4071('0xa2')]['tablePasteChainId'])continue;const _0x635f70=_0x293d5a['attributes']['markerAttributes'];if(_0x635f70&&Object[_0x4071('0x27')](_0x635f70)[_0x4071('0x9')])continue;const _0x25f209=_0x293d5a[_0x4071('0xa2')]['tablePasteChainId'];let _0x5d3511=!0x0,_0x1405d7=!0x0;for(const _0x284f71 of _0x5556a9)if(_0x284f71[_0x4071('0x24')]&&_0x284f71['subType']['startsWith'](_0x4071('0x1b'))){if(!_0x284f71[_0x4071('0xa2')][_0x4071('0x45')]){_0x1405d7=!0x1;break;}if(_0x284f71['id']!=_0x293d5a['id']&&_0x284f71[_0x4071('0xa2')][_0x4071('0x45')]==_0x25f209){_0x5d3511=!0x1;break;}}_0x1405d7&&_0x5d3511&&(_0x293d5a[_0x4071('0xb')](),_0x143db3=!0x0);}}for(const _0xdb37e7 of _0x478107)_0x205fe3[_0x4071('0x3d')](_0xdb37e7);for(const _0x1491bf of _0x4eb2ba)_0x205fe3[_0x4071('0x67')](_0x1491bf);return _0x143db3;}),_0x181912[_0x4071('0x75')][_0x4071('0x84')]('editingDowncast')['markerToHighlight']({'model':_0x4071('0x72'),'view':(_0x5a8a86,_0x16d3c3)=>_0x216b3d(_0x5a8a86),'converterPriority':'high'}),_0x181912[_0x4071('0x75')]['for']('dataDowncast')[_0x4071('0x69')]({'model':_0x4071('0x72'),'view':(_0x2a30f3,_0x261d67)=>_0x261d67[_0x4071('0x6')][_0x4071('0x2c')]?_0x216b3d(_0x2a30f3,!0x1):null,'converterPriority':'high'});const _0x3c6e8c=_0x181912[_0x4071('0x3')][_0x4071('0x42')];this['listenTo'](_0x3c6e8c[_0x4071('0x71')],_0x4071('0x6b'),(_0x1df82b,_0x4359d1)=>{const _0x277c1e=[];for(const _0x27c2bd of _0x3c6e8c[_0x4071('0x11')](_0x4359d1[_0x4071('0x13')])[_0x4071('0x15')]())_0x27c2bd['is'](_0x4071('0x3a'),_0x4071('0x1a'))&&_0x277c1e[_0x4071('0x47')](_0x27c2bd);_0x3c6e8c[_0x4071('0x50')](_0x26ca49=>{for(const _0x2c9071 of _0x277c1e)_0x26ca49[_0x4071('0x6a')](_0x26ca49[_0x4071('0x11')](_0x2c9071),_0x26ca49[_0x4071('0x93')](_0x2c9071)),_0x26ca49[_0x4071('0x3d')](_0x2c9071);});});}}function ge(_0x4b9ab5){if(_0x4b9ab5[_0x4071('0x86')])return!0x0;const _0x4a8055=_0x4b9ab5[_0x4071('0x1f')](0x0);return _0x4a8055['is'](_0x4071('0x3a'),_0x4071('0x5e'))&&_0x4a8055[_0x4071('0x86')];}function de(_0x826584,_0x3f689b={},_0x5acd44){for(const {isAnchor:_0x45caf4,cellHeight:_0x2bc856,cellWidth:_0x5d2a53}of _0x5acd44['createTableWalker'](_0x826584,{'includeAllSlots':!0x0,..._0x3f689b}))if(!_0x45caf4||0x1!=_0x2bc856||0x1!=_0x5d2a53)return!0x1;return!0x0;}
|
|
23
|
+
const _0x54d7=['clipboardOutput','push','insertRows','editingDowncast','containsRange','afterInit','cells','getSuggestionCallback','every','insertContent','unwrap','start','tablePasteChainId','row','ck-suggestion-marker','nextSibling','registerCustomCallback','suggestion-td','wrap','value','TableClipboard','has','findAncestor','set','markMultiRangeInsertion','getSuggestion','get','plugins','tableCell','getRanges','previousSibling','add','attributes','markerAttributes','getAttributes','map','requires','removeMarker','registerPostFixer','commands','_splitMarkerName','batch','tablePaste','createRange','createRangeOn','elementToElement','suggestionLoaded','isEmpty','formatBlock','getSuggestions','next','length','endRow','register','insert','markerToHighlight','element','filter','getColumnIndexes','columnInsertionRanges','high','isInContent','differ','tablePasteCell','rootName','startsWith','getColumns','join','name','Users','_getCoordsForCells','insertion','_isForcedDefaultExecutionBlock','insertColumns','find','entries','suggestion:formatBlock:tablePasteCell','ck-suggestion-marker--active','removeColumns','getChild','suggestionUnloaded','some','low','showSuggestionHighlights','column','paragraph','model','last','getTableIfOnlyTableInContent','TrackChangesEditing','tableCellHorizontalAlignment','position','remove','options','subType','conversion','isEqual','move','registerDescriptionCallback','tablePasteRow','accept','editor','markers','getItems','deletion','columnInsertionIndexes','keys','from','rows','end','createPositionBefore','tableCellPadding','fill','updateMarker','trackChanges','getRange','ck-suggestion-marker-insertion','tableCellSuggestion','getChildren','createTableWalker','documentSelection','locale','rowInsertionIndexes','tableCellBackgroundColor','tablePasteColumn','previous','stop','table','getAllAdjacentSuggestions','oldRange','getChanges','endColumn','forceDefaultExecution','change','schema','suggestion','type','rowInsertionRanges','editing','author','tableCellBorderWidth','document','tableCellVerticalAlignment','return','newRange','discard','TableUtils','getMarkers','_suggestionFactory','getContainedElement','createElement','fromEntries','for','first','selection','includes','markerName','createRangeIn'];(function(_0x2f1cfa,_0x54d748){const _0x25dced=function(_0x44d7fd){while(--_0x44d7fd){_0x2f1cfa['push'](_0x2f1cfa['shift']());}};_0x25dced(++_0x54d748);}(_0x54d7,0x12a));const _0x25dc=function(_0x2f1cfa,_0x54d748){_0x2f1cfa=_0x2f1cfa-0x0;let _0x25dced=_0x54d7[_0x2f1cfa];return _0x25dced;};import{getTranslation as _0x1b4f61}from'../utils/common-translations.js';import{Plugin as _0x46b4e8}from'ckeditor5/src/core.js';import{uid as _0x2b1ffb,priorities as _0x15d68a}from'ckeditor5/src/utils.js';import _0x219afa from'./table.js';const fe=[_0x25dc('0x0'),'tableCellBorderColor','tableCellBorderStyle',_0x25dc('0x6c'),_0x25dc('0x2'),_0x25dc('0x8d'),_0x25dc('0x81')],be=Object['fromEntries'](fe[_0x25dc('0x35')](_0x21207d=>[_0x21207d,null]));export default class At extends _0x46b4e8{static get[_0x25dc('0x36')](){return[_0x219afa];}[_0x25dc('0x17')](){const _0x37e3b5=this[_0x25dc('0x77')];if(!_0x37e3b5[_0x25dc('0x2d')][_0x25dc('0x27')](_0x25dc('0x26')))return;const _0x339970=_0x37e3b5['plugins'][_0x25dc('0x2c')](_0x25dc('0x6b')),_0x57169c=_0x37e3b5[_0x25dc('0x2d')][_0x25dc('0x2c')](_0x25dc('0x6')),_0x5be1e7=_0x37e3b5[_0x25dc('0x2d')][_0x25dc('0x2c')](_0x219afa),_0x4d7c99=_0x37e3b5[_0x25dc('0x2d')][_0x25dc('0x2c')]('TableClipboard');_0x5be1e7['_tablePostFixingSubtypes'][_0x25dc('0x13')](_0x25dc('0x75'),_0x25dc('0x8e')),_0x37e3b5[_0x25dc('0x68')][_0x25dc('0x98')][_0x25dc('0x47')](_0x25dc('0x87'),{'allowIn':_0x25dc('0x2e'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x37e3b5[_0x25dc('0x71')][_0x25dc('0x3f')]({'model':_0x25dc('0x87'),'view':_0x25dc('0x23')});let _0xe3ebc3=null;_0x37e3b5[_0x25dc('0x68')]['on']('insertContent',(_0x220c6b,_0x8f098b)=>{const [_0x2f5db3,_0x41ee7c]=_0x8f098b,_0x1a4e12=_0x8f098b[_0x8f098b[_0x25dc('0x45')]-0x1];_0x1a4e12&&_0x1a4e12[_0x25dc('0x96')]||_0x339970[_0x25dc('0x5a')]||this[_0x25dc('0x77')][_0x25dc('0x39')]['get'](_0x25dc('0x84'))[_0x25dc('0x25')]&&function(_0x43b297,_0x1033f3,_0x3e2231,_0x2eabb9,_0x73dbd0){if(_0x1033f3&&!_0x1033f3['is'](_0x25dc('0x8a')))return!0x1;const _0x2a915d=_0x73dbd0[_0x25dc('0x6a')](_0x43b297,_0x3e2231);if(!_0x2a915d||!de(_0x2a915d,void 0x0,_0x2eabb9))return!0x1;const _0x10dd95=_0x2eabb9['getSelectionAffectedTableCells'](_0x3e2231[_0x25dc('0x1')][_0x25dc('0xe')]);if(!_0x10dd95[_0x25dc('0x45')])return!0x1;const _0x3f2482=_0x10dd95[0x0]['findAncestor'](_0x25dc('0x91')),_0x58f2ec=_0x2eabb9['getRowIndexes'](_0x10dd95),_0x4f5f3c=_0x2eabb9[_0x25dc('0x4c')](_0x10dd95),_0x5180b2={'startRow':_0x58f2ec[_0x25dc('0xd')],'endRow':_0x58f2ec[_0x25dc('0x69')],'startColumn':_0x4f5f3c[_0x25dc('0xd')],'endColumn':_0x4f5f3c[_0x25dc('0x69')]};return 0x1==_0x10dd95[_0x25dc('0x45')]&&(_0x5180b2[_0x25dc('0x46')]+=_0x2eabb9['getRows'](_0x2a915d)-0x1,_0x5180b2[_0x25dc('0x95')]+=_0x2eabb9[_0x25dc('0x54')](_0x2a915d)-0x1),de(_0x3f2482,_0x5180b2,_0x2eabb9);}(_0x2f5db3,_0x41ee7c,_0x37e3b5[_0x25dc('0x68')],_0x57169c,_0x4d7c99)&&(_0x220c6b[_0x25dc('0x90')](),_0xe3ebc3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x37e3b5[_0x25dc('0x68')][_0x25dc('0x97')](()=>{_0x37e3b5[_0x25dc('0x68')][_0x25dc('0x1b')](_0x8f098b[0x0],_0x8f098b[0x1],_0x8f098b[0x2],{'forceDefaultExecution':!0x0});const _0x3e26c1=_0x2b1ffb(),{rowInsertionRanges:_0x86d76f,columnInsertionRanges:_0x26589b,insertionRanges:_0x26d7d4,deletionRanges:_0x54a1e0,cells:_0x451239}=_0xe3ebc3;_0x86d76f[_0x25dc('0x45')]&&_0x339970[_0x25dc('0x2a')](_0x86d76f,_0x25dc('0x75'),{'tablePasteChainId':_0x3e26c1}),_0x26589b['length']&&_0x339970[_0x25dc('0x2a')](_0x26589b,_0x25dc('0x8e'),{'tablePasteChainId':_0x3e26c1}),_0x26d7d4[_0x25dc('0x45')]&&_0x339970[_0x25dc('0x2a')](_0x26d7d4,_0x25dc('0x3c'),{'tablePasteChainId':_0x3e26c1,'skipNestingCheck':!0x0}),_0x54a1e0[_0x25dc('0x45')]&&_0x339970['markMultiRangeDeletion'](_0x54a1e0,_0x25dc('0x3c'),{'tablePasteChainId':_0x3e26c1,'skipNestingCheck':!0x0});const _0x4b4e5f=_0x339970['markMultiRangeBlockFormat'](_0x451239[_0x25dc('0x35')](({element:_0x3441f3})=>_0x3441f3),{'formatGroupId':_0x2b1ffb()},[],_0x25dc('0x51'),{'tablePasteChainId':_0x3e26c1});if(_0x4b4e5f){const _0x52e599=_0x4b4e5f[_0x25dc('0x7')](),_0xeafe07=[];for(const {element:_0x572a87,attributes:_0x5609f4}of _0x451239){if(!_0x5609f4)continue;const _0x2934b7=_0x37e3b5[_0x25dc('0x68')][_0x25dc('0x3e')](_0x572a87),_0x403842=_0x52e599[_0x25dc('0x5c')](_0x85a11c=>_0x85a11c['getRange']()[_0x25dc('0x72')](_0x2934b7));_0x403842&&_0xeafe07[_0x25dc('0x13')]([_0x403842['name'],_0x5609f4]);}_0xeafe07[_0x25dc('0x45')]&&_0x4b4e5f['setAttribute'](_0x25dc('0x33'),Object[_0x25dc('0xb')](_0xeafe07));}_0xe3ebc3=null;}));},{'priority':_0x15d68a[_0x25dc('0x4e')]+0xa}),_0x37e3b5['plugins'][_0x25dc('0x2c')](_0x25dc('0x26'))['on']('_replaceTableSlotCell',(_0x7f73d4,_0x849186)=>{const [_0x397ac3,_0x583665,,_0x4cc79d]=_0x849186;if(!_0xe3ebc3)return;_0x7f73d4[_0x25dc('0x90')]();const _0x148e40=_0x397ac3['cell'],_0x1bda05=_0x583665,_0x9e178f=ge(_0x148e40),_0x16f560=ge(_0x1bda05);_0x7f73d4[_0x25dc('0x3')]=_0x148e40;let _0x4b2601=null,_0x46daf5=null;if(_0x16f560||_0x9e178f){if(_0x9e178f&&!_0x16f560){_0x4cc79d[_0x25dc('0x6e')](_0x148e40[_0x25dc('0x61')](0x0));for(const _0x57f1ff of Array[_0x25dc('0x7d')](_0x1bda05[_0x25dc('0x88')]()))_0x4cc79d[_0x25dc('0x48')](_0x57f1ff,_0x148e40,_0x25dc('0x7f'));const _0x1f6c9b=_0xe3ebc3['rowInsertionIndexes'][_0x25dc('0xf')](_0x397ac3[_0x25dc('0x1f')]),_0x2a5405=_0xe3ebc3[_0x25dc('0x7b')][_0x25dc('0xf')](_0x397ac3[_0x25dc('0x66')]);_0x1f6c9b||_0x2a5405||(_0x4b2601=_0x4cc79d['createRangeIn'](_0x148e40));}else _0x16f560&&!_0x9e178f&&(_0x46daf5=_0x4cc79d[_0x25dc('0x11')](_0x148e40));}else{const _0x30defe=_0x4cc79d['createElement'](_0x25dc('0x87')),_0x3a8827=_0x4cc79d[_0x25dc('0xa')](_0x25dc('0x87'));_0x4cc79d[_0x25dc('0x24')](_0x4cc79d[_0x25dc('0x11')](_0x148e40),_0x3a8827),_0x4cc79d[_0x25dc('0x48')](_0x30defe,_0x148e40,0x0);for(const _0x15d944 of Array['from'](_0x1bda05[_0x25dc('0x88')]()))_0x4cc79d[_0x25dc('0x48')](_0x15d944,_0x30defe,_0x25dc('0x7f'));_0x4b2601=_0x4cc79d[_0x25dc('0x3e')](_0x30defe),_0x46daf5=_0x4cc79d['createRangeOn'](_0x3a8827);}const _0x59477f=Array['from'](_0x1bda05[_0x25dc('0x34')]())['filter'](([_0x273c32])=>fe['includes'](_0x273c32));_0xe3ebc3[_0x25dc('0x18')]['push']({'element':_0x148e40,'attributes':_0x59477f[_0x25dc('0x45')]?Object[_0x25dc('0xb')](_0x59477f):null}),_0x4b2601&&_0xe3ebc3['insertionRanges'][_0x25dc('0x13')](_0x4b2601),_0x46daf5&&_0xe3ebc3['deletionRanges'][_0x25dc('0x13')](_0x46daf5);},{'priority':_0x25dc('0x4e')}),_0x57169c['on'](_0x25dc('0x5b'),(_0x28368d,_0x3c10aa)=>{const [_0x33a827,_0x2bac96={}]=_0x3c10aa;if(!_0xe3ebc3)return;const _0x128a82=_0x2bac96['at']||0x0,_0x1e0162=_0x2bac96['columns']||0x1;_0xe3ebc3[_0x25dc('0x7b')]=new Array(_0x1e0162)[_0x25dc('0x82')](_0x128a82)[_0x25dc('0x35')]((_0x5763d7,_0x1f33a3)=>_0x5763d7+_0x1f33a3);for(const {cell:_0x5114a4}of _0x57169c['createTableWalker'](_0x33a827,{'startColumn':_0x128a82,'endColumn':_0x128a82+_0x1e0162-0x1}))_0xe3ebc3[_0x25dc('0x4d')][_0x25dc('0x13')](_0x37e3b5[_0x25dc('0x68')][_0x25dc('0x3e')](_0x5114a4));},{'priority':_0x25dc('0x64')}),_0x57169c['on'](_0x25dc('0x14'),(_0x3ff3ca,_0x2c78e9)=>{const [_0x2c3e85,_0x5b261a={}]=_0x2c78e9;if(!_0xe3ebc3)return;const _0x27b253=_0x5b261a['at']||0x0,_0x1d21c6=_0x5b261a[_0x25dc('0x7e')]||0x1;_0xe3ebc3[_0x25dc('0x8c')]=new Array(_0x1d21c6)['fill'](_0x27b253)['map']((_0x1a4acb,_0x37a489)=>_0x1a4acb+_0x37a489);for(const {cell:_0x2ed947}of _0x57169c[_0x25dc('0x89')](_0x2c3e85,{'startRow':_0x27b253,'endRow':_0x27b253+_0x1d21c6-0x1}))_0xe3ebc3[_0x25dc('0x9b')]['push'](_0x37e3b5[_0x25dc('0x68')]['createRangeOn'](_0x2ed947));},{'priority':'low'}),_0x339970['_descriptionFactory'][_0x25dc('0x74')](_0x5e4039=>{if(_0x5e4039[_0x25dc('0x70')]&&_0x5e4039['subType'][_0x25dc('0x53')](_0x25dc('0x3c')))return _0x5e4039[_0x25dc('0x8f')]?{}:{'type':_0x25dc('0x59'),'content':_0x1b4f61(_0x37e3b5[_0x25dc('0x8b')],'*Replace\x20table\x20cells*')};});const _0x761d54=()=>!0x1;for(const _0x29f102 of['tablePaste','tablePasteColumn','tablePasteRow',_0x25dc('0x51')])_0x339970[_0x25dc('0x8')]['registerCustomCallback']('insertion',_0x29f102,_0x25dc('0x55'),_0x761d54),_0x339970[_0x25dc('0x8')]['registerCustomCallback'](_0x25dc('0x7a'),_0x29f102,_0x25dc('0x55'),_0x761d54),_0x339970['_suggestionFactory'][_0x25dc('0x22')]('formatBlock',_0x29f102,_0x25dc('0x55'),_0x761d54);_0x339970[_0x25dc('0x8')]['registerCustomCallback'](_0x25dc('0x42'),'tablePasteCell','discard',_0x761d54),_0x339970[_0x25dc('0x8')][_0x25dc('0x22')]('formatBlock',_0x25dc('0x51'),_0x25dc('0x76'),(_0x407d39,_0xb1c115,_0x289a12)=>{const _0x74c69=_0x407d39[_0x25dc('0x35')](_0x1e8b9c=>_0x1e8b9c['getContainedElement']())[_0x25dc('0x4b')](_0x26bad2=>_0x26bad2),_0x562ff2=new Map(_0x74c69[_0x25dc('0x35')](_0xc4e12e=>[_0xc4e12e,null]));if(_0xe3ebc3)for(const {element:_0x4aea59,attributes:_0x38e981}of _0xe3ebc3[_0x25dc('0x18')])_0x38e981&&_0x562ff2[_0x25dc('0x29')](_0x4aea59,_0x38e981);else{if(_0x289a12&&_0x289a12[_0x25dc('0x33')])for(const [_0x2834cf,_0xc8ff25]of Object[_0x25dc('0x5d')](_0x289a12[_0x25dc('0x33')])){const _0x5c7c24=_0x37e3b5[_0x25dc('0x68')][_0x25dc('0x78')][_0x25dc('0x2c')](_0x2834cf),_0x51c82b=_0x5c7c24?_0x5c7c24[_0x25dc('0x85')]()[_0x25dc('0x9')]():null;_0x51c82b&&_0x562ff2[_0x25dc('0x29')](_0x51c82b,_0xc8ff25);}}_0x37e3b5[_0x25dc('0x68')][_0x25dc('0x97')](_0x4e2d82=>{for(const [_0x3b564e,_0x56fedc]of _0x562ff2)_0x4e2d82['setAttributes']({...be,..._0x56fedc},_0x3b564e);});});const _0x39a021=(_0x2fbd5d,_0x257d2d)=>{_0x339970[_0x25dc('0x8')][_0x25dc('0x22')](_0x2fbd5d,'tablePaste',_0x257d2d,(_0x563255,_0x5838bd,_0x335c39)=>{_0x37e3b5[_0x25dc('0x68')][_0x25dc('0x97')](_0xda70e5=>{const _0x4aefe7=[];for(const _0x2f588e of _0x563255){const _0x2de355=_0x2f588e[_0x25dc('0x1d')]['nodeAfter'];_0x2de355['is'](_0x25dc('0x4a'),_0x25dc('0x87'))&&_0x4aefe7['push'](_0x2de355);}_0x339970[_0x25dc('0x8')][_0x25dc('0x19')](_0x2fbd5d,null,_0x257d2d)(_0x563255,_0x5838bd,_0x335c39);for(const _0x5574c2 of _0x4aefe7)'$graveyard'!=_0x5574c2['root'][_0x25dc('0x52')]&&_0xda70e5[_0x25dc('0x1c')](_0x5574c2);});});};_0x39a021(_0x25dc('0x59'),_0x25dc('0x76')),_0x39a021(_0x25dc('0x59'),'discard'),_0x39a021(_0x25dc('0x7a'),_0x25dc('0x76')),_0x39a021(_0x25dc('0x7a'),_0x25dc('0x5')),_0x339970['_suggestionFactory'][_0x25dc('0x22')](_0x25dc('0x59'),_0x25dc('0x75'),_0x25dc('0x5'),_0x4defdf=>{const _0x7b388e=_0x4defdf[_0x25dc('0x35')](_0x59ddfa=>_0x59ddfa[_0x25dc('0x9')]()),_0x482e0f=_0x7b388e[0x0]['findAncestor'](_0x25dc('0x91')),{minRow:_0x1e2983,maxRow:_0x5300cb}=_0x5be1e7[_0x25dc('0x58')](_0x7b388e);_0x57169c['removeRows'](_0x482e0f,{'at':_0x1e2983,'rows':_0x5300cb-_0x1e2983+0x1});}),_0x339970[_0x25dc('0x8')][_0x25dc('0x22')](_0x25dc('0x59'),'tablePasteColumn','discard',_0x17c359=>{const _0x2e41e8=_0x17c359[_0x25dc('0x35')](_0x333569=>_0x333569[_0x25dc('0x9')]()),_0x2d679b=_0x2e41e8[0x0][_0x25dc('0x28')](_0x25dc('0x91')),{minColumn:_0x7ef8a5,maxColumn:_0x56b261}=_0x5be1e7[_0x25dc('0x58')](_0x2e41e8);_0x57169c[_0x25dc('0x60')](_0x2d679b,{'at':_0x7ef8a5,'columns':_0x56b261-_0x7ef8a5+0x1});});const _0x297b65=(_0x13fa00,_0x1cc09f)=>{if(!_0x1cc09f['subType']||!_0x1cc09f['subType'][_0x25dc('0x53')](_0x25dc('0x3c')))return;const _0x905b5f=_0x1cc09f[_0x25dc('0x32')][_0x25dc('0x1e')],_0x11468d=_0x339970[_0x25dc('0x43')]()[_0x25dc('0x4b')](_0x4bb1d3=>_0x4bb1d3[_0x25dc('0x4f')]&&_0x4bb1d3[_0x25dc('0x32')]&&_0x4bb1d3[_0x25dc('0x32')]['tablePasteChainId']==_0x905b5f);_0x11468d[_0x25dc('0x45')]&&_0x1cc09f[_0x25dc('0x92')]()[_0x25dc('0x45')]!=_0x11468d[_0x25dc('0x45')]&&_0x11468d['reduce']((_0x56ad1a,_0x445ba9)=>(_0x56ad1a[_0x25dc('0x44')]=_0x445ba9,_0x445ba9[_0x25dc('0x8f')]=_0x56ad1a,_0x445ba9));};function _0x45f7b0(_0x3e23b4,_0x78bba2=!0x0){const {id:_0x4fb7a2}=_0x339970[_0x25dc('0x3a')](_0x3e23b4[_0x25dc('0x10')]),_0x3c1242=[_0x25dc('0x20'),_0x25dc('0x86')],_0x240418=_0x339970['activeMarkers'][_0x25dc('0xf')](_0x3e23b4[_0x25dc('0x10')]);return _0x240418&&_0x3c1242[_0x25dc('0x13')](_0x25dc('0x5f')),{'classes':_0x3c1242,'attributes':{'data-suggestion':_0x4fb7a2},'priority':_0x240418&&_0x78bba2?0xbc2:0xbb8};}_0x339970['on'](_0x25dc('0x40'),_0x297b65,{'priority':'high'}),_0x339970['on'](_0x25dc('0x62'),_0x297b65,{'priority':_0x25dc('0x4e')}),_0x37e3b5[_0x25dc('0x68')][_0x25dc('0x1')][_0x25dc('0x38')](()=>{let _0x49ae54=!0x1;const _0x1fc294=Array[_0x25dc('0x7d')](_0x37e3b5[_0x25dc('0x68')][_0x25dc('0x1')][_0x25dc('0x50')]['getChangedMarkers']());for(const {name:_0x3929c6,data:_0x65ae82}of _0x1fc294){const {group:_0x5c6c8e,type:_0x3f3699,id:_0x5b09b2}=_0x339970[_0x25dc('0x3a')](_0x3929c6);if(_0x25dc('0x99')!=_0x5c6c8e||_0x25dc('0x7a')!=_0x3f3699||_0x65ae82[_0x25dc('0x93')])continue;if(!_0x339970['hasSuggestion'](_0x5b09b2))continue;const _0x41cd54=_0x339970[_0x25dc('0x2b')](_0x5b09b2)[_0x25dc('0x2f')](),_0x227597=_0x37e3b5['plugins'][_0x25dc('0x2c')]('Users')['me'];for(const _0x11ee94 of _0x339970[_0x25dc('0x43')]()){if(!_0x11ee94[_0x25dc('0x4f')]||_0x11ee94[_0x25dc('0x9d')]!=_0x227597)continue;if(_0x25dc('0x42')!=_0x11ee94[_0x25dc('0x9a')]||_0x25dc('0x51')!=_0x11ee94[_0x25dc('0x70')])continue;if(_0x11ee94[_0x25dc('0x2f')]()[_0x25dc('0x1a')](_0x21ffeb=>_0x41cd54[_0x25dc('0x63')](_0x3888e5=>_0x3888e5[_0x25dc('0x16')](_0x21ffeb,!0x0))))for(const _0x5f508b of _0x11ee94[_0x25dc('0x92')]())_0x5f508b[_0x25dc('0x4f')]&&(_0x5f508b[_0x25dc('0x5')](),_0x49ae54=!0x0);}}return _0x49ae54;}),_0x37e3b5[_0x25dc('0x68')][_0x25dc('0x1')][_0x25dc('0x38')](_0x56adf9=>{const _0xfe7cf6=_0x37e3b5[_0x25dc('0x39')][_0x25dc('0x2c')]('redo');if(!_0xfe7cf6||!_0xfe7cf6['_createdBatches'][_0x25dc('0x27')](_0x56adf9[_0x25dc('0x3b')]))return!0x1;let _0x41706a=!0x1;const _0x3c7242=_0x37e3b5[_0x25dc('0x2d')]['get'](_0x25dc('0x57'))['me'],_0x465961=_0x37e3b5[_0x25dc('0x68')][_0x25dc('0x1')][_0x25dc('0x50')][_0x25dc('0x94')](),_0x330bcf=Array['from'](_0x37e3b5[_0x25dc('0x68')][_0x25dc('0x1')][_0x25dc('0x50')]['getChangedMarkers']())[_0x25dc('0x4b')](({name:_0x4a7bde,data:_0x35e5dc})=>{const {group:_0x4133f0,subType:_0x2cbf7e,authorId:_0x2a951b}=_0x339970[_0x25dc('0x3a')](_0x4a7bde);return'suggestion'==_0x4133f0&&_0x25dc('0x3c')==_0x2cbf7e&&_0x2a951b==_0x3c7242['id']&&!_0x35e5dc[_0x25dc('0x93')];});for(const _0x35f15e of _0x465961){if('insert'!=_0x35f15e['type']||_0x25dc('0x87')!=_0x35f15e['name']||0x1!=_0x35f15e['length'])continue;const _0x3879e3=_0x56adf9[_0x25dc('0x3d')](_0x35f15e[_0x25dc('0x6d')],_0x35f15e[_0x25dc('0x6d')]['getShiftedBy'](0x1));if(!_0x330bcf[_0x25dc('0x5c')](({data:_0x32d185})=>_0x32d185['newRange']['isEqual'](_0x3879e3)))for(const {name:_0x48c9fe,data:_0xb9cad0}of _0x330bcf)if(_0x3879e3[_0x25dc('0x16')](_0xb9cad0[_0x25dc('0x4')])){_0x56adf9[_0x25dc('0x83')](_0x48c9fe,{'range':_0x3879e3}),_0x41706a=!0x0;break;}}return _0x41706a;}),_0x37e3b5[_0x25dc('0x68')][_0x25dc('0x1')][_0x25dc('0x38')](_0x11ebef=>{let _0xfc7276=!0x1;const _0x41fcd3=_0x37e3b5[_0x25dc('0x2d')]['get'](_0x25dc('0x57'))['me'],_0x2f2cd4=_0x339970[_0x25dc('0x43')]()[_0x25dc('0x4b')](_0x207392=>_0x207392[_0x25dc('0x4f')]&&_0x207392['author']==_0x41fcd3),_0x3c8209=new Set(),_0x189b80=new Set();for(const _0x4a5cff of _0x2f2cd4)if(_0x25dc('0x3c')==_0x4a5cff['subType'])for(const _0xecb66e of _0x4a5cff['getMarkers']()){const _0x144962=_0xecb66e[_0x25dc('0x85')]()[_0x25dc('0x9')]();if(_0x144962){if(_0x144962['is'](_0x25dc('0x4a'),'tableCellSuggestion')&&ge(_0x144962)){_0x4a5cff[_0x25dc('0x37')](_0xecb66e[_0x25dc('0x56')]),_0x3c8209[_0x25dc('0x31')](_0x144962),_0xfc7276=!0x0;const _0x3a158f=_0x144962[_0x25dc('0x21')],_0x3ec00c=_0x144962[_0x25dc('0x30')],_0x1fed73=_0x3a158f&&_0x3a158f['is'](_0x25dc('0x4a'),_0x25dc('0x87')),_0x2745fa=_0x3ec00c&&_0x3ec00c['is']('element',_0x25dc('0x87'));_0x1fed73&&!_0x3c8209[_0x25dc('0x27')](_0x3a158f)&&_0x189b80[_0x25dc('0x31')](_0x3a158f),_0x2745fa&&!_0x3c8209[_0x25dc('0x27')](_0x3ec00c)&&_0x189b80['add'](_0x3ec00c);}else _0x144962['is'](_0x25dc('0x4a'),_0x25dc('0x67'))&&_0x144962[_0x25dc('0x41')]&&(_0x4a5cff['removeMarker'](_0xecb66e[_0x25dc('0x56')]),_0xfc7276=!0x0);}}else{if('tablePasteCell'==_0x4a5cff[_0x25dc('0x70')]){if(!_0x4a5cff[_0x25dc('0x32')]||!_0x4a5cff[_0x25dc('0x32')]['tablePasteChainId'])continue;const _0x420409=_0x4a5cff[_0x25dc('0x32')][_0x25dc('0x33')];if(_0x420409&&Object[_0x25dc('0x7c')](_0x420409)[_0x25dc('0x45')])continue;const _0x290f5d=_0x4a5cff[_0x25dc('0x32')][_0x25dc('0x1e')];let _0x49863d=!0x0,_0xe0847e=!0x0;for(const _0x480036 of _0x2f2cd4)if(_0x480036[_0x25dc('0x70')]&&_0x480036[_0x25dc('0x70')][_0x25dc('0x53')](_0x25dc('0x3c'))){if(!_0x480036[_0x25dc('0x32')][_0x25dc('0x1e')]){_0xe0847e=!0x1;break;}if(_0x480036['id']!=_0x4a5cff['id']&&_0x480036['attributes'][_0x25dc('0x1e')]==_0x290f5d){_0x49863d=!0x1;break;}}_0xe0847e&&_0x49863d&&(_0x4a5cff['removeMarkers'](),_0xfc7276=!0x0);}}for(const _0x110a26 of _0x3c8209)_0x11ebef[_0x25dc('0x6e')](_0x110a26);for(const _0x4f7feb of _0x189b80)_0x11ebef[_0x25dc('0x1c')](_0x4f7feb);return _0xfc7276;}),_0x37e3b5[_0x25dc('0x71')][_0x25dc('0xc')](_0x25dc('0x15'))[_0x25dc('0x49')]({'model':_0x25dc('0x5e'),'view':(_0x48465a,_0x4d613d)=>_0x45f7b0(_0x48465a),'converterPriority':_0x25dc('0x4e')}),_0x37e3b5[_0x25dc('0x71')]['for']('dataDowncast')['markerToHighlight']({'model':_0x25dc('0x5e'),'view':(_0x11f0f9,_0x2202b4)=>_0x2202b4[_0x25dc('0x6f')][_0x25dc('0x65')]?_0x45f7b0(_0x11f0f9,!0x1):null,'converterPriority':'high'});const _0x4e0ebb=_0x37e3b5[_0x25dc('0x9c')]['view'];this['listenTo'](_0x4e0ebb[_0x25dc('0x1')],_0x25dc('0x12'),(_0x21e3cd,_0x66b2d4)=>{const _0x5ce63f=[];for(const _0x4ea732 of _0x4e0ebb['createRangeIn'](_0x66b2d4['content'])[_0x25dc('0x79')]())_0x4ea732['is'](_0x25dc('0x4a'),_0x25dc('0x23'))&&_0x5ce63f[_0x25dc('0x13')](_0x4ea732);_0x4e0ebb[_0x25dc('0x97')](_0x15629e=>{for(const _0x406aaa of _0x5ce63f)_0x15629e[_0x25dc('0x73')](_0x15629e['createRangeIn'](_0x406aaa),_0x15629e[_0x25dc('0x80')](_0x406aaa)),_0x15629e[_0x25dc('0x6e')](_0x406aaa);});});}}function ge(_0x367ef7){if(_0x367ef7['isEmpty'])return!0x0;const _0x1b325a=_0x367ef7[_0x25dc('0x61')](0x0);return _0x1b325a['is']('element',_0x25dc('0x67'))&&_0x1b325a[_0x25dc('0x41')];}function de(_0x3ea76e,_0x219673={},_0x2838f6){for(const {isAnchor:_0x26fadf,cellHeight:_0x20543f,cellWidth:_0x19d75b}of _0x2838f6['createTableWalker'](_0x3ea76e,{'includeAllSlots':!0x0,..._0x219673}))if(!_0x26fadf||0x1!=_0x20543f||0x1!=_0x19d75b)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bfc=['subType','locale','formatGroupId','getSuggestions','resizeTable','commandParams','editor','_suggestionFactory','document','change','format','get','model','type','formatBlock','handleSuggestionDescription','accept','getContainedElement','TableColumnResizeEditing','plugins','TrackChangesEditing','discard','getSelectedElement','columnWidths','tableWidth','Users','getSuggestionCallback','bind','registerDescriptionCallback','handleResizeTableWidthCommand','formatInline','selection','*Format:*\x20resize\x20table','table','registerCustomCallback','resizeTableWidth','afterInit'];(function(_0x434776,_0x2bfce4){const _0x27f233=function(_0x25db3a){while(--_0x25db3a){_0x434776['push'](_0x434776['shift']());}};_0x27f233(++_0x2bfce4);}(_0x2bfc,0x17e));const _0x27f2=function(_0x434776,_0x2bfce4){_0x434776=_0x434776-0x0;let _0x27f233=_0x2bfc[_0x434776];return _0x27f233;};import{Plugin as _0x193e17}from'ckeditor5/src/core.js';import{getTranslation as _0x324d1e}from'../utils/common-translations.js';export default class It extends _0x193e17{[_0x27f2('0x18')](){if(!this[_0x27f2('0x1f')][_0x27f2('0x7')]['has'](_0x27f2('0x6')))return;const _0x450c95=this[_0x27f2('0x1f')][_0x27f2('0x7')][_0x27f2('0x24')](_0x27f2('0x8'));_0x450c95['enableCommand'](_0x27f2('0x17'),this[_0x27f2('0x11')][_0x27f2('0xf')](this)),_0x450c95[_0x27f2('0x20')][_0x27f2('0x16')](_0x27f2('0x2'),_0x27f2('0x1d'),_0x27f2('0x4'),_0x450c95[_0x27f2('0x20')]['getSuggestionCallback'](_0x27f2('0x2'),null,_0x27f2('0x9'))),_0x450c95[_0x27f2('0x20')][_0x27f2('0x16')]('formatBlock',_0x27f2('0x1d'),_0x27f2('0x9'),_0x450c95[_0x27f2('0x20')][_0x27f2('0xe')](_0x27f2('0x2'),null,_0x27f2('0x4'))),_0x450c95['_descriptionFactory'][_0x27f2('0x10')](this[_0x27f2('0x3')][_0x27f2('0xf')](this));}[_0x27f2('0x11')](_0x29e4bb,_0x332354){const _0x35e4ee=this[_0x27f2('0x1f')][_0x27f2('0x7')][_0x27f2('0x24')](_0x27f2('0x8')),_0x25e843=this['editor']['plugins']['get'](_0x27f2('0x6')),_0x34e707=_0x332354[_0x27f2('0x15')]||this[_0x27f2('0x1f')][_0x27f2('0x0')][_0x27f2('0x21')][_0x27f2('0x13')][_0x27f2('0xa')]();this[_0x27f2('0x1f')][_0x27f2('0x0')][_0x27f2('0x22')](()=>{const _0x570b74=_0x25e843['getColumnGroupElement'](_0x34e707);let _0x533c5a=_0x570b74?_0x25e843['getTableColumnsWidths'](_0x570b74):null,_0x13eb72=_0x34e707['getAttribute'](_0x27f2('0xc'))||null;const _0x1b3c11=_0x332354['tableWidth']||_0x13eb72,_0x2a02ae=_0x332354['columnWidths']||_0x533c5a,_0x1e609e=this['editor']['plugins']['get'](_0x27f2('0xd'))['me'];for(const _0x4d8acd of _0x35e4ee[_0x27f2('0x1c')]()){const _0x3f67db=_0x4d8acd[_0x27f2('0x5')]();if(_0x27f2('0x1d')===_0x4d8acd[_0x27f2('0x19')]&&_0x3f67db===_0x34e707){_0x4d8acd['author']!==_0x1e609e&&_0x4d8acd[_0x27f2('0x9')]();const _0xc36356=_0x4d8acd['data'][_0x27f2('0x1e')];_0x13eb72=_0xc36356[0x0]['tableWidth'],_0x533c5a=_0xc36356[0x0][_0x27f2('0xb')];break;}}_0x29e4bb({'table':_0x34e707,'tableWidth':_0x1b3c11,'columnWidths':_0x2a02ae}),_0x35e4ee['markBlockFormat'](_0x34e707,{'commandName':_0x27f2('0x17'),'commandParams':[{'tableWidth':_0x13eb72,'columnWidths':_0x533c5a}],'formatGroupId':_0x27f2('0x1d')},[],_0x27f2('0x1d'));});}[_0x27f2('0x3')](_0x3084ed){if(_0x27f2('0x2')!=_0x3084ed[_0x27f2('0x1')]&&_0x27f2('0x12')!=_0x3084ed[_0x27f2('0x1')])return;const {data:_0x56dd2d}=_0x3084ed;if(_0x56dd2d&&_0x27f2('0x1d')===_0x56dd2d[_0x27f2('0x1b')]){const _0xe0bc5d=_0x27f2('0x14');return{'type':_0x27f2('0x23'),'content':_0x324d1e(this['editor'][_0x27f2('0x1a')],_0xe0bc5d)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7a75=['data-suggestion','setAttribute','nodeBefore','requires','forceValue','editing','ck-suggestion-marker--active','*Format:*\x20%0','end','includes','setTableRowHeader','_splitMarkerName','locale','TrackChangesEditing','bindElementToMarker','data','addMarker:suggestion','FORMAT_HEADER_COLUMN','removeClass','TableUtils','_handleLegacySuggestions','getCellLocation','ck-suggestion-marker-','TableEditing','addClass','writer','_registerLegacyDescription','markerRange','commandParams','consume','consumable','showSuggestionHighlights','markerName','_enableDefaultAttributesIntegration','removeMarker:suggestion','markerNameToElements','parent','FORMAT_REGULAR_ROW','formatBlock','FORMAT_HEADER_ROW','get','name','_acceptFormatSuggestionCallbackFactory','registerAttributeLabel','_descriptionFactory','format','setTableColumnHeader','FORMAT_REGULAR_COLUMN','plugins','getSuggestion','type','headingColumns','highest','downcastDispatcher','afterInit','unbindElementFromMarkerName','editor','headingRows','start','registerDescriptionCallback','commandName','_suggestionFactory','mapper','nodeAfter','registerCustomCallback','removeAttribute','accept'];(function(_0x554b3e,_0x7a7586){const _0x378e44=function(_0x2deab8){while(--_0x2deab8){_0x554b3e['push'](_0x554b3e['shift']());}};_0x378e44(++_0x7a7586);}(_0x7a75,0x1ca));const _0x378e=function(_0x554b3e,_0x7a7586){_0x554b3e=_0x554b3e-0x0;let _0x378e44=_0x7a75[_0x554b3e];return _0x378e44;};import{Plugin as _0x12966e}from'ckeditor5/src/core.js';import _0x46b4c8 from'./table.js';import{getTranslation as _0x2b320e}from'../utils/common-translations.js';export default class St extends _0x12966e{static get[_0x378e('0xe')](){return[_0x46b4c8];}[_0x378e('0x41')](){const _0x5db4f8=this[_0x378e('0x0')];if(!_0x5db4f8['plugins']['has'](_0x378e('0x22')))return;const _0x2e8518=_0x5db4f8['locale'],_0x37d0a3=_0x5db4f8[_0x378e('0x3b')][_0x378e('0x33')]('TrackChangesEditing');_0x37d0a3[_0x378e('0x2c')](_0x378e('0x15'),[],[_0x378e('0x1')]),_0x37d0a3[_0x378e('0x2c')]('setTableColumnHeader',[],[_0x378e('0x3e')]),_0x37d0a3['_descriptionFactory'][_0x378e('0x36')](_0x378e('0x1'),_0x2b320e(_0x2e8518,_0x378e('0x32'))),_0x37d0a3[_0x378e('0x37')][_0x378e('0x36')](_0x378e('0x3e'),_0x2b320e(_0x2e8518,_0x378e('0x1c'))),this[_0x378e('0x1f')]();}[_0x378e('0x1f')](){const _0x2f9fab=this[_0x378e('0x0')][_0x378e('0x3b')]['get'](_0x378e('0x18')),_0x5a6fb7=this[_0x378e('0x0')][_0x378e('0x3b')][_0x378e('0x33')](_0x378e('0x1e')),_0x13e986=this[_0x378e('0x0')]['plugins'][_0x378e('0x33')](_0x46b4c8)[_0x378e('0x35')]();function _0x43fbc2({showActiveMarker:_0x363f51=!0x0,setDataAttribute:_0x21785b=!0x0}={}){return(_0xca64ad,_0x30f33b,_0x500cd9)=>{const {type:_0x29b7a8,id:_0x5e9f4a}=_0x2f9fab[_0x378e('0x16')](_0x30f33b[_0x378e('0x2b')]),_0x179952=_0x2f9fab[_0x378e('0x3c')](_0x5e9f4a),_0xc635d6=_0x179952[_0x378e('0x1a')];if('formatBlock'!=_0x179952[_0x378e('0x3d')]||!_0xc635d6||_0x378e('0x39')!=_0xc635d6['commandName'])return;if(_0x30f33b['item'])return void _0xca64ad['stop']();if(!_0x500cd9[_0x378e('0x29')][_0x378e('0x28')](_0x30f33b[_0x378e('0x26')],_0xca64ad[_0x378e('0x34')]))return;const _0x5de797=_0x30f33b['markerRange'][_0x378e('0x2')][_0x378e('0x7')],_0x38b86d=_0x30f33b[_0x378e('0x26')][_0x378e('0x13')][_0x378e('0xd')],_0x4d0afe=_0x5de797['parent'][_0x378e('0x2f')],{column:_0xed6669}=_0x5a6fb7[_0x378e('0x20')](_0x5de797),{column:_0x1cf054}=_0x5a6fb7[_0x378e('0x20')](_0x38b86d);for(let _0x55912d=_0xed6669;_0x55912d<=_0x1cf054;_0x55912d++){const _0x1c1a5b=_0x5a6fb7['createTableWalker'](_0x4d0afe,{'column':_0x55912d,'includeAllSlots':!0x1});for(const _0x50c894 of _0x1c1a5b){const _0x150aa6=_0x50c894['cell'],_0x1999d1=_0x500cd9[_0x378e('0x6')]['toViewElement'](_0x150aa6);_0x500cd9[_0x378e('0x24')][_0x378e('0x23')]('ck-suggestion-marker-'+_0x29b7a8,_0x1999d1),_0x21785b&&_0x500cd9[_0x378e('0x24')][_0x378e('0xc')](_0x378e('0xb'),_0x5e9f4a,_0x1999d1),_0x500cd9[_0x378e('0x6')][_0x378e('0x19')](_0x1999d1,_0x30f33b['markerName']),_0x363f51&&(_0x2f9fab['activeMarkers'][_0x378e('0x14')](_0x30f33b[_0x378e('0x2b')])?_0x500cd9[_0x378e('0x24')][_0x378e('0x23')](_0x378e('0x11'),_0x1999d1):_0x500cd9[_0x378e('0x24')][_0x378e('0x1d')](_0x378e('0x11'),_0x1999d1));}}};}_0x2f9fab[_0x378e('0x5')][_0x378e('0x8')]('formatBlock',_0x378e('0x15'),_0x378e('0xa'),_0x13e986),_0x2f9fab[_0x378e('0x5')][_0x378e('0x8')]('formatBlock','setTableColumnHeader',_0x378e('0xa'),_0x13e986),this['editor'][_0x378e('0x10')][_0x378e('0x40')]['on'](_0x378e('0x1b'),_0x43fbc2(),{'priority':'highest'}),this[_0x378e('0x0')][_0x378e('0x1a')][_0x378e('0x40')]['on'](_0x378e('0x1b'),(_0x4bb4bc,_0x18024f,_0x3333fe)=>{_0x3333fe['options'][_0x378e('0x2a')]&&_0x43fbc2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4bb4bc,_0x18024f,_0x3333fe);},{'priority':_0x378e('0x3f')}),this[_0x378e('0x0')][_0x378e('0x10')][_0x378e('0x40')]['on'](_0x378e('0x2d'),(_0x1be3ed,_0x16e911,_0x178047)=>{const {type:_0x17770f,id:_0x1ce1d3}=_0x2f9fab[_0x378e('0x16')](_0x16e911[_0x378e('0x2b')]),_0x4433df=_0x2f9fab['getSuggestion'](_0x1ce1d3),_0x2af449=_0x4433df[_0x378e('0x1a')];if('formatBlock'!=_0x4433df[_0x378e('0x3d')]||!_0x2af449||_0x378e('0x39')!=_0x2af449[_0x378e('0x4')])return;const _0x5b24fc=_0x178047[_0x378e('0x6')][_0x378e('0x2e')](_0x16e911[_0x378e('0x2b')]);if(_0x5b24fc)for(const _0x24ab48 of _0x5b24fc)_0x178047[_0x378e('0x24')][_0x378e('0x1d')](_0x378e('0x21')+_0x17770f,_0x24ab48),_0x178047[_0x378e('0x24')][_0x378e('0x1d')](_0x378e('0x11'),_0x24ab48),_0x178047['writer'][_0x378e('0x9')](_0x378e('0xb'),_0x24ab48),_0x178047[_0x378e('0x6')][_0x378e('0x42')](_0x24ab48,_0x16e911['markerName']);},{'priority':_0x378e('0x3f')}),this[_0x378e('0x25')]();}[_0x378e('0x25')](){const _0x2b2a86=this['editor'],_0x1b9378=_0x2b2a86[_0x378e('0x17')];function _0x1fa1f5(_0x2623a6){return{'type':_0x378e('0x38'),'content':_0x2b320e(_0x1b9378,_0x378e('0x12'),_0x2623a6)};}_0x2b2a86['plugins'][_0x378e('0x33')](_0x378e('0x18'))[_0x378e('0x37')][_0x378e('0x3')](_0x39fef9=>{if(_0x378e('0x31')!=_0x39fef9[_0x378e('0x3d')])return;const {data:_0xb17c01}=_0x39fef9;if(_0xb17c01){if(_0x378e('0x15')==_0xb17c01[_0x378e('0x4')]){const _0x325889=_0xb17c01['commandParams'][0x0][_0x378e('0xf')];return _0x1fa1f5(_0x2b320e(_0x1b9378,_0x325889?_0x378e('0x32'):_0x378e('0x30')));}if(_0x378e('0x39')==_0xb17c01['commandName']){const _0x44db95=_0xb17c01[_0x378e('0x27')][0x0][_0x378e('0xf')];return _0x1fa1f5(_0x2b320e(_0x1b9378,_0x44db95?_0x378e('0x1c'):_0x378e('0x3a')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28ca=['find','formatInline','mergeTableCellRight','_isForcedDefaultExecutionBlock','setSelection','isEnabled','getAncestors','locale','getCellLocation','push','stop','execute','containsRange','direction','TableUtils','commands','TableEditing','type','accept','_areSelectedCellsMergable','mergeTableCells','getSelectionAffectedTableCells','forceDefaultExecution','createTableWalker','_areMergableCells','insertion','element','from','enableCommand','author','mergeTableCellUp','selection','createRangeOn','afterInit','isInContent','plugins','registerDescriptionCallback','highest','size','$graveyard','_suggestionFactory','cell','format','add','has','_tablePostFixingSubtypes','low','map','*Split\x20cell:*\x20horizontally','requires','return','formatBlock','_acceptFormatSuggestionCallbackFactory','value','model','deletion','document','mergeTableCellDown','*Split\x20cell:*\x20vertically','splitTableCellHorizontally','*Merge\x20cells*','trackChanges','get','getFirstPosition','commandName','mergeTableCellLeft','change','editor','registerCustomCallback','splitTableCellVertically','markMultiRangeBlockFormat','markBlockFormat','length','table','_descriptionFactory'];(function(_0x5f4c84,_0x28ca31){const _0x5e4c37=function(_0x15d585){while(--_0x15d585){_0x5f4c84['push'](_0x5f4c84['shift']());}};_0x5e4c37(++_0x28ca31);}(_0x28ca,0x1f4));const _0x5e4c=function(_0x5f4c84,_0x28ca31){_0x5f4c84=_0x5f4c84-0x0;let _0x5e4c37=_0x28ca[_0x5f4c84];return _0x5e4c37;};import{Plugin as _0x3b0e6a}from'ckeditor5/src/core.js';import _0x3e79b3 from'./table.js';import{LiveRange as _0xb11c01}from'ckeditor5/src/engine.js';import{getTranslation as _0x3bc2e8}from'../utils/common-translations.js';export default class jt extends _0x3b0e6a{static get[_0x5e4c('0x4a')](){return[_0x3e79b3];}[_0x5e4c('0x3a')](){const _0x2d4aa6=this['editor'],_0x27a2db=_0x2d4aa6[_0x5e4c('0x4')][_0x5e4c('0x6')][_0x5e4c('0x38')],_0x1a1df1=_0x2d4aa6[_0x5e4c('0x20')];if(!_0x2d4aa6['plugins']['has'](_0x5e4c('0x29')))return;const _0x270af1=_0x2d4aa6[_0x5e4c('0x3c')][_0x5e4c('0xc')]('TrackChangesEditing'),_0x170f2f=_0x2d4aa6['plugins'][_0x5e4c('0xc')](_0x5e4c('0x27')),_0x49c08c=_0x2d4aa6[_0x5e4c('0x3c')][_0x5e4c('0xc')](_0x3e79b3);_0x49c08c[_0x5e4c('0x46')][_0x5e4c('0x22')](_0x5e4c('0x2d')),_0x270af1[_0x5e4c('0x35')](_0x5e4c('0x2d'),()=>{const _0x3d95c8=_0x170f2f[_0x5e4c('0x2e')](_0x2d4aa6[_0x5e4c('0x4')][_0x5e4c('0x6')][_0x5e4c('0x38')]);_0x2d4aa6['model']['change'](()=>{_0x270af1[_0x5e4c('0x14')](_0x3d95c8,{'commandName':_0x5e4c('0x2d'),'commandParams':[]},[],_0x5e4c('0x2d'));});}),_0x2d4aa6[_0x5e4c('0x28')][_0x5e4c('0xc')](_0x5e4c('0x2d'))['on'](_0x5e4c('0x24'),(_0xafd9c3,_0x323c43)=>{_0x2d4aa6[_0x5e4c('0x28')][_0x5e4c('0xc')](_0x5e4c('0xb'))[_0x5e4c('0x3')]&&(_0x323c43[_0x5e4c('0x16')]>0x0&&_0x323c43[_0x323c43[_0x5e4c('0x16')]-0x1]&&_0x323c43[_0x323c43[_0x5e4c('0x16')]-0x1][_0x5e4c('0x2f')]||_0x270af1[_0x5e4c('0x1c')]||this[_0x5e4c('0x2c')]()||_0xafd9c3['stop']());},{'priority':_0x5e4c('0x3e')});for(const _0xfa6317 of[_0x5e4c('0x37'),_0x5e4c('0x1b'),_0x5e4c('0x7'),'mergeTableCellLeft']){const _0x10af5f=_0x2d4aa6[_0x5e4c('0x28')][_0x5e4c('0xc')](_0xfa6317);_0x270af1[_0x5e4c('0x35')](_0xfa6317,()=>{const _0x2d3967=_0x2d4aa6['model'][_0x5e4c('0x6')][_0x5e4c('0x38')][_0x5e4c('0xd')]()[_0x5e4c('0x1f')]()[_0x5e4c('0x19')](_0x3034b9=>_0x3034b9['is'](_0x5e4c('0x33'),'tableCell')),_0x598229=_0x10af5f[_0x5e4c('0x3')];_0x2d4aa6[_0x5e4c('0x4')][_0x5e4c('0x10')](()=>{_0x270af1[_0x5e4c('0x14')]([_0x2d3967,_0x598229],{'commandName':'mergeTableCells','commandParams':[]},[],_0x5e4c('0x2d'));});});}for(const _0x3392e6 of[_0x5e4c('0x13'),_0x5e4c('0x9')]){const _0x337e9f=_0x2d4aa6[_0x5e4c('0x28')][_0x5e4c('0xc')](_0x3392e6);_0x270af1[_0x5e4c('0x35')](_0x3392e6,()=>{const _0x3205c7=_0x170f2f[_0x5e4c('0x2e')](_0x2d4aa6[_0x5e4c('0x4')][_0x5e4c('0x6')][_0x5e4c('0x38')])[0x0],_0x49c5c3=_0x3205c7['findAncestor'](_0x5e4c('0x17')),{column:_0x229de0,row:_0x345762}=_0x170f2f[_0x5e4c('0x21')](_0x3205c7);let _0x467810=[];if('horizontally'==_0x337e9f[_0x5e4c('0x26')]){const _0x453f4c=_0x170f2f[_0x5e4c('0x30')](_0x49c5c3,{'startRow':_0x345762,'endRow':_0x345762,'includeAllSlots':!0x0});_0x467810=Array[_0x5e4c('0x34')](_0x453f4c)[_0x5e4c('0x48')](_0x2ef50c=>_0x2ef50c[_0x5e4c('0x42')]);}else{const _0x3eb9be=_0x170f2f[_0x5e4c('0x30')](_0x49c5c3,{'column':_0x229de0,'includeAllSlots':!0x0});_0x467810=Array[_0x5e4c('0x34')](_0x3eb9be)['map'](_0x34aa93=>_0x34aa93[_0x5e4c('0x42')]);}_0x2d4aa6[_0x5e4c('0x4')][_0x5e4c('0x10')](_0x29c996=>{_0x270af1[_0x5e4c('0x15')](_0x29c996[_0x5e4c('0x39')](_0x3205c7),{'commandName':_0x3392e6,'commandParams':[]},_0x467810,_0x3392e6);});});}_0x270af1[_0x5e4c('0x18')][_0x5e4c('0x3d')](_0x2be705=>{if('formatBlock'!=_0x2be705[_0x5e4c('0x2a')]&&_0x5e4c('0x1a')!=_0x2be705[_0x5e4c('0x2a')])return;const {data:_0x264a0e}=_0x2be705;return _0x264a0e&&_0x5e4c('0x2d')==_0x264a0e[_0x5e4c('0xe')]?{'type':_0x5e4c('0x43'),'content':_0x3bc2e8(_0x1a1df1,_0x5e4c('0xa'))}:void 0x0;}),_0x270af1[_0x5e4c('0x18')][_0x5e4c('0x3d')](_0x440d77=>{if(_0x5e4c('0x1')!=_0x440d77[_0x5e4c('0x2a')]&&_0x5e4c('0x1a')!=_0x440d77[_0x5e4c('0x2a')])return;const {data:_0x24d731}=_0x440d77;return _0x24d731?_0x5e4c('0x13')==_0x24d731[_0x5e4c('0xe')]?{'type':_0x5e4c('0x43'),'content':_0x3bc2e8(_0x1a1df1,_0x5e4c('0x8'))}:_0x5e4c('0x9')==_0x24d731['commandName']?{'type':_0x5e4c('0x43'),'content':_0x3bc2e8(_0x1a1df1,_0x5e4c('0x49'))}:void 0x0:void 0x0;});const _0x261f07=_0x49c08c[_0x5e4c('0x2')]();for(const _0x57e785 of[_0x5e4c('0x37'),_0x5e4c('0x1b'),'mergeTableCellDown',_0x5e4c('0xf')])_0x270af1[_0x5e4c('0x41')][_0x5e4c('0x12')](_0x5e4c('0x1'),_0x57e785,_0x5e4c('0x2b'),_0x261f07);for(const _0x2121b1 of[_0x5e4c('0x13'),'splitTableCellHorizontally'])_0x270af1['_suggestionFactory'][_0x5e4c('0x12')](_0x5e4c('0x1'),_0x2121b1,_0x5e4c('0x2b'),_0x261f07);_0x270af1[_0x5e4c('0x41')][_0x5e4c('0x12')](_0x5e4c('0x1'),_0x5e4c('0x2d'),_0x5e4c('0x2b'),_0x7b8624=>{_0x2d4aa6[_0x5e4c('0x4')]['change'](_0x220af9=>{const _0x2c5e7f=Array['from'](_0x27a2db['getRanges']())['map'](_0x47de32=>_0xb11c01['fromRange'](_0x47de32));_0x220af9[_0x5e4c('0x1d')](_0x7b8624),_0x2d4aa6[_0x5e4c('0x28')]['get'](_0x5e4c('0x2d'))['refresh'](),_0x2d4aa6['execute'](_0x5e4c('0x2d'),{'forceDefaultExecution':!0x0});const _0x4f596b=_0x2c5e7f['filter'](_0x47d2eb=>_0x5e4c('0x40')!=_0x47d2eb['root']['rootName']);_0x4f596b[_0x5e4c('0x16')]>0x0&&_0x220af9[_0x5e4c('0x1d')](_0x4f596b);for(const _0xbb2a9b of _0x2c5e7f)_0xbb2a9b['detach']();});});for(const _0x5e58cc of['mergeTableCellUp','mergeTableCellDown',_0x5e4c('0xf'),'mergeTableCellRight']){const _0x1b78f3=_0x2d4aa6[_0x5e4c('0x28')][_0x5e4c('0xc')](_0x5e58cc);_0x1b78f3['on']('set:isEnabled',(_0x3eecbf,_0x4980d0,_0x2b6f0a)=>{if(_0x2b6f0a){const _0x18833a=_0x2d4aa6['model'][_0x5e4c('0x6')]['selection'][_0x5e4c('0xd')]()['getAncestors']()[_0x5e4c('0x19')](_0x1a521b=>_0x1a521b['is'](_0x5e4c('0x33'),'tableCell'));this['_areMergableCells'](_0x1b78f3[_0x5e4c('0x3')],_0x18833a)||(_0x3eecbf[_0x5e4c('0x0')]=!0x1,_0x3eecbf[_0x5e4c('0x23')]());}},{'priority':_0x5e4c('0x47')});}}['_areSelectedCellsMergable'](){const _0x22e30c=this[_0x5e4c('0x11')]['commands'][_0x5e4c('0xc')](_0x5e4c('0x2d')),_0x11bee8=this[_0x5e4c('0x11')][_0x5e4c('0x3c')][_0x5e4c('0xc')](_0x5e4c('0x27'));if(!_0x22e30c[_0x5e4c('0x1e')])return!0x1;const _0x533b81=_0x11bee8[_0x5e4c('0x2e')](this[_0x5e4c('0x11')]['model'][_0x5e4c('0x6')]['selection']);for(const _0x3196f8 of _0x533b81)for(const _0x4c06f7 of _0x533b81)if(_0x3196f8!=_0x4c06f7&&!this[_0x5e4c('0x31')](_0x3196f8,_0x4c06f7))return!0x1;return!0x0;}[_0x5e4c('0x31')](_0x2dbefd,_0x96c87c){const _0x455cba=this[_0x5e4c('0x11')][_0x5e4c('0x3c')][_0x5e4c('0xc')]('TrackChangesEditing'),_0x2b713a=this['editor'][_0x5e4c('0x4')][_0x5e4c('0x39')](_0x2dbefd),_0x5d5701=this['editor'][_0x5e4c('0x4')]['createRangeOn'](_0x96c87c),_0x414c27=new Set(),_0x2e9eff=new Set();for(const _0x48d1aa of _0x455cba['getSuggestions']())if((_0x5e4c('0x32')==_0x48d1aa[_0x5e4c('0x2a')]||_0x5e4c('0x5')==_0x48d1aa[_0x5e4c('0x2a')]||_0x5e4c('0x2d')==_0x48d1aa['subType'])&&_0x48d1aa[_0x5e4c('0x3b')])for(const _0x4f2bac of _0x48d1aa['getRanges']())_0x4f2bac[_0x5e4c('0x25')](_0x2b713a,!0x0)&&_0x414c27[_0x5e4c('0x44')](_0x48d1aa[_0x5e4c('0x2a')]+':'+_0x48d1aa[_0x5e4c('0x36')]['id']),_0x4f2bac[_0x5e4c('0x25')](_0x5d5701,!0x0)&&_0x2e9eff[_0x5e4c('0x44')](_0x48d1aa['type']+':'+_0x48d1aa[_0x5e4c('0x36')]['id']);if(_0x414c27['size']!=_0x2e9eff[_0x5e4c('0x3f')])return!0x1;for(const _0x26585a of _0x414c27)if(!_0x2e9eff[_0x5e4c('0x45')](_0x26585a))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b91=['locale','tableOfContents','registerElementLabel','editor','get','_descriptionFactory','TrackChangesEditing','insertTableOfContents','enableCommand','plugins','commands','afterInit'];(function(_0x10cd21,_0x2b91e2){const _0x1d9895=function(_0x9f301e){while(--_0x9f301e){_0x10cd21['push'](_0x10cd21['shift']());}};_0x1d9895(++_0x2b91e2);}(_0x2b91,0xaa));const _0x1d98=function(_0x10cd21,_0x2b91e2){_0x10cd21=_0x10cd21-0x0;let _0x1d9895=_0x2b91[_0x10cd21];return _0x1d9895;};import{Plugin as _0x4b72eb}from'ckeditor5/src/core.js';import{getTranslation as _0xd9feca}from'../utils/common-translations.js';export default class _t extends _0x4b72eb{[_0x1d98('0x9')](){const _0x1440c7=this[_0x1d98('0x1')];if(!_0x1440c7[_0x1d98('0x8')][_0x1d98('0x2')]('insertTableOfContents'))return;_0x1440c7['plugins'][_0x1d98('0x2')](_0x1d98('0x4'))[_0x1d98('0x6')](_0x1d98('0x5'));const _0x323981=_0x1440c7[_0x1d98('0x7')][_0x1d98('0x2')]('TrackChangesEditing'),_0x237170=_0x1440c7[_0x1d98('0xa')];_0x323981[_0x1d98('0x3')][_0x1d98('0x0')](_0x1d98('0xb'),_0x529e41=>_0xd9feca(_0x237170,'ELEMENT_TABLE_OF_CONTENTS',_0x529e41));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb494=['setAttribute','_suggestionFactory','pluginName','enqueueChange','TablePropertiesEditing','get','subType','has','findAncestor','tableBorderColor','model','getAttribute','tableBackgroundColor','batch','tableCellPadding','tableCellProperties','tableCellWidth','handleDiscardAction','plugins','formatBlock','tableBorderStyle','commandParams','locale','TrackChangesTableProperties','registerDescriptionCallback','getSelectionAffectedTableCells','accept','tableCellHorizontalAlignment','markBlockFormat','handleSuggestionDescription','format','selection','tableCellBackgroundColor','document','getSuggestionCallback','tableHeight','change','tableCellBorderWidth','_descriptionFactory','editor','TableUtils','getContainedElement','TrackChangesEditing','*Format:*\x20change\x20table\x20properties','registerCustomCallback','removeAttribute','enableCommand','afterInit','getFirstPosition','tableWidth','tableAlignment','join','discard','_getSuggestion','_handlePropertyChange','tableProperties','tableCellBorderColor','*Format:*\x20change\x20table\x20cell\x20properties','data'];(function(_0x3c85d4,_0xb494dd){const _0x184c9c=function(_0x209cfd){while(--_0x209cfd){_0x3c85d4['push'](_0x3c85d4['shift']());}};_0x184c9c(++_0xb494dd);}(_0xb494,0x162));const _0x184c=function(_0x3c85d4,_0xb494dd){_0x3c85d4=_0x3c85d4-0x0;let _0x184c9c=_0xb494[_0x3c85d4];return _0x184c9c;};import{Plugin as _0x43b043}from'ckeditor5/src/core.js';import{getTranslation as _0x47283f}from'../utils/common-translations.js';export default class Mt extends _0x43b043{constructor(_0x43b3c4){super(_0x43b3c4),this[_0x184c('0x37')]=[_0x184c('0x9'),_0x184c('0x14'),'tableBorderWidth',_0x184c('0x32'),_0x184c('0x31'),_0x184c('0x23'),_0x184c('0xc')],this[_0x184c('0xf')]=[_0x184c('0x38'),'tableCellBorderStyle',_0x184c('0x25'),_0x184c('0xe'),_0x184c('0x10'),'tableCellHeight',_0x184c('0x20'),_0x184c('0x1b'),'tableCellVerticalAlignment'];}static get[_0x184c('0x2')](){return _0x184c('0x17');}[_0x184c('0x2f')](){const _0x273e8b=this[_0x184c('0x27')][_0x184c('0x12')][_0x184c('0x5')](_0x184c('0x2a'));if(this[_0x184c('0x27')][_0x184c('0x12')]['has'](_0x184c('0x4'))){for(const _0x3a37ee of this['tableProperties'])_0x273e8b[_0x184c('0x2e')](_0x3a37ee,(_0x5d3c5d,_0x4b3204)=>{const _0x340e73=this[_0x184c('0x27')]['model'][_0x184c('0x21')][_0x184c('0x1f')][_0x184c('0x30')]()[_0x184c('0x8')]('table');this[_0x184c('0x36')](_0x3a37ee,[_0x340e73],this[_0x184c('0x37')],'tableProperties',_0x5d3c5d,_0x4b3204);});_0x273e8b[_0x184c('0x1')][_0x184c('0x2c')](_0x184c('0x13'),_0x184c('0x37'),_0x184c('0x1a'),_0x273e8b[_0x184c('0x1')][_0x184c('0x22')]('formatBlock',null,_0x184c('0x34'))),_0x273e8b[_0x184c('0x1')][_0x184c('0x2c')]('formatBlock','tableProperties',_0x184c('0x34'),(_0x283f44,_0x3b61a5)=>this[_0x184c('0x11')](this['tableProperties'],_0x283f44,_0x3b61a5)),_0x273e8b[_0x184c('0x1')][_0x184c('0x2c')](_0x184c('0x13'),_0x184c('0x37'),'join',()=>!0x1);}if(this[_0x184c('0x27')][_0x184c('0x12')][_0x184c('0x7')]('TableCellPropertiesEditing')){for(const _0x109bab of this['tableCellProperties'])_0x273e8b['enableCommand'](_0x109bab,(_0x5bb17f,_0x4b71a7)=>{const _0x237ea9=this[_0x184c('0x27')]['plugins'][_0x184c('0x5')](_0x184c('0x28'))[_0x184c('0x19')](this[_0x184c('0x27')]['model'][_0x184c('0x21')][_0x184c('0x1f')]);this[_0x184c('0x36')](_0x109bab,_0x237ea9,this[_0x184c('0xf')],'tableCellProperties',_0x5bb17f,_0x4b71a7);});_0x273e8b[_0x184c('0x1')][_0x184c('0x2c')](_0x184c('0x13'),_0x184c('0xf'),'accept',_0x273e8b[_0x184c('0x1')][_0x184c('0x22')](_0x184c('0x13'),null,_0x184c('0x34'))),_0x273e8b[_0x184c('0x1')]['registerCustomCallback'](_0x184c('0x13'),_0x184c('0xf'),_0x184c('0x34'),(_0x5a7ff3,_0x50f1a9)=>this[_0x184c('0x11')](this[_0x184c('0xf')],_0x5a7ff3,_0x50f1a9)),_0x273e8b[_0x184c('0x1')]['registerCustomCallback'](_0x184c('0x13'),_0x184c('0xf'),_0x184c('0x33'),()=>!0x1);}_0x273e8b[_0x184c('0x26')][_0x184c('0x18')](_0x461d64=>this[_0x184c('0x1d')](_0x461d64));}['_handlePropertyChange'](_0x2d403e,_0xce3136,_0x493e0f,_0x2e87d5,_0x5cc9eb,_0x6b46c3){const _0x3bfa41=this[_0x184c('0x27')]['plugins'][_0x184c('0x5')](_0x184c('0x2a'));this[_0x184c('0x27')][_0x184c('0xa')][_0x184c('0x3')](_0x6b46c3[_0x184c('0xd')],()=>{for(const _0x44c76d of _0xce3136){if(this[_0x184c('0x35')](_0x44c76d,_0x2e87d5))_0x5cc9eb(_0x6b46c3);else{const _0x240095={};for(const _0x36c49b of _0x493e0f){const _0x46b17e=_0x44c76d[_0x184c('0xb')](_0x36c49b);void 0x0!==_0x46b17e&&(_0x240095[_0x36c49b]=_0x46b17e);}_0x5cc9eb(_0x6b46c3),_0x3bfa41[_0x184c('0x1c')](_0x44c76d,{'commandParams':[_0x240095]},[],_0x2e87d5);}}});}[_0x184c('0x11')](_0x57f744,_0x1a5582,_0x3c3256){const _0x4ae88e=_0x1a5582[0x0]['start']['nodeAfter'],_0x3907ee=_0x3c3256[_0x184c('0x15')][0x0];this[_0x184c('0x27')][_0x184c('0xa')][_0x184c('0x24')](_0x2c5892=>{for(const _0x4256b7 of _0x57f744)void 0x0!==_0x3907ee[_0x4256b7]?_0x2c5892[_0x184c('0x0')](_0x4256b7,_0x3907ee[_0x4256b7],_0x4ae88e):_0x2c5892[_0x184c('0x2d')](_0x4256b7,_0x4ae88e);});}[_0x184c('0x1d')](_0x5b573b){if(_0x5b573b[_0x184c('0x3a')])switch(_0x5b573b[_0x184c('0x6')]){case _0x184c('0x37'):return{'type':_0x184c('0x1e'),'content':_0x47283f(this[_0x184c('0x27')][_0x184c('0x16')],_0x184c('0x2b'))};case'tableCellProperties':return{'type':'format','content':_0x47283f(this[_0x184c('0x27')]['locale'],_0x184c('0x39'))};}}[_0x184c('0x35')](_0x1e8893,_0x43d198){const _0x20bf9c=this[_0x184c('0x27')][_0x184c('0x12')][_0x184c('0x5')](_0x184c('0x2a'));for(const _0x2bb6da of _0x20bf9c['getSuggestions']({'skipNotAttached':!0x0})){const _0x105b32=_0x2bb6da[_0x184c('0x29')]();if(_0x2bb6da[_0x184c('0x6')]===_0x43d198&&_0x105b32===_0x1e8893)return _0x2bb6da;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x124d=['afterInit','plugins','TrackChangesEditing','insertTemplate','has','get','editor','Template'];(function(_0x3473fe,_0x124d38){const _0x2e8f66=function(_0x20c579){while(--_0x20c579){_0x3473fe['push'](_0x3473fe['shift']());}};_0x2e8f66(++_0x124d38);}(_0x124d,0x140));const _0x2e8f=function(_0x3473fe,_0x124d38){_0x3473fe=_0x3473fe-0x0;let _0x2e8f66=_0x124d[_0x3473fe];return _0x2e8f66;};import{Plugin as _0x1988a8}from'ckeditor5/src/core.js';export default class vt extends _0x1988a8{[_0x2e8f('0x0')](){const _0x3f2fbb=this[_0x2e8f('0x6')];_0x3f2fbb[_0x2e8f('0x1')][_0x2e8f('0x4')](_0x2e8f('0x7'))&&_0x3f2fbb[_0x2e8f('0x1')][_0x2e8f('0x5')](_0x2e8f('0x2'))['enableCommand'](_0x2e8f('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e21=['from','isCollapsed','suggestion','document','updateMarker','_splitMarkerName','end','newRange','title-content','isEqual','getNearestSelectionRange','Title','plugins','afterInit','get','forward','ELEMENT_TITLE','locale','start','element','getChangedMarkers','TrackChangesEditing','registerPostFixer','createRange','model','nodeBefore','has'];(function(_0x2f2dad,_0x5e21b4){const _0x5233a2=function(_0x506e32){while(--_0x506e32){_0x2f2dad['push'](_0x2f2dad['shift']());}};_0x5233a2(++_0x5e21b4);}(_0x5e21,0x12a));const _0x5233=function(_0x2f2dad,_0x5e21b4){_0x2f2dad=_0x2f2dad-0x0;let _0x5233a2=_0x5e21[_0x2f2dad];return _0x5233a2;};import{Plugin as _0x1d8460}from'ckeditor5/src/core.js';import{getTranslation as _0x1cc390}from'../utils/common-translations.js';export default class Ct extends _0x1d8460{[_0x5233('0xc')](){const _0x4bfda3=this['editor'];if(!_0x4bfda3['plugins'][_0x5233('0x19')](_0x5233('0xa')))return;const _0x37e0ff=_0x4bfda3[_0x5233('0xb')][_0x5233('0xd')](_0x5233('0x14'));_0x37e0ff['_descriptionFactory']['registerElementLabel']('title-content',()=>_0x1cc390(_0x4bfda3[_0x5233('0x10')],_0x5233('0xf'))),_0x4bfda3[_0x5233('0x17')][_0x5233('0x2')][_0x5233('0x15')](_0x3e987c=>{let _0xe8eecc=!0x1;const _0x59d24e=Array[_0x5233('0x1a')](_0x4bfda3[_0x5233('0x17')][_0x5233('0x2')]['differ'][_0x5233('0x13')]());for(const {name:_0x88c24c,data:_0x188d1f}of _0x59d24e){const {group:_0x25a4ab}=_0x37e0ff[_0x5233('0x4')](_0x88c24c);if(_0x5233('0x1')!==_0x25a4ab||!_0x188d1f['newRange'])continue;const _0x2fb428=_0x188d1f[_0x5233('0x6')],_0x626b4f=_0x2fb428[_0x5233('0x5')][_0x5233('0x18')];if(!_0x626b4f||!_0x626b4f['is'](_0x5233('0x12'),_0x5233('0x7')))continue;if(!_0x2fb428[_0x5233('0x11')]['isTouching'](_0x2fb428[_0x5233('0x5')]))continue;const _0x1eb4ad=_0x4bfda3[_0x5233('0x17')]['schema'][_0x5233('0x9')](_0x2fb428[_0x5233('0x5')],_0x5233('0xe'));if(_0x1eb4ad&&_0x1eb4ad[_0x5233('0x0')]){const _0x461f01=_0x3e987c[_0x5233('0x16')](_0x2fb428[_0x5233('0x11')],_0x1eb4ad[_0x5233('0x11')]);_0x461f01[_0x5233('0x8')](_0x2fb428)||(_0x3e987c[_0x5233('0x3')](_0x88c24c,{'range':_0x461f01}),_0xe8eecc=!0x0);}_0xe8eecc||(_0x3e987c['removeMarker'](_0x88c24c),_0xe8eecc=!0x0);}return _0xe8eecc;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ead=['get','plugins','editor','has','afterInit','enableCommand','redo','TrackChangesEditing'];(function(_0x33ce27,_0x1ead4e){const _0x1638b7=function(_0x255da7){while(--_0x255da7){_0x33ce27['push'](_0x33ce27['shift']());}};_0x1638b7(++_0x1ead4e);}(_0x1ead,0x13d));const _0x1638=function(_0x33ce27,_0x1ead4e){_0x33ce27=_0x33ce27-0x0;let _0x1638b7=_0x1ead[_0x33ce27];return _0x1638b7;};import{Plugin as _0x27a156}from'ckeditor5/src/core.js';export default class Dt extends _0x27a156{[_0x1638('0x7')](){const _0x61f2e5=this[_0x1638('0x5')],_0x46091f=_0x61f2e5[_0x1638('0x4')][_0x1638('0x3')](_0x1638('0x2'));_0x61f2e5[_0x1638('0x4')][_0x1638('0x6')]('UndoEditing')&&(_0x46091f[_0x1638('0x0')]('undo'),_0x46091f[_0x1638('0x0')](_0x1638('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29e9=['elementEnd','previousPosition','item','nextSibling','listItem','element','getItems','model','addHighlight','activeMarkers','name','TrackChangesEditing','push','get','hasAttribute','isAtEnd','createRangeOn','createUIElement','isLimit','test','mapper','markerName','isContent','writer','includes','insert','schema','consumable','toViewElement','bindElementToMarker','markerRange','plugins','listIndent'];(function(_0xe668ad,_0x29e9e8){const _0x366096=function(_0x3f12cf){while(--_0x3f12cf){_0xe668ad['push'](_0xe668ad['shift']());}};_0x366096(++_0x29e9e8);}(_0x29e9,0xa0));const _0x3660=function(_0xe668ad,_0x29e9e8){_0xe668ad=_0xe668ad-0x0;let _0x366096=_0x29e9[_0xe668ad];return _0x366096;};export function getRangesWithAttribute(_0x28d2c9,_0x4d2b01,_0xbaea90){const _0x410bb7=[];for(const _0x1c2d16 of _0x4d2b01[_0x3660('0xb')]())_0x1c2d16[_0x3660('0x13')](_0x28d2c9)&&_0x410bb7[_0x3660('0x11')](_0xbaea90[_0x3660('0x15')](_0x1c2d16));return _0x410bb7;}export function getElementsAffectedByListItemRename(_0x656c6e){const _0x344fc1=[];if(_0x656c6e['is'](_0x3660('0xa'),_0x3660('0x9'))){let _0x25b8fd=_0x656c6e[_0x3660('0x8')];for(;_0x25b8fd&&_0x25b8fd['is'](_0x3660('0xa'),_0x3660('0x9'))&&_0x25b8fd['getAttribute'](_0x3660('0x4'))>0x0;)_0x344fc1[_0x3660('0x11')](_0x25b8fd),_0x25b8fd=_0x25b8fd['nextSibling'];}return _0x344fc1;}export function downcastSplitMergeMarker(_0x3221f6,_0x54a8e1,{showActiveMarker:_0x53f9e2=!0x0}={}){const _0x1f4ecf=_0x3221f6[_0x3660('0x3')][_0x3660('0x12')](_0x3660('0x10'));return(_0x33e84a,_0x807fdf,_0x56e8bc)=>{if(!_0x56e8bc[_0x3660('0x20')][_0x3660('0x18')](_0x807fdf[_0x3660('0x2')],_0x33e84a[_0x3660('0xf')]))return;const _0x528d02=_0x807fdf[_0x3660('0x2')]['getWalker'](),_0x52e3a6=_0x807fdf['markerRange']['start'],_0x36a079=_0x3221f6[_0x3660('0xc')][_0x3660('0x1f')];let _0x5a6ea1=null,_0x26b64b=null,_0x46e0bf=!0x1,_0x5d2501=!0x1;for(const _0x33ff17 of _0x528d02){const _0x3c2d10=_0x33ff17[_0x3660('0x7')];_0x46e0bf=_0x46e0bf||_0x36a079[_0x3660('0x1b')](_0x3c2d10);const _0x29491d=_0x56e8bc[_0x3660('0x19')][_0x3660('0x0')](_0x3c2d10);if(_0x29491d&&_0x29491d['getCustomProperty'](_0x3660('0xd')))return;_0x3660('0x5')==_0x33ff17['type']&&(_0x36a079['isBlock'](_0x3c2d10)&&!_0x36a079[_0x3660('0x17')](_0x3c2d10)&&(_0x3c2d10['nextSibling']||_0x52e3a6[_0x3660('0x14')]?_0x5a6ea1&&_0x5a6ea1['parent']==_0x3c2d10||(_0x5a6ea1=_0x3c2d10,_0x2f469c(_0x33ff17[_0x3660('0x6')]),_0x5d2501=!0x0):_0x26b64b=_0x26b64b||_0x33ff17[_0x3660('0x6')]));}function _0x2f469c(_0x170d6e){const _0x43bc4a=_0x56e8bc[_0x3660('0x1c')][_0x3660('0x16')]('span',{'class':'ck-suggestion-marker-'+_0x54a8e1}),_0x1ddebf=_0x56e8bc[_0x3660('0x19')]['toViewPosition'](_0x170d6e);_0x53f9e2&&_0x1f4ecf[_0x3660('0xe')][_0x3660('0x1d')](_0x807fdf[_0x3660('0x1a')])&&_0x56e8bc[_0x3660('0x1c')]['addClass']('ck-suggestion-marker--active',_0x43bc4a),_0x56e8bc[_0x3660('0x1c')][_0x3660('0x1e')](_0x1ddebf,_0x43bc4a),_0x56e8bc[_0x3660('0x19')][_0x3660('0x1')](_0x43bc4a,_0x807fdf[_0x3660('0x1a')]);}_0x46e0bf||_0x5d2501||!_0x26b64b||_0x2f469c(_0x26b64b);};}
|