@ckeditor/ckeditor5-track-changes 37.1.0 → 38.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +7 -7
- package/lang/translations/bg.po +3 -3
- package/lang/translations/bn.po +3 -3
- package/lang/translations/ca.po +3 -3
- package/lang/translations/cs.po +5 -5
- package/lang/translations/da.po +3 -3
- package/lang/translations/de.po +3 -3
- package/lang/translations/el.po +3 -3
- package/lang/translations/en-au.po +23 -23
- package/lang/translations/es.po +4 -4
- package/lang/translations/et.po +3 -3
- package/lang/translations/fi.po +3 -3
- package/lang/translations/fr.po +4 -4
- package/lang/translations/he.po +5 -5
- package/lang/translations/hi.po +3 -3
- package/lang/translations/hr.po +26 -26
- package/lang/translations/hu.po +3 -3
- package/lang/translations/id.po +2 -2
- package/lang/translations/it.po +4 -4
- package/lang/translations/ja.po +2 -2
- package/lang/translations/ko.po +2 -2
- package/lang/translations/lt.po +5 -5
- package/lang/translations/lv.po +4 -4
- package/lang/translations/ms.po +2 -2
- package/lang/translations/nl.po +3 -3
- package/lang/translations/no.po +3 -3
- package/lang/translations/pl.po +5 -5
- package/lang/translations/pt-br.po +4 -4
- package/lang/translations/pt.po +4 -4
- package/lang/translations/ro.po +4 -4
- package/lang/translations/ru.po +5 -5
- package/lang/translations/sk.po +5 -5
- package/lang/translations/sr-latn.po +4 -4
- package/lang/translations/sr.po +4 -4
- package/lang/translations/sv.po +3 -3
- package/lang/translations/th.po +2 -2
- package/lang/translations/tr.po +3 -3
- package/lang/translations/uk.po +5 -5
- package/lang/translations/vi.po +2 -2
- package/lang/translations/zh-cn.po +2 -2
- package/lang/translations/zh.po +2 -2
- package/package.json +2 -2
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +23 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +23 -5
- 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
|
|
23
|
+
const _0x5257=['getCellLocation','FORMAT_HEADER_COLUMN','table','forceValue','first','_suggestionFactory','_acceptFormatSuggestionCallbackFactory','createPositionBefore','highest','getAttribute','toViewElement','writer','data','TrackChangesEditing','getSelectionAffectedTableCells','createPositionAfter','removeMarker:suggestion','format','formatBlock','includes','ck-suggestion-marker-','showSuggestionHighlights','headingRows','findAncestor','options','setTableRowHeader','getSuggestion','nodeBefore','getRowIndexes','FORMAT_HEADER_ROW','commandName','markBlockFormat','has','requires','from','FORMAT_REGULAR_ROW','enableCommand','locale','ck-suggestion-marker--active','start','cell','removeAttribute','*Format:*\x20%0','end','change','value','markerName','accept','_splitMarkerName','afterInit','bindElementToMarker','createTableWalker','TableUtils','model','index','mapper','setAttribute','createRange','_descriptionFactory','get','selection','commands','editing','getChild','parent','last','childCount','FORMAT_REGULAR_COLUMN','markerRange','plugins','addClass','markerNameToElements','registerCustomCallback','commandParams','document','removeClass','downcastDispatcher','addMarker:suggestion','setTableColumnHeader','item'];(function(_0x29fd52,_0x525778){const _0x13bb11=function(_0x5c59f5){while(--_0x5c59f5){_0x29fd52['push'](_0x29fd52['shift']());}};_0x13bb11(++_0x525778);}(_0x5257,0x114));const _0x13bb=function(_0x29fd52,_0x525778){_0x29fd52=_0x29fd52-0x0;let _0x13bb11=_0x5257[_0x29fd52];return _0x13bb11;};import{Plugin as _0x159f1c}from'ckeditor5/src/core';import _0xf559b7 from'./table';import{getTranslation as _0x5527f0}from'../utils/common-translations';export default class pt extends _0x159f1c{static get[_0x13bb('0x4d')](){return[_0xf559b7];}[_0x13bb('0xd')](){const _0xc4b456=this['editor'];if(!_0xc4b456[_0x13bb('0x21')][_0x13bb('0x4c')]('TableEditing'))return;const _0x2bfe8f=_0xc4b456[_0x13bb('0x1')],_0x2347e0=_0xc4b456[_0x13bb('0x21')][_0x13bb('0x17')](_0x13bb('0x39')),_0x5dcce6=_0xc4b456[_0x13bb('0x21')]['get'](_0x13bb('0x10')),_0x5d83bc=_0xc4b456[_0x13bb('0x21')]['get'](_0xf559b7);function _0x165a02({showActiveMarker:_0x79aad1=!0x0,setDataAttribute:_0x1d7486=!0x0}={}){return(_0x5050fb,_0x17056f,_0x4b8002)=>{const {type:_0x4b9754,id:_0x5a968a}=_0x2347e0[_0x13bb('0xc')](_0x17056f[_0x13bb('0xa')]),_0x57b6ee=_0x2347e0['getSuggestion'](_0x5a968a);if(!_0x57b6ee['data']||'setTableColumnHeader'!=_0x57b6ee[_0x13bb('0x38')][_0x13bb('0x4a')])return;if(_0x17056f[_0x13bb('0x2b')])return void _0x5050fb['stop']();if(!_0x4b8002['consumable']['consume'](_0x17056f[_0x13bb('0x20')],_0x5050fb['name']))return;const _0x312557=_0x17056f[_0x13bb('0x20')][_0x13bb('0x3')]['nodeAfter'],_0x464874=_0x17056f[_0x13bb('0x20')][_0x13bb('0x7')][_0x13bb('0x47')],_0x367db3=_0x312557['parent'][_0x13bb('0x1c')],{column:_0x495344}=_0x5dcce6[_0x13bb('0x2c')](_0x312557),{column:_0x246d6d}=_0x5dcce6[_0x13bb('0x2c')](_0x464874);for(let _0x5b08d1=_0x495344;_0x5b08d1<=_0x246d6d;_0x5b08d1++){const _0x174804=_0x5dcce6[_0x13bb('0xf')](_0x367db3,{'column':_0x5b08d1,'includeAllSlots':!0x1});for(const _0x6b764e of _0x174804){const _0x74be4e=_0x6b764e['cell'],_0x4dd8be=_0x4b8002[_0x13bb('0x13')][_0x13bb('0x36')](_0x74be4e);_0x4b8002[_0x13bb('0x37')][_0x13bb('0x22')](_0x13bb('0x40')+_0x4b9754,_0x4dd8be),_0x1d7486&&_0x4b8002['writer'][_0x13bb('0x14')]('data-suggestion',_0x5a968a,_0x4dd8be),_0x4b8002['mapper'][_0x13bb('0xe')](_0x4dd8be,_0x17056f[_0x13bb('0xa')]),_0x79aad1&&(_0x2347e0['activeMarkers'][_0x13bb('0x3f')](_0x17056f[_0x13bb('0xa')])?_0x4b8002[_0x13bb('0x37')][_0x13bb('0x22')](_0x13bb('0x2'),_0x4dd8be):_0x4b8002[_0x13bb('0x37')][_0x13bb('0x27')](_0x13bb('0x2'),_0x4dd8be));}}};}_0x2347e0[_0x13bb('0x0')](_0x13bb('0x45'),(_0x33065f,_0x528629)=>{const _0x2054c7=_0x5dcce6['getSelectionAffectedTableCells'](_0xc4b456['model'][_0x13bb('0x26')][_0x13bb('0x18')]),_0x4b9ebd=_0x5dcce6[_0x13bb('0x48')](_0x2054c7),_0x23d7d0=_0x2054c7[0x0][_0x13bb('0x43')](_0x13bb('0x2e')),_0x85e55d=_0x23d7d0[_0x13bb('0x35')](_0x13bb('0x42'))||0x0,_0x4cc074=_0x528629&&null!==_0x528629['forceValue']?_0x528629[_0x13bb('0x2f')]:!_0xc4b456[_0x13bb('0x19')]['get'](_0x13bb('0x45'))[_0x13bb('0x9')],_0x1ae212=_0x4cc074?_0x4b9ebd[_0x13bb('0x1d')]:_0x4b9ebd[_0x13bb('0x30')],_0x50ea68=_0x23d7d0[_0x13bb('0x1b')](_0x1ae212);let _0x49bbe5;if(_0x4cc074){const _0x4e4b3e=_0x23d7d0[_0x13bb('0x1b')](_0x85e55d);if(_0x50ea68[_0x13bb('0x12')]<_0x4e4b3e[_0x13bb('0x12')])return;_0x49bbe5=_0xc4b456[_0x13bb('0x11')][_0x13bb('0x15')](_0xc4b456['model'][_0x13bb('0x33')](_0x4e4b3e[_0x13bb('0x1b')](0x0)),_0xc4b456[_0x13bb('0x11')][_0x13bb('0x3b')](_0x50ea68[_0x13bb('0x1b')](_0x50ea68[_0x13bb('0x1e')]-0x1)));}else{const _0x359a90=_0x23d7d0[_0x13bb('0x1b')](_0x85e55d-0x1);if(!_0x359a90)return;_0x49bbe5=_0xc4b456[_0x13bb('0x11')][_0x13bb('0x15')](_0xc4b456['model'][_0x13bb('0x33')](_0x50ea68[_0x13bb('0x1b')](0x0)),_0xc4b456[_0x13bb('0x11')]['createPositionAfter'](_0x359a90[_0x13bb('0x1b')](_0x359a90[_0x13bb('0x1e')]-0x1)));}_0xc4b456['model'][_0x13bb('0x8')](()=>{_0x2347e0[_0x13bb('0x4b')](_0x49bbe5,{'commandName':_0x13bb('0x45'),'commandParams':[{'forceValue':_0x4cc074}]},[],_0x13bb('0x45'));});}),_0x2347e0[_0x13bb('0x0')]('setTableColumnHeader',(_0x4d2d03,_0x11b532)=>{const _0x40f4d4=_0xc4b456[_0x13bb('0x21')]['get'](_0x13bb('0x10')),_0x23b494=_0x40f4d4[_0x13bb('0x3a')](_0xc4b456['model']['document'][_0x13bb('0x18')]),_0x17e52c=_0x40f4d4['getColumnIndexes'](_0x23b494),_0x1242ce=_0x23b494[0x0][_0x13bb('0x43')](_0x13bb('0x2e')),_0x275a0c=_0x1242ce['getAttribute']('headingColumns')||0x0,_0xa1475e=_0x11b532&&null!==_0x11b532['forceValue']?_0x11b532[_0x13bb('0x2f')]:!_0xc4b456[_0x13bb('0x19')]['get'](_0x13bb('0x2a'))[_0x13bb('0x9')];let _0x1434fb;const _0x2930a5=_0x1242ce['getChild'](0x0),_0x236e8e=_0xa1475e?_0x17e52c[_0x13bb('0x1d')]:_0x17e52c[_0x13bb('0x30')],_0x42959f=_0x40f4d4[_0x13bb('0xf')](_0x1242ce,{'startRow':0x0,'column':_0x236e8e,'includeAllSlots':!0x1}),_0x33ee82=Array[_0x13bb('0x4e')](_0x42959f)[0x0][_0x13bb('0x4')];if(_0xa1475e){const _0x3555a9=_0x2930a5[_0x13bb('0x1b')](_0x275a0c);if(_0x33ee82['isBefore'](_0x3555a9))return;_0x1434fb=_0xc4b456[_0x13bb('0x11')][_0x13bb('0x15')](_0xc4b456['model'][_0x13bb('0x33')](_0x3555a9),_0xc4b456[_0x13bb('0x11')][_0x13bb('0x3b')](_0x33ee82));}else{const _0x3d188b=_0x2930a5[_0x13bb('0x1b')](_0x275a0c-0x1);if(!_0x3d188b)return;_0x1434fb=_0xc4b456[_0x13bb('0x11')][_0x13bb('0x15')](_0xc4b456[_0x13bb('0x11')][_0x13bb('0x33')](_0x33ee82),_0xc4b456[_0x13bb('0x11')]['createPositionAfter'](_0x3d188b));}_0xc4b456[_0x13bb('0x11')][_0x13bb('0x8')](()=>{_0x2347e0['markBlockFormat'](_0x1434fb,{'commandName':_0x13bb('0x2a'),'commandParams':[{'forceValue':_0xa1475e}]},[],'setTableColumnHeader');});}),_0xc4b456[_0x13bb('0x1a')][_0x13bb('0x28')]['on'](_0x13bb('0x29'),_0x165a02(),{'priority':_0x13bb('0x34')}),_0xc4b456[_0x13bb('0x38')]['downcastDispatcher']['on'](_0x13bb('0x29'),(_0x2c84d0,_0xa1869b,_0x248022)=>{_0x248022[_0x13bb('0x44')][_0x13bb('0x41')]&&_0x165a02({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2c84d0,_0xa1869b,_0x248022);},{'priority':'highest'}),_0xc4b456[_0x13bb('0x1a')][_0x13bb('0x28')]['on'](_0x13bb('0x3c'),(_0x26eba4,_0x43f554,_0x16de57)=>{const {type:_0x1b9514,id:_0x5108a}=_0x2347e0[_0x13bb('0xc')](_0x43f554[_0x13bb('0xa')]),_0x3002ae=_0x2347e0[_0x13bb('0x46')](_0x5108a);if(!_0x3002ae[_0x13bb('0x38')]||'setTableColumnHeader'!=_0x3002ae[_0x13bb('0x38')]['commandName'])return;const _0x23c0ee=_0x16de57[_0x13bb('0x13')][_0x13bb('0x23')](_0x43f554[_0x13bb('0xa')]);if(_0x23c0ee)for(const _0x325ffe of _0x23c0ee)_0x16de57['writer']['removeClass'](_0x13bb('0x40')+_0x1b9514,_0x325ffe),_0x16de57['writer'][_0x13bb('0x27')]('ck-suggestion-marker--active',_0x325ffe),_0x16de57[_0x13bb('0x37')][_0x13bb('0x5')]('data-suggestion',_0x325ffe),_0x16de57['mapper']['unbindElementFromMarkerName'](_0x325ffe,_0x43f554[_0x13bb('0xa')]);},{'priority':_0x13bb('0x34')}),_0x2347e0[_0x13bb('0x16')]['registerDescriptionCallback'](_0x10f43d=>{const {data:_0x1e7d3e}=_0x10f43d;if(_0x1e7d3e){if('setTableRowHeader'==_0x1e7d3e[_0x13bb('0x4a')]){const _0x3a4d80=_0x1e7d3e[_0x13bb('0x25')][0x0][_0x13bb('0x2f')];return _0x11874a(_0x5527f0(_0x2bfe8f,_0x3a4d80?_0x13bb('0x49'):_0x13bb('0x4f')));}if(_0x13bb('0x2a')==_0x1e7d3e[_0x13bb('0x4a')]){const _0x3ddd9f=_0x1e7d3e[_0x13bb('0x25')][0x0][_0x13bb('0x2f')];return _0x11874a(_0x5527f0(_0x2bfe8f,_0x3ddd9f?_0x13bb('0x2d'):_0x13bb('0x1f')));}}function _0x11874a(_0x2d9683){return{'type':_0x13bb('0x3d'),'content':_0x5527f0(_0x2bfe8f,_0x13bb('0x6'),_0x2d9683)};}});const _0x2f6b98=_0x5d83bc[_0x13bb('0x32')]();_0x2347e0[_0x13bb('0x31')][_0x13bb('0x24')](_0x13bb('0x3e'),_0x13bb('0x45'),_0x13bb('0xb'),_0x2f6b98),_0x2347e0[_0x13bb('0x31')]['registerCustomCallback'](_0x13bb('0x3e'),_0x13bb('0x2a'),'accept',_0x2f6b98);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c67=['mergeTableCellLeft','type','model','add','getRanges','commands','change','formatBlock','locale','set:isEnabled','has','author','setSelection','low','map','format','$graveyard','element','rootName','deletion','document','enableCommand','createRangeOn','TrackChangesEditing','mergeTableCellDown','_isForcedDefaultExecutionBlock','length','_descriptionFactory','mergeTableCells','_suggestionFactory','TableEditing','root','get','afterInit','mergeTableCellRight','cell','table','find','direction','insertion','registerCustomCallback','registerDescriptionCallback','value','splitTableCellVertically','return','from','execute','TableUtils','requires','*Split\x20cell:*\x20horizontally','isEnabled','getFirstPosition','fromRange','isInContent','getSelectionAffectedTableCells','refresh','accept','editor','commandName','trackChanges','tableCell','stop','containsRange','mergeTableCellUp','filter','_acceptFormatSuggestionCallbackFactory','splitTableCellHorizontally','horizontally','size','_areMergableCells','plugins','forceDefaultExecution','_tablePostFixingSubtypes','_areSelectedCellsMergable','markMultiRangeBlockFormat','push','*Merge\x20cells*','getAncestors','selection','createTableWalker'];(function(_0x4749fe,_0x3c67c3){const _0x55b445=function(_0x589348){while(--_0x589348){_0x4749fe['push'](_0x4749fe['shift']());}};_0x55b445(++_0x3c67c3);}(_0x3c67,0x18f));const _0x55b4=function(_0x4749fe,_0x3c67c3){_0x4749fe=_0x4749fe-0x0;let _0x55b445=_0x3c67[_0x4749fe];return _0x55b445;};import{Plugin as _0x43b779}from'ckeditor5/src/core';import _0x169e88 from'./table';import{LiveRange as _0x4ba47f}from'ckeditor5/src/engine';import{getTranslation as _0xfe9362}from'../utils/common-translations';export default class dt extends _0x43b779{static get[_0x55b4('0x31')](){return[_0x169e88];}[_0x55b4('0x22')](){const _0x2632f6=this[_0x55b4('0x3a')],_0x165447=_0x2632f6['model'][_0x55b4('0x15')]['selection'],_0x55ef19=_0x2632f6[_0x55b4('0x9')];if(!_0x2632f6['plugins'][_0x55b4('0xb')](_0x55b4('0x1f')))return;const _0x207ae8=_0x2632f6['plugins']['get']('TrackChangesEditing'),_0x528089=_0x2632f6[_0x55b4('0x47')][_0x55b4('0x21')](_0x55b4('0x30')),_0x326827=_0x2632f6['plugins']['get'](_0x169e88);_0x326827[_0x55b4('0x49')][_0x55b4('0x4c')]('mergeTableCells'),_0x207ae8['enableCommand'](_0x55b4('0x1d'),()=>{const _0x244684=_0x528089[_0x55b4('0x37')](_0x2632f6[_0x55b4('0x3')][_0x55b4('0x15')]['selection']);_0x2632f6[_0x55b4('0x3')][_0x55b4('0x7')](()=>{_0x207ae8[_0x55b4('0x4b')](_0x244684,{'commandName':_0x55b4('0x1d'),'commandParams':[]},[],_0x55b4('0x1d'));});}),_0x2632f6['commands'][_0x55b4('0x21')]('mergeTableCells')['on'](_0x55b4('0x2f'),(_0x5423c4,_0x5b2664)=>{_0x2632f6[_0x55b4('0x6')]['get'](_0x55b4('0x3c'))[_0x55b4('0x2b')]&&(_0x5b2664[_0x55b4('0x1b')]>0x0&&_0x5b2664[_0x5b2664['length']-0x1]&&_0x5b2664[_0x5b2664[_0x55b4('0x1b')]-0x1][_0x55b4('0x48')]||_0x207ae8[_0x55b4('0x1a')]||this[_0x55b4('0x4a')]()||_0x5423c4[_0x55b4('0x3e')]());},{'priority':'highest'});for(const _0x495e5f of[_0x55b4('0x40'),_0x55b4('0x23'),_0x55b4('0x19'),'mergeTableCellLeft']){const _0x4e6212=_0x2632f6[_0x55b4('0x6')][_0x55b4('0x21')](_0x495e5f);_0x207ae8[_0x55b4('0x16')](_0x495e5f,()=>{const _0x3723d7=_0x2632f6[_0x55b4('0x3')][_0x55b4('0x15')][_0x55b4('0x4f')][_0x55b4('0x34')]()[_0x55b4('0x4e')]()[_0x55b4('0x26')](_0x7f9806=>_0x7f9806['is'](_0x55b4('0x12'),_0x55b4('0x3d'))),_0x38ff57=_0x4e6212[_0x55b4('0x2b')];_0x2632f6[_0x55b4('0x3')][_0x55b4('0x7')](()=>{_0x207ae8['markMultiRangeBlockFormat']([_0x3723d7,_0x38ff57],{'commandName':'mergeTableCells','commandParams':[]},[],_0x55b4('0x1d'));});});}for(const _0x5beb9e of[_0x55b4('0x2c'),_0x55b4('0x43')]){const _0x265541=_0x2632f6[_0x55b4('0x6')][_0x55b4('0x21')](_0x5beb9e);_0x207ae8['enableCommand'](_0x5beb9e,()=>{const _0x563f04=_0x528089[_0x55b4('0x37')](_0x2632f6[_0x55b4('0x3')][_0x55b4('0x15')]['selection'])[0x0],_0xe47732=_0x563f04['findAncestor'](_0x55b4('0x25')),{column:_0x506923,row:_0x516648}=_0x528089['getCellLocation'](_0x563f04);let _0x493bd9=[];if(_0x55b4('0x44')==_0x265541[_0x55b4('0x27')]){const _0x55b6da=_0x528089[_0x55b4('0x0')](_0xe47732,{'startRow':_0x516648,'endRow':_0x516648,'includeAllSlots':!0x0});_0x493bd9=Array[_0x55b4('0x2e')](_0x55b6da)[_0x55b4('0xf')](_0x3f090a=>_0x3f090a[_0x55b4('0x24')]);}else{const _0x397d20=_0x528089[_0x55b4('0x0')](_0xe47732,{'column':_0x506923,'includeAllSlots':!0x0});_0x493bd9=Array[_0x55b4('0x2e')](_0x397d20)[_0x55b4('0xf')](_0xd8f970=>_0xd8f970[_0x55b4('0x24')]);}_0x2632f6['model'][_0x55b4('0x7')](_0x512f27=>{_0x207ae8['markBlockFormat'](_0x512f27[_0x55b4('0x17')](_0x563f04),{'commandName':_0x5beb9e,'commandParams':[]},_0x493bd9,_0x5beb9e);});});}_0x207ae8[_0x55b4('0x1c')][_0x55b4('0x2a')](_0x21e9f9=>{const {data:_0x1497ef}=_0x21e9f9;if(_0x1497ef)return _0x55b4('0x1d')==_0x1497ef[_0x55b4('0x3b')]?{'type':_0x55b4('0x10'),'content':_0xfe9362(_0x55ef19,_0x55b4('0x4d'))}:void 0x0;}),_0x207ae8['_descriptionFactory'][_0x55b4('0x2a')](_0x231379=>{const {data:_0x17f19d}=_0x231379;if(_0x17f19d)return'splitTableCellVertically'==_0x17f19d[_0x55b4('0x3b')]?{'type':_0x55b4('0x10'),'content':_0xfe9362(_0x55ef19,'*Split\x20cell:*\x20vertically')}:_0x55b4('0x43')==_0x17f19d[_0x55b4('0x3b')]?{'type':_0x55b4('0x10'),'content':_0xfe9362(_0x55ef19,_0x55b4('0x32'))}:void 0x0;});const _0x2abfd3=_0x326827[_0x55b4('0x42')]();for(const _0xc02afb of[_0x55b4('0x40'),_0x55b4('0x23'),'mergeTableCellDown',_0x55b4('0x1')])_0x207ae8[_0x55b4('0x1e')][_0x55b4('0x29')](_0x55b4('0x8'),_0xc02afb,_0x55b4('0x39'),_0x2abfd3);for(const _0x584ea6 of[_0x55b4('0x2c'),_0x55b4('0x43')])_0x207ae8['_suggestionFactory']['registerCustomCallback'](_0x55b4('0x8'),_0x584ea6,_0x55b4('0x39'),_0x2abfd3);_0x207ae8[_0x55b4('0x1e')][_0x55b4('0x29')]('formatBlock',_0x55b4('0x1d'),_0x55b4('0x39'),_0x24b3d4=>{_0x2632f6[_0x55b4('0x3')][_0x55b4('0x7')](_0x1dd6f1=>{const _0x52c1f5=Array[_0x55b4('0x2e')](_0x165447['getRanges']())[_0x55b4('0xf')](_0x480d34=>_0x4ba47f[_0x55b4('0x35')](_0x480d34));_0x1dd6f1[_0x55b4('0xd')](_0x24b3d4),_0x2632f6[_0x55b4('0x6')][_0x55b4('0x21')](_0x55b4('0x1d'))[_0x55b4('0x38')](),_0x2632f6[_0x55b4('0x2f')](_0x55b4('0x1d'),{'forceDefaultExecution':!0x0});const _0x3f28fb=_0x52c1f5[_0x55b4('0x41')](_0xd5e4dc=>_0x55b4('0x11')!=_0xd5e4dc[_0x55b4('0x20')][_0x55b4('0x13')]);_0x3f28fb['length']>0x0&&_0x1dd6f1['setSelection'](_0x3f28fb);for(const _0x15b70c of _0x52c1f5)_0x15b70c['detach']();});});for(const _0x7f9f42 of['mergeTableCellUp',_0x55b4('0x19'),_0x55b4('0x1'),_0x55b4('0x23')]){const _0x5f33d5=_0x2632f6[_0x55b4('0x6')]['get'](_0x7f9f42);_0x5f33d5['on'](_0x55b4('0xa'),(_0x2b1a28,_0x1319df,_0x7c8718)=>{if(_0x7c8718){const _0x206001=_0x2632f6[_0x55b4('0x3')]['document'][_0x55b4('0x4f')]['getFirstPosition']()[_0x55b4('0x4e')]()[_0x55b4('0x26')](_0x3d7939=>_0x3d7939['is'](_0x55b4('0x12'),'tableCell'));this[_0x55b4('0x46')](_0x5f33d5[_0x55b4('0x2b')],_0x206001)||(_0x2b1a28[_0x55b4('0x2d')]=!0x1,_0x2b1a28[_0x55b4('0x3e')]());}},{'priority':_0x55b4('0xe')});}}[_0x55b4('0x4a')](){const _0xbbaf83=this[_0x55b4('0x3a')][_0x55b4('0x6')][_0x55b4('0x21')](_0x55b4('0x1d')),_0xe4df0d=this[_0x55b4('0x3a')][_0x55b4('0x47')][_0x55b4('0x21')](_0x55b4('0x30'));if(!_0xbbaf83[_0x55b4('0x33')])return!0x1;const _0x2913ee=_0xe4df0d[_0x55b4('0x37')](this[_0x55b4('0x3a')][_0x55b4('0x3')][_0x55b4('0x15')][_0x55b4('0x4f')]);for(const _0x1e9903 of _0x2913ee)for(const _0x255863 of _0x2913ee)if(_0x1e9903!=_0x255863&&!this[_0x55b4('0x46')](_0x1e9903,_0x255863))return!0x1;return!0x0;}[_0x55b4('0x46')](_0x144011,_0x2934b4){const _0x431fd1=this[_0x55b4('0x3a')][_0x55b4('0x47')][_0x55b4('0x21')](_0x55b4('0x18')),_0xb9c5a=this[_0x55b4('0x3a')]['model'][_0x55b4('0x17')](_0x144011),_0x936066=this['editor'][_0x55b4('0x3')][_0x55b4('0x17')](_0x2934b4),_0x1260de=new Set(),_0x1b1c84=new Set();for(const _0x5ba1a7 of _0x431fd1['getSuggestions']())if((_0x55b4('0x28')==_0x5ba1a7[_0x55b4('0x2')]||_0x55b4('0x14')==_0x5ba1a7[_0x55b4('0x2')]||'mergeTableCells'==_0x5ba1a7['subType'])&&_0x5ba1a7[_0x55b4('0x36')])for(const _0x7d6576 of _0x5ba1a7[_0x55b4('0x5')]())_0x7d6576['containsRange'](_0xb9c5a,!0x0)&&_0x1260de[_0x55b4('0x4')](_0x5ba1a7[_0x55b4('0x2')]+':'+_0x5ba1a7[_0x55b4('0xc')]['id']),_0x7d6576[_0x55b4('0x3f')](_0x936066,!0x0)&&_0x1b1c84[_0x55b4('0x4')](_0x5ba1a7['type']+':'+_0x5ba1a7[_0x55b4('0xc')]['id']);if(_0x1260de[_0x55b4('0x45')]!=_0x1b1c84['size'])return!0x1;for(const _0x52bd11 of _0x1260de)if(!_0x1b1c84['has'](_0x52bd11))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16db=['afterInit','_descriptionFactory','enableCommand','commands','ELEMENT_TABLE_OF_CONTENTS','get','tableOfContents','plugins','registerElementLabel','TrackChangesEditing','insertTableOfContents'];(function(_0x161288,_0x16db5e){const _0xd5516d=function(_0x6d14f6){while(--_0x6d14f6){_0x161288['push'](_0x161288['shift']());}};_0xd5516d(++_0x16db5e);}(_0x16db,0xc0));const _0xd551=function(_0x161288,_0x16db5e){_0x161288=_0x161288-0x0;let _0xd5516d=_0x16db[_0x161288];return _0xd5516d;};import{Plugin as _0x3e8d84}from'ckeditor5/src/core';import{getTranslation as _0x3aea13}from'../utils/common-translations';export default class bt extends _0x3e8d84{[_0xd551('0x6')](){const _0x182872=this['editor'];if(!_0x182872[_0xd551('0x9')][_0xd551('0x0')](_0xd551('0x5')))return;_0x182872[_0xd551('0x2')][_0xd551('0x0')]('TrackChangesEditing')[_0xd551('0x8')](_0xd551('0x5'));const _0x2c103f=_0x182872['plugins'][_0xd551('0x0')](_0xd551('0x4')),_0x1114b5=_0x182872['locale'];_0x2c103f[_0xd551('0x7')][_0xd551('0x3')](_0xd551('0x1'),_0x5db3a0=>_0x3aea13(_0x1114b5,_0xd551('0xa'),_0x5db3a0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc83f=['_handlePropertyChange','_descriptionFactory','pluginName','model','handleDiscardAction','get','getFirstPosition','tableWidth','TrackChangesTableProperties','getSuggestions','removeAttribute','tableCellBorderColor','TrackChangesEditing','locale','accept','subType','setAttribute','tableCellBorderWidth','*Format:*\x20change\x20table\x20properties','enableCommand','formatBlock','tableBorderColor','discard','TablePropertiesEditing','registerCustomCallback','change','document','join','tableProperties','tableCellWidth','batch','TableUtils','tableBackgroundColor','getContainedElement','*Format:*\x20change\x20table\x20cell\x20properties','_getSuggestion','tableBorderWidth','plugins','tableCellHeight','tableAlignment','tableCellVerticalAlignment','has','handleSuggestionDescription','editor','tableCellBorderStyle','TableCellPropertiesEditing','tableCellBackgroundColor','selection','tableBorderStyle','_suggestionFactory','table','getSelectionAffectedTableCells','getAttribute','afterInit','tableCellProperties','getSuggestionCallback'];(function(_0x52ff05,_0xc83f0e){const _0x121c8d=function(_0x334d71){while(--_0x334d71){_0x52ff05['push'](_0x52ff05['shift']());}};_0x121c8d(++_0xc83f0e);}(_0xc83f,0x1c0));const _0x121c=function(_0x52ff05,_0xc83f0e){_0x52ff05=_0x52ff05-0x0;let _0x121c8d=_0xc83f[_0x52ff05];return _0x121c8d;};import{Plugin as _0x35c326}from'ckeditor5/src/core';import{getTranslation as _0x386dd}from'../utils/common-translations';export default class Ct extends _0x35c326{constructor(_0x26c180){super(_0x26c180),this[_0x121c('0x1c')]=[_0x121c('0x15'),_0x121c('0x30'),_0x121c('0x24'),_0x121c('0x27'),_0x121c('0x7'),'tableHeight',_0x121c('0x20')],this['tableCellProperties']=[_0x121c('0xb'),_0x121c('0x2c'),_0x121c('0x11'),'tableCellPadding',_0x121c('0x1d'),_0x121c('0x26'),_0x121c('0x2e'),'tableCellHorizontalAlignment',_0x121c('0x28')];}static get[_0x121c('0x2')](){return _0x121c('0x8');}[_0x121c('0x35')](){const _0x184c0c=this[_0x121c('0x2b')][_0x121c('0x25')][_0x121c('0x5')](_0x121c('0xc'));if(this[_0x121c('0x2b')]['plugins'][_0x121c('0x29')](_0x121c('0x17'))){for(const _0x2a6f3f of this[_0x121c('0x1c')])_0x184c0c['enableCommand'](_0x2a6f3f,(_0x28802c,_0x40ab39)=>{const _0x1425c0=this['editor'][_0x121c('0x3')][_0x121c('0x1a')][_0x121c('0x2f')][_0x121c('0x6')]()['findAncestor'](_0x121c('0x32'));this['_handlePropertyChange'](_0x2a6f3f,[_0x1425c0],this[_0x121c('0x1c')],'tableProperties',_0x28802c,_0x40ab39);});_0x184c0c[_0x121c('0x31')]['registerCustomCallback'](_0x121c('0x14'),_0x121c('0x1c'),'accept',_0x184c0c[_0x121c('0x31')]['getSuggestionCallback'](_0x121c('0x14'),null,_0x121c('0x16'))),_0x184c0c[_0x121c('0x31')]['registerCustomCallback']('formatBlock',_0x121c('0x1c'),_0x121c('0x16'),(_0x2d8ec1,_0x48a32c)=>this['handleDiscardAction'](this[_0x121c('0x1c')],_0x2d8ec1,_0x48a32c)),_0x184c0c[_0x121c('0x31')][_0x121c('0x18')](_0x121c('0x14'),'tableProperties',_0x121c('0x1b'),()=>!0x1);}if(this[_0x121c('0x2b')][_0x121c('0x25')][_0x121c('0x29')](_0x121c('0x2d'))){for(const _0x200cbd of this[_0x121c('0x36')])_0x184c0c[_0x121c('0x13')](_0x200cbd,(_0x57a76b,_0x261e83)=>{const _0x463758=this[_0x121c('0x2b')][_0x121c('0x25')][_0x121c('0x5')](_0x121c('0x1f'))[_0x121c('0x33')](this[_0x121c('0x2b')][_0x121c('0x3')]['document'][_0x121c('0x2f')]);this[_0x121c('0x0')](_0x200cbd,_0x463758,this[_0x121c('0x36')],'tableCellProperties',_0x57a76b,_0x261e83);});_0x184c0c[_0x121c('0x31')]['registerCustomCallback'](_0x121c('0x14'),_0x121c('0x36'),_0x121c('0xe'),_0x184c0c[_0x121c('0x31')][_0x121c('0x37')](_0x121c('0x14'),null,_0x121c('0x16'))),_0x184c0c['_suggestionFactory'][_0x121c('0x18')]('formatBlock',_0x121c('0x36'),_0x121c('0x16'),(_0x469e75,_0x3285a9)=>this[_0x121c('0x4')](this[_0x121c('0x36')],_0x469e75,_0x3285a9)),_0x184c0c[_0x121c('0x31')][_0x121c('0x18')](_0x121c('0x14'),_0x121c('0x36'),_0x121c('0x1b'),()=>!0x1);}_0x184c0c[_0x121c('0x1')]['registerDescriptionCallback'](_0x344453=>this[_0x121c('0x2a')](_0x344453));}['_handlePropertyChange'](_0x57d9f5,_0x4a269b,_0x38c669,_0x5c2076,_0x7f00d7,_0x3c5690){const _0x1656d5=this[_0x121c('0x2b')][_0x121c('0x25')][_0x121c('0x5')](_0x121c('0xc'));this[_0x121c('0x2b')][_0x121c('0x3')]['enqueueChange'](_0x3c5690[_0x121c('0x1e')],()=>{for(const _0x2d41ed of _0x4a269b){if(this[_0x121c('0x23')](_0x2d41ed,_0x5c2076))_0x7f00d7(_0x3c5690);else{const _0x1c31df={};for(const _0x3a2568 of _0x38c669){const _0x3e9732=_0x2d41ed[_0x121c('0x34')](_0x3a2568);void 0x0!==_0x3e9732&&(_0x1c31df[_0x3a2568]=_0x3e9732);}_0x7f00d7(_0x3c5690),_0x1656d5['markBlockFormat'](_0x2d41ed,{'commandParams':[_0x1c31df]},[],_0x5c2076);}}});}['handleDiscardAction'](_0x262801,_0x39f6fe,_0x30e39a){const _0x27bb91=_0x39f6fe[0x0]['start']['nodeAfter'],_0x169a00=_0x30e39a['commandParams'][0x0];this[_0x121c('0x2b')]['model'][_0x121c('0x19')](_0x36d75f=>{for(const _0x1320f2 of _0x262801)void 0x0!==_0x169a00[_0x1320f2]?_0x36d75f[_0x121c('0x10')](_0x1320f2,_0x169a00[_0x1320f2],_0x27bb91):_0x36d75f[_0x121c('0xa')](_0x1320f2,_0x27bb91);});}['handleSuggestionDescription'](_0x3794d8){if(_0x3794d8['data'])switch(_0x3794d8['subType']){case _0x121c('0x1c'):return{'type':'format','content':_0x386dd(this[_0x121c('0x2b')][_0x121c('0xd')],_0x121c('0x12'))};case'tableCellProperties':return{'type':'format','content':_0x386dd(this[_0x121c('0x2b')][_0x121c('0xd')],_0x121c('0x22'))};}}[_0x121c('0x23')](_0x34fb78,_0x5bbba5){const _0x20d52d=this['editor']['plugins']['get'](_0x121c('0xc'));for(const _0x2368d7 of _0x20d52d[_0x121c('0x9')]({'skipNotAttached':!0x0})){const _0x48d725=_0x2368d7[_0x121c('0x21')]();if(_0x2368d7[_0x121c('0xf')]===_0x5bbba5&&_0x48d725===_0x34fb78)return _0x2368d7;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d8b=['get','TrackChangesEditing','afterInit','Template','has','plugins','editor'];(function(_0x4e18af,_0x5d8b0d){const _0x1c01b4=function(_0x187e15){while(--_0x187e15){_0x4e18af['push'](_0x4e18af['shift']());}};_0x1c01b4(++_0x5d8b0d);}(_0x5d8b,0x1ac));const _0x1c01=function(_0x4e18af,_0x5d8b0d){_0x4e18af=_0x4e18af-0x0;let _0x1c01b4=_0x5d8b[_0x4e18af];return _0x1c01b4;};import{Plugin as _0x4b0628}from'ckeditor5/src/core';export default class yt extends _0x4b0628{[_0x1c01('0x1')](){const _0x560e72=this[_0x1c01('0x5')];_0x560e72[_0x1c01('0x4')][_0x1c01('0x3')](_0x1c01('0x2'))&&_0x560e72['plugins'][_0x1c01('0x6')](_0x1c01('0x0'))['enableCommand']('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf06f=['nodeBefore','from','registerPostFixer','model','TrackChangesEditing','_descriptionFactory','Title','registerElementLabel','plugins','isEqual','get','isTouching','differ','forward','end','editor','document','start','getChangedMarkers','newRange','getNearestSelectionRange'];(function(_0x52baf4,_0xf06ff4){const _0x10a50d=function(_0x1e7a6c){while(--_0x1e7a6c){_0x52baf4['push'](_0x52baf4['shift']());}};_0x10a50d(++_0xf06ff4);}(_0xf06f,0x1bf));const _0x10a5=function(_0x52baf4,_0xf06ff4){_0x52baf4=_0x52baf4-0x0;let _0x10a50d=_0xf06f[_0x52baf4];return _0x10a50d;};import{Plugin as _0xc66d5}from'ckeditor5/src/core';import{getTranslation as _0x222bbe}from'../utils/common-translations';export default class St extends _0xc66d5{['afterInit'](){const _0x321997=this[_0x10a5('0x9')];if(!_0x321997[_0x10a5('0x2')]['has'](_0x10a5('0x0')))return;const _0x2f5385=_0x321997[_0x10a5('0x2')][_0x10a5('0x4')](_0x10a5('0x13'));_0x2f5385[_0x10a5('0x14')][_0x10a5('0x1')]('title-content',()=>_0x222bbe(_0x321997['locale'],'ELEMENT_TITLE')),_0x321997['model'][_0x10a5('0xa')][_0x10a5('0x11')](_0x44175e=>{let _0x4df359=!0x1;const _0x31f7ff=Array[_0x10a5('0x10')](_0x321997['model'][_0x10a5('0xa')][_0x10a5('0x6')][_0x10a5('0xc')]());for(const {name:_0x4562d0,data:_0x8b49e7}of _0x31f7ff){const {group:_0x1b5292}=_0x2f5385['_splitMarkerName'](_0x4562d0);if('suggestion'!==_0x1b5292||!_0x8b49e7['newRange'])continue;const _0x2f12d6=_0x8b49e7[_0x10a5('0xd')],_0x8632be=_0x2f12d6[_0x10a5('0x8')][_0x10a5('0xf')];if(!_0x8632be||!_0x8632be['is']('element','title-content'))continue;if(!_0x2f12d6[_0x10a5('0xb')][_0x10a5('0x5')](_0x2f12d6[_0x10a5('0x8')]))continue;const _0xf93132=_0x321997[_0x10a5('0x12')]['schema'][_0x10a5('0xe')](_0x2f12d6[_0x10a5('0x8')],_0x10a5('0x7'));if(_0xf93132&&_0xf93132['isCollapsed']){const _0x83e67d=_0x44175e['createRange'](_0x2f12d6[_0x10a5('0xb')],_0xf93132[_0x10a5('0xb')]);_0x83e67d[_0x10a5('0x3')](_0x2f12d6)||(_0x44175e['updateMarker'](_0x4562d0,{'range':_0x83e67d}),_0x4df359=!0x0);}_0x4df359||(_0x44175e['removeMarker'](_0x4562d0),_0x4df359=!0x0);}return _0x4df359;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f86=['UndoEditing','has','enableCommand','get','TrackChangesEditing','redo','plugins'];(function(_0x5e2e9c,_0x2f862e){const _0x5eda9a=function(_0x478a5d){while(--_0x478a5d){_0x5e2e9c['push'](_0x5e2e9c['shift']());}};_0x5eda9a(++_0x2f862e);}(_0x2f86,0x1f0));const _0x5eda=function(_0x5e2e9c,_0x2f862e){_0x5e2e9c=_0x5e2e9c-0x0;let _0x5eda9a=_0x2f86[_0x5e2e9c];return _0x5eda9a;};import{Plugin as _0xd5d237}from'ckeditor5/src/core';export default class It extends _0xd5d237{['afterInit'](){const _0x4fd5aa=this['editor'],_0x150d3a=_0x4fd5aa[_0x5eda('0x0')][_0x5eda('0x4')](_0x5eda('0x5'));_0x4fd5aa[_0x5eda('0x0')][_0x5eda('0x2')](_0x5eda('0x1'))&&(_0x150d3a['enableCommand']('undo'),_0x150d3a[_0x5eda('0x3')](_0x5eda('0x6')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bbf=['ck-suggestion-marker--active','activeMarkers','toViewPosition','createRangeOn','nextSibling','mapper','addHighlight','test','isContent','previousPosition','bindElementToMarker','markerName','getWalker','writer','item','plugins','elementEnd','get','insert','isAtEnd','push','addClass','createUIElement','ck-suggestion-marker-','markerRange','span','listIndent','type','TrackChangesEditing','getItems','element','model','listItem','includes','parent','start'];(function(_0x5408b6,_0x5bbfdb){const _0x26ebb1=function(_0x583b8f){while(--_0x583b8f){_0x5408b6['push'](_0x5408b6['shift']());}};_0x26ebb1(++_0x5bbfdb);}(_0x5bbf,0x1c5));const _0x26eb=function(_0x5408b6,_0x5bbfdb){_0x5408b6=_0x5408b6-0x0;let _0x26ebb1=_0x5bbf[_0x5408b6];return _0x26ebb1;};export function getRangesWithAttribute(_0x19ffc1,_0x459de2,_0x4380b0){const _0x127dfd=[];for(const _0x301a0e of _0x459de2[_0x26eb('0x8')]())_0x301a0e['hasAttribute'](_0x19ffc1)&&_0x127dfd[_0x26eb('0x23')](_0x4380b0[_0x26eb('0x12')](_0x301a0e));return _0x127dfd;}export function getElementsAffectedByListItemRename(_0x160457){const _0x3ea817=[];if(_0x160457['is'](_0x26eb('0x9'),_0x26eb('0xb'))){let _0x118034=_0x160457[_0x26eb('0x13')];for(;_0x118034&&_0x118034['is'](_0x26eb('0x9'),_0x26eb('0xb'))&&_0x118034['getAttribute'](_0x26eb('0x5'))>0x0;)_0x3ea817[_0x26eb('0x23')](_0x118034),_0x118034=_0x118034['nextSibling'];}return _0x3ea817;}export function downcastSplitMergeMarker(_0x1d2f12,_0x289929,{showActiveMarker:_0x1f7f9f=!0x0}={}){const _0x2bf766=_0x1d2f12[_0x26eb('0x1e')][_0x26eb('0x20')](_0x26eb('0x7'));return(_0xb814e4,_0x949e6e,_0x55287b)=>{if(!_0x55287b['consumable'][_0x26eb('0x16')](_0x949e6e[_0x26eb('0x3')],_0xb814e4['name']))return;const _0x73bdff=_0x949e6e['markerRange'][_0x26eb('0x1b')](),_0x4218d4=_0x949e6e['markerRange'][_0x26eb('0xe')],_0x5ce24=_0x1d2f12[_0x26eb('0xa')]['schema'];let _0x3e1dd5=null,_0x4d361e=null,_0x35a0a3=!0x1,_0x4298a3=!0x1;for(const _0x2ea188 of _0x73bdff){const _0x319abc=_0x2ea188[_0x26eb('0x1d')];_0x35a0a3=_0x35a0a3||_0x5ce24[_0x26eb('0x17')](_0x319abc);const _0xc0298d=_0x55287b[_0x26eb('0x14')]['toViewElement'](_0x319abc);if(_0xc0298d&&_0xc0298d['getCustomProperty'](_0x26eb('0x15')))return;_0x26eb('0x1f')==_0x2ea188[_0x26eb('0x6')]&&(_0x5ce24['isBlock'](_0x319abc)&&!_0x5ce24['isLimit'](_0x319abc)&&(_0x319abc[_0x26eb('0x13')]||_0x4218d4[_0x26eb('0x22')]?_0x3e1dd5&&_0x3e1dd5[_0x26eb('0xd')]==_0x319abc||(_0x3e1dd5=_0x319abc,_0x5748aa(_0x2ea188[_0x26eb('0x18')]),_0x4298a3=!0x0):_0x4d361e=_0x4d361e||_0x2ea188['previousPosition']));}function _0x5748aa(_0x9e3833){const _0x4fc855=_0x55287b[_0x26eb('0x1c')][_0x26eb('0x1')](_0x26eb('0x4'),{'class':_0x26eb('0x2')+_0x289929}),_0x3449b9=_0x55287b[_0x26eb('0x14')][_0x26eb('0x11')](_0x9e3833);_0x1f7f9f&&_0x2bf766[_0x26eb('0x10')][_0x26eb('0xc')](_0x949e6e[_0x26eb('0x1a')])&&_0x55287b[_0x26eb('0x1c')][_0x26eb('0x0')](_0x26eb('0xf'),_0x4fc855),_0x55287b[_0x26eb('0x1c')][_0x26eb('0x21')](_0x3449b9,_0x4fc855),_0x55287b['mapper'][_0x26eb('0x19')](_0x4fc855,_0x949e6e[_0x26eb('0x1a')]);}_0x35a0a3||_0x4298a3||!_0x4d361e||_0x5748aa(_0x4d361e);};}
|
package/src/suggestion.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1113=['onAttributesChange','getMarkers','subType','nodeBefore','push','isIntersecting','add','setAttribute','_onDiscard','isMultiRange','creator','start','isExternal','commentThread','toJSON','map','end','addRange','discard','getContainedElement','_markerNames','getFirstMarker','getItems','_onAccept','substr','previous','getAllAdjacentSuggestions','author','authoredAt','_model','decorate','next','accept','addMarkerName','getMarkerNames','isIntersectingWithRange','get','type','nodeAfter','getFirstRange','onDiscard','removeMarkers','getRanges','markers','filter','change','set','_onAttributesChange','onAccept','addMarker','removeMarker','data','clear','isInContent','from','hasComments','createdAt','length','attributes'];(function(_0x465afb,_0x111380){const _0x4cf9d5=function(_0x3184a4){while(--_0x3184a4){_0x465afb['push'](_0x465afb['shift']());}};_0x4cf9d5(++_0x111380);}(_0x1113,0x18b));const _0x4cf9=function(_0x465afb,_0x111380){_0x465afb=_0x465afb-0x0;let _0x4cf9d5=_0x1113[_0x465afb];return _0x4cf9d5;};import{Element as _0x4acb27}from'ckeditor5/src/engine';import{ObservableMixin as _0x83784b,uid as _0x368a8c}from'ckeditor5/src/utils';import{cloneDeep as _0x35d73d,isEqual as _0x132e11,set as _0x1c5d72,unset as _0xc60b39}from'lodash-es';export default class u extends _0x83784b(){constructor(_0x19f1a0,_0x23e374){super(),this['id']=_0x23e374['id'],this[_0x4cf9('0x37')]=_0x23e374[_0x4cf9('0x37')],this[_0x4cf9('0x14')]=_0x23e374[_0x4cf9('0x14')]||null,this['author']=_0x23e374[_0x4cf9('0x2d')],this['creator']=_0x23e374[_0x4cf9('0x1c')]||_0x23e374[_0x4cf9('0x2d')],this[_0x4cf9('0x1e')]=Boolean(_0x23e374[_0x4cf9('0x11')]&&_0x23e374[_0x4cf9('0x11')]['@external']),this[_0x4cf9('0xa')]=null,this[_0x4cf9('0x2f')]=_0x19f1a0,this[_0x4cf9('0x29')]=_0x23e374[_0x4cf9('0x7')],this[_0x4cf9('0x1a')]=_0x23e374[_0x4cf9('0x3a')],this[_0x4cf9('0x6')]=_0x23e374[_0x4cf9('0x12')],this[_0x4cf9('0x26')]=new Set(),this[_0x4cf9('0xf')]=null,this[_0x4cf9('0x5')](_0x4cf9('0x2e'),null),this[_0x4cf9('0x5')](_0x4cf9('0x11'),_0x23e374[_0x4cf9('0x11')]||{}),this[_0x4cf9('0x5')](_0x4cf9('0x2b'),null),this[_0x4cf9('0x5')](_0x4cf9('0x31'),null),this[_0x4cf9('0x5')]('commentThread',null),this[_0x4cf9('0x5')]('_saved',!0x1),this[_0x4cf9('0x30')](_0x4cf9('0x32')),this[_0x4cf9('0x30')](_0x4cf9('0x24'));}get['head'](){let _0x40e471=this;for(;_0x40e471[_0x4cf9('0x2b')];)_0x40e471=_0x40e471[_0x4cf9('0x2b')];return _0x40e471;}get[_0x4cf9('0xe')](){return!!this['commentThread']&&this[_0x4cf9('0x1f')]['length']>0x0;}get[_0x4cf9('0x1b')](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array[_0x4cf9('0xd')](this[_0x4cf9('0x26')])[0x0]['split'](':')[_0x4cf9('0x10')];}get[_0x4cf9('0xc')](){return null!==this[_0x4cf9('0x27')]();}[_0x4cf9('0x33')](_0x40013e){this['_markerNames'][_0x4cf9('0x18')](_0x40013e);}['getMarkerNames'](){return Array[_0x4cf9('0xd')](this[_0x4cf9('0x26')]);}[_0x4cf9('0x13')](){return this[_0x4cf9('0x34')]()[_0x4cf9('0x21')](_0x471d54=>this[_0x4cf9('0x2f')][_0x4cf9('0x2')][_0x4cf9('0x36')](_0x471d54))[_0x4cf9('0x3')](_0x3d1055=>_0x3d1055);}[_0x4cf9('0x27')](){return this[_0x4cf9('0x13')]()[0x0]||null;}[_0x4cf9('0x0')](){this[_0x4cf9('0x2f')][_0x4cf9('0x4')](_0x1702c8=>{for(const _0x52c56a of this[_0x4cf9('0x13')]())_0x1702c8[_0x4cf9('0x9')](_0x52c56a);}),this[_0x4cf9('0x26')][_0x4cf9('0xb')]();}[_0x4cf9('0x9')](_0x3d8a56){this[_0x4cf9('0x2f')][_0x4cf9('0x4')](_0x1be4d5=>{_0x1be4d5[_0x4cf9('0x9')](_0x3d8a56);}),this[_0x4cf9('0x26')]['delete'](_0x3d8a56);}[_0x4cf9('0x23')](_0x25d548){const _0x43b13a='suggestion:'+this['type']+':'+this[_0x4cf9('0x14')]+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this[_0x4cf9('0x33')](_0x43b13a),this[_0x4cf9('0x2f')]['change'](_0x526d79=>{_0x526d79[_0x4cf9('0x8')](_0x43b13a,{'range':_0x25d548,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4cf9('0x35')](_0x4ad62d){for(const _0x543a2f of this['getRanges']())if(_0x543a2f[_0x4cf9('0x17')](_0x4ad62d))return!0x0;return!0x1;}[_0x4cf9('0x1')](){return this[_0x4cf9('0x13')]()[_0x4cf9('0x21')](_0x3f3584=>_0x3f3584['getRange']());}['getItems'](){return this[_0x4cf9('0x1')]()['reduce']((_0x22ba27,_0x43ad05)=>[..._0x22ba27,..._0x43ad05[_0x4cf9('0x28')]()],[]);}[_0x4cf9('0x39')](){var _0x31d94d;return(null===(_0x31d94d=this[_0x4cf9('0x27')]())||void 0x0===_0x31d94d?void 0x0:_0x31d94d['getRange']())||null;}[_0x4cf9('0x25')](){const _0x4835bf=this[_0x4cf9('0x1')]();if(0x1!=_0x4835bf[_0x4cf9('0x10')])return null;const _0x52068d=_0x4835bf[0x0],_0x5b244e=_0x52068d[_0x4cf9('0x1d')][_0x4cf9('0x38')],_0x478583=_0x52068d[_0x4cf9('0x22')][_0x4cf9('0x15')];return _0x5b244e instanceof _0x4acb27?_0x5b244e!=_0x478583?null:_0x5b244e:null;}[_0x4cf9('0x32')](){this['_onAccept'](this[_0x4cf9('0x1')](),this[_0x4cf9('0xa')],this[_0x4cf9('0x11')]),this[_0x4cf9('0x0')]();}[_0x4cf9('0x24')](){this['_onDiscard'](this[_0x4cf9('0x1')](),this[_0x4cf9('0xa')],this[_0x4cf9('0x11')]),this[_0x4cf9('0x0')]();}[_0x4cf9('0x2c')](){const _0x1d2e02=[];let _0x1b9e3d=this['head'];for(;_0x1b9e3d;)_0x1d2e02[_0x4cf9('0x16')](_0x1b9e3d),_0x1b9e3d=_0x1b9e3d['next'];return _0x1d2e02;}[_0x4cf9('0x19')](_0x11ed76,_0x214f6f){const _0x3a281c=_0x35d73d(this['attributes']);_0x1c5d72(_0x3a281c,_0x11ed76,_0x214f6f),_0x132e11(_0x3a281c,this[_0x4cf9('0x11')])||(this['attributes']=_0x3a281c,this[_0x4cf9('0x6')](_0x3a281c));}['removeAttribute'](_0x99e7aa){const _0x1a06c5=_0x35d73d(this[_0x4cf9('0x11')]);_0xc60b39(_0x1a06c5,_0x99e7aa),_0x132e11(_0x1a06c5,this['attributes'])||(this[_0x4cf9('0x11')]=_0x1a06c5,this['_onAttributesChange'](this[_0x4cf9('0x11')]));}[_0x4cf9('0x20')](){return{'id':this['id'],'type':this[_0x4cf9('0x14')]?this[_0x4cf9('0x37')]+':'+this[_0x4cf9('0x14')]:this[_0x4cf9('0x37')],'authorId':this[_0x4cf9('0x1c')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x4cf9('0xe')],'data':this[_0x4cf9('0xa')],'attributes':this[_0x4cf9('0x11')]};}static['getMultiRangeId'](){return _0x368a8c()[_0x4cf9('0x2a')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x156a=['getWalker','elementStart','set','start','remove','removeEmptyContainer','indexOf','nextSibling','length','name','element','_resolveDescriptionItems','$1\x20$2','Object','registerDescriptionCallback','isObject','previousSibling','push','Container','deletion','*Merge:*\x20%0','_schema','addContainer','_itemLabelsCallbacks','getItemLabel','REPLACE_TEXT','type','_locale','matchingCallback','*Split:*\x20%0','match','*Insert:*\x20%0','elementEnd','getFirstRange','replace','$textProxy','registerElementLabel','_itemLabels','ELEMENT_SPACE','insertion','isInContent','pop','_customCallbacks','_addDescriptionItems','item','end','quantity','skip','add','isEmpty','*Remove:*\x20%0','data','checkChild','text','get'];(function(_0x2a9f14,_0x156a9f){const _0x293f83=function(_0x3570d3){while(--_0x3570d3){_0x2a9f14['push'](_0x2a9f14['shift']());}};_0x293f83(++_0x156a9f);}(_0x156a,0x117));const _0x293f=function(_0x2a9f14,_0x156a9f){_0x2a9f14=_0x2a9f14-0x0;let _0x293f83=_0x156a[_0x2a9f14];return _0x293f83;};import{getTranslation as _0x6de871}from'./utils/common-translations';import{priorities as _0x199d60,insertToPriorityArray as _0x1eda7f}from'ckeditor5/src/utils';export default class m{constructor(_0x30efb1,_0x3e4982){this[_0x293f('0x26')]=[],this[_0x293f('0x21')]=new Map(),this[_0x293f('0x13')]=[],this[_0x293f('0x11')]=_0x30efb1,this[_0x293f('0x17')]=_0x3e4982;}['getDescriptions'](_0x45ddb8){const _0x256c60=[];for(let _0xb321ff=0x0;_0xb321ff<_0x45ddb8['length'];_0xb321ff++){const _0x2c2beb=_0x45ddb8[_0xb321ff];if(!_0x2c2beb[_0x293f('0x24')])continue;let _0x511909=!0x1;for(const _0xf431e9 of this[_0x293f('0x26')]){const _0x3a09fd=_0xf431e9(_0x2c2beb);if(_0x3a09fd){_0x293f('0x16')in _0x3a09fd&&_0x256c60[_0x293f('0xd')](_0x3a09fd),_0x511909=!0x0;break;}}if(!_0x511909){this['_addDescriptionItems'](_0x256c60,_0x2c2beb);const _0x4c18ff=_0x45ddb8[_0xb321ff+0x1];if(_0x4c18ff&&!_0x2c2beb[_0x293f('0x1d')]()[_0x293f('0x29')]['isEqual'](_0x4c18ff[_0x293f('0x1d')]()[_0x293f('0x36')])){const _0x146e42=_0x256c60[_0x256c60[_0x293f('0x4')]-0x1],_0x10005c=_0x293f('0x23')==_0x2c2beb[_0x293f('0x16')]?_0x293f('0x2c'):_0x293f('0x0');_0x146e42&&_0x293f('0x31')==_0x146e42['type']&&(_0x146e42[_0x10005c]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x256c60);}[_0x293f('0xa')](_0x93f621){this[_0x293f('0x26')][_0x293f('0xd')](_0x93f621);}[_0x293f('0x20')](_0x12a341,_0x2ecd7d,_0x27a571=_0x199d60['normal']){'function'==typeof _0x12a341?_0x1eda7f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x12a341,'label':_0x2ecd7d,'priority':_0x27a571}):this[_0x293f('0x21')][_0x293f('0x35')](_0x12a341,_0x2ecd7d);}[_0x293f('0x14')](_0x982f96,_0x3565e1=0x1){let _0x3b97eb;for(const _0x519e55 of this['_itemLabelsCallbacks'])if(_0x519e55[_0x293f('0x18')](_0x982f96)){_0x3b97eb=_0x519e55['label'];break;}return _0x3b97eb||(_0x3b97eb=this[_0x293f('0x21')][_0x293f('0x32')](_0x982f96['name'])),_0x3b97eb?_0x3b97eb(_0x3565e1):0x1!==_0x3565e1?_0x3565e1+'\x20'+_0x982f96['name']+'s':''+_0x982f96[_0x293f('0x5')];}[_0x293f('0x27')](_0x2cbdef,_0x3369df){const _0x75d538=_0x3369df[_0x293f('0x1d')]()[_0x293f('0x33')](),_0x230459=_0x293f('0x23')==_0x3369df[_0x293f('0x16')]?_0x293f('0x2c'):_0x293f('0x0');for(const _0x5773ec of _0x75d538){const _0x1636cb=_0x5773ec[_0x293f('0x28')],_0x339bb8=_0x2cbdef[_0x2cbdef[_0x293f('0x4')]-0x1];if(_0x1636cb['is'](_0x293f('0x1f')))_0x339bb8&&_0x339bb8[_0x293f('0x16')][_0x293f('0x2')]('Container')>-0x1&&_0x2cbdef[_0x293f('0x25')](),_0x339bb8&&_0x293f('0x31')==_0x339bb8[_0x293f('0x16')]?_0x339bb8[_0x230459]+=_0x1636cb[_0x293f('0x2f')]:_0x2cbdef[_0x293f('0xd')]({'type':_0x293f('0x31'),'add':_0x293f('0x2c')==_0x230459?_0x1636cb[_0x293f('0x2f')]:'','remove':_0x293f('0x0')==_0x230459?_0x1636cb[_0x293f('0x2f')]:''});else{if(this[_0x293f('0x11')][_0x293f('0xb')](_0x1636cb)){const _0x4e9d1f=_0x1636cb;if(_0x339bb8&&_0x339bb8[_0x293f('0x16')][_0x293f('0x2')]('Container')>-0x1&&_0x2cbdef['pop'](),_0x293f('0x1c')==_0x5773ec['type'])continue;_0x339bb8&&_0x339bb8['type']==_0x230459+'Object'&&_0x339bb8['element'][_0x293f('0x5')]==_0x4e9d1f[_0x293f('0x5')]?_0x339bb8['quantity']++:_0x2cbdef[_0x293f('0xd')]({'type':_0x230459+_0x293f('0x9'),'element':_0x4e9d1f,'quantity':0x1}),_0x75d538[_0x293f('0x2b')](_0xa05555=>!(_0x293f('0x1c')==_0xa05555[_0x293f('0x16')]&&_0xa05555['item']==_0x1636cb));}else{if(this[_0x293f('0x11')][_0x293f('0x30')](_0x1636cb,'$text')||_0x1636cb['is']('element','softBreak')){const _0x4166d3=_0x1636cb;if('add'==_0x230459&&_0x293f('0x34')==_0x5773ec[_0x293f('0x16')]||_0x293f('0x0')==_0x230459&&_0x293f('0x1c')==_0x5773ec['type'])continue;if(_0x339bb8&&-0x1==_0x339bb8[_0x293f('0x16')]['indexOf'](_0x293f('0xe'))){_0x293f('0x31')==_0x339bb8[_0x293f('0x16')]&&(_0x339bb8[_0x230459]+='\x0a');continue;}let _0x46850d;if(_0x46850d='add'==_0x230459?_0x4166d3[_0x293f('0x3')]&&!this['_schema'][_0x293f('0xb')](_0x4166d3[_0x293f('0x3')])?_0x4166d3['nextSibling']:null:_0x4166d3['previousSibling']&&!this['_schema']['isObject'](_0x4166d3['previousSibling'])?_0x4166d3[_0x293f('0xc')]:null,_0x4166d3[_0x293f('0x2d')]||_0x46850d&&_0x46850d[_0x293f('0x2d')]){const _0x3a5e1e=_0x46850d&&_0x46850d[_0x293f('0x2d')]?_0x46850d:_0x4166d3;_0x339bb8&&_0x339bb8['type']==_0x230459+'EmptyContainer'&&_0x339bb8['element'][_0x293f('0x5')]==_0x3a5e1e['name']?_0x339bb8[_0x293f('0x2a')]++:_0x2cbdef[_0x293f('0xd')]({'type':_0x230459+'EmptyContainer','element':_0x3a5e1e,'quantity':0x1});}else _0x2cbdef['push']({'type':_0x230459+_0x293f('0xe'),'element':_0x4166d3});}}}}}[_0x293f('0x7')](_0x3afd54){const _0x20e9c7=this[_0x293f('0x17')],_0x25f15c=[];for(const _0x4e2992 of _0x3afd54){switch(_0x4e2992[_0x293f('0x16')]){case _0x293f('0x31'):if(_0x4e2992[_0x293f('0x2c')]=_0x4e2992['add'][_0x293f('0x1e')](/(\S)\u000A+(\S)/g,_0x293f('0x8'))[_0x293f('0x1e')](/\u000A/g,''),_0x4e2992[_0x293f('0x0')]=_0x4e2992['remove'][_0x293f('0x1e')](/(\S)\u000A+(\S)/g,_0x293f('0x8'))[_0x293f('0x1e')](/\u000A/g,''),''!=_0x4e2992[_0x293f('0x2c')]&&''!=_0x4e2992['remove']){_0x25f15c[_0x293f('0xd')]({'type':_0x293f('0x1e'),'content':_0x6de871(_0x20e9c7,_0x293f('0x15'),['\x22'+_0x4e2992['remove']+'\x22','\x22'+_0x4e2992[_0x293f('0x2c')]+'\x22'])});continue;}if(null!=_0x4e2992[_0x293f('0x2c')][_0x293f('0x1a')](/^ +$/)){_0x25f15c[_0x293f('0xd')]({'type':'insertion','content':_0x6de871(_0x20e9c7,_0x293f('0x1b'),_0x6de871(_0x20e9c7,_0x293f('0x22'),_0x4e2992[_0x293f('0x2c')][_0x293f('0x4')]))});continue;}if(null!=_0x4e2992[_0x293f('0x0')][_0x293f('0x1a')](/^ +$/)){_0x25f15c[_0x293f('0xd')]({'type':_0x293f('0xf'),'content':_0x6de871(_0x20e9c7,_0x293f('0x2e'),_0x6de871(_0x20e9c7,_0x293f('0x22'),_0x4e2992['remove'][_0x293f('0x4')]))});continue;}if(''!=_0x4e2992[_0x293f('0x2c')]){_0x25f15c['push']({'type':'insertion','content':_0x6de871(_0x20e9c7,_0x293f('0x1b'),'\x22'+_0x4e2992[_0x293f('0x2c')]+'\x22')});continue;}_0x25f15c[_0x293f('0xd')]({'type':_0x293f('0xf'),'content':_0x6de871(_0x20e9c7,_0x293f('0x2e'),'\x22'+_0x4e2992[_0x293f('0x0')]+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x25f15c['push']({'type':_0x293f('0x23'),'content':_0x6de871(_0x20e9c7,_0x293f('0x1b'),this[_0x293f('0x14')](_0x4e2992[_0x293f('0x6')],_0x4e2992[_0x293f('0x2a')]))});continue;case _0x293f('0x1'):case'removeObject':_0x25f15c[_0x293f('0xd')]({'type':_0x293f('0xf'),'content':_0x6de871(_0x20e9c7,'*Remove:*\x20%0',this['getItemLabel'](_0x4e2992[_0x293f('0x6')],_0x4e2992[_0x293f('0x2a')]))});continue;case _0x293f('0x12'):_0x25f15c[_0x293f('0xd')]({'type':_0x293f('0x23'),'content':_0x6de871(_0x20e9c7,_0x293f('0x19'),this['getItemLabel'](_0x4e2992[_0x293f('0x6')],_0x4e2992[_0x293f('0x2a')]))});continue;case'removeContainer':_0x25f15c[_0x293f('0xd')]({'type':'deletion','content':_0x6de871(_0x20e9c7,_0x293f('0x10'),this[_0x293f('0x14')](_0x4e2992['element'],_0x4e2992[_0x293f('0x2a')]))});continue;}_0x25f15c[_0x293f('0xd')](_0x4e2992);}return _0x25f15c;}}
|
package/src/trackchanges.d.ts
CHANGED
|
@@ -112,8 +112,10 @@ export default class TrackChanges extends Plugin {
|
|
|
112
112
|
* trackChanges: {
|
|
113
113
|
* // Do not allow users to comment suggestions (default is `false`).
|
|
114
114
|
* disableComments: true,
|
|
115
|
-
* // Do not track styling and formatting changes (default is `
|
|
116
|
-
* trackFormatChanges:
|
|
115
|
+
* // Do not track styling and formatting changes (default is `default`).
|
|
116
|
+
* trackFormatChanges: 'never',
|
|
117
|
+
* // Merges suggestion changes inside a block. (default is `true`).
|
|
118
|
+
* mergeNestedSuggestions: true
|
|
117
119
|
* }
|
|
118
120
|
* } )
|
|
119
121
|
* .then( ... )
|
|
@@ -133,13 +135,29 @@ export interface TrackChangesConfig {
|
|
|
133
135
|
*/
|
|
134
136
|
disableComments: boolean;
|
|
135
137
|
/**
|
|
136
|
-
* A property that specifies whether format changes should be tracked
|
|
138
|
+
* A property that specifies whether format changes should be tracked.
|
|
137
139
|
*
|
|
138
140
|
* Format changes are all changes other than insertions and deletions, including: styling, structure, widgets properties, etc.
|
|
139
141
|
*
|
|
140
|
-
*
|
|
142
|
+
* Possible values are:
|
|
143
|
+
*
|
|
144
|
+
* * `'always'` - all changes are going to be tracked independently (without merging).
|
|
145
|
+
* * `'default'` - format changes made inside your own insertion suggestion will be merged with it.
|
|
146
|
+
* * `'never'` - format changes will not be tracked.
|
|
147
|
+
*
|
|
148
|
+
* Defaults to `'default'`.
|
|
149
|
+
*/
|
|
150
|
+
trackFormatChanges: 'never' | 'default' | 'always';
|
|
151
|
+
/**
|
|
152
|
+
* Specifies whether suggestions on an object (e.g. image, table) should be automatically merged
|
|
153
|
+
* with suggestions inside the object (e.g. image caption, table cell).
|
|
154
|
+
*
|
|
155
|
+
* For example, when set to `true`, creating a table and writing some text inside the table will result in one suggestion.
|
|
156
|
+
* When set to `false`, it will be two separate suggestions, one for the inserted table and one for the inserted text.
|
|
157
|
+
*
|
|
158
|
+
* Keep in mind that only suggestions from the same author and of the same type are merged this way.
|
|
141
159
|
*/
|
|
142
|
-
|
|
160
|
+
mergeNestedSuggestions: boolean;
|
|
143
161
|
/**
|
|
144
162
|
* A view class to be used to create suggestion thread views.
|
|
145
163
|
*
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2cb9=['Comments','adapter','get','plugins','editor','addSuggestionData','TrackChanges','getSuggestions','getSuggestion','pluginName'];(function(_0x483fef,_0x2cb991){var _0x86e6dd=function(_0x2ff9ce){while(--_0x2ff9ce){_0x483fef['push'](_0x483fef['shift']());}};_0x86e6dd(++_0x2cb991);}(_0x2cb9,0x193));var _0x86e6=function(_0x483fef,_0x2cb991){_0x483fef=_0x483fef-0x0;var _0x86e6dd=_0x2cb9[_0x483fef];return _0x86e6dd;};import{Plugin as _0x1ff5a3}from'ckeditor5/src/core';import _0x21d1e4 from'./trackchangesui';import _0x2d05fd from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x1ff5a3{static get['requires'](){return[_0x2d05fd,_0x21d1e4,_0x86e6('0x7')];}static get[_0x86e6('0x6')](){return _0x86e6('0x3');}set[_0x86e6('0x8')](_0x5fcca){this['editor'][_0x86e6('0x0')][_0x86e6('0x9')](_0x2d05fd)[_0x86e6('0x8')]=_0x5fcca;}get[_0x86e6('0x8')](){return this[_0x86e6('0x1')]['plugins'][_0x86e6('0x9')](_0x2d05fd)['adapter'];}['addSuggestion'](_0x186c70){return this['editor']['plugins']['get'](_0x2d05fd)[_0x86e6('0x2')](_0x186c70);}['getSuggestions']({skipNotAttached:_0x1c5cb1=!0x1,toJSON:_0x28bd7c=!0x1}={}){return this[_0x86e6('0x1')][_0x86e6('0x0')]['get'](_0x2d05fd)[_0x86e6('0x4')]({'skipNotAttached':_0x1c5cb1,'toJSON':_0x28bd7c});}[_0x86e6('0x5')](_0xa568d2){return this[_0x86e6('0x1')][_0x86e6('0x0')][_0x86e6('0x9')](_0x2d05fd)[_0x86e6('0x5')](_0xa568d2);}}
|