@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230830.0 → 0.0.0-nightly-20230901.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/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 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x195e=['accept','getAttribute','markerNameToElements','highest','setTableColumnHeader','setTableRowHeader','editor','TrackChangesEditing','FORMAT_REGULAR_COLUMN','requires','locale','ck-suggestion-marker--active','_acceptFormatSuggestionCallbackFactory','TableEditing','data','options','formatBlock','end','unbindElementFromMarkerName','index','_splitMarkerName','name','getSuggestion','createTableWalker','registerCustomCallback','headingRows','format','headingColumns','getRowIndexes','removeClass','model','table','consumable','downcastDispatcher','createPositionAfter','stop','parent','addClass','first','cell','addMarker:suggestion','commandName','mapper','markerRange','removeAttribute','findAncestor','document','markerName','createPositionBefore','FORMAT_HEADER_COLUMN','change','*Format:*\x20%0','last','editing','from','writer','plugins','TableUtils','toViewElement','getSelectionAffectedTableCells','FORMAT_HEADER_ROW','getCellLocation','selection','createRange','get','commandParams','FORMAT_REGULAR_ROW','bindElementToMarker','enableCommand','_descriptionFactory','getChild','forceValue','markBlockFormat','data-suggestion','ck-suggestion-marker-','_suggestionFactory','nodeAfter','start','value','showSuggestionHighlights','removeMarker:suggestion','childCount'];(function(_0xa1c46d,_0x195e52){const _0x4fbbe4=function(_0x46beea){while(--_0x46beea){_0xa1c46d['push'](_0xa1c46d['shift']());}};_0x4fbbe4(++_0x195e52);}(_0x195e,0x8e));const _0x4fbb=function(_0xa1c46d,_0x195e52){_0xa1c46d=_0xa1c46d-0x0;let _0x4fbbe4=_0x195e[_0xa1c46d];return _0x4fbbe4;};import{Plugin as _0x5178a9}from'ckeditor5/src/core';import _0x52cfb0 from'./table';import{getTranslation as _0xe58840}from'../utils/common-translations';export default class pt extends _0x5178a9{static get[_0x4fbb('0x1f')](){return[_0x52cfb0];}['afterInit'](){const _0x145185=this[_0x4fbb('0x1c')];if(!_0x145185[_0x4fbb('0x4e')]['has'](_0x4fbb('0x23')))return;const _0x8a870f=_0x145185[_0x4fbb('0x20')],_0x236eed=_0x145185[_0x4fbb('0x4e')][_0x4fbb('0x4')](_0x4fbb('0x1d')),_0x3af746=_0x145185[_0x4fbb('0x4e')]['get'](_0x4fbb('0x4f')),_0x32c8ba=_0x145185[_0x4fbb('0x4e')][_0x4fbb('0x4')](_0x52cfb0);function _0x2cba29({showActiveMarker:_0x124152=!0x0,setDataAttribute:_0x37212f=!0x0}={}){return(_0x4cd6a8,_0x423518,_0x44346a)=>{const {type:_0x267bf4,id:_0x5d29d0}=_0x236eed['_splitMarkerName'](_0x423518[_0x4fbb('0x45')]),_0x1d76f7=_0x236eed[_0x4fbb('0x2c')](_0x5d29d0);if(!_0x1d76f7[_0x4fbb('0x24')]||_0x4fbb('0x1a')!=_0x1d76f7[_0x4fbb('0x24')][_0x4fbb('0x3f')])return;if(_0x423518['item'])return void _0x4cd6a8[_0x4fbb('0x39')]();if(!_0x44346a[_0x4fbb('0x36')]['consume'](_0x423518[_0x4fbb('0x41')],_0x4cd6a8[_0x4fbb('0x2b')]))return;const _0x3bf668=_0x423518[_0x4fbb('0x41')][_0x4fbb('0x11')][_0x4fbb('0x10')],_0x32f7f8=_0x423518[_0x4fbb('0x41')][_0x4fbb('0x27')]['nodeBefore'],_0x3182be=_0x3bf668[_0x4fbb('0x3a')]['parent'],{column:_0x14c23b}=_0x3af746[_0x4fbb('0x1')](_0x3bf668),{column:_0x784100}=_0x3af746[_0x4fbb('0x1')](_0x32f7f8);for(let _0x57a3e2=_0x14c23b;_0x57a3e2<=_0x784100;_0x57a3e2++){const _0x5e99f1=_0x3af746[_0x4fbb('0x2d')](_0x3182be,{'column':_0x57a3e2,'includeAllSlots':!0x1});for(const _0x39ee7e of _0x5e99f1){const _0x2d69ae=_0x39ee7e[_0x4fbb('0x3d')],_0x163e36=_0x44346a[_0x4fbb('0x40')][_0x4fbb('0x50')](_0x2d69ae);_0x44346a[_0x4fbb('0x4d')][_0x4fbb('0x3b')](_0x4fbb('0xe')+_0x267bf4,_0x163e36),_0x37212f&&_0x44346a['writer']['setAttribute'](_0x4fbb('0xd'),_0x5d29d0,_0x163e36),_0x44346a[_0x4fbb('0x40')][_0x4fbb('0x7')](_0x163e36,_0x423518[_0x4fbb('0x45')]),_0x124152&&(_0x236eed['activeMarkers']['includes'](_0x423518[_0x4fbb('0x45')])?_0x44346a['writer'][_0x4fbb('0x3b')]('ck-suggestion-marker--active',_0x163e36):_0x44346a[_0x4fbb('0x4d')][_0x4fbb('0x33')](_0x4fbb('0x21'),_0x163e36));}}};}_0x236eed[_0x4fbb('0x8')](_0x4fbb('0x1b'),(_0x5cb222,_0x34701d)=>{const _0x712d73=_0x3af746[_0x4fbb('0x51')](_0x145185[_0x4fbb('0x34')][_0x4fbb('0x44')][_0x4fbb('0x2')]),_0x22c464=_0x3af746[_0x4fbb('0x32')](_0x712d73),_0x357b37=_0x712d73[0x0][_0x4fbb('0x43')](_0x4fbb('0x35')),_0x51f796=_0x357b37[_0x4fbb('0x17')](_0x4fbb('0x2f'))||0x0,_0x581f2e=_0x34701d&&null!==_0x34701d[_0x4fbb('0xb')]?_0x34701d[_0x4fbb('0xb')]:!_0x145185['commands']['get']('setTableRowHeader')['value'],_0x27505b=_0x581f2e?_0x22c464[_0x4fbb('0x4a')]:_0x22c464[_0x4fbb('0x3c')],_0x5c96ce=_0x357b37['getChild'](_0x27505b);let _0x205f42;if(_0x581f2e){const _0x3f1fbe=_0x357b37[_0x4fbb('0xa')](_0x51f796);if(_0x5c96ce[_0x4fbb('0x29')]<_0x3f1fbe['index'])return;_0x205f42=_0x145185[_0x4fbb('0x34')][_0x4fbb('0x3')](_0x145185[_0x4fbb('0x34')]['createPositionBefore'](_0x3f1fbe[_0x4fbb('0xa')](0x0)),_0x145185[_0x4fbb('0x34')]['createPositionAfter'](_0x5c96ce[_0x4fbb('0xa')](_0x5c96ce[_0x4fbb('0x15')]-0x1)));}else{const _0x718acb=_0x357b37[_0x4fbb('0xa')](_0x51f796-0x1);if(!_0x718acb)return;_0x205f42=_0x145185[_0x4fbb('0x34')]['createRange'](_0x145185[_0x4fbb('0x34')][_0x4fbb('0x46')](_0x5c96ce[_0x4fbb('0xa')](0x0)),_0x145185[_0x4fbb('0x34')][_0x4fbb('0x38')](_0x718acb[_0x4fbb('0xa')](_0x718acb[_0x4fbb('0x15')]-0x1)));}_0x145185[_0x4fbb('0x34')]['change'](()=>{_0x236eed[_0x4fbb('0xc')](_0x205f42,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x581f2e}]},[],_0x4fbb('0x1b'));});}),_0x236eed['enableCommand'](_0x4fbb('0x1a'),(_0x3b9417,_0x2dc147)=>{const _0x349062=_0x145185[_0x4fbb('0x4e')][_0x4fbb('0x4')](_0x4fbb('0x4f')),_0x2a0bd6=_0x349062[_0x4fbb('0x51')](_0x145185[_0x4fbb('0x34')][_0x4fbb('0x44')][_0x4fbb('0x2')]),_0x1fa97e=_0x349062['getColumnIndexes'](_0x2a0bd6),_0x2428a5=_0x2a0bd6[0x0][_0x4fbb('0x43')](_0x4fbb('0x35')),_0x218810=_0x2428a5[_0x4fbb('0x17')](_0x4fbb('0x31'))||0x0,_0x22a882=_0x2dc147&&null!==_0x2dc147[_0x4fbb('0xb')]?_0x2dc147[_0x4fbb('0xb')]:!_0x145185['commands'][_0x4fbb('0x4')](_0x4fbb('0x1a'))[_0x4fbb('0x12')];let _0x18a949;const _0x10b320=_0x2428a5[_0x4fbb('0xa')](0x0),_0x2163d9=_0x22a882?_0x1fa97e['last']:_0x1fa97e['first'],_0x4c0ab4=_0x349062[_0x4fbb('0x2d')](_0x2428a5,{'startRow':0x0,'column':_0x2163d9,'includeAllSlots':!0x1}),_0x38b49f=Array[_0x4fbb('0x4c')](_0x4c0ab4)[0x0][_0x4fbb('0x3d')];if(_0x22a882){const _0x50be56=_0x10b320['getChild'](_0x218810);if(_0x38b49f['isBefore'](_0x50be56))return;_0x18a949=_0x145185[_0x4fbb('0x34')][_0x4fbb('0x3')](_0x145185['model'][_0x4fbb('0x46')](_0x50be56),_0x145185['model']['createPositionAfter'](_0x38b49f));}else{const _0x4f6e58=_0x10b320['getChild'](_0x218810-0x1);if(!_0x4f6e58)return;_0x18a949=_0x145185[_0x4fbb('0x34')][_0x4fbb('0x3')](_0x145185[_0x4fbb('0x34')][_0x4fbb('0x46')](_0x38b49f),_0x145185[_0x4fbb('0x34')][_0x4fbb('0x38')](_0x4f6e58));}_0x145185[_0x4fbb('0x34')][_0x4fbb('0x48')](()=>{_0x236eed[_0x4fbb('0xc')](_0x18a949,{'commandName':_0x4fbb('0x1a'),'commandParams':[{'forceValue':_0x22a882}]},[],_0x4fbb('0x1a'));});}),_0x145185[_0x4fbb('0x4b')][_0x4fbb('0x37')]['on'](_0x4fbb('0x3e'),_0x2cba29(),{'priority':'highest'}),_0x145185[_0x4fbb('0x24')][_0x4fbb('0x37')]['on'](_0x4fbb('0x3e'),(_0x83027f,_0xae1660,_0x1af2d5)=>{_0x1af2d5[_0x4fbb('0x25')][_0x4fbb('0x13')]&&_0x2cba29({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x83027f,_0xae1660,_0x1af2d5);},{'priority':_0x4fbb('0x19')}),_0x145185[_0x4fbb('0x4b')]['downcastDispatcher']['on'](_0x4fbb('0x14'),(_0x31b0ad,_0x5621fe,_0x277570)=>{const {type:_0x369a01,id:_0x496249}=_0x236eed[_0x4fbb('0x2a')](_0x5621fe[_0x4fbb('0x45')]),_0x1086ee=_0x236eed[_0x4fbb('0x2c')](_0x496249);if(!_0x1086ee[_0x4fbb('0x24')]||_0x4fbb('0x1a')!=_0x1086ee[_0x4fbb('0x24')]['commandName'])return;const _0x28d868=_0x277570['mapper'][_0x4fbb('0x18')](_0x5621fe['markerName']);if(_0x28d868)for(const _0x3f1059 of _0x28d868)_0x277570[_0x4fbb('0x4d')][_0x4fbb('0x33')](_0x4fbb('0xe')+_0x369a01,_0x3f1059),_0x277570[_0x4fbb('0x4d')][_0x4fbb('0x33')]('ck-suggestion-marker--active',_0x3f1059),_0x277570[_0x4fbb('0x4d')][_0x4fbb('0x42')](_0x4fbb('0xd'),_0x3f1059),_0x277570[_0x4fbb('0x40')][_0x4fbb('0x28')](_0x3f1059,_0x5621fe[_0x4fbb('0x45')]);},{'priority':_0x4fbb('0x19')}),_0x236eed[_0x4fbb('0x9')]['registerDescriptionCallback'](_0x5062b7=>{const {data:_0xfce346}=_0x5062b7;if(_0xfce346){if('setTableRowHeader'==_0xfce346['commandName']){const _0x593ea7=_0xfce346[_0x4fbb('0x5')][0x0][_0x4fbb('0xb')];return _0x4985d6(_0xe58840(_0x8a870f,_0x593ea7?_0x4fbb('0x0'):_0x4fbb('0x6')));}if(_0x4fbb('0x1a')==_0xfce346[_0x4fbb('0x3f')]){const _0x5ba92b=_0xfce346[_0x4fbb('0x5')][0x0]['forceValue'];return _0x4985d6(_0xe58840(_0x8a870f,_0x5ba92b?_0x4fbb('0x47'):_0x4fbb('0x1e')));}}function _0x4985d6(_0x3f15dc){return{'type':_0x4fbb('0x30'),'content':_0xe58840(_0x8a870f,_0x4fbb('0x49'),_0x3f15dc)};}});const _0x1c8c23=_0x32c8ba[_0x4fbb('0x22')]();_0x236eed[_0x4fbb('0xf')]['registerCustomCallback'](_0x4fbb('0x26'),_0x4fbb('0x1b'),_0x4fbb('0x16'),_0x1c8c23),_0x236eed[_0x4fbb('0xf')][_0x4fbb('0x2e')]('formatBlock',_0x4fbb('0x1a'),_0x4fbb('0x16'),_0x1c8c23);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4493=['createTableWalker','getSuggestions','accept','refresh','table','return','deletion','isInContent','getRanges','_areSelectedCellsMergable','fromRange','containsRange','size','createRangeOn','root','insertion','mergeTableCells','stop','format','model','mergeTableCellRight','editor','change','getSelectionAffectedTableCells','document','getCellLocation','TableUtils','selection','highest','markBlockFormat','type','getAncestors','rootName','subType','_suggestionFactory','mergeTableCellUp','value','cell','locale','forceDefaultExecution','has','horizontally','afterInit','mergeTableCellDown','registerDescriptionCallback','_areMergableCells','tableCell','_acceptFormatSuggestionCallbackFactory','element','splitTableCellVertically','enableCommand','setSelection','map','length','TableEditing','execute','from','getFirstPosition','filter','plugins','commandName','formatBlock','trackChanges','_descriptionFactory','registerCustomCallback','mergeTableCellLeft','$graveyard','splitTableCellHorizontally','push','author','TrackChangesEditing','get','commands','findAncestor'];(function(_0x78e332,_0x4493b2){const _0x3151df=function(_0x5c09c9){while(--_0x5c09c9){_0x78e332['push'](_0x78e332['shift']());}};_0x3151df(++_0x4493b2);}(_0x4493,0x83));const _0x3151=function(_0x78e332,_0x4493b2){_0x78e332=_0x78e332-0x0;let _0x3151df=_0x4493[_0x78e332];return _0x3151df;};import{Plugin as _0x56eaa6}from'ckeditor5/src/core';import _0x5a52b1 from'./table';import{LiveRange as _0x1dad3c}from'ckeditor5/src/engine';import{getTranslation as _0x2278b1}from'../utils/common-translations';export default class dt extends _0x56eaa6{static get['requires'](){return[_0x5a52b1];}[_0x3151('0x3b')](){const _0x13e021=this[_0x3151('0x26')],_0x2fc301=_0x13e021['model']['document'][_0x3151('0x2c')],_0x5aaa35=_0x13e021[_0x3151('0x37')];if(!_0x13e021[_0x3151('0x2')][_0x3151('0x39')](_0x3151('0x47')))return;const _0x31f4da=_0x13e021[_0x3151('0x2')]['get'](_0x3151('0xd')),_0x183512=_0x13e021[_0x3151('0x2')]['get'](_0x3151('0x2b')),_0x47d836=_0x13e021[_0x3151('0x2')][_0x3151('0xe')](_0x5a52b1);_0x47d836['_tablePostFixingSubtypes'][_0x3151('0xb')]('mergeTableCells'),_0x31f4da[_0x3151('0x43')](_0x3151('0x21'),()=>{const _0x3aaae1=_0x183512[_0x3151('0x28')](_0x13e021[_0x3151('0x24')]['document'][_0x3151('0x2c')]);_0x13e021[_0x3151('0x24')]['change'](()=>{_0x31f4da['markMultiRangeBlockFormat'](_0x3aaae1,{'commandName':_0x3151('0x21'),'commandParams':[]},[],_0x3151('0x21'));});}),_0x13e021['commands'][_0x3151('0xe')](_0x3151('0x21'))['on'](_0x3151('0x48'),(_0x4ab31a,_0x29ffeb)=>{_0x13e021[_0x3151('0xf')][_0x3151('0xe')](_0x3151('0x5'))[_0x3151('0x35')]&&(_0x29ffeb[_0x3151('0x46')]>0x0&&_0x29ffeb[_0x29ffeb[_0x3151('0x46')]-0x1]&&_0x29ffeb[_0x29ffeb[_0x3151('0x46')]-0x1][_0x3151('0x38')]||_0x31f4da['_isForcedDefaultExecutionBlock']||this[_0x3151('0x1a')]()||_0x4ab31a[_0x3151('0x22')]());},{'priority':_0x3151('0x2d')});for(const _0x185573 of[_0x3151('0x34'),_0x3151('0x25'),_0x3151('0x3c'),_0x3151('0x8')]){const _0x5ea790=_0x13e021['commands']['get'](_0x185573);_0x31f4da[_0x3151('0x43')](_0x185573,()=>{const _0x202228=_0x13e021[_0x3151('0x24')]['document'][_0x3151('0x2c')][_0x3151('0x0')]()[_0x3151('0x30')]()['find'](_0x289812=>_0x289812['is'](_0x3151('0x41'),'tableCell')),_0x31dc17=_0x5ea790['value'];_0x13e021['model'][_0x3151('0x27')](()=>{_0x31f4da['markMultiRangeBlockFormat']([_0x202228,_0x31dc17],{'commandName':_0x3151('0x21'),'commandParams':[]},[],_0x3151('0x21'));});});}for(const _0x438733 of[_0x3151('0x42'),_0x3151('0xa')]){const _0x5dbff4=_0x13e021['commands'][_0x3151('0xe')](_0x438733);_0x31f4da[_0x3151('0x43')](_0x438733,()=>{const _0x23cac8=_0x183512[_0x3151('0x28')](_0x13e021[_0x3151('0x24')][_0x3151('0x29')][_0x3151('0x2c')])[0x0],_0x46303d=_0x23cac8[_0x3151('0x10')](_0x3151('0x15')),{column:_0x677c59,row:_0x11f3e7}=_0x183512[_0x3151('0x2a')](_0x23cac8);let _0x2c5867=[];if(_0x3151('0x3a')==_0x5dbff4['direction']){const _0x3c5c2e=_0x183512[_0x3151('0x11')](_0x46303d,{'startRow':_0x11f3e7,'endRow':_0x11f3e7,'includeAllSlots':!0x0});_0x2c5867=Array[_0x3151('0x49')](_0x3c5c2e)[_0x3151('0x45')](_0x24c662=>_0x24c662[_0x3151('0x36')]);}else{const _0x51fce4=_0x183512[_0x3151('0x11')](_0x46303d,{'column':_0x677c59,'includeAllSlots':!0x0});_0x2c5867=Array['from'](_0x51fce4)[_0x3151('0x45')](_0x594df4=>_0x594df4[_0x3151('0x36')]);}_0x13e021[_0x3151('0x24')][_0x3151('0x27')](_0x56f0c2=>{_0x31f4da[_0x3151('0x2e')](_0x56f0c2[_0x3151('0x1e')](_0x23cac8),{'commandName':_0x438733,'commandParams':[]},_0x2c5867,_0x438733);});});}_0x31f4da[_0x3151('0x6')][_0x3151('0x3d')](_0x2df8f4=>{const {data:_0x42bcee}=_0x2df8f4;if(_0x42bcee)return _0x3151('0x21')==_0x42bcee['commandName']?{'type':_0x3151('0x23'),'content':_0x2278b1(_0x5aaa35,'*Merge\x20cells*')}:void 0x0;}),_0x31f4da[_0x3151('0x6')][_0x3151('0x3d')](_0x2258de=>{const {data:_0x7b33be}=_0x2258de;if(_0x7b33be)return'splitTableCellVertically'==_0x7b33be[_0x3151('0x3')]?{'type':'format','content':_0x2278b1(_0x5aaa35,'*Split\x20cell:*\x20vertically')}:_0x3151('0xa')==_0x7b33be[_0x3151('0x3')]?{'type':_0x3151('0x23'),'content':_0x2278b1(_0x5aaa35,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x8805e9=_0x47d836[_0x3151('0x40')]();for(const _0x5309b4 of['mergeTableCellUp',_0x3151('0x25'),'mergeTableCellDown','mergeTableCellLeft'])_0x31f4da[_0x3151('0x33')][_0x3151('0x7')]('formatBlock',_0x5309b4,_0x3151('0x13'),_0x8805e9);for(const _0x8c27d8 of[_0x3151('0x42'),'splitTableCellHorizontally'])_0x31f4da[_0x3151('0x33')][_0x3151('0x7')](_0x3151('0x4'),_0x8c27d8,_0x3151('0x13'),_0x8805e9);_0x31f4da[_0x3151('0x33')]['registerCustomCallback'](_0x3151('0x4'),_0x3151('0x21'),_0x3151('0x13'),_0x5a17c1=>{_0x13e021['model']['change'](_0x4fe0fc=>{const _0x34cf85=Array[_0x3151('0x49')](_0x2fc301[_0x3151('0x19')]())[_0x3151('0x45')](_0x5634ad=>_0x1dad3c[_0x3151('0x1b')](_0x5634ad));_0x4fe0fc[_0x3151('0x44')](_0x5a17c1),_0x13e021[_0x3151('0xf')][_0x3151('0xe')](_0x3151('0x21'))[_0x3151('0x14')](),_0x13e021['execute'](_0x3151('0x21'),{'forceDefaultExecution':!0x0});const _0x294896=_0x34cf85[_0x3151('0x1')](_0x31016d=>_0x3151('0x9')!=_0x31016d[_0x3151('0x1f')][_0x3151('0x31')]);_0x294896[_0x3151('0x46')]>0x0&&_0x4fe0fc[_0x3151('0x44')](_0x294896);for(const _0x2d8e62 of _0x34cf85)_0x2d8e62['detach']();});});for(const _0x5a0b0f of[_0x3151('0x34'),_0x3151('0x3c'),_0x3151('0x8'),_0x3151('0x25')]){const _0x3185c3=_0x13e021['commands'][_0x3151('0xe')](_0x5a0b0f);_0x3185c3['on']('set:isEnabled',(_0x248c41,_0x44af46,_0x30e3a5)=>{if(_0x30e3a5){const _0x400d84=_0x13e021[_0x3151('0x24')][_0x3151('0x29')]['selection']['getFirstPosition']()[_0x3151('0x30')]()['find'](_0x426125=>_0x426125['is'](_0x3151('0x41'),_0x3151('0x3f')));this[_0x3151('0x3e')](_0x3185c3['value'],_0x400d84)||(_0x248c41[_0x3151('0x16')]=!0x1,_0x248c41['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1830ac=this[_0x3151('0x26')][_0x3151('0xf')][_0x3151('0xe')](_0x3151('0x21')),_0x27e99b=this['editor']['plugins'][_0x3151('0xe')](_0x3151('0x2b'));if(!_0x1830ac['isEnabled'])return!0x1;const _0x495ff6=_0x27e99b[_0x3151('0x28')](this[_0x3151('0x26')][_0x3151('0x24')]['document'][_0x3151('0x2c')]);for(const _0x454fef of _0x495ff6)for(const _0x15aa1c of _0x495ff6)if(_0x454fef!=_0x15aa1c&&!this[_0x3151('0x3e')](_0x454fef,_0x15aa1c))return!0x1;return!0x0;}[_0x3151('0x3e')](_0x415c76,_0x1f8bf8){const _0x4f2935=this[_0x3151('0x26')]['plugins'][_0x3151('0xe')](_0x3151('0xd')),_0x54ca87=this[_0x3151('0x26')][_0x3151('0x24')][_0x3151('0x1e')](_0x415c76),_0x1098f4=this[_0x3151('0x26')][_0x3151('0x24')][_0x3151('0x1e')](_0x1f8bf8),_0xda1d41=new Set(),_0x48f5b3=new Set();for(const _0x3d5dc8 of _0x4f2935[_0x3151('0x12')]())if((_0x3151('0x20')==_0x3d5dc8[_0x3151('0x2f')]||_0x3151('0x17')==_0x3d5dc8[_0x3151('0x2f')]||_0x3151('0x21')==_0x3d5dc8[_0x3151('0x32')])&&_0x3d5dc8[_0x3151('0x18')])for(const _0x579d18 of _0x3d5dc8[_0x3151('0x19')]())_0x579d18['containsRange'](_0x54ca87,!0x0)&&_0xda1d41['add'](_0x3d5dc8[_0x3151('0x2f')]+':'+_0x3d5dc8[_0x3151('0xc')]['id']),_0x579d18[_0x3151('0x1c')](_0x1098f4,!0x0)&&_0x48f5b3['add'](_0x3d5dc8[_0x3151('0x2f')]+':'+_0x3d5dc8['author']['id']);if(_0xda1d41[_0x3151('0x1d')]!=_0x48f5b3[_0x3151('0x1d')])return!0x1;for(const _0x1fae07 of _0xda1d41)if(!_0x48f5b3['has'](_0x1fae07))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55fd=['enableCommand','insertTableOfContents','commands','get','locale','TrackChangesEditing','registerElementLabel','tableOfContents','plugins','afterInit','_descriptionFactory'];(function(_0x5c055d,_0x55fd61){const _0x13394d=function(_0x22cb20){while(--_0x22cb20){_0x5c055d['push'](_0x5c055d['shift']());}};_0x13394d(++_0x55fd61);}(_0x55fd,0x1e6));const _0x1339=function(_0x5c055d,_0x55fd61){_0x5c055d=_0x5c055d-0x0;let _0x13394d=_0x55fd[_0x5c055d];return _0x13394d;};import{Plugin as _0x41ab6f}from'ckeditor5/src/core';import{getTranslation as _0x1a0bde}from'../utils/common-translations';export default class bt extends _0x41ab6f{[_0x1339('0x7')](){const _0x3379e4=this['editor'];if(!_0x3379e4[_0x1339('0x0')][_0x1339('0x1')]('insertTableOfContents'))return;_0x3379e4[_0x1339('0x6')][_0x1339('0x1')](_0x1339('0x3'))[_0x1339('0x9')](_0x1339('0xa'));const _0x34ab63=_0x3379e4[_0x1339('0x6')][_0x1339('0x1')](_0x1339('0x3')),_0x285f0e=_0x3379e4[_0x1339('0x2')];_0x34ab63[_0x1339('0x8')][_0x1339('0x4')](_0x1339('0x5'),_0x2c797a=>_0x1a0bde(_0x285f0e,'ELEMENT_TABLE_OF_CONTENTS',_0x2c797a));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35f6=['*Format:*\x20change\x20table\x20cell\x20properties','nodeAfter','_suggestionFactory','batch','has','tableCellProperties','enqueueChange','tableHeight','plugins','tableBorderStyle','afterInit','handleSuggestionDescription','tableCellVerticalAlignment','getSuggestionCallback','tableCellWidth','selection','change','handleDiscardAction','tableWidth','setAttribute','get','findAncestor','tableCellHeight','getSelectionAffectedTableCells','TrackChangesEditing','tableBackgroundColor','locale','registerCustomCallback','discard','TrackChangesTableProperties','tableProperties','TableCellPropertiesEditing','tableCellHorizontalAlignment','_descriptionFactory','getFirstPosition','join','accept','getAttribute','tableCellBorderColor','_handlePropertyChange','markBlockFormat','enableCommand','tableBorderColor','formatBlock','pluginName','tableCellBackgroundColor','editor','subType','model','TableUtils','registerDescriptionCallback','document','tableBorderWidth','commandParams','*Format:*\x20change\x20table\x20properties','tableAlignment','_getSuggestion'];(function(_0x462576,_0x35f625){const _0x4a5f43=function(_0x426574){while(--_0x426574){_0x462576['push'](_0x462576['shift']());}};_0x4a5f43(++_0x35f625);}(_0x35f6,0x18a));const _0x4a5f=function(_0x462576,_0x35f625){_0x462576=_0x462576-0x0;let _0x4a5f43=_0x35f6[_0x462576];return _0x4a5f43;};import{Plugin as _0x3ec68d}from'ckeditor5/src/core';import{getTranslation as _0x45f4e5}from'../utils/common-translations';export default class Ct extends _0x3ec68d{constructor(_0x2c1b1a){super(_0x2c1b1a),this[_0x4a5f('0x23')]=[_0x4a5f('0x2f'),_0x4a5f('0xe'),_0x4a5f('0x0'),_0x4a5f('0x3'),_0x4a5f('0x17'),_0x4a5f('0xc'),_0x4a5f('0x1e')],this['tableCellProperties']=[_0x4a5f('0x2b'),'tableCellBorderStyle','tableCellBorderWidth','tableCellPadding',_0x4a5f('0x13'),_0x4a5f('0x1b'),_0x4a5f('0x32'),_0x4a5f('0x25'),_0x4a5f('0x11')];}static get[_0x4a5f('0x31')](){return _0x4a5f('0x22');}[_0x4a5f('0xf')](){const _0x5282cc=this[_0x4a5f('0x33')]['plugins'][_0x4a5f('0x19')]('TrackChangesEditing');if(this[_0x4a5f('0x33')][_0x4a5f('0xd')][_0x4a5f('0x9')]('TablePropertiesEditing')){for(const _0x24e30b of this[_0x4a5f('0x23')])_0x5282cc['enableCommand'](_0x24e30b,(_0x32f929,_0x506f31)=>{const _0x4e618b=this[_0x4a5f('0x33')][_0x4a5f('0x35')]['document'][_0x4a5f('0x14')][_0x4a5f('0x27')]()[_0x4a5f('0x1a')]('table');this[_0x4a5f('0x2c')](_0x24e30b,[_0x4e618b],this[_0x4a5f('0x23')],'tableProperties',_0x32f929,_0x506f31);});_0x5282cc[_0x4a5f('0x7')][_0x4a5f('0x20')](_0x4a5f('0x30'),'tableProperties',_0x4a5f('0x29'),_0x5282cc['_suggestionFactory'][_0x4a5f('0x12')](_0x4a5f('0x30'),null,_0x4a5f('0x21'))),_0x5282cc[_0x4a5f('0x7')][_0x4a5f('0x20')](_0x4a5f('0x30'),_0x4a5f('0x23'),'discard',(_0xe2f0eb,_0x3058ef)=>this[_0x4a5f('0x16')](this[_0x4a5f('0x23')],_0xe2f0eb,_0x3058ef)),_0x5282cc['_suggestionFactory'][_0x4a5f('0x20')](_0x4a5f('0x30'),_0x4a5f('0x23'),_0x4a5f('0x28'),()=>!0x1);}if(this['editor'][_0x4a5f('0xd')][_0x4a5f('0x9')](_0x4a5f('0x24'))){for(const _0x44a134 of this[_0x4a5f('0xa')])_0x5282cc[_0x4a5f('0x2e')](_0x44a134,(_0xdedb8e,_0x45d135)=>{const _0x3c0dfb=this[_0x4a5f('0x33')][_0x4a5f('0xd')][_0x4a5f('0x19')](_0x4a5f('0x36'))[_0x4a5f('0x1c')](this[_0x4a5f('0x33')][_0x4a5f('0x35')][_0x4a5f('0x38')]['selection']);this[_0x4a5f('0x2c')](_0x44a134,_0x3c0dfb,this[_0x4a5f('0xa')],'tableCellProperties',_0xdedb8e,_0x45d135);});_0x5282cc[_0x4a5f('0x7')][_0x4a5f('0x20')](_0x4a5f('0x30'),_0x4a5f('0xa'),_0x4a5f('0x29'),_0x5282cc[_0x4a5f('0x7')]['getSuggestionCallback'](_0x4a5f('0x30'),null,_0x4a5f('0x21'))),_0x5282cc[_0x4a5f('0x7')][_0x4a5f('0x20')](_0x4a5f('0x30'),_0x4a5f('0xa'),_0x4a5f('0x21'),(_0x265084,_0xa8a787)=>this[_0x4a5f('0x16')](this[_0x4a5f('0xa')],_0x265084,_0xa8a787)),_0x5282cc[_0x4a5f('0x7')][_0x4a5f('0x20')]('formatBlock',_0x4a5f('0xa'),_0x4a5f('0x28'),()=>!0x1);}_0x5282cc[_0x4a5f('0x26')][_0x4a5f('0x37')](_0x2faa56=>this[_0x4a5f('0x10')](_0x2faa56));}[_0x4a5f('0x2c')](_0x21c969,_0x51aa3c,_0x2b5052,_0x148343,_0x195cca,_0x100fe){const _0x4576d2=this[_0x4a5f('0x33')][_0x4a5f('0xd')][_0x4a5f('0x19')](_0x4a5f('0x1d'));this[_0x4a5f('0x33')]['model'][_0x4a5f('0xb')](_0x100fe[_0x4a5f('0x8')],()=>{for(const _0x31f473 of _0x51aa3c){if(this[_0x4a5f('0x4')](_0x31f473,_0x148343))_0x195cca(_0x100fe);else{const _0x4f031b={};for(const _0x5daac5 of _0x2b5052){const _0x4752f5=_0x31f473[_0x4a5f('0x2a')](_0x5daac5);void 0x0!==_0x4752f5&&(_0x4f031b[_0x5daac5]=_0x4752f5);}_0x195cca(_0x100fe),_0x4576d2[_0x4a5f('0x2d')](_0x31f473,{'commandParams':[_0x4f031b]},[],_0x148343);}}});}[_0x4a5f('0x16')](_0xf9583c,_0x14f437,_0x40f2b2){const _0xf8611c=_0x14f437[0x0]['start'][_0x4a5f('0x6')],_0x37e514=_0x40f2b2[_0x4a5f('0x1')][0x0];this['editor'][_0x4a5f('0x35')][_0x4a5f('0x15')](_0x3f2982=>{for(const _0xd2ce76 of _0xf9583c)void 0x0!==_0x37e514[_0xd2ce76]?_0x3f2982[_0x4a5f('0x18')](_0xd2ce76,_0x37e514[_0xd2ce76],_0xf8611c):_0x3f2982['removeAttribute'](_0xd2ce76,_0xf8611c);});}[_0x4a5f('0x10')](_0xabdaab){if(_0xabdaab['data'])switch(_0xabdaab[_0x4a5f('0x34')]){case _0x4a5f('0x23'):return{'type':'format','content':_0x45f4e5(this['editor'][_0x4a5f('0x1f')],_0x4a5f('0x2'))};case _0x4a5f('0xa'):return{'type':'format','content':_0x45f4e5(this[_0x4a5f('0x33')][_0x4a5f('0x1f')],_0x4a5f('0x5'))};}}[_0x4a5f('0x4')](_0x2629ae,_0x4cef51){const _0x4861c1=this[_0x4a5f('0x33')][_0x4a5f('0xd')]['get'](_0x4a5f('0x1d'));for(const _0x3f378b of _0x4861c1['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d0a55=_0x3f378b['getContainedElement']();if(_0x3f378b[_0x4a5f('0x34')]===_0x4cef51&&_0x5d0a55===_0x2629ae)return _0x3f378b;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41ad=['enableCommand','plugins','get','Template','insertTemplate','TrackChangesEditing','has'];(function(_0x4552d7,_0x41ad58){const _0x21ec95=function(_0x327da5){while(--_0x327da5){_0x4552d7['push'](_0x4552d7['shift']());}};_0x21ec95(++_0x41ad58);}(_0x41ad,0x187));const _0x21ec=function(_0x4552d7,_0x41ad58){_0x4552d7=_0x4552d7-0x0;let _0x21ec95=_0x41ad[_0x4552d7];return _0x21ec95;};import{Plugin as _0x3380c0}from'ckeditor5/src/core';export default class yt extends _0x3380c0{['afterInit'](){const _0x170e10=this['editor'];_0x170e10[_0x21ec('0x2')][_0x21ec('0x0')](_0x21ec('0x4'))&&_0x170e10[_0x21ec('0x2')][_0x21ec('0x3')](_0x21ec('0x6'))[_0x21ec('0x1')](_0x21ec('0x5'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2dd0=['_descriptionFactory','nodeBefore','isCollapsed','getNearestSelectionRange','ELEMENT_TITLE','registerElementLabel','element','Title','suggestion','isEqual','plugins','TrackChangesEditing','_splitMarkerName','isTouching','newRange','registerPostFixer','updateMarker','editor','model','removeMarker','document','start','title-content','schema','differ','from'];(function(_0x14d7d4,_0x2dd06c){const _0x12d81a=function(_0x4257e5){while(--_0x4257e5){_0x14d7d4['push'](_0x14d7d4['shift']());}};_0x12d81a(++_0x2dd06c);}(_0x2dd0,0xbb));const _0x12d8=function(_0x14d7d4,_0x2dd06c){_0x14d7d4=_0x14d7d4-0x0;let _0x12d81a=_0x2dd0[_0x14d7d4];return _0x12d81a;};import{Plugin as _0x210cf5}from'ckeditor5/src/core';import{getTranslation as _0x38ff0b}from'../utils/common-translations';export default class St extends _0x210cf5{['afterInit'](){const _0x149299=this[_0x12d8('0xc')];if(!_0x149299[_0x12d8('0x5')]['has'](_0x12d8('0x2')))return;const _0x3e9914=_0x149299[_0x12d8('0x5')]['get'](_0x12d8('0x6'));_0x3e9914[_0x12d8('0x15')][_0x12d8('0x0')](_0x12d8('0x11'),()=>_0x38ff0b(_0x149299['locale'],_0x12d8('0x19'))),_0x149299[_0x12d8('0xd')][_0x12d8('0xf')][_0x12d8('0xa')](_0x509356=>{let _0x25de49=!0x1;const _0x38584d=Array[_0x12d8('0x14')](_0x149299['model']['document'][_0x12d8('0x13')]['getChangedMarkers']());for(const {name:_0x3284a2,data:_0x4b5a22}of _0x38584d){const {group:_0x30e190}=_0x3e9914[_0x12d8('0x7')](_0x3284a2);if(_0x12d8('0x3')!==_0x30e190||!_0x4b5a22[_0x12d8('0x9')])continue;const _0x287081=_0x4b5a22['newRange'],_0x4d6751=_0x287081['end'][_0x12d8('0x16')];if(!_0x4d6751||!_0x4d6751['is'](_0x12d8('0x1'),_0x12d8('0x11')))continue;if(!_0x287081['start'][_0x12d8('0x8')](_0x287081['end']))continue;const _0x4c87be=_0x149299[_0x12d8('0xd')][_0x12d8('0x12')][_0x12d8('0x18')](_0x287081['end'],'forward');if(_0x4c87be&&_0x4c87be[_0x12d8('0x17')]){const _0x5245c7=_0x509356['createRange'](_0x287081[_0x12d8('0x10')],_0x4c87be[_0x12d8('0x10')]);_0x5245c7[_0x12d8('0x4')](_0x287081)||(_0x509356[_0x12d8('0xb')](_0x3284a2,{'range':_0x5245c7}),_0x25de49=!0x0);}_0x25de49||(_0x509356[_0x12d8('0xe')](_0x3284a2),_0x25de49=!0x0);}return _0x25de49;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1151=['enableCommand','plugins','TrackChangesEditing','get','afterInit','UndoEditing'];(function(_0xbb63d2,_0x115141){const _0x5c4629=function(_0x49cdd8){while(--_0x49cdd8){_0xbb63d2['push'](_0xbb63d2['shift']());}};_0x5c4629(++_0x115141);}(_0x1151,0x95));const _0x5c46=function(_0xbb63d2,_0x115141){_0xbb63d2=_0xbb63d2-0x0;let _0x5c4629=_0x1151[_0xbb63d2];return _0x5c4629;};import{Plugin as _0x498c56}from'ckeditor5/src/core';export default class It extends _0x498c56{[_0x5c46('0x5')](){const _0x4cce3e=this['editor'],_0x2b35e5=_0x4cce3e[_0x5c46('0x2')][_0x5c46('0x4')](_0x5c46('0x3'));_0x4cce3e[_0x5c46('0x2')]['has'](_0x5c46('0x0'))&&(_0x2b35e5['enableCommand']('undo'),_0x2b35e5[_0x5c46('0x1')]('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5939=['activeMarkers','elementEnd','ck-suggestion-marker-','isAtEnd','element','previousPosition','markerName','addHighlight','getItems','consumable','get','getAttribute','parent','push','hasAttribute','listIndent','writer','test','addClass','nextSibling','listItem','bindElementToMarker','includes','ck-suggestion-marker--active','plugins','markerRange','name','span','toViewElement','schema','mapper','item','model'];(function(_0x32b9d3,_0x5939da){const _0x505e0a=function(_0xff9e38){while(--_0xff9e38){_0x32b9d3['push'](_0x32b9d3['shift']());}};_0x505e0a(++_0x5939da);}(_0x5939,0x139));const _0x505e=function(_0x32b9d3,_0x5939da){_0x32b9d3=_0x32b9d3-0x0;let _0x505e0a=_0x5939[_0x32b9d3];return _0x505e0a;};export function getRangesWithAttribute(_0x26975d,_0x1268bc,_0x50777e){const _0x4a943c=[];for(const _0xacf85c of _0x1268bc[_0x505e('0x19')]())_0xacf85c[_0x505e('0x1f')](_0x26975d)&&_0x4a943c[_0x505e('0x1e')](_0x50777e['createRangeOn'](_0xacf85c));return _0x4a943c;}export function getElementsAffectedByListItemRename(_0x1fc5d6){const _0x3c11d8=[];if(_0x1fc5d6['is'](_0x505e('0x15'),_0x505e('0x4'))){let _0x479319=_0x1fc5d6[_0x505e('0x3')];for(;_0x479319&&_0x479319['is']('element',_0x505e('0x4'))&&_0x479319[_0x505e('0x1c')](_0x505e('0x20'))>0x0;)_0x3c11d8['push'](_0x479319),_0x479319=_0x479319[_0x505e('0x3')];}return _0x3c11d8;}export function downcastSplitMergeMarker(_0x1ff991,_0x441ad4,{showActiveMarker:_0x559ba2=!0x0}={}){const _0x2c7839=_0x1ff991[_0x505e('0x8')][_0x505e('0x1b')]('TrackChangesEditing');return(_0x35f290,_0x40ff81,_0x27cdc1)=>{if(!_0x27cdc1[_0x505e('0x1a')][_0x505e('0x1')](_0x40ff81[_0x505e('0x9')],_0x35f290[_0x505e('0xa')]))return;const _0x7fcdde=_0x40ff81['markerRange']['getWalker'](),_0x20f762=_0x40ff81[_0x505e('0x9')]['start'],_0x7a0be7=_0x1ff991[_0x505e('0x10')][_0x505e('0xd')];let _0x189b86=null,_0x35b366=null,_0x316fc0=!0x1,_0x560523=!0x1;for(const _0x3a800a of _0x7fcdde){const _0x3a8d2a=_0x3a800a[_0x505e('0xf')];_0x316fc0=_0x316fc0||_0x7a0be7['isContent'](_0x3a8d2a);const _0x88ce94=_0x27cdc1[_0x505e('0xe')][_0x505e('0xc')](_0x3a8d2a);if(_0x88ce94&&_0x88ce94['getCustomProperty'](_0x505e('0x18')))return;_0x505e('0x12')==_0x3a800a['type']&&(_0x7a0be7['isBlock'](_0x3a8d2a)&&!_0x7a0be7['isLimit'](_0x3a8d2a)&&(_0x3a8d2a[_0x505e('0x3')]||_0x20f762[_0x505e('0x14')]?_0x189b86&&_0x189b86[_0x505e('0x1d')]==_0x3a8d2a||(_0x189b86=_0x3a8d2a,_0x1ab323(_0x3a800a['previousPosition']),_0x560523=!0x0):_0x35b366=_0x35b366||_0x3a800a[_0x505e('0x16')]));}function _0x1ab323(_0x3cded2){const _0x2819b2=_0x27cdc1[_0x505e('0x0')]['createUIElement'](_0x505e('0xb'),{'class':_0x505e('0x13')+_0x441ad4}),_0x5ea871=_0x27cdc1[_0x505e('0xe')]['toViewPosition'](_0x3cded2);_0x559ba2&&_0x2c7839[_0x505e('0x11')][_0x505e('0x6')](_0x40ff81[_0x505e('0x17')])&&_0x27cdc1[_0x505e('0x0')][_0x505e('0x2')](_0x505e('0x7'),_0x2819b2),_0x27cdc1[_0x505e('0x0')]['insert'](_0x5ea871,_0x2819b2),_0x27cdc1[_0x505e('0xe')][_0x505e('0x5')](_0x2819b2,_0x40ff81[_0x505e('0x17')]);}_0x316fc0||_0x560523||!_0x35b366||_0x1ab323(_0x35b366);};}
|
package/src/suggestion.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7476=['decorate','getFirstRange','nodeBefore','_model','add','authoredAt','getAllAdjacentSuggestions','discard','substr','change','creator','get','previous','length','_onAccept','data','clear','subType','toJSON','accept','head','getMarkerNames','isInContent','getItems','split','onDiscard','end','isIntersecting','getContainedElement','filter','getFirstMarker','_onAttributesChange','addMarker','@external','size','reduce','createdAt','hasComments','type','removeMarker','getMultiRangeId','commentThread','onAccept','set','_onDiscard','isIntersectingWithRange','attributes','addMarkerName','removeMarkers','getMarkers','getRanges','next','author','addRange','push','isExternal','delete','getRange','map','setAttribute','isMultiRange','_markerNames','markers','_saved'];(function(_0x745b24,_0x74764f){const _0x3e74b3=function(_0x224d0d){while(--_0x224d0d){_0x745b24['push'](_0x745b24['shift']());}};_0x3e74b3(++_0x74764f);}(_0x7476,0x82));const _0x3e74=function(_0x745b24,_0x74764f){_0x745b24=_0x745b24-0x0;let _0x3e74b3=_0x7476[_0x745b24];return _0x3e74b3;};import{Element as _0x480ed6}from'ckeditor5/src/engine';import{ObservableMixin as _0x352344,uid as _0x1cb774}from'ckeditor5/src/utils';import{cloneDeep as _0x5ec8eb,isEqual as _0x14fde7,set as _0x2c0490,unset as _0xcaf765}from'lodash-es';export default class u extends _0x352344(){constructor(_0x4f39e4,_0x4d552f){super(),this['_isDataLoaded']=!0x1,this['id']=_0x4d552f['id'],this[_0x3e74('0x24')]=_0x4d552f[_0x3e74('0x24')],this[_0x3e74('0xf')]=_0x4d552f[_0x3e74('0xf')]||null,this[_0x3e74('0x32')]=_0x4d552f[_0x3e74('0x32')],this['creator']=_0x4d552f[_0x3e74('0x8')]||_0x4d552f[_0x3e74('0x32')],this[_0x3e74('0x35')]=Boolean(_0x4d552f[_0x3e74('0x2c')]&&_0x4d552f[_0x3e74('0x2c')][_0x3e74('0x1f')]),this[_0x3e74('0xd')]=null,this[_0x3e74('0x1')]=_0x4f39e4,this[_0x3e74('0xc')]=_0x4d552f[_0x3e74('0x28')],this[_0x3e74('0x2a')]=_0x4d552f[_0x3e74('0x17')],this['_onAttributesChange']=_0x4d552f['onAttributesChange'],this['_markerNames']=new Set(),this[_0x3e74('0x22')]=null,this[_0x3e74('0x29')](_0x3e74('0x3'),null),this[_0x3e74('0x29')]('attributes',_0x4d552f[_0x3e74('0x2c')]||{}),this[_0x3e74('0x29')](_0x3e74('0xa'),null),this[_0x3e74('0x29')](_0x3e74('0x31'),null),this[_0x3e74('0x29')](_0x3e74('0x27'),null),this[_0x3e74('0x29')](_0x3e74('0x3d'),!0x1),this[_0x3e74('0x3e')](_0x3e74('0x11')),this[_0x3e74('0x3e')](_0x3e74('0x5'));}get[_0x3e74('0x12')](){let _0x13ef66=this;for(;_0x13ef66[_0x3e74('0xa')];)_0x13ef66=_0x13ef66['previous'];return _0x13ef66;}get[_0x3e74('0x23')](){return!!this[_0x3e74('0x27')]&&this[_0x3e74('0x27')]['length']>0x0;}get[_0x3e74('0x3a')](){if(0x0==this[_0x3e74('0x3b')][_0x3e74('0x20')])return!0x1;return 0x6==Array['from'](this[_0x3e74('0x3b')])[0x0][_0x3e74('0x16')](':')[_0x3e74('0xb')];}get[_0x3e74('0x14')](){return null!==this[_0x3e74('0x1c')]();}[_0x3e74('0x2d')](_0x34e766){this['_markerNames'][_0x3e74('0x2')](_0x34e766);}[_0x3e74('0x13')](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this[_0x3e74('0x13')]()[_0x3e74('0x38')](_0xfaf8d3=>this[_0x3e74('0x1')][_0x3e74('0x3c')][_0x3e74('0x9')](_0xfaf8d3))[_0x3e74('0x1b')](_0x2b08bd=>_0x2b08bd);}['getFirstMarker'](){return this[_0x3e74('0x2f')]()[0x0]||null;}[_0x3e74('0x2e')](){this[_0x3e74('0x1')][_0x3e74('0x7')](_0x54944f=>{for(const _0x59f275 of this[_0x3e74('0x2f')]())_0x54944f[_0x3e74('0x25')](_0x59f275);}),this[_0x3e74('0x3b')][_0x3e74('0xe')]();}[_0x3e74('0x25')](_0x1a4613){this[_0x3e74('0x1')][_0x3e74('0x7')](_0x25aba0=>{_0x25aba0[_0x3e74('0x25')](_0x1a4613);}),this['_markerNames'][_0x3e74('0x36')](_0x1a4613);}[_0x3e74('0x33')](_0x2edf81){const _0x5ee8e1='suggestion:'+this[_0x3e74('0x24')]+':'+this[_0x3e74('0xf')]+':'+this['id']+':'+this[_0x3e74('0x8')]['id']+':'+u[_0x3e74('0x26')]();this[_0x3e74('0x2d')](_0x5ee8e1),this[_0x3e74('0x1')][_0x3e74('0x7')](_0x3447e9=>{_0x3447e9[_0x3e74('0x1e')](_0x5ee8e1,{'range':_0x2edf81,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3e74('0x2b')](_0x2a9b6a){for(const _0x354377 of this['getRanges']())if(_0x354377[_0x3e74('0x19')](_0x2a9b6a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()[_0x3e74('0x38')](_0x5c7b57=>_0x5c7b57[_0x3e74('0x37')]());}[_0x3e74('0x15')](){return this[_0x3e74('0x30')]()[_0x3e74('0x21')]((_0x250222,_0x1f9b75)=>[..._0x250222,..._0x1f9b75['getItems']()],[]);}[_0x3e74('0x3f')](){var _0x5e57e2;return(null===(_0x5e57e2=this[_0x3e74('0x1c')]())||void 0x0===_0x5e57e2?void 0x0:_0x5e57e2[_0x3e74('0x37')]())||null;}[_0x3e74('0x1a')](){const _0x2d4ef3=this[_0x3e74('0x30')]();if(0x1!=_0x2d4ef3[_0x3e74('0xb')])return null;const _0x6843d9=_0x2d4ef3[0x0],_0x36c55d=_0x6843d9['start']['nodeAfter'],_0x40e0eb=_0x6843d9[_0x3e74('0x18')][_0x3e74('0x0')];return _0x36c55d instanceof _0x480ed6?_0x36c55d!=_0x40e0eb?null:_0x36c55d:null;}[_0x3e74('0x11')](){this['_onAccept'](this['getRanges'](),this[_0x3e74('0xd')],this[_0x3e74('0x2c')]),this[_0x3e74('0x2e')]();}[_0x3e74('0x5')](){this[_0x3e74('0x2a')](this['getRanges'](),this[_0x3e74('0xd')],this[_0x3e74('0x2c')]),this[_0x3e74('0x2e')]();}[_0x3e74('0x4')](){const _0x9133ff=[];let _0x1666ae=this[_0x3e74('0x12')];for(;_0x1666ae;)_0x9133ff[_0x3e74('0x34')](_0x1666ae),_0x1666ae=_0x1666ae[_0x3e74('0x31')];return _0x9133ff;}[_0x3e74('0x39')](_0x44e5ad,_0x2078d6){const _0x7c58a3=_0x5ec8eb(this[_0x3e74('0x2c')]);_0x2c0490(_0x7c58a3,_0x44e5ad,_0x2078d6),_0x14fde7(_0x7c58a3,this[_0x3e74('0x2c')])||(this[_0x3e74('0x2c')]=_0x7c58a3,this[_0x3e74('0x1d')](_0x7c58a3));}['removeAttribute'](_0x313f80){const _0x10ba19=_0x5ec8eb(this['attributes']);_0xcaf765(_0x10ba19,_0x313f80),_0x14fde7(_0x10ba19,this[_0x3e74('0x2c')])||(this[_0x3e74('0x2c')]=_0x10ba19,this[_0x3e74('0x1d')](this[_0x3e74('0x2c')]));}[_0x3e74('0x10')](){return{'id':this['id'],'type':this[_0x3e74('0xf')]?this['type']+':'+this[_0x3e74('0xf')]:this[_0x3e74('0x24')],'authorId':this[_0x3e74('0x8')]['id'],'createdAt':this[_0x3e74('0x22')],'hasComments':this[_0x3e74('0x23')],'data':this[_0x3e74('0xd')],'attributes':this[_0x3e74('0x2c')]};}static['getMultiRangeId'](){return _0x1cb774()[_0x3e74('0x6')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5835=['push','_itemLabels','type','isInContent','quantity','deletion','_schema','previousSibling','addEmptyContainer','remove','element','$1\x20$2','insertion','_itemLabelsCallbacks','*Merge:*\x20%0','nextSibling','$text','getFirstRange','REPLACE_TEXT','elementStart','start','ELEMENT_SPACE','*Insert:*\x20%0','skip','end','text','indexOf','removeEmptyContainer','removeObject','softBreak','*Remove:*\x20%0','elementEnd','data','set','_customCallbacks','registerElementLabel','add','getItemLabel','label','replace','$textProxy','Container','_addDescriptionItems','isObject','EmptyContainer','registerDescriptionCallback','getWalker','pop','addContainer','_locale','get','name','getDescriptions','length','_resolveDescriptionItems'];(function(_0x4df904,_0x5835c2){const _0xf7e5c7=function(_0x17d09f){while(--_0x17d09f){_0x4df904['push'](_0x4df904['shift']());}};_0xf7e5c7(++_0x5835c2);}(_0x5835,0x1ab));const _0xf7e5=function(_0x4df904,_0x5835c2){_0x4df904=_0x4df904-0x0;let _0xf7e5c7=_0x5835[_0x4df904];return _0xf7e5c7;};import{getTranslation as _0x392141}from'./utils/common-translations';import{priorities as _0x4d64d3,insertToPriorityArray as _0x19635c}from'ckeditor5/src/utils';export default class m{constructor(_0x1e4efa,_0x50867c){this[_0xf7e5('0x2f')]=[],this[_0xf7e5('0xe')]=new Map(),this[_0xf7e5('0x1a')]=[],this[_0xf7e5('0x13')]=_0x1e4efa,this[_0xf7e5('0x7')]=_0x50867c;}[_0xf7e5('0xa')](_0x516387){const _0x5b80d8=[];for(let _0xce79fc=0x0;_0xce79fc<_0x516387[_0xf7e5('0xb')];_0xce79fc++){const _0x5128f7=_0x516387[_0xce79fc];if(!_0x5128f7[_0xf7e5('0x10')])continue;let _0x7993e2=!0x1;for(const _0x21c039 of this[_0xf7e5('0x2f')]){const _0x5d4fad=_0x21c039(_0x5128f7);if(_0x5d4fad){_0xf7e5('0xf')in _0x5d4fad&&_0x5b80d8['push'](_0x5d4fad),_0x7993e2=!0x0;break;}}if(!_0x7993e2){this[_0xf7e5('0x0')](_0x5b80d8,_0x5128f7);const _0x35425e=_0x516387[_0xce79fc+0x1];if(_0x35425e&&!_0x5128f7['getFirstRange']()[_0xf7e5('0x25')]['isEqual'](_0x35425e['getFirstRange']()[_0xf7e5('0x21')])){const _0x37bef4=_0x5b80d8[_0x5b80d8[_0xf7e5('0xb')]-0x1],_0x55cd56='insertion'==_0x5128f7['type']?_0xf7e5('0x31'):_0xf7e5('0x16');_0x37bef4&&_0xf7e5('0x26')==_0x37bef4['type']&&(_0x37bef4[_0x55cd56]+='\x0a');}}}return this[_0xf7e5('0xc')](_0x5b80d8);}[_0xf7e5('0x3')](_0x2cd6a1){this[_0xf7e5('0x2f')][_0xf7e5('0xd')](_0x2cd6a1);}[_0xf7e5('0x30')](_0x56c32e,_0x3e985e,_0x2cf2ff=_0x4d64d3['normal']){'function'==typeof _0x56c32e?_0x19635c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x56c32e,'label':_0x3e985e,'priority':_0x2cf2ff}):this[_0xf7e5('0xe')][_0xf7e5('0x2e')](_0x56c32e,_0x3e985e);}[_0xf7e5('0x32')](_0x2e74db,_0x300f1d=0x1){let _0x519f46;for(const _0xf9b8c9 of this[_0xf7e5('0x1a')])if(_0xf9b8c9['matchingCallback'](_0x2e74db)){_0x519f46=_0xf9b8c9[_0xf7e5('0x33')];break;}return _0x519f46||(_0x519f46=this['_itemLabels'][_0xf7e5('0x8')](_0x2e74db[_0xf7e5('0x9')])),_0x519f46?_0x519f46(_0x300f1d):0x1!==_0x300f1d?_0x300f1d+'\x20'+_0x2e74db['name']+'s':''+_0x2e74db[_0xf7e5('0x9')];}['_addDescriptionItems'](_0x147167,_0x17105){const _0x92a9de=_0x17105[_0xf7e5('0x1e')]()[_0xf7e5('0x4')](),_0x65f4f5=_0xf7e5('0x19')==_0x17105[_0xf7e5('0xf')]?_0xf7e5('0x31'):_0xf7e5('0x16');for(const _0xb6d810 of _0x92a9de){const _0x225f14=_0xb6d810['item'],_0x327f68=_0x147167[_0x147167[_0xf7e5('0xb')]-0x1];if(_0x225f14['is'](_0xf7e5('0x35')))_0x327f68&&_0x327f68[_0xf7e5('0xf')][_0xf7e5('0x27')](_0xf7e5('0x36'))>-0x1&&_0x147167[_0xf7e5('0x5')](),_0x327f68&&_0xf7e5('0x26')==_0x327f68['type']?_0x327f68[_0x65f4f5]+=_0x225f14['data']:_0x147167[_0xf7e5('0xd')]({'type':'text','add':_0xf7e5('0x31')==_0x65f4f5?_0x225f14[_0xf7e5('0x2d')]:'','remove':'remove'==_0x65f4f5?_0x225f14[_0xf7e5('0x2d')]:''});else{if(this[_0xf7e5('0x13')]['isObject'](_0x225f14)){const _0x1714b7=_0x225f14;if(_0x327f68&&_0x327f68['type'][_0xf7e5('0x27')](_0xf7e5('0x36'))>-0x1&&_0x147167['pop'](),_0xf7e5('0x2c')==_0xb6d810[_0xf7e5('0xf')])continue;_0x327f68&&_0x327f68[_0xf7e5('0xf')]==_0x65f4f5+'Object'&&_0x327f68[_0xf7e5('0x17')][_0xf7e5('0x9')]==_0x1714b7[_0xf7e5('0x9')]?_0x327f68[_0xf7e5('0x11')]++:_0x147167[_0xf7e5('0xd')]({'type':_0x65f4f5+'Object','element':_0x1714b7,'quantity':0x1}),_0x92a9de[_0xf7e5('0x24')](_0x3e6dbe=>!(_0xf7e5('0x2c')==_0x3e6dbe[_0xf7e5('0xf')]&&_0x3e6dbe['item']==_0x225f14));}else{if(this[_0xf7e5('0x13')]['checkChild'](_0x225f14,_0xf7e5('0x1d'))||_0x225f14['is'](_0xf7e5('0x17'),_0xf7e5('0x2a'))){const _0x2d1d62=_0x225f14;if(_0xf7e5('0x31')==_0x65f4f5&&_0xf7e5('0x20')==_0xb6d810[_0xf7e5('0xf')]||_0xf7e5('0x16')==_0x65f4f5&&_0xf7e5('0x2c')==_0xb6d810[_0xf7e5('0xf')])continue;if(_0x327f68&&-0x1==_0x327f68['type'][_0xf7e5('0x27')](_0xf7e5('0x36'))){'text'==_0x327f68[_0xf7e5('0xf')]&&(_0x327f68[_0x65f4f5]+='\x0a');continue;}let _0x5dc24f;if(_0x5dc24f=_0xf7e5('0x31')==_0x65f4f5?_0x2d1d62[_0xf7e5('0x1c')]&&!this[_0xf7e5('0x13')][_0xf7e5('0x1')](_0x2d1d62[_0xf7e5('0x1c')])?_0x2d1d62[_0xf7e5('0x1c')]:null:_0x2d1d62[_0xf7e5('0x14')]&&!this[_0xf7e5('0x13')][_0xf7e5('0x1')](_0x2d1d62[_0xf7e5('0x14')])?_0x2d1d62[_0xf7e5('0x14')]:null,_0x2d1d62['isEmpty']||_0x5dc24f&&_0x5dc24f['isEmpty']){const _0xfa5e02=_0x5dc24f&&_0x5dc24f['isEmpty']?_0x5dc24f:_0x2d1d62;_0x327f68&&_0x327f68[_0xf7e5('0xf')]==_0x65f4f5+_0xf7e5('0x2')&&_0x327f68[_0xf7e5('0x17')][_0xf7e5('0x9')]==_0xfa5e02[_0xf7e5('0x9')]?_0x327f68[_0xf7e5('0x11')]++:_0x147167[_0xf7e5('0xd')]({'type':_0x65f4f5+_0xf7e5('0x2'),'element':_0xfa5e02,'quantity':0x1});}else _0x147167[_0xf7e5('0xd')]({'type':_0x65f4f5+_0xf7e5('0x36'),'element':_0x2d1d62});}}}}}[_0xf7e5('0xc')](_0x280827){const _0x33c15c=this['_locale'],_0x5a09bd=[];for(const _0x411957 of _0x280827){switch(_0x411957['type']){case _0xf7e5('0x26'):if(_0x411957[_0xf7e5('0x31')]=_0x411957[_0xf7e5('0x31')]['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0xf7e5('0x34')](/\u000A/g,''),_0x411957[_0xf7e5('0x16')]=_0x411957[_0xf7e5('0x16')][_0xf7e5('0x34')](/(\S)\u000A+(\S)/g,_0xf7e5('0x18'))[_0xf7e5('0x34')](/\u000A/g,''),''!=_0x411957[_0xf7e5('0x31')]&&''!=_0x411957[_0xf7e5('0x16')]){_0x5a09bd['push']({'type':'replace','content':_0x392141(_0x33c15c,_0xf7e5('0x1f'),['\x22'+_0x411957['remove']+'\x22','\x22'+_0x411957[_0xf7e5('0x31')]+'\x22'])});continue;}if(null!=_0x411957['add']['match'](/^ +$/)){_0x5a09bd[_0xf7e5('0xd')]({'type':'insertion','content':_0x392141(_0x33c15c,_0xf7e5('0x23'),_0x392141(_0x33c15c,_0xf7e5('0x22'),_0x411957[_0xf7e5('0x31')][_0xf7e5('0xb')]))});continue;}if(null!=_0x411957[_0xf7e5('0x16')]['match'](/^ +$/)){_0x5a09bd[_0xf7e5('0xd')]({'type':_0xf7e5('0x12'),'content':_0x392141(_0x33c15c,_0xf7e5('0x2b'),_0x392141(_0x33c15c,_0xf7e5('0x22'),_0x411957['remove'][_0xf7e5('0xb')]))});continue;}if(''!=_0x411957['add']){_0x5a09bd[_0xf7e5('0xd')]({'type':_0xf7e5('0x19'),'content':_0x392141(_0x33c15c,'*Insert:*\x20%0','\x22'+_0x411957[_0xf7e5('0x31')]+'\x22')});continue;}_0x5a09bd['push']({'type':_0xf7e5('0x12'),'content':_0x392141(_0x33c15c,'*Remove:*\x20%0','\x22'+_0x411957[_0xf7e5('0x16')]+'\x22')});continue;case _0xf7e5('0x15'):case'addObject':_0x5a09bd[_0xf7e5('0xd')]({'type':_0xf7e5('0x19'),'content':_0x392141(_0x33c15c,_0xf7e5('0x23'),this['getItemLabel'](_0x411957[_0xf7e5('0x17')],_0x411957[_0xf7e5('0x11')]))});continue;case _0xf7e5('0x28'):case _0xf7e5('0x29'):_0x5a09bd[_0xf7e5('0xd')]({'type':_0xf7e5('0x12'),'content':_0x392141(_0x33c15c,_0xf7e5('0x2b'),this['getItemLabel'](_0x411957[_0xf7e5('0x17')],_0x411957[_0xf7e5('0x11')]))});continue;case _0xf7e5('0x6'):_0x5a09bd['push']({'type':_0xf7e5('0x19'),'content':_0x392141(_0x33c15c,'*Split:*\x20%0',this[_0xf7e5('0x32')](_0x411957[_0xf7e5('0x17')],_0x411957['quantity']))});continue;case'removeContainer':_0x5a09bd[_0xf7e5('0xd')]({'type':_0xf7e5('0x12'),'content':_0x392141(_0x33c15c,_0xf7e5('0x1b'),this[_0xf7e5('0x32')](_0x411957[_0xf7e5('0x17')],_0x411957[_0xf7e5('0x11')]))});continue;}_0x5a09bd[_0xf7e5('0xd')](_0x411957);}return _0x5a09bd;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x25cb=['addSuggestionData','TrackChanges','getSuggestion','plugins','editor','getSuggestions','get','pluginName','adapter'];(function(_0x4b8165,_0x25cb9d){var _0x32c9e1=function(_0x69a3c){while(--_0x69a3c){_0x4b8165['push'](_0x4b8165['shift']());}};_0x32c9e1(++_0x25cb9d);}(_0x25cb,0x1a1));var _0x32c9=function(_0x4b8165,_0x25cb9d){_0x4b8165=_0x4b8165-0x0;var _0x32c9e1=_0x25cb[_0x4b8165];return _0x32c9e1;};import{Plugin as _0x2065cd}from'ckeditor5/src/core';import _0x1f9108 from'./trackchangesui';import _0x118b06 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x2065cd{static get['requires'](){return[_0x118b06,_0x1f9108,'Comments'];}static get[_0x32c9('0x4')](){return _0x32c9('0x7');}set[_0x32c9('0x5')](_0xc3eb88){this['editor'][_0x32c9('0x0')]['get'](_0x118b06)[_0x32c9('0x5')]=_0xc3eb88;}get[_0x32c9('0x5')](){return this['editor']['plugins']['get'](_0x118b06)[_0x32c9('0x5')];}['addSuggestion'](_0x371197){return this[_0x32c9('0x1')]['plugins'][_0x32c9('0x3')](_0x118b06)[_0x32c9('0x6')](_0x371197);}[_0x32c9('0x2')]({skipNotAttached:_0x12b438=!0x1,toJSON:_0x33220d=!0x1}={}){return this[_0x32c9('0x1')][_0x32c9('0x0')][_0x32c9('0x3')](_0x118b06)[_0x32c9('0x2')]({'skipNotAttached':_0x12b438,'toJSON':_0x33220d});}['getSuggestion'](_0x287899){return this['editor'][_0x32c9('0x0')][_0x32c9('0x3')](_0x118b06)[_0x32c9('0x8')](_0x287899);}}
|