@ckeditor/ckeditor5-track-changes 39.0.1 → 39.0.2
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/CHANGELOG.md +2 -2
- package/LICENSE.md +5 -5
- package/README.md +13 -13
- package/build/track-changes.js +1 -1
- package/lang/translations/ar.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -7
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +29 -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 _0x61a8=['getColumnIndexes','registerCustomCallback','consumable','TableEditing','writer','plugins','setAttribute','downcastDispatcher','index','nodeAfter','value','highest','start','bindElementToMarker','childCount','markerName','last','locale','requires','editing','removeClass','removeMarker:suggestion','editor','item','markerRange','has','stop','setTableColumnHeader','createTableWalker','getRowIndexes','commandName','FORMAT_REGULAR_ROW','_descriptionFactory','TableUtils','getSuggestion','markerNameToElements','data','TrackChangesEditing','table','cell','addMarker:suggestion','unbindElementFromMarkerName','model','createPositionBefore','document','isBefore','change','mapper','FORMAT_HEADER_COLUMN','_splitMarkerName','ck-suggestion-marker--active','setTableRowHeader','nodeBefore','createRange','ck-suggestion-marker-','first','end','includes','parent','data-suggestion','createPositionAfter','FORMAT_HEADER_ROW','findAncestor','*Format:*\x20%0','showSuggestionHighlights','getSelectionAffectedTableCells','selection','getAttribute','formatBlock','getCellLocation','name','get','commands','headingRows','addClass','accept','removeAttribute','forceValue','markBlockFormat','getChild'];(function(_0xcd00f4,_0x61a81a){const _0xd83182=function(_0x387829){while(--_0x387829){_0xcd00f4['push'](_0xcd00f4['shift']());}};_0xd83182(++_0x61a81a);}(_0x61a8,0x99));const _0xd831=function(_0xcd00f4,_0x61a81a){_0xcd00f4=_0xcd00f4-0x0;let _0xd83182=_0x61a8[_0xcd00f4];return _0xd83182;};import{Plugin as _0x220e0a}from'ckeditor5/src/core';import _0x2aa8e8 from'./table';import{getTranslation as _0x31ad43}from'../utils/common-translations';export default class pt extends _0x220e0a{static get[_0xd831('0x19')](){return[_0x2aa8e8];}['afterInit'](){const _0x44a036=this[_0xd831('0x1d')];if(!_0x44a036['plugins'][_0xd831('0x20')](_0xd831('0xa')))return;const _0x30ca7d=_0x44a036[_0xd831('0x18')],_0x318b6e=_0x44a036[_0xd831('0xc')][_0xd831('0x4e')](_0xd831('0x2c')),_0x4c25a4=_0x44a036[_0xd831('0xc')][_0xd831('0x4e')](_0xd831('0x28')),_0x3d3884=_0x44a036[_0xd831('0xc')][_0xd831('0x4e')](_0x2aa8e8);function _0x194402({showActiveMarker:_0x52eb84=!0x0,setDataAttribute:_0x409d99=!0x0}={}){return(_0x89fea2,_0x142108,_0xb802ca)=>{const {type:_0x1d9792,id:_0x44f35f}=_0x318b6e[_0xd831('0x38')](_0x142108[_0xd831('0x16')]),_0x19eb92=_0x318b6e['getSuggestion'](_0x44f35f);if(!_0x19eb92[_0xd831('0x2b')]||'setTableColumnHeader'!=_0x19eb92[_0xd831('0x2b')]['commandName'])return;if(_0x142108[_0xd831('0x1e')])return void _0x89fea2[_0xd831('0x21')]();if(!_0xb802ca[_0xd831('0x9')]['consume'](_0x142108[_0xd831('0x1f')],_0x89fea2[_0xd831('0x4d')]))return;const _0x59f32a=_0x142108[_0xd831('0x1f')][_0xd831('0x13')][_0xd831('0x10')],_0x329716=_0x142108[_0xd831('0x1f')][_0xd831('0x3f')][_0xd831('0x3b')],_0xd23bd0=_0x59f32a[_0xd831('0x41')][_0xd831('0x41')],{column:_0x33e79d}=_0x4c25a4[_0xd831('0x4c')](_0x59f32a),{column:_0x21b971}=_0x4c25a4[_0xd831('0x4c')](_0x329716);for(let _0x28919f=_0x33e79d;_0x28919f<=_0x21b971;_0x28919f++){const _0xd03442=_0x4c25a4[_0xd831('0x23')](_0xd23bd0,{'column':_0x28919f,'includeAllSlots':!0x1});for(const _0xeea827 of _0xd03442){const _0x226d02=_0xeea827[_0xd831('0x2e')],_0x5eb75c=_0xb802ca[_0xd831('0x36')]['toViewElement'](_0x226d02);_0xb802ca[_0xd831('0xb')][_0xd831('0x1')](_0xd831('0x3d')+_0x1d9792,_0x5eb75c),_0x409d99&&_0xb802ca['writer'][_0xd831('0xd')](_0xd831('0x42'),_0x44f35f,_0x5eb75c),_0xb802ca[_0xd831('0x36')][_0xd831('0x14')](_0x5eb75c,_0x142108[_0xd831('0x16')]),_0x52eb84&&(_0x318b6e['activeMarkers'][_0xd831('0x40')](_0x142108[_0xd831('0x16')])?_0xb802ca[_0xd831('0xb')][_0xd831('0x1')]('ck-suggestion-marker--active',_0x5eb75c):_0xb802ca['writer'][_0xd831('0x1b')](_0xd831('0x39'),_0x5eb75c));}}};}_0x318b6e['enableCommand'](_0xd831('0x3a'),(_0x2de095,_0x2513b4)=>{const _0x585365=_0x4c25a4[_0xd831('0x48')](_0x44a036[_0xd831('0x31')][_0xd831('0x33')][_0xd831('0x49')]),_0x3de822=_0x4c25a4[_0xd831('0x24')](_0x585365),_0x5c3a8a=_0x585365[0x0][_0xd831('0x45')](_0xd831('0x2d')),_0x23d914=_0x5c3a8a[_0xd831('0x4a')](_0xd831('0x0'))||0x0,_0xa165d0=_0x2513b4&&null!==_0x2513b4[_0xd831('0x4')]?_0x2513b4[_0xd831('0x4')]:!_0x44a036[_0xd831('0x4f')]['get'](_0xd831('0x3a'))[_0xd831('0x11')],_0xeb01ad=_0xa165d0?_0x3de822[_0xd831('0x17')]:_0x3de822['first'],_0x4c44f1=_0x5c3a8a[_0xd831('0x6')](_0xeb01ad);let _0x1a9696;if(_0xa165d0){const _0x3a81fd=_0x5c3a8a[_0xd831('0x6')](_0x23d914);if(_0x4c44f1[_0xd831('0xf')]<_0x3a81fd[_0xd831('0xf')])return;_0x1a9696=_0x44a036['model'][_0xd831('0x3c')](_0x44a036[_0xd831('0x31')][_0xd831('0x32')](_0x3a81fd[_0xd831('0x6')](0x0)),_0x44a036[_0xd831('0x31')][_0xd831('0x43')](_0x4c44f1[_0xd831('0x6')](_0x4c44f1[_0xd831('0x15')]-0x1)));}else{const _0x56a73d=_0x5c3a8a[_0xd831('0x6')](_0x23d914-0x1);if(!_0x56a73d)return;_0x1a9696=_0x44a036[_0xd831('0x31')][_0xd831('0x3c')](_0x44a036['model'][_0xd831('0x32')](_0x4c44f1[_0xd831('0x6')](0x0)),_0x44a036['model']['createPositionAfter'](_0x56a73d[_0xd831('0x6')](_0x56a73d['childCount']-0x1)));}_0x44a036[_0xd831('0x31')][_0xd831('0x35')](()=>{_0x318b6e['markBlockFormat'](_0x1a9696,{'commandName':_0xd831('0x3a'),'commandParams':[{'forceValue':_0xa165d0}]},[],_0xd831('0x3a'));});}),_0x318b6e['enableCommand'](_0xd831('0x22'),(_0x268a8d,_0x5b7510)=>{const _0x2e45d7=_0x44a036['plugins'][_0xd831('0x4e')]('TableUtils'),_0x46759d=_0x2e45d7[_0xd831('0x48')](_0x44a036[_0xd831('0x31')]['document'][_0xd831('0x49')]),_0x5e3601=_0x2e45d7[_0xd831('0x7')](_0x46759d),_0x2762eb=_0x46759d[0x0][_0xd831('0x45')](_0xd831('0x2d')),_0x52eca9=_0x2762eb[_0xd831('0x4a')]('headingColumns')||0x0,_0x38b369=_0x5b7510&&null!==_0x5b7510[_0xd831('0x4')]?_0x5b7510['forceValue']:!_0x44a036[_0xd831('0x4f')][_0xd831('0x4e')]('setTableColumnHeader')[_0xd831('0x11')];let _0x3b8928;const _0x4d40de=_0x2762eb[_0xd831('0x6')](0x0),_0xf0f9d6=_0x38b369?_0x5e3601[_0xd831('0x17')]:_0x5e3601[_0xd831('0x3e')],_0x2f62f0=_0x2e45d7[_0xd831('0x23')](_0x2762eb,{'startRow':0x0,'column':_0xf0f9d6,'includeAllSlots':!0x1}),_0x1e09db=Array['from'](_0x2f62f0)[0x0][_0xd831('0x2e')];if(_0x38b369){const _0x5c0a09=_0x4d40de[_0xd831('0x6')](_0x52eca9);if(_0x1e09db[_0xd831('0x34')](_0x5c0a09))return;_0x3b8928=_0x44a036[_0xd831('0x31')]['createRange'](_0x44a036['model'][_0xd831('0x32')](_0x5c0a09),_0x44a036[_0xd831('0x31')][_0xd831('0x43')](_0x1e09db));}else{const _0x163f80=_0x4d40de[_0xd831('0x6')](_0x52eca9-0x1);if(!_0x163f80)return;_0x3b8928=_0x44a036[_0xd831('0x31')][_0xd831('0x3c')](_0x44a036[_0xd831('0x31')][_0xd831('0x32')](_0x1e09db),_0x44a036['model'][_0xd831('0x43')](_0x163f80));}_0x44a036[_0xd831('0x31')]['change'](()=>{_0x318b6e[_0xd831('0x5')](_0x3b8928,{'commandName':_0xd831('0x22'),'commandParams':[{'forceValue':_0x38b369}]},[],_0xd831('0x22'));});}),_0x44a036[_0xd831('0x1a')]['downcastDispatcher']['on'](_0xd831('0x2f'),_0x194402(),{'priority':_0xd831('0x12')}),_0x44a036['data'][_0xd831('0xe')]['on'](_0xd831('0x2f'),(_0x41c5b3,_0xb8c8ae,_0x24283c)=>{_0x24283c['options'][_0xd831('0x47')]&&_0x194402({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x41c5b3,_0xb8c8ae,_0x24283c);},{'priority':_0xd831('0x12')}),_0x44a036[_0xd831('0x1a')][_0xd831('0xe')]['on'](_0xd831('0x1c'),(_0x3b6c1a,_0x263a23,_0x16942c)=>{const {type:_0x59a349,id:_0x3563fd}=_0x318b6e[_0xd831('0x38')](_0x263a23['markerName']),_0x4357ca=_0x318b6e[_0xd831('0x29')](_0x3563fd);if(!_0x4357ca['data']||_0xd831('0x22')!=_0x4357ca['data'][_0xd831('0x25')])return;const _0x5f0a9c=_0x16942c[_0xd831('0x36')][_0xd831('0x2a')](_0x263a23[_0xd831('0x16')]);if(_0x5f0a9c)for(const _0x30e276 of _0x5f0a9c)_0x16942c[_0xd831('0xb')][_0xd831('0x1b')]('ck-suggestion-marker-'+_0x59a349,_0x30e276),_0x16942c[_0xd831('0xb')][_0xd831('0x1b')]('ck-suggestion-marker--active',_0x30e276),_0x16942c[_0xd831('0xb')][_0xd831('0x3')]('data-suggestion',_0x30e276),_0x16942c[_0xd831('0x36')][_0xd831('0x30')](_0x30e276,_0x263a23[_0xd831('0x16')]);},{'priority':'highest'}),_0x318b6e[_0xd831('0x27')]['registerDescriptionCallback'](_0x54a3ab=>{const {data:_0x18f67e}=_0x54a3ab;if(_0x18f67e){if('setTableRowHeader'==_0x18f67e[_0xd831('0x25')]){const _0x47f6ed=_0x18f67e['commandParams'][0x0][_0xd831('0x4')];return _0x5d361e(_0x31ad43(_0x30ca7d,_0x47f6ed?_0xd831('0x44'):_0xd831('0x26')));}if(_0xd831('0x22')==_0x18f67e[_0xd831('0x25')]){const _0x27e659=_0x18f67e['commandParams'][0x0][_0xd831('0x4')];return _0x5d361e(_0x31ad43(_0x30ca7d,_0x27e659?_0xd831('0x37'):'FORMAT_REGULAR_COLUMN'));}}function _0x5d361e(_0x4473fd){return{'type':'format','content':_0x31ad43(_0x30ca7d,_0xd831('0x46'),_0x4473fd)};}});const _0xaa450f=_0x3d3884['_acceptFormatSuggestionCallbackFactory']();_0x318b6e['_suggestionFactory'][_0xd831('0x8')]('formatBlock',_0xd831('0x3a'),_0xd831('0x2'),_0xaa450f),_0x318b6e['_suggestionFactory'][_0xd831('0x8')](_0xd831('0x4b'),'setTableColumnHeader','accept',_0xaa450f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32fc=['mergeTableCellLeft','mergeTableCellRight','has','find','_isForcedDefaultExecutionBlock','formatBlock','tableCell','*Merge\x20cells*','horizontally','get','element','value','setSelection','_acceptFormatSuggestionCallbackFactory','getAncestors','getSuggestions','commandName','_areSelectedCellsMergable','change','type','size','findAncestor','deletion','length','editor','stop','mergeTableCellUp','splitTableCellHorizontally','model','TrackChangesEditing','document','markBlockFormat','registerCustomCallback','detach','highest','markMultiRangeBlockFormat','enableCommand','createTableWalker','splitTableCellVertically','author','plugins','direction','selection','format','TableEditing','from','createRangeOn','_areMergableCells','requires','mergeTableCellDown','push','commands','trackChanges','getRanges','cell','getFirstPosition','add','afterInit','containsRange','accept','mergeTableCells','locale','insertion','_tablePostFixingSubtypes','TableUtils','registerDescriptionCallback','subType','execute','refresh','isInContent','_suggestionFactory','fromRange','rootName','map','low','getSelectionAffectedTableCells','*Split\x20cell:*\x20vertically'];(function(_0x43991f,_0x32fce6){const _0x1def32=function(_0x261750){while(--_0x261750){_0x43991f['push'](_0x43991f['shift']());}};_0x1def32(++_0x32fce6);}(_0x32fc,0x180));const _0x1def=function(_0x43991f,_0x32fce6){_0x43991f=_0x43991f-0x0;let _0x1def32=_0x32fc[_0x43991f];return _0x1def32;};import{Plugin as _0x1c99b2}from'ckeditor5/src/core';import _0x4cdabb from'./table';import{LiveRange as _0x2df9e5}from'ckeditor5/src/engine';import{getTranslation as _0x3b6c68}from'../utils/common-translations';export default class dt extends _0x1c99b2{static get[_0x1def('0x31')](){return[_0x4cdabb];}[_0x1def('0x3a')](){const _0x12172b=this[_0x1def('0x19')],_0xc2aeb1=_0x12172b[_0x1def('0x1d')][_0x1def('0x1f')][_0x1def('0x2b')],_0x3c38b8=_0x12172b[_0x1def('0x3e')];if(!_0x12172b[_0x1def('0x29')][_0x1def('0x3')](_0x1def('0x2d')))return;const _0x1a001a=_0x12172b[_0x1def('0x29')][_0x1def('0xa')](_0x1def('0x1e')),_0x318cf7=_0x12172b[_0x1def('0x29')]['get'](_0x1def('0x41')),_0xcb5888=_0x12172b['plugins'][_0x1def('0xa')](_0x4cdabb);_0xcb5888[_0x1def('0x40')][_0x1def('0x33')]('mergeTableCells'),_0x1a001a[_0x1def('0x25')](_0x1def('0x3d'),()=>{const _0xc3f9a1=_0x318cf7['getSelectionAffectedTableCells'](_0x12172b['model']['document'][_0x1def('0x2b')]);_0x12172b[_0x1def('0x1d')][_0x1def('0x13')](()=>{_0x1a001a[_0x1def('0x24')](_0xc3f9a1,{'commandName':_0x1def('0x3d'),'commandParams':[]},[],_0x1def('0x3d'));});}),_0x12172b['commands'][_0x1def('0xa')](_0x1def('0x3d'))['on'](_0x1def('0x44'),(_0x21a497,_0x569b4e)=>{_0x12172b['commands'][_0x1def('0xa')](_0x1def('0x35'))[_0x1def('0xc')]&&(_0x569b4e[_0x1def('0x18')]>0x0&&_0x569b4e[_0x569b4e[_0x1def('0x18')]-0x1]&&_0x569b4e[_0x569b4e['length']-0x1]['forceDefaultExecution']||_0x1a001a[_0x1def('0x5')]||this[_0x1def('0x12')]()||_0x21a497[_0x1def('0x1a')]());},{'priority':_0x1def('0x23')});for(const _0x57b502 of[_0x1def('0x1b'),_0x1def('0x2'),_0x1def('0x32'),_0x1def('0x1')]){const _0x112e9d=_0x12172b[_0x1def('0x34')][_0x1def('0xa')](_0x57b502);_0x1a001a[_0x1def('0x25')](_0x57b502,()=>{const _0x4e6d72=_0x12172b[_0x1def('0x1d')][_0x1def('0x1f')]['selection']['getFirstPosition']()['getAncestors']()['find'](_0xba405b=>_0xba405b['is'](_0x1def('0xb'),_0x1def('0x7'))),_0xc7351=_0x112e9d[_0x1def('0xc')];_0x12172b[_0x1def('0x1d')][_0x1def('0x13')](()=>{_0x1a001a['markMultiRangeBlockFormat']([_0x4e6d72,_0xc7351],{'commandName':_0x1def('0x3d'),'commandParams':[]},[],_0x1def('0x3d'));});});}for(const _0x185cdd of[_0x1def('0x27'),'splitTableCellHorizontally']){const _0x71c60f=_0x12172b[_0x1def('0x34')][_0x1def('0xa')](_0x185cdd);_0x1a001a[_0x1def('0x25')](_0x185cdd,()=>{const _0x2800c8=_0x318cf7[_0x1def('0x4c')](_0x12172b['model'][_0x1def('0x1f')]['selection'])[0x0],_0x37e889=_0x2800c8[_0x1def('0x16')]('table'),{column:_0x4be12c,row:_0x364652}=_0x318cf7['getCellLocation'](_0x2800c8);let _0x19f11e=[];if(_0x1def('0x9')==_0x71c60f[_0x1def('0x2a')]){const _0x21ba43=_0x318cf7[_0x1def('0x26')](_0x37e889,{'startRow':_0x364652,'endRow':_0x364652,'includeAllSlots':!0x0});_0x19f11e=Array[_0x1def('0x2e')](_0x21ba43)['map'](_0x4daaab=>_0x4daaab[_0x1def('0x37')]);}else{const _0x2aa8cd=_0x318cf7['createTableWalker'](_0x37e889,{'column':_0x4be12c,'includeAllSlots':!0x0});_0x19f11e=Array[_0x1def('0x2e')](_0x2aa8cd)[_0x1def('0x4a')](_0x50296a=>_0x50296a[_0x1def('0x37')]);}_0x12172b[_0x1def('0x1d')]['change'](_0x3f0670=>{_0x1a001a[_0x1def('0x20')](_0x3f0670[_0x1def('0x2f')](_0x2800c8),{'commandName':_0x185cdd,'commandParams':[]},_0x19f11e,_0x185cdd);});});}_0x1a001a['_descriptionFactory'][_0x1def('0x42')](_0x2e3a2e=>{const {data:_0x47c288}=_0x2e3a2e;if(_0x47c288)return'mergeTableCells'==_0x47c288['commandName']?{'type':'format','content':_0x3b6c68(_0x3c38b8,_0x1def('0x8'))}:void 0x0;}),_0x1a001a['_descriptionFactory'][_0x1def('0x42')](_0x22267b=>{const {data:_0x3a733e}=_0x22267b;if(_0x3a733e)return _0x1def('0x27')==_0x3a733e[_0x1def('0x11')]?{'type':_0x1def('0x2c'),'content':_0x3b6c68(_0x3c38b8,_0x1def('0x0'))}:'splitTableCellHorizontally'==_0x3a733e[_0x1def('0x11')]?{'type':_0x1def('0x2c'),'content':_0x3b6c68(_0x3c38b8,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x77d5b3=_0xcb5888[_0x1def('0xe')]();for(const _0xfdb85d of['mergeTableCellUp',_0x1def('0x2'),_0x1def('0x32'),_0x1def('0x1')])_0x1a001a[_0x1def('0x47')]['registerCustomCallback']('formatBlock',_0xfdb85d,_0x1def('0x3c'),_0x77d5b3);for(const _0x2327ba of[_0x1def('0x27'),_0x1def('0x1c')])_0x1a001a[_0x1def('0x47')][_0x1def('0x21')](_0x1def('0x6'),_0x2327ba,_0x1def('0x3c'),_0x77d5b3);_0x1a001a['_suggestionFactory'][_0x1def('0x21')]('formatBlock','mergeTableCells',_0x1def('0x3c'),_0x3f40c4=>{_0x12172b[_0x1def('0x1d')]['change'](_0x2e30f2=>{const _0x56b6f8=Array[_0x1def('0x2e')](_0xc2aeb1[_0x1def('0x36')]())['map'](_0x4eaaa9=>_0x2df9e5[_0x1def('0x48')](_0x4eaaa9));_0x2e30f2[_0x1def('0xd')](_0x3f40c4),_0x12172b[_0x1def('0x34')]['get']('mergeTableCells')[_0x1def('0x45')](),_0x12172b[_0x1def('0x44')](_0x1def('0x3d'),{'forceDefaultExecution':!0x0});const _0xcddf64=_0x56b6f8['filter'](_0x13e320=>'$graveyard'!=_0x13e320['root'][_0x1def('0x49')]);_0xcddf64[_0x1def('0x18')]>0x0&&_0x2e30f2['setSelection'](_0xcddf64);for(const _0x59051c of _0x56b6f8)_0x59051c[_0x1def('0x22')]();});});for(const _0x4edc9d of['mergeTableCellUp','mergeTableCellDown',_0x1def('0x1'),_0x1def('0x2')]){const _0x2cd553=_0x12172b[_0x1def('0x34')][_0x1def('0xa')](_0x4edc9d);_0x2cd553['on']('set:isEnabled',(_0xbafbfc,_0x43c63c,_0x500192)=>{if(_0x500192){const _0x371767=_0x12172b[_0x1def('0x1d')]['document']['selection'][_0x1def('0x38')]()[_0x1def('0xf')]()[_0x1def('0x4')](_0x3d3b7c=>_0x3d3b7c['is']('element',_0x1def('0x7')));this[_0x1def('0x30')](_0x2cd553[_0x1def('0xc')],_0x371767)||(_0xbafbfc['return']=!0x1,_0xbafbfc[_0x1def('0x1a')]());}},{'priority':_0x1def('0x4b')});}}[_0x1def('0x12')](){const _0x57e7bb=this['editor']['commands'][_0x1def('0xa')](_0x1def('0x3d')),_0x26cca1=this['editor'][_0x1def('0x29')][_0x1def('0xa')]('TableUtils');if(!_0x57e7bb['isEnabled'])return!0x1;const _0x4ef94c=_0x26cca1[_0x1def('0x4c')](this[_0x1def('0x19')][_0x1def('0x1d')][_0x1def('0x1f')]['selection']);for(const _0x17212a of _0x4ef94c)for(const _0x1efab1 of _0x4ef94c)if(_0x17212a!=_0x1efab1&&!this[_0x1def('0x30')](_0x17212a,_0x1efab1))return!0x1;return!0x0;}[_0x1def('0x30')](_0x786cfa,_0x228f58){const _0xc99711=this[_0x1def('0x19')]['plugins']['get'](_0x1def('0x1e')),_0x1a3f96=this[_0x1def('0x19')][_0x1def('0x1d')][_0x1def('0x2f')](_0x786cfa),_0x55f31c=this[_0x1def('0x19')][_0x1def('0x1d')][_0x1def('0x2f')](_0x228f58),_0x1c0e25=new Set(),_0x7f331b=new Set();for(const _0x3ba037 of _0xc99711[_0x1def('0x10')]())if((_0x1def('0x3f')==_0x3ba037[_0x1def('0x14')]||_0x1def('0x17')==_0x3ba037['type']||_0x1def('0x3d')==_0x3ba037[_0x1def('0x43')])&&_0x3ba037[_0x1def('0x46')])for(const _0x1ddebc of _0x3ba037[_0x1def('0x36')]())_0x1ddebc[_0x1def('0x3b')](_0x1a3f96,!0x0)&&_0x1c0e25[_0x1def('0x39')](_0x3ba037[_0x1def('0x14')]+':'+_0x3ba037[_0x1def('0x28')]['id']),_0x1ddebc[_0x1def('0x3b')](_0x55f31c,!0x0)&&_0x7f331b[_0x1def('0x39')](_0x3ba037[_0x1def('0x14')]+':'+_0x3ba037[_0x1def('0x28')]['id']);if(_0x1c0e25[_0x1def('0x15')]!=_0x7f331b[_0x1def('0x15')])return!0x1;for(const _0x104a6 of _0x1c0e25)if(!_0x7f331b[_0x1def('0x3')](_0x104a6))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a9f=['tableOfContents','_descriptionFactory','insertTableOfContents','TrackChangesEditing','plugins','editor','ELEMENT_TABLE_OF_CONTENTS','enableCommand','afterInit','get','commands'];(function(_0x5c1925,_0x1a9f5d){const _0x241e29=function(_0x2d75f4){while(--_0x2d75f4){_0x5c1925['push'](_0x5c1925['shift']());}};_0x241e29(++_0x1a9f5d);}(_0x1a9f,0x1e7));const _0x241e=function(_0x5c1925,_0x1a9f5d){_0x5c1925=_0x5c1925-0x0;let _0x241e29=_0x1a9f[_0x5c1925];return _0x241e29;};import{Plugin as _0x883976}from'ckeditor5/src/core';import{getTranslation as _0x1e0a6f}from'../utils/common-translations';export default class bt extends _0x883976{[_0x241e('0x5')](){const _0x13f134=this[_0x241e('0x2')];if(!_0x13f134[_0x241e('0x7')]['get'](_0x241e('0xa')))return;_0x13f134['plugins']['get'](_0x241e('0x0'))[_0x241e('0x4')]('insertTableOfContents');const _0x5d2385=_0x13f134[_0x241e('0x1')][_0x241e('0x6')]('TrackChangesEditing'),_0x45073d=_0x13f134['locale'];_0x5d2385[_0x241e('0x9')]['registerElementLabel'](_0x241e('0x8'),_0x40ab2b=>_0x1e0a6f(_0x45073d,_0x241e('0x3'),_0x40ab2b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf0b2=['_getSuggestion','tableCellProperties','commandParams','registerCustomCallback','document','*Format:*\x20change\x20table\x20cell\x20properties','afterInit','locale','handleDiscardAction','tableCellVerticalAlignment','setAttribute','tableCellPadding','enableCommand','data','nodeAfter','change','findAncestor','accept','tableWidth','subType','tableCellHeight','plugins','_descriptionFactory','tableBorderStyle','tableCellBorderWidth','*Format:*\x20change\x20table\x20properties','model','tableAlignment','has','tableCellBorderStyle','_handlePropertyChange','tableBackgroundColor','tableBorderWidth','getSuggestionCallback','tableProperties','discard','tableCellWidth','getContainedElement','TableUtils','TablePropertiesEditing','formatBlock','removeAttribute','editor','get','batch','pluginName','handleSuggestionDescription','_suggestionFactory','enqueueChange','selection','getFirstPosition','tableCellBackgroundColor','TrackChangesEditing','join','TrackChangesTableProperties','table'];(function(_0x32c8f7,_0xf0b233){const _0x4aadca=function(_0x546365){while(--_0x546365){_0x32c8f7['push'](_0x32c8f7['shift']());}};_0x4aadca(++_0xf0b233);}(_0xf0b2,0x139));const _0x4aad=function(_0x32c8f7,_0xf0b233){_0x32c8f7=_0x32c8f7-0x0;let _0x4aadca=_0xf0b2[_0x32c8f7];return _0x4aadca;};import{Plugin as _0x305669}from'ckeditor5/src/core';import{getTranslation as _0x678263}from'../utils/common-translations';export default class Ct extends _0x305669{constructor(_0x4f4fbd){super(_0x4f4fbd),this['tableProperties']=['tableBorderColor',_0x4aad('0x2e'),_0x4aad('0x37'),_0x4aad('0x32'),_0x4aad('0x29'),'tableHeight',_0x4aad('0x36')],this[_0x4aad('0x18')]=['tableCellBorderColor',_0x4aad('0x34'),_0x4aad('0x2f'),_0x4aad('0x22'),_0x4aad('0x3'),_0x4aad('0x2b'),_0x4aad('0x12'),'tableCellHorizontalAlignment',_0x4aad('0x20')];}static get[_0x4aad('0xc')](){return _0x4aad('0x15');}[_0x4aad('0x1d')](){const _0x430211=this[_0x4aad('0x9')][_0x4aad('0x2c')]['get'](_0x4aad('0x13'));if(this[_0x4aad('0x9')][_0x4aad('0x2c')][_0x4aad('0x33')](_0x4aad('0x6'))){for(const _0x59343a of this[_0x4aad('0x1')])_0x430211[_0x4aad('0x23')](_0x59343a,(_0x4d7d35,_0xfc0243)=>{const _0x5d0868=this[_0x4aad('0x9')][_0x4aad('0x31')][_0x4aad('0x1b')][_0x4aad('0x10')][_0x4aad('0x11')]()[_0x4aad('0x27')](_0x4aad('0x16'));this[_0x4aad('0x35')](_0x59343a,[_0x5d0868],this['tableProperties'],_0x4aad('0x1'),_0x4d7d35,_0xfc0243);});_0x430211['_suggestionFactory'][_0x4aad('0x1a')](_0x4aad('0x7'),_0x4aad('0x1'),_0x4aad('0x28'),_0x430211['_suggestionFactory'][_0x4aad('0x0')]('formatBlock',null,'discard')),_0x430211[_0x4aad('0xe')][_0x4aad('0x1a')](_0x4aad('0x7'),_0x4aad('0x1'),_0x4aad('0x2'),(_0x136f31,_0x34597b)=>this[_0x4aad('0x1f')](this[_0x4aad('0x1')],_0x136f31,_0x34597b)),_0x430211[_0x4aad('0xe')][_0x4aad('0x1a')]('formatBlock',_0x4aad('0x1'),_0x4aad('0x14'),()=>!0x1);}if(this[_0x4aad('0x9')][_0x4aad('0x2c')][_0x4aad('0x33')]('TableCellPropertiesEditing')){for(const _0x5f2646 of this['tableCellProperties'])_0x430211[_0x4aad('0x23')](_0x5f2646,(_0x10c7f7,_0xce761a)=>{const _0x55e792=this[_0x4aad('0x9')][_0x4aad('0x2c')][_0x4aad('0xa')](_0x4aad('0x5'))['getSelectionAffectedTableCells'](this['editor'][_0x4aad('0x31')][_0x4aad('0x1b')]['selection']);this[_0x4aad('0x35')](_0x5f2646,_0x55e792,this[_0x4aad('0x18')],_0x4aad('0x18'),_0x10c7f7,_0xce761a);});_0x430211['_suggestionFactory'][_0x4aad('0x1a')](_0x4aad('0x7'),_0x4aad('0x18'),'accept',_0x430211[_0x4aad('0xe')][_0x4aad('0x0')](_0x4aad('0x7'),null,_0x4aad('0x2'))),_0x430211[_0x4aad('0xe')][_0x4aad('0x1a')]('formatBlock',_0x4aad('0x18'),_0x4aad('0x2'),(_0x2df51f,_0x552f2b)=>this[_0x4aad('0x1f')](this[_0x4aad('0x18')],_0x2df51f,_0x552f2b)),_0x430211[_0x4aad('0xe')][_0x4aad('0x1a')](_0x4aad('0x7'),_0x4aad('0x18'),'join',()=>!0x1);}_0x430211[_0x4aad('0x2d')]['registerDescriptionCallback'](_0xa488a6=>this['handleSuggestionDescription'](_0xa488a6));}[_0x4aad('0x35')](_0x497d61,_0x3f06cd,_0x245f73,_0x4e474d,_0x189a76,_0x2e5d4f){const _0x29737f=this[_0x4aad('0x9')]['plugins'][_0x4aad('0xa')](_0x4aad('0x13'));this['editor'][_0x4aad('0x31')][_0x4aad('0xf')](_0x2e5d4f[_0x4aad('0xb')],()=>{for(const _0x5bebd2 of _0x3f06cd){if(this[_0x4aad('0x17')](_0x5bebd2,_0x4e474d))_0x189a76(_0x2e5d4f);else{const _0x355da2={};for(const _0x2344d9 of _0x245f73){const _0x29df9f=_0x5bebd2['getAttribute'](_0x2344d9);void 0x0!==_0x29df9f&&(_0x355da2[_0x2344d9]=_0x29df9f);}_0x189a76(_0x2e5d4f),_0x29737f['markBlockFormat'](_0x5bebd2,{'commandParams':[_0x355da2]},[],_0x4e474d);}}});}[_0x4aad('0x1f')](_0x169122,_0x555e8d,_0x38d78e){const _0x4911f3=_0x555e8d[0x0]['start'][_0x4aad('0x25')],_0x5dcf6d=_0x38d78e[_0x4aad('0x19')][0x0];this[_0x4aad('0x9')]['model'][_0x4aad('0x26')](_0x52fc80=>{for(const _0x99aac5 of _0x169122)void 0x0!==_0x5dcf6d[_0x99aac5]?_0x52fc80[_0x4aad('0x21')](_0x99aac5,_0x5dcf6d[_0x99aac5],_0x4911f3):_0x52fc80[_0x4aad('0x8')](_0x99aac5,_0x4911f3);});}[_0x4aad('0xd')](_0x1fe363){if(_0x1fe363[_0x4aad('0x24')])switch(_0x1fe363[_0x4aad('0x2a')]){case _0x4aad('0x1'):return{'type':'format','content':_0x678263(this[_0x4aad('0x9')][_0x4aad('0x1e')],_0x4aad('0x30'))};case _0x4aad('0x18'):return{'type':'format','content':_0x678263(this[_0x4aad('0x9')][_0x4aad('0x1e')],_0x4aad('0x1c'))};}}[_0x4aad('0x17')](_0x496426,_0x235484){const _0x28013d=this[_0x4aad('0x9')][_0x4aad('0x2c')][_0x4aad('0xa')](_0x4aad('0x13'));for(const _0x5242e8 of _0x28013d['getSuggestions']({'skipNotAttached':!0x0})){const _0xbeef78=_0x5242e8[_0x4aad('0x4')]();if(_0x5242e8[_0x4aad('0x2a')]===_0x235484&&_0xbeef78===_0x496426)return _0x5242e8;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4657=['TrackChangesEditing','has','editor','plugins','afterInit','Template','insertTemplate'];(function(_0x114d6a,_0x46573e){const _0x37d67b=function(_0x529d09){while(--_0x529d09){_0x114d6a['push'](_0x114d6a['shift']());}};_0x37d67b(++_0x46573e);}(_0x4657,0xac));const _0x37d6=function(_0x114d6a,_0x46573e){_0x114d6a=_0x114d6a-0x0;let _0x37d67b=_0x4657[_0x114d6a];return _0x37d67b;};import{Plugin as _0x26b39b}from'ckeditor5/src/core';export default class yt extends _0x26b39b{[_0x37d6('0x0')](){const _0x2f911f=this[_0x37d6('0x5')];_0x2f911f['plugins'][_0x37d6('0x4')](_0x37d6('0x1'))&&_0x2f911f[_0x37d6('0x6')]['get'](_0x37d6('0x3'))['enableCommand'](_0x37d6('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d87=['document','registerElementLabel','locale','forward','has','title-content','ELEMENT_TITLE','TrackChangesEditing','nodeBefore','removeMarker','isTouching','from','Title','registerPostFixer','_descriptionFactory','newRange','editor','isCollapsed','differ','end','isEqual','get','model','afterInit','element','suggestion','start','plugins'];(function(_0x3fcf64,_0x3d8708){const _0x56dcc=function(_0x4ebb49){while(--_0x4ebb49){_0x3fcf64['push'](_0x3fcf64['shift']());}};_0x56dcc(++_0x3d8708);}(_0x3d87,0x170));const _0x56dc=function(_0x3fcf64,_0x3d8708){_0x3fcf64=_0x3fcf64-0x0;let _0x56dcc=_0x3d87[_0x3fcf64];return _0x56dcc;};import{Plugin as _0x2fcf20}from'ckeditor5/src/core';import{getTranslation as _0x1d6015}from'../utils/common-translations';export default class St extends _0x2fcf20{[_0x56dc('0x13')](){const _0x2d262e=this[_0x56dc('0xc')];if(!_0x2d262e[_0x56dc('0x17')][_0x56dc('0x0')](_0x56dc('0x8')))return;const _0x4477fc=_0x2d262e[_0x56dc('0x17')][_0x56dc('0x11')](_0x56dc('0x3'));_0x4477fc[_0x56dc('0xa')][_0x56dc('0x19')](_0x56dc('0x1'),()=>_0x1d6015(_0x2d262e[_0x56dc('0x1a')],_0x56dc('0x2'))),_0x2d262e[_0x56dc('0x12')]['document'][_0x56dc('0x9')](_0x1504f8=>{let _0x2c8eb1=!0x1;const _0xaba6a0=Array[_0x56dc('0x7')](_0x2d262e[_0x56dc('0x12')][_0x56dc('0x18')][_0x56dc('0xe')]['getChangedMarkers']());for(const {name:_0x5a3525,data:_0x58f086}of _0xaba6a0){const {group:_0x591c84}=_0x4477fc['_splitMarkerName'](_0x5a3525);if(_0x56dc('0x15')!==_0x591c84||!_0x58f086['newRange'])continue;const _0x22e7cd=_0x58f086[_0x56dc('0xb')],_0x336648=_0x22e7cd[_0x56dc('0xf')][_0x56dc('0x4')];if(!_0x336648||!_0x336648['is'](_0x56dc('0x14'),_0x56dc('0x1')))continue;if(!_0x22e7cd[_0x56dc('0x16')][_0x56dc('0x6')](_0x22e7cd['end']))continue;const _0xdce3a8=_0x2d262e[_0x56dc('0x12')]['schema']['getNearestSelectionRange'](_0x22e7cd['end'],_0x56dc('0x1b'));if(_0xdce3a8&&_0xdce3a8[_0x56dc('0xd')]){const _0x37fba5=_0x1504f8['createRange'](_0x22e7cd['start'],_0xdce3a8['start']);_0x37fba5[_0x56dc('0x10')](_0x22e7cd)||(_0x1504f8['updateMarker'](_0x5a3525,{'range':_0x37fba5}),_0x2c8eb1=!0x0);}_0x2c8eb1||(_0x1504f8[_0x56dc('0x5')](_0x5a3525),_0x2c8eb1=!0x0);}return _0x2c8eb1;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ebd=['TrackChangesEditing','UndoEditing','editor','redo','plugins','afterInit','get','undo'];(function(_0x313d30,_0x1ebd47){const _0x24a89f=function(_0x2665d2){while(--_0x2665d2){_0x313d30['push'](_0x313d30['shift']());}};_0x24a89f(++_0x1ebd47);}(_0x1ebd,0x133));const _0x24a8=function(_0x313d30,_0x1ebd47){_0x313d30=_0x313d30-0x0;let _0x24a89f=_0x1ebd[_0x313d30];return _0x24a89f;};import{Plugin as _0x344ed2}from'ckeditor5/src/core';export default class It extends _0x344ed2{[_0x24a8('0x2')](){const _0x3000d5=this[_0x24a8('0x7')],_0x34e8b2=_0x3000d5['plugins'][_0x24a8('0x3')](_0x24a8('0x5'));_0x3000d5[_0x24a8('0x1')]['has'](_0x24a8('0x6'))&&(_0x34e8b2['enableCommand'](_0x24a8('0x4')),_0x34e8b2['enableCommand'](_0x24a8('0x0')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9f27=['listIndent','getItems','get','includes','isBlock','markerName','isAtEnd','start','ck-suggestion-marker--active','listItem','span','push','markerRange','nextSibling','item','getCustomProperty','parent','type','name','toViewElement','createUIElement','element','getAttribute','ck-suggestion-marker-','toViewPosition','model','consumable','getWalker','createRangeOn','elementEnd','test','mapper','TrackChangesEditing','isLimit','plugins','previousPosition','addHighlight','writer'];(function(_0x2d6408,_0x9f276d){const _0xcd7ee=function(_0x45c551){while(--_0x45c551){_0x2d6408['push'](_0x2d6408['shift']());}};_0xcd7ee(++_0x9f276d);}(_0x9f27,0x122));const _0xcd7e=function(_0x2d6408,_0x9f276d){_0x2d6408=_0x2d6408-0x0;let _0xcd7ee=_0x9f27[_0x2d6408];return _0xcd7ee;};export function getRangesWithAttribute(_0x528b30,_0xb1d76f,_0x3da9ac){const _0xa61494=[];for(const _0x5edac6 of _0xb1d76f[_0xcd7e('0xf')]())_0x5edac6['hasAttribute'](_0x528b30)&&_0xa61494['push'](_0x3da9ac[_0xcd7e('0x4')](_0x5edac6));return _0xa61494;}export function getElementsAffectedByListItemRename(_0x5c3d39){const _0x35a013=[];if(_0x5c3d39['is'](_0xcd7e('0x23'),_0xcd7e('0x17'))){let _0x2df31d=_0x5c3d39[_0xcd7e('0x1b')];for(;_0x2df31d&&_0x2df31d['is']('element',_0xcd7e('0x17'))&&_0x2df31d[_0xcd7e('0x24')](_0xcd7e('0xe'))>0x0;)_0x35a013[_0xcd7e('0x19')](_0x2df31d),_0x2df31d=_0x2df31d[_0xcd7e('0x1b')];}return _0x35a013;}export function downcastSplitMergeMarker(_0x360a8e,_0x5a4da7,{showActiveMarker:_0x17feea=!0x0}={}){const _0x2fcb06=_0x360a8e[_0xcd7e('0xa')][_0xcd7e('0x10')](_0xcd7e('0x8'));return(_0x1e24ff,_0x3d0d77,_0x58b914)=>{if(!_0x58b914[_0xcd7e('0x2')][_0xcd7e('0x6')](_0x3d0d77[_0xcd7e('0x1a')],_0x1e24ff[_0xcd7e('0x20')]))return;const _0x33e7a0=_0x3d0d77['markerRange'][_0xcd7e('0x3')](),_0x56a5ca=_0x3d0d77[_0xcd7e('0x1a')][_0xcd7e('0x15')],_0x387a13=_0x360a8e[_0xcd7e('0x1')]['schema'];let _0x4e443c=null,_0x472367=null,_0xb47ae9=!0x1,_0x43be66=!0x1;for(const _0x4d516e of _0x33e7a0){const _0x1c6712=_0x4d516e[_0xcd7e('0x1c')];_0xb47ae9=_0xb47ae9||_0x387a13['isContent'](_0x1c6712);const _0x111194=_0x58b914['mapper'][_0xcd7e('0x21')](_0x1c6712);if(_0x111194&&_0x111194[_0xcd7e('0x1d')](_0xcd7e('0xc')))return;_0xcd7e('0x5')==_0x4d516e[_0xcd7e('0x1f')]&&(_0x387a13[_0xcd7e('0x12')](_0x1c6712)&&!_0x387a13[_0xcd7e('0x9')](_0x1c6712)&&(_0x1c6712['nextSibling']||_0x56a5ca[_0xcd7e('0x14')]?_0x4e443c&&_0x4e443c[_0xcd7e('0x1e')]==_0x1c6712||(_0x4e443c=_0x1c6712,_0x1dc389(_0x4d516e[_0xcd7e('0xb')]),_0x43be66=!0x0):_0x472367=_0x472367||_0x4d516e[_0xcd7e('0xb')]));}function _0x1dc389(_0x2f894e){const _0x5defb3=_0x58b914[_0xcd7e('0xd')][_0xcd7e('0x22')](_0xcd7e('0x18'),{'class':_0xcd7e('0x25')+_0x5a4da7}),_0x4403f9=_0x58b914[_0xcd7e('0x7')][_0xcd7e('0x0')](_0x2f894e);_0x17feea&&_0x2fcb06['activeMarkers'][_0xcd7e('0x11')](_0x3d0d77[_0xcd7e('0x13')])&&_0x58b914[_0xcd7e('0xd')]['addClass'](_0xcd7e('0x16'),_0x5defb3),_0x58b914['writer']['insert'](_0x4403f9,_0x5defb3),_0x58b914[_0xcd7e('0x7')]['bindElementToMarker'](_0x5defb3,_0x3d0d77[_0xcd7e('0x13')]);}_0xb47ae9||_0x43be66||!_0x472367||_0x1dc389(_0x472367);};}
|
package/src/suggestion.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25f9=['author','nodeAfter','get','_markerNames','createdAt','authoredAt','attributes','toJSON','hasComments','getMarkers','next','length','getRange','creator','commentThread','map','onAttributesChange','previous','discard','getContainedElement','end','set','_isDataLoaded','onDiscard','split','head','delete','getItems','addMarkerName','isIntersecting','_saved','reduce','addRange','getMultiRangeId','data','_model','setAttribute','add','isExternal','change','from','nodeBefore','removeAttribute','substr','decorate','getFirstMarker','type','accept','_onAccept','removeMarker','getMarkerNames','clear','subType','isIntersectingWithRange','size','getAllAdjacentSuggestions','markers','@external','removeMarkers','_onDiscard','filter','_onAttributesChange','getRanges'];(function(_0x3d4d1d,_0x25f9dd){const _0x2bafac=function(_0xbb8e1c){while(--_0xbb8e1c){_0x3d4d1d['push'](_0x3d4d1d['shift']());}};_0x2bafac(++_0x25f9dd);}(_0x25f9,0x165));const _0x2baf=function(_0x3d4d1d,_0x25f9dd){_0x3d4d1d=_0x3d4d1d-0x0;let _0x2bafac=_0x25f9[_0x3d4d1d];return _0x2bafac;};import{Element as _0x194ccb}from'ckeditor5/src/engine';import{ObservableMixin as _0x411fc0,uid as _0xd8f5c4}from'ckeditor5/src/utils';import{cloneDeep as _0x2c855c,isEqual as _0x59a9e2,set as _0x547294,unset as _0x3164c1}from'lodash-es';export default class u extends _0x411fc0(){constructor(_0x4a9210,_0x19e273){super(),this[_0x2baf('0x2b')]=!0x1,this['id']=_0x19e273['id'],this[_0x2baf('0x4')]=_0x19e273[_0x2baf('0x4')],this['subType']=_0x19e273[_0x2baf('0xa')]||null,this[_0x2baf('0x15')]=_0x19e273[_0x2baf('0x15')],this['creator']=_0x19e273[_0x2baf('0x22')]||_0x19e273['author'],this[_0x2baf('0x3b')]=Boolean(_0x19e273[_0x2baf('0x1b')]&&_0x19e273[_0x2baf('0x1b')][_0x2baf('0xf')]),this[_0x2baf('0x37')]=null,this[_0x2baf('0x38')]=_0x4a9210,this[_0x2baf('0x6')]=_0x19e273['onAccept'],this[_0x2baf('0x11')]=_0x19e273[_0x2baf('0x2c')],this[_0x2baf('0x13')]=_0x19e273[_0x2baf('0x25')],this[_0x2baf('0x18')]=new Set(),this[_0x2baf('0x19')]=null,this[_0x2baf('0x2a')](_0x2baf('0x1a'),null),this[_0x2baf('0x2a')]('attributes',_0x19e273[_0x2baf('0x1b')]||{}),this[_0x2baf('0x2a')]('previous',null),this[_0x2baf('0x2a')](_0x2baf('0x1f'),null),this[_0x2baf('0x2a')](_0x2baf('0x23'),null),this['set'](_0x2baf('0x33'),!0x1),this[_0x2baf('0x2')](_0x2baf('0x5')),this[_0x2baf('0x2')](_0x2baf('0x27'));}get[_0x2baf('0x2e')](){let _0x979603=this;for(;_0x979603[_0x2baf('0x26')];)_0x979603=_0x979603[_0x2baf('0x26')];return _0x979603;}get[_0x2baf('0x1d')](){return!!this[_0x2baf('0x23')]&&this[_0x2baf('0x23')][_0x2baf('0x20')]>0x0;}get['isMultiRange'](){if(0x0==this[_0x2baf('0x18')][_0x2baf('0xc')])return!0x1;return 0x6==Array['from'](this[_0x2baf('0x18')])[0x0][_0x2baf('0x2d')](':')[_0x2baf('0x20')];}get['isInContent'](){return null!==this['getFirstMarker']();}[_0x2baf('0x31')](_0x3b2c78){this[_0x2baf('0x18')][_0x2baf('0x3a')](_0x3b2c78);}[_0x2baf('0x8')](){return Array[_0x2baf('0x3d')](this[_0x2baf('0x18')]);}['getMarkers'](){return this[_0x2baf('0x8')]()[_0x2baf('0x24')](_0x5e4dda=>this[_0x2baf('0x38')][_0x2baf('0xe')][_0x2baf('0x17')](_0x5e4dda))[_0x2baf('0x12')](_0xe1c696=>_0xe1c696);}[_0x2baf('0x3')](){return this[_0x2baf('0x1e')]()[0x0]||null;}[_0x2baf('0x10')](){this[_0x2baf('0x38')][_0x2baf('0x3c')](_0x178c42=>{for(const _0x4716f4 of this['getMarkers']())_0x178c42[_0x2baf('0x7')](_0x4716f4);}),this[_0x2baf('0x18')][_0x2baf('0x9')]();}[_0x2baf('0x7')](_0x5437ea){this[_0x2baf('0x38')][_0x2baf('0x3c')](_0x10e6dd=>{_0x10e6dd[_0x2baf('0x7')](_0x5437ea);}),this[_0x2baf('0x18')][_0x2baf('0x2f')](_0x5437ea);}[_0x2baf('0x35')](_0xf401e7){const _0x39c097='suggestion:'+this[_0x2baf('0x4')]+':'+this['subType']+':'+this['id']+':'+this[_0x2baf('0x22')]['id']+':'+u[_0x2baf('0x36')]();this[_0x2baf('0x31')](_0x39c097),this['_model'][_0x2baf('0x3c')](_0x2aae07=>{_0x2aae07['addMarker'](_0x39c097,{'range':_0xf401e7,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2baf('0xb')](_0x29f23a){for(const _0x1bbbf2 of this[_0x2baf('0x14')]())if(_0x1bbbf2[_0x2baf('0x32')](_0x29f23a))return!0x0;return!0x1;}[_0x2baf('0x14')](){return this[_0x2baf('0x1e')]()[_0x2baf('0x24')](_0x47504d=>_0x47504d[_0x2baf('0x21')]());}[_0x2baf('0x30')](){return this[_0x2baf('0x14')]()[_0x2baf('0x34')]((_0x4f2ae9,_0xf4ba7f)=>[..._0x4f2ae9,..._0xf4ba7f[_0x2baf('0x30')]()],[]);}['getFirstRange'](){var _0x5ba773;return(null===(_0x5ba773=this['getFirstMarker']())||void 0x0===_0x5ba773?void 0x0:_0x5ba773[_0x2baf('0x21')]())||null;}[_0x2baf('0x28')](){const _0x3d5eee=this[_0x2baf('0x14')]();if(0x1!=_0x3d5eee[_0x2baf('0x20')])return null;const _0x1615e4=_0x3d5eee[0x0],_0x39c5d0=_0x1615e4['start'][_0x2baf('0x16')],_0x567d71=_0x1615e4[_0x2baf('0x29')][_0x2baf('0x3e')];return _0x39c5d0 instanceof _0x194ccb?_0x39c5d0!=_0x567d71?null:_0x39c5d0:null;}['accept'](){this[_0x2baf('0x6')](this['getRanges'](),this[_0x2baf('0x37')],this[_0x2baf('0x1b')]),this['removeMarkers']();}[_0x2baf('0x27')](){this['_onDiscard'](this[_0x2baf('0x14')](),this['data'],this[_0x2baf('0x1b')]),this['removeMarkers']();}[_0x2baf('0xd')](){const _0x13f31c=[];let _0x428e13=this[_0x2baf('0x2e')];for(;_0x428e13;)_0x13f31c['push'](_0x428e13),_0x428e13=_0x428e13[_0x2baf('0x1f')];return _0x13f31c;}[_0x2baf('0x39')](_0x5944aa,_0xcfdb20){const _0x3bbaf6=_0x2c855c(this['attributes']);_0x547294(_0x3bbaf6,_0x5944aa,_0xcfdb20),_0x59a9e2(_0x3bbaf6,this[_0x2baf('0x1b')])||(this[_0x2baf('0x1b')]=_0x3bbaf6,this['_onAttributesChange'](_0x3bbaf6));}[_0x2baf('0x0')](_0x33f811){const _0x309a9e=_0x2c855c(this['attributes']);_0x3164c1(_0x309a9e,_0x33f811),_0x59a9e2(_0x309a9e,this[_0x2baf('0x1b')])||(this[_0x2baf('0x1b')]=_0x309a9e,this[_0x2baf('0x13')](this['attributes']));}[_0x2baf('0x1c')](){return{'id':this['id'],'type':this[_0x2baf('0xa')]?this[_0x2baf('0x4')]+':'+this[_0x2baf('0xa')]:this[_0x2baf('0x4')],'authorId':this[_0x2baf('0x22')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x2baf('0x1d')],'data':this[_0x2baf('0x37')],'attributes':this['attributes']};}static[_0x2baf('0x36')](){return _0xd8f5c4()[_0x2baf('0x1')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ba2=['previousSibling','registerDescriptionCallback','pop','quantity','Object','add','push','function','_resolveDescriptionItems','_itemLabelsCallbacks','$1\x20$2','text','getFirstRange','Container','*Merge:*\x20%0','replace','deletion','isEqual','addEmptyContainer','removeEmptyContainer','_schema','type','data','checkChild','name','remove','matchingCallback','_itemLabels','nextSibling','addContainer','isEmpty','elementEnd','_addDescriptionItems','insertion','isInContent','_customCallbacks','label','normal','getItemLabel','registerElementLabel','get','softBreak','isObject','elementStart','*Insert:*\x20%0','EmptyContainer','length','*Remove:*\x20%0','end','*Split:*\x20%0','start','ELEMENT_SPACE','match','indexOf','element','_locale'];(function(_0x3fcb39,_0x3ba227){const _0x322b00=function(_0x4a9913){while(--_0x4a9913){_0x3fcb39['push'](_0x3fcb39['shift']());}};_0x322b00(++_0x3ba227);}(_0x3ba2,0x170));const _0x322b=function(_0x3fcb39,_0x3ba227){_0x3fcb39=_0x3fcb39-0x0;let _0x322b00=_0x3ba2[_0x3fcb39];return _0x322b00;};import{getTranslation as _0x3b225d}from'./utils/common-translations';import{priorities as _0x51e3da,insertToPriorityArray as _0x50678a}from'ckeditor5/src/utils';export default class m{constructor(_0x4f182a,_0x47632d){this[_0x322b('0x3')]=[],this[_0x322b('0x33')]=new Map(),this['_itemLabelsCallbacks']=[],this[_0x322b('0x2c')]=_0x4f182a,this[_0x322b('0x17')]=_0x47632d;}['getDescriptions'](_0x36f7e1){const _0x4829e2=[];for(let _0x183e96=0x0;_0x183e96<_0x36f7e1[_0x322b('0xe')];_0x183e96++){const _0x31deb3=_0x36f7e1[_0x183e96];if(!_0x31deb3[_0x322b('0x2')])continue;let _0x1ded54=!0x1;for(const _0x83374a of this[_0x322b('0x3')]){const _0x57159c=_0x83374a(_0x31deb3);if(_0x57159c){_0x322b('0x2d')in _0x57159c&&_0x4829e2[_0x322b('0x1e')](_0x57159c),_0x1ded54=!0x0;break;}}if(!_0x1ded54){this[_0x322b('0x0')](_0x4829e2,_0x31deb3);const _0x5cdc17=_0x36f7e1[_0x183e96+0x1];if(_0x5cdc17&&!_0x31deb3[_0x322b('0x24')]()[_0x322b('0x10')][_0x322b('0x29')](_0x5cdc17[_0x322b('0x24')]()[_0x322b('0x12')])){const _0x465a8e=_0x4829e2[_0x4829e2['length']-0x1],_0x8d2766=_0x322b('0x1')==_0x31deb3['type']?_0x322b('0x1d'):'remove';_0x465a8e&&_0x322b('0x23')==_0x465a8e[_0x322b('0x2d')]&&(_0x465a8e[_0x8d2766]+='\x0a');}}}return this[_0x322b('0x20')](_0x4829e2);}[_0x322b('0x19')](_0x570019){this[_0x322b('0x3')][_0x322b('0x1e')](_0x570019);}[_0x322b('0x7')](_0x160fe,_0x51b9f5,_0x541b57=_0x51e3da[_0x322b('0x5')]){_0x322b('0x1f')==typeof _0x160fe?_0x50678a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x160fe,'label':_0x51b9f5,'priority':_0x541b57}):this[_0x322b('0x33')]['set'](_0x160fe,_0x51b9f5);}[_0x322b('0x6')](_0x156505,_0x3ba74c=0x1){let _0x514952;for(const _0x792dc8 of this[_0x322b('0x21')])if(_0x792dc8[_0x322b('0x32')](_0x156505)){_0x514952=_0x792dc8[_0x322b('0x4')];break;}return _0x514952||(_0x514952=this[_0x322b('0x33')][_0x322b('0x8')](_0x156505['name'])),_0x514952?_0x514952(_0x3ba74c):0x1!==_0x3ba74c?_0x3ba74c+'\x20'+_0x156505['name']+'s':''+_0x156505[_0x322b('0x30')];}[_0x322b('0x0')](_0x56113c,_0x36b72a){const _0x3744f4=_0x36b72a['getFirstRange']()['getWalker'](),_0x59bc60=_0x322b('0x1')==_0x36b72a[_0x322b('0x2d')]?_0x322b('0x1d'):'remove';for(const _0x32362d of _0x3744f4){const _0x371263=_0x32362d['item'],_0x1233f5=_0x56113c[_0x56113c[_0x322b('0xe')]-0x1];if(_0x371263['is']('$textProxy'))_0x1233f5&&_0x1233f5[_0x322b('0x2d')][_0x322b('0x15')]('Container')>-0x1&&_0x56113c[_0x322b('0x1a')](),_0x1233f5&&_0x322b('0x23')==_0x1233f5[_0x322b('0x2d')]?_0x1233f5[_0x59bc60]+=_0x371263[_0x322b('0x2e')]:_0x56113c['push']({'type':_0x322b('0x23'),'add':_0x322b('0x1d')==_0x59bc60?_0x371263['data']:'','remove':_0x322b('0x31')==_0x59bc60?_0x371263['data']:''});else{if(this[_0x322b('0x2c')][_0x322b('0xa')](_0x371263)){const _0xb90fda=_0x371263;if(_0x1233f5&&_0x1233f5[_0x322b('0x2d')][_0x322b('0x15')](_0x322b('0x25'))>-0x1&&_0x56113c[_0x322b('0x1a')](),_0x322b('0x37')==_0x32362d[_0x322b('0x2d')])continue;_0x1233f5&&_0x1233f5[_0x322b('0x2d')]==_0x59bc60+'Object'&&_0x1233f5[_0x322b('0x16')]['name']==_0xb90fda[_0x322b('0x30')]?_0x1233f5[_0x322b('0x1b')]++:_0x56113c[_0x322b('0x1e')]({'type':_0x59bc60+_0x322b('0x1c'),'element':_0xb90fda,'quantity':0x1}),_0x3744f4['skip'](_0x2a6932=>!('elementEnd'==_0x2a6932['type']&&_0x2a6932['item']==_0x371263));}else{if(this['_schema'][_0x322b('0x2f')](_0x371263,'$text')||_0x371263['is'](_0x322b('0x16'),_0x322b('0x9'))){const _0xacd1f=_0x371263;if(_0x322b('0x1d')==_0x59bc60&&_0x322b('0xb')==_0x32362d[_0x322b('0x2d')]||_0x322b('0x31')==_0x59bc60&&_0x322b('0x37')==_0x32362d[_0x322b('0x2d')])continue;if(_0x1233f5&&-0x1==_0x1233f5[_0x322b('0x2d')][_0x322b('0x15')]('Container')){_0x322b('0x23')==_0x1233f5[_0x322b('0x2d')]&&(_0x1233f5[_0x59bc60]+='\x0a');continue;}let _0xadb7cc;if(_0xadb7cc=_0x322b('0x1d')==_0x59bc60?_0xacd1f['nextSibling']&&!this[_0x322b('0x2c')][_0x322b('0xa')](_0xacd1f[_0x322b('0x34')])?_0xacd1f['nextSibling']:null:_0xacd1f[_0x322b('0x18')]&&!this[_0x322b('0x2c')]['isObject'](_0xacd1f[_0x322b('0x18')])?_0xacd1f['previousSibling']:null,_0xacd1f[_0x322b('0x36')]||_0xadb7cc&&_0xadb7cc['isEmpty']){const _0x111759=_0xadb7cc&&_0xadb7cc[_0x322b('0x36')]?_0xadb7cc:_0xacd1f;_0x1233f5&&_0x1233f5[_0x322b('0x2d')]==_0x59bc60+_0x322b('0xd')&&_0x1233f5[_0x322b('0x16')][_0x322b('0x30')]==_0x111759[_0x322b('0x30')]?_0x1233f5[_0x322b('0x1b')]++:_0x56113c[_0x322b('0x1e')]({'type':_0x59bc60+_0x322b('0xd'),'element':_0x111759,'quantity':0x1});}else _0x56113c[_0x322b('0x1e')]({'type':_0x59bc60+'Container','element':_0xacd1f});}}}}}[_0x322b('0x20')](_0x4dea54){const _0x4e07e1=this[_0x322b('0x17')],_0x2d5b62=[];for(const _0x3bc475 of _0x4dea54){switch(_0x3bc475['type']){case _0x322b('0x23'):if(_0x3bc475[_0x322b('0x1d')]=_0x3bc475[_0x322b('0x1d')]['replace'](/(\S)\u000A+(\S)/g,_0x322b('0x22'))[_0x322b('0x27')](/\u000A/g,''),_0x3bc475[_0x322b('0x31')]=_0x3bc475[_0x322b('0x31')]['replace'](/(\S)\u000A+(\S)/g,_0x322b('0x22'))[_0x322b('0x27')](/\u000A/g,''),''!=_0x3bc475[_0x322b('0x1d')]&&''!=_0x3bc475[_0x322b('0x31')]){_0x2d5b62[_0x322b('0x1e')]({'type':_0x322b('0x27'),'content':_0x3b225d(_0x4e07e1,'REPLACE_TEXT',['\x22'+_0x3bc475[_0x322b('0x31')]+'\x22','\x22'+_0x3bc475[_0x322b('0x1d')]+'\x22'])});continue;}if(null!=_0x3bc475[_0x322b('0x1d')][_0x322b('0x14')](/^ +$/)){_0x2d5b62[_0x322b('0x1e')]({'type':_0x322b('0x1'),'content':_0x3b225d(_0x4e07e1,_0x322b('0xc'),_0x3b225d(_0x4e07e1,_0x322b('0x13'),_0x3bc475[_0x322b('0x1d')][_0x322b('0xe')]))});continue;}if(null!=_0x3bc475[_0x322b('0x31')][_0x322b('0x14')](/^ +$/)){_0x2d5b62[_0x322b('0x1e')]({'type':'deletion','content':_0x3b225d(_0x4e07e1,_0x322b('0xf'),_0x3b225d(_0x4e07e1,_0x322b('0x13'),_0x3bc475[_0x322b('0x31')]['length']))});continue;}if(''!=_0x3bc475[_0x322b('0x1d')]){_0x2d5b62[_0x322b('0x1e')]({'type':_0x322b('0x1'),'content':_0x3b225d(_0x4e07e1,_0x322b('0xc'),'\x22'+_0x3bc475['add']+'\x22')});continue;}_0x2d5b62[_0x322b('0x1e')]({'type':_0x322b('0x28'),'content':_0x3b225d(_0x4e07e1,_0x322b('0xf'),'\x22'+_0x3bc475[_0x322b('0x31')]+'\x22')});continue;case _0x322b('0x2a'):case'addObject':_0x2d5b62['push']({'type':_0x322b('0x1'),'content':_0x3b225d(_0x4e07e1,'*Insert:*\x20%0',this[_0x322b('0x6')](_0x3bc475[_0x322b('0x16')],_0x3bc475[_0x322b('0x1b')]))});continue;case _0x322b('0x2b'):case'removeObject':_0x2d5b62[_0x322b('0x1e')]({'type':_0x322b('0x28'),'content':_0x3b225d(_0x4e07e1,'*Remove:*\x20%0',this[_0x322b('0x6')](_0x3bc475['element'],_0x3bc475['quantity']))});continue;case _0x322b('0x35'):_0x2d5b62[_0x322b('0x1e')]({'type':_0x322b('0x1'),'content':_0x3b225d(_0x4e07e1,_0x322b('0x11'),this[_0x322b('0x6')](_0x3bc475[_0x322b('0x16')],_0x3bc475[_0x322b('0x1b')]))});continue;case'removeContainer':_0x2d5b62['push']({'type':'deletion','content':_0x3b225d(_0x4e07e1,_0x322b('0x26'),this[_0x322b('0x6')](_0x3bc475[_0x322b('0x16')],_0x3bc475[_0x322b('0x1b')]))});continue;}_0x2d5b62[_0x322b('0x1e')](_0x3bc475);}return _0x2d5b62;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1848=['plugins','pluginName','getSuggestions','Comments','editor','adapter','addSuggestionData','get','addSuggestion'];(function(_0x298b0b,_0x184805){var _0x1f9fe9=function(_0x144e7e){while(--_0x144e7e){_0x298b0b['push'](_0x298b0b['shift']());}};_0x1f9fe9(++_0x184805);}(_0x1848,0x112));var _0x1f9f=function(_0x298b0b,_0x184805){_0x298b0b=_0x298b0b-0x0;var _0x1f9fe9=_0x1848[_0x298b0b];return _0x1f9fe9;};import{Plugin as _0x283f1a}from'ckeditor5/src/core';import _0x314c8c from'./trackchangesui';import _0x3dfd88 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x283f1a{static get['requires'](){return[_0x3dfd88,_0x314c8c,_0x1f9f('0x8')];}static get[_0x1f9f('0x6')](){return'TrackChanges';}set[_0x1f9f('0x1')](_0x243281){this['editor'][_0x1f9f('0x5')][_0x1f9f('0x3')](_0x3dfd88)[_0x1f9f('0x1')]=_0x243281;}get[_0x1f9f('0x1')](){return this[_0x1f9f('0x0')][_0x1f9f('0x5')][_0x1f9f('0x3')](_0x3dfd88)[_0x1f9f('0x1')];}[_0x1f9f('0x4')](_0x2051e2){return this['editor'][_0x1f9f('0x5')][_0x1f9f('0x3')](_0x3dfd88)[_0x1f9f('0x2')](_0x2051e2);}[_0x1f9f('0x7')]({skipNotAttached:_0x3eaf36=!0x1,toJSON:_0x243c99=!0x1}={}){return this[_0x1f9f('0x0')][_0x1f9f('0x5')][_0x1f9f('0x3')](_0x3dfd88)[_0x1f9f('0x7')]({'skipNotAttached':_0x3eaf36,'toJSON':_0x243c99});}['getSuggestion'](_0x5ce496){return this[_0x1f9f('0x0')][_0x1f9f('0x5')][_0x1f9f('0x3')](_0x3dfd88)['getSuggestion'](_0x5ce496);}}
|