@ckeditor/ckeditor5-track-changes 39.0.1 → 40.0.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/CHANGELOG.md +2 -2
- package/LICENSE.md +6 -6
- package/README.md +14 -14
- 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/augmentation.d.ts +40 -40
- package/src/commands/acceptsuggestioncommand.d.ts +24 -24
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +24 -24
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +26 -26
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +16 -16
- package/src/integrations/aiassistant.d.ts +17 -0
- package/src/integrations/aiassistant.js +23 -0
- package/src/integrations/alignment.d.ts +17 -17
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +17 -17
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +17 -17
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +17 -17
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +17 -17
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +14 -14
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +17 -17
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +17 -17
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +29 -29
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +16 -16
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +21 -21
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +17 -17
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +17 -17
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +17 -17
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +17 -17
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +17 -17
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +17 -17
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +17 -17
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +23 -23
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +18 -18
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +17 -17
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +16 -16
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +17 -17
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +17 -17
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +29 -29
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +17 -17
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +17 -17
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +17 -17
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +17 -17
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +17 -17
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +17 -17
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +16 -16
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +17 -17
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +18 -18
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +42 -42
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +22 -22
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +19 -19
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +26 -26
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +22 -22
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +22 -22
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +17 -17
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +27 -27
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +17 -17
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +17 -17
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +17 -17
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +21 -21
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +276 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +163 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +244 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +75 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +468 -439
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +38 -38
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +37 -37
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -182
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +30 -30
- package/src/utils/utils.js +1 -1
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17a5=['has','afterInit','removeClass','ck-suggestion-marker-','getColumnIndexes','formatBlock','model','ck-suggestion-marker--active','FORMAT_HEADER_ROW','_suggestionFactory','getSuggestion','createPositionBefore','showSuggestionHighlights','setTableRowHeader','enableCommand','headingColumns','stop','childCount','getAttribute','mapper','get','_acceptFormatSuggestionCallbackFactory','name','setTableColumnHeader','value','findAncestor','includes','data','requires','downcastDispatcher','unbindElementFromMarkerName','selection','_splitMarkerName','nodeAfter','options','from','_descriptionFactory','headingRows','getCellLocation','table','toViewElement','commandName','activeMarkers','createPositionAfter','isBefore','last','markerRange','markerNameToElements','start','FORMAT_HEADER_COLUMN','index','consume','locale','removeAttribute','data-suggestion','parent','addMarker:suggestion','commands','createRange','commandParams','createTableWalker','first','*Format:*\x20%0','bindElementToMarker','change','writer','forceValue','accept','TableUtils','format','document','item','markerName','editor','consumable','highest','plugins','editing','TableEditing','registerDescriptionCallback','getSelectionAffectedTableCells','TrackChangesEditing','registerCustomCallback','cell','nodeBefore','addClass','getChild'];(function(_0x32ad35,_0x17a5e1){const _0x265bde=function(_0x464545){while(--_0x464545){_0x32ad35['push'](_0x32ad35['shift']());}};_0x265bde(++_0x17a5e1);}(_0x17a5,0x139));const _0x265b=function(_0x32ad35,_0x17a5e1){_0x32ad35=_0x32ad35-0x0;let _0x265bde=_0x17a5[_0x32ad35];return _0x265bde;};import{Plugin as _0x52cdca}from'ckeditor5/src/core';import _0xf1ac1c from'./table';import{getTranslation as _0x21c5c4}from'../utils/common-translations';export default class kt extends _0x52cdca{static get[_0x265b('0x3f')](){return[_0xf1ac1c];}[_0x265b('0x24')](){const _0xeb5fd2=this[_0x265b('0x15')];if(!_0xeb5fd2[_0x265b('0x18')][_0x265b('0x23')](_0x265b('0x1a')))return;const _0x20198e=_0xeb5fd2[_0x265b('0x0')],_0x47b9fc=_0xeb5fd2[_0x265b('0x18')][_0x265b('0x37')](_0x265b('0x1d')),_0x24b429=_0xeb5fd2[_0x265b('0x18')][_0x265b('0x37')](_0x265b('0x10')),_0x537773=_0xeb5fd2[_0x265b('0x18')][_0x265b('0x37')](_0xf1ac1c);function _0x4378a2({showActiveMarker:_0x2907fa=!0x0,setDataAttribute:_0x4ff9cd=!0x0}={}){return(_0x4df33b,_0x4a2c35,_0x7dc348)=>{const {type:_0x2f1b16,id:_0x1fa8fb}=_0x47b9fc[_0x265b('0x43')](_0x4a2c35['markerName']),_0x1375d5=_0x47b9fc[_0x265b('0x2d')](_0x1fa8fb);if(!_0x1375d5[_0x265b('0x3e')]||_0x265b('0x3a')!=_0x1375d5[_0x265b('0x3e')][_0x265b('0x4c')])return;if(_0x4a2c35[_0x265b('0x13')])return void _0x4df33b[_0x265b('0x33')]();if(!_0x7dc348[_0x265b('0x16')][_0x265b('0x56')](_0x4a2c35['markerRange'],_0x4df33b[_0x265b('0x39')]))return;const _0x485832=_0x4a2c35[_0x265b('0x51')][_0x265b('0x53')][_0x265b('0x44')],_0x43fe1d=_0x4a2c35[_0x265b('0x51')]['end'][_0x265b('0x20')],_0x122beb=_0x485832['parent'][_0x265b('0x3')],{column:_0x16cb1e}=_0x24b429[_0x265b('0x49')](_0x485832),{column:_0x1f9899}=_0x24b429[_0x265b('0x49')](_0x43fe1d);for(let _0x46ee9f=_0x16cb1e;_0x46ee9f<=_0x1f9899;_0x46ee9f++){const _0x40e3bc=_0x24b429[_0x265b('0x8')](_0x122beb,{'column':_0x46ee9f,'includeAllSlots':!0x1});for(const _0x4d2a60 of _0x40e3bc){const _0x1f18d2=_0x4d2a60[_0x265b('0x1f')],_0xb9cb83=_0x7dc348[_0x265b('0x36')][_0x265b('0x4b')](_0x1f18d2);_0x7dc348[_0x265b('0xd')][_0x265b('0x21')]('ck-suggestion-marker-'+_0x2f1b16,_0xb9cb83),_0x4ff9cd&&_0x7dc348[_0x265b('0xd')]['setAttribute'](_0x265b('0x2'),_0x1fa8fb,_0xb9cb83),_0x7dc348[_0x265b('0x36')][_0x265b('0xb')](_0xb9cb83,_0x4a2c35[_0x265b('0x14')]),_0x2907fa&&(_0x47b9fc[_0x265b('0x4d')][_0x265b('0x3d')](_0x4a2c35[_0x265b('0x14')])?_0x7dc348[_0x265b('0xd')][_0x265b('0x21')](_0x265b('0x2a'),_0xb9cb83):_0x7dc348[_0x265b('0xd')]['removeClass'](_0x265b('0x2a'),_0xb9cb83));}}};}_0x47b9fc[_0x265b('0x31')]('setTableRowHeader',(_0x3eab96,_0x2ee518)=>{const _0x2899aa=_0x24b429[_0x265b('0x1c')](_0xeb5fd2[_0x265b('0x29')][_0x265b('0x12')][_0x265b('0x42')]),_0x5d10ad=_0x24b429['getRowIndexes'](_0x2899aa),_0x33c97a=_0x2899aa[0x0][_0x265b('0x3c')](_0x265b('0x4a')),_0x6b08f3=_0x33c97a[_0x265b('0x35')](_0x265b('0x48'))||0x0,_0x18dd4e=_0x2ee518&&null!==_0x2ee518[_0x265b('0xe')]?_0x2ee518['forceValue']:!_0xeb5fd2[_0x265b('0x5')][_0x265b('0x37')](_0x265b('0x30'))[_0x265b('0x3b')],_0x2bf5cc=_0x18dd4e?_0x5d10ad[_0x265b('0x50')]:_0x5d10ad[_0x265b('0x9')],_0x3eb1e1=_0x33c97a['getChild'](_0x2bf5cc);let _0x5677fb;if(_0x18dd4e){const _0x1a108e=_0x33c97a['getChild'](_0x6b08f3);if(_0x3eb1e1['index']<_0x1a108e[_0x265b('0x55')])return;_0x5677fb=_0xeb5fd2[_0x265b('0x29')][_0x265b('0x6')](_0xeb5fd2[_0x265b('0x29')][_0x265b('0x2e')](_0x1a108e[_0x265b('0x22')](0x0)),_0xeb5fd2[_0x265b('0x29')]['createPositionAfter'](_0x3eb1e1[_0x265b('0x22')](_0x3eb1e1[_0x265b('0x34')]-0x1)));}else{const _0x303f6e=_0x33c97a[_0x265b('0x22')](_0x6b08f3-0x1);if(!_0x303f6e)return;_0x5677fb=_0xeb5fd2[_0x265b('0x29')][_0x265b('0x6')](_0xeb5fd2[_0x265b('0x29')][_0x265b('0x2e')](_0x3eb1e1[_0x265b('0x22')](0x0)),_0xeb5fd2[_0x265b('0x29')][_0x265b('0x4e')](_0x303f6e[_0x265b('0x22')](_0x303f6e[_0x265b('0x34')]-0x1)));}_0xeb5fd2['model'][_0x265b('0xc')](()=>{_0x47b9fc['markBlockFormat'](_0x5677fb,{'commandName':_0x265b('0x30'),'commandParams':[{'forceValue':_0x18dd4e}]},[],_0x265b('0x30'));});}),_0x47b9fc['enableCommand']('setTableColumnHeader',(_0x247833,_0x2546c9)=>{const _0x4055b8=_0xeb5fd2['plugins']['get'](_0x265b('0x10')),_0x1ddf82=_0x4055b8[_0x265b('0x1c')](_0xeb5fd2['model'][_0x265b('0x12')][_0x265b('0x42')]),_0x4ec9fa=_0x4055b8[_0x265b('0x27')](_0x1ddf82),_0x3d00ec=_0x1ddf82[0x0]['findAncestor'](_0x265b('0x4a')),_0x6fb5f3=_0x3d00ec[_0x265b('0x35')](_0x265b('0x32'))||0x0,_0x216d91=_0x2546c9&&null!==_0x2546c9['forceValue']?_0x2546c9[_0x265b('0xe')]:!_0xeb5fd2[_0x265b('0x5')][_0x265b('0x37')](_0x265b('0x3a'))[_0x265b('0x3b')];let _0x3ecb39;const _0x49691a=_0x3d00ec[_0x265b('0x22')](0x0),_0xea419c=_0x216d91?_0x4ec9fa[_0x265b('0x50')]:_0x4ec9fa[_0x265b('0x9')],_0x42a8ac=_0x4055b8['createTableWalker'](_0x3d00ec,{'startRow':0x0,'column':_0xea419c,'includeAllSlots':!0x1}),_0x41504d=Array[_0x265b('0x46')](_0x42a8ac)[0x0][_0x265b('0x1f')];if(_0x216d91){const _0x23bc34=_0x49691a[_0x265b('0x22')](_0x6fb5f3);if(_0x41504d[_0x265b('0x4f')](_0x23bc34))return;_0x3ecb39=_0xeb5fd2[_0x265b('0x29')][_0x265b('0x6')](_0xeb5fd2[_0x265b('0x29')][_0x265b('0x2e')](_0x23bc34),_0xeb5fd2[_0x265b('0x29')][_0x265b('0x4e')](_0x41504d));}else{const _0x241f8d=_0x49691a[_0x265b('0x22')](_0x6fb5f3-0x1);if(!_0x241f8d)return;_0x3ecb39=_0xeb5fd2[_0x265b('0x29')][_0x265b('0x6')](_0xeb5fd2[_0x265b('0x29')][_0x265b('0x2e')](_0x41504d),_0xeb5fd2[_0x265b('0x29')]['createPositionAfter'](_0x241f8d));}_0xeb5fd2[_0x265b('0x29')]['change'](()=>{_0x47b9fc['markBlockFormat'](_0x3ecb39,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0x216d91}]},[],_0x265b('0x3a'));});}),_0xeb5fd2[_0x265b('0x19')][_0x265b('0x40')]['on'](_0x265b('0x4'),_0x4378a2(),{'priority':_0x265b('0x17')}),_0xeb5fd2[_0x265b('0x3e')][_0x265b('0x40')]['on'](_0x265b('0x4'),(_0x38b0bb,_0x199c3e,_0x1e6910)=>{_0x1e6910[_0x265b('0x45')][_0x265b('0x2f')]&&_0x4378a2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x38b0bb,_0x199c3e,_0x1e6910);},{'priority':_0x265b('0x17')}),_0xeb5fd2[_0x265b('0x19')][_0x265b('0x40')]['on']('removeMarker:suggestion',(_0x22ba43,_0x2846f3,_0x5740fd)=>{const {type:_0x2290f7,id:_0x1c8301}=_0x47b9fc[_0x265b('0x43')](_0x2846f3['markerName']),_0x1e2479=_0x47b9fc[_0x265b('0x2d')](_0x1c8301);if(!_0x1e2479[_0x265b('0x3e')]||_0x265b('0x3a')!=_0x1e2479[_0x265b('0x3e')][_0x265b('0x4c')])return;const _0x1312f2=_0x5740fd['mapper'][_0x265b('0x52')](_0x2846f3[_0x265b('0x14')]);if(_0x1312f2)for(const _0x178873 of _0x1312f2)_0x5740fd['writer']['removeClass'](_0x265b('0x26')+_0x2290f7,_0x178873),_0x5740fd[_0x265b('0xd')][_0x265b('0x25')]('ck-suggestion-marker--active',_0x178873),_0x5740fd[_0x265b('0xd')][_0x265b('0x1')](_0x265b('0x2'),_0x178873),_0x5740fd[_0x265b('0x36')][_0x265b('0x41')](_0x178873,_0x2846f3['markerName']);},{'priority':_0x265b('0x17')}),_0x47b9fc[_0x265b('0x47')][_0x265b('0x1b')](_0xdb88e4=>{const {data:_0x4249a7}=_0xdb88e4;if(_0x4249a7){if(_0x265b('0x30')==_0x4249a7['commandName']){const _0x2a3d80=_0x4249a7[_0x265b('0x7')][0x0][_0x265b('0xe')];return _0x4ed563(_0x21c5c4(_0x20198e,_0x2a3d80?_0x265b('0x2b'):'FORMAT_REGULAR_ROW'));}if(_0x265b('0x3a')==_0x4249a7[_0x265b('0x4c')]){const _0xc18c3d=_0x4249a7['commandParams'][0x0]['forceValue'];return _0x4ed563(_0x21c5c4(_0x20198e,_0xc18c3d?_0x265b('0x54'):'FORMAT_REGULAR_COLUMN'));}}function _0x4ed563(_0x56f2fd){return{'type':_0x265b('0x11'),'content':_0x21c5c4(_0x20198e,_0x265b('0xa'),_0x56f2fd)};}});const _0x1df622=_0x537773[_0x265b('0x38')]();_0x47b9fc['_suggestionFactory'][_0x265b('0x1e')](_0x265b('0x28'),_0x265b('0x30'),_0x265b('0xf'),_0x1df622),_0x47b9fc[_0x265b('0x2c')][_0x265b('0x1e')](_0x265b('0x28'),_0x265b('0x3a'),_0x265b('0xf'),_0x1df622);}}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/tablemergesplit
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TrackChangesTable from './table';
|
|
10
|
-
/**
|
|
11
|
-
* Provides track changes plugin integration for {@link module:table/table~Table table feature} merging and splitting cells.
|
|
12
|
-
*/
|
|
13
|
-
export default class TrackChangesTableMergeSplit extends Plugin {
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
static get requires(): readonly [typeof TrackChangesTable];
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
afterInit(): void;
|
|
22
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/tablemergesplit
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import TrackChangesTable from './table';
|
|
10
|
+
/**
|
|
11
|
+
* Provides track changes plugin integration for {@link module:table/table~Table table feature} merging and splitting cells.
|
|
12
|
+
*/
|
|
13
|
+
export default class TrackChangesTableMergeSplit extends Plugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get requires(): readonly [typeof TrackChangesTable];
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
afterInit(): void;
|
|
22
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2099=['markMultiRangeBlockFormat','model','enableCommand','TrackChangesEditing','_areSelectedCellsMergable','mergeTableCellDown','filter','TableUtils','element','length','*Merge\x20cells*','registerCustomCallback','has','*Split\x20cell:*\x20vertically','stop','find','accept','isEnabled','plugins','type','execute','_descriptionFactory','requires','getFirstPosition','registerDescriptionCallback','size','containsRange','setSelection','getRanges','$graveyard','fromRange','return','mergeTableCellRight','_suggestionFactory','_tablePostFixingSubtypes','from','mergeTableCellUp','push','low','author','mergeTableCellLeft','getSelectionAffectedTableCells','TableEditing','direction','editor','getCellLocation','splitTableCellHorizontally','get','rootName','commandName','table','splitTableCellVertically','createTableWalker','change','document','horizontally','add','cell','tableCell','format','getAncestors','locale','afterInit','_acceptFormatSuggestionCallbackFactory','_areMergableCells','insertion','root','formatBlock','commands','value','mergeTableCells','_isForcedDefaultExecutionBlock','map','refresh','createRangeOn','markBlockFormat','selection'];(function(_0xb540cd,_0x2099c9){const _0x5f12dc=function(_0x1314a8){while(--_0x1314a8){_0xb540cd['push'](_0xb540cd['shift']());}};_0x5f12dc(++_0x2099c9);}(_0x2099,0x93));const _0x5f12=function(_0xb540cd,_0x2099c9){_0xb540cd=_0xb540cd-0x0;let _0x5f12dc=_0x2099[_0xb540cd];return _0x5f12dc;};import{Plugin as _0x497730}from'ckeditor5/src/core';import _0x5948af from'./table';import{LiveRange as _0x1d4014}from'ckeditor5/src/engine';import{getTranslation as _0x745999}from'../utils/common-translations';export default class pt extends _0x497730{static get[_0x5f12('0x1d')](){return[_0x5948af];}[_0x5f12('0x45')](){const _0x64d57b=this['editor'],_0x1f0fd5=_0x64d57b['model'][_0x5f12('0x3d')]['selection'],_0x4c8d7b=_0x64d57b[_0x5f12('0x44')];if(!_0x64d57b[_0x5f12('0x19')][_0x5f12('0x13')](_0x5f12('0x31')))return;const _0xf822c5=_0x64d57b['plugins'][_0x5f12('0x36')](_0x5f12('0xa')),_0x2a1d5d=_0x64d57b[_0x5f12('0x19')][_0x5f12('0x36')](_0x5f12('0xe')),_0x245d6e=_0x64d57b[_0x5f12('0x19')][_0x5f12('0x36')](_0x5948af);_0x245d6e[_0x5f12('0x29')][_0x5f12('0x2c')](_0x5f12('0x0')),_0xf822c5[_0x5f12('0x9')](_0x5f12('0x0'),()=>{const _0x519429=_0x2a1d5d[_0x5f12('0x30')](_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3d')][_0x5f12('0x6')]);_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3c')](()=>{_0xf822c5[_0x5f12('0x7')](_0x519429,{'commandName':'mergeTableCells','commandParams':[]},[],_0x5f12('0x0'));});}),_0x64d57b[_0x5f12('0x4b')]['get'](_0x5f12('0x0'))['on'](_0x5f12('0x1b'),(_0x38832e,_0x307fea)=>{_0x64d57b[_0x5f12('0x4b')][_0x5f12('0x36')]('trackChanges')['value']&&(_0x307fea['length']>0x0&&_0x307fea[_0x307fea[_0x5f12('0x10')]-0x1]&&_0x307fea[_0x307fea['length']-0x1]['forceDefaultExecution']||_0xf822c5[_0x5f12('0x1')]||this['_areSelectedCellsMergable']()||_0x38832e['stop']());},{'priority':'highest'});for(const _0x3ae12a of[_0x5f12('0x2b'),_0x5f12('0x27'),_0x5f12('0xc'),'mergeTableCellLeft']){const _0x2fa26c=_0x64d57b['commands']['get'](_0x3ae12a);_0xf822c5['enableCommand'](_0x3ae12a,()=>{const _0x24c479=_0x64d57b['model'][_0x5f12('0x3d')][_0x5f12('0x6')][_0x5f12('0x1e')]()[_0x5f12('0x43')]()[_0x5f12('0x16')](_0x401286=>_0x401286['is'](_0x5f12('0xf'),'tableCell')),_0x43d5f3=_0x2fa26c[_0x5f12('0x4c')];_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3c')](()=>{_0xf822c5['markMultiRangeBlockFormat']([_0x24c479,_0x43d5f3],{'commandName':_0x5f12('0x0'),'commandParams':[]},[],_0x5f12('0x0'));});});}for(const _0x69095a of[_0x5f12('0x3a'),_0x5f12('0x35')]){const _0x4d97ad=_0x64d57b[_0x5f12('0x4b')]['get'](_0x69095a);_0xf822c5['enableCommand'](_0x69095a,()=>{const _0x13be31=_0x2a1d5d['getSelectionAffectedTableCells'](_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3d')][_0x5f12('0x6')])[0x0],_0x4986da=_0x13be31['findAncestor'](_0x5f12('0x39')),{column:_0xfdc9c0,row:_0x5b4203}=_0x2a1d5d[_0x5f12('0x34')](_0x13be31);let _0x3c811b=[];if(_0x5f12('0x3e')==_0x4d97ad[_0x5f12('0x32')]){const _0x30afaf=_0x2a1d5d[_0x5f12('0x3b')](_0x4986da,{'startRow':_0x5b4203,'endRow':_0x5b4203,'includeAllSlots':!0x0});_0x3c811b=Array[_0x5f12('0x2a')](_0x30afaf)['map'](_0x386519=>_0x386519[_0x5f12('0x40')]);}else{const _0x5ae843=_0x2a1d5d[_0x5f12('0x3b')](_0x4986da,{'column':_0xfdc9c0,'includeAllSlots':!0x0});_0x3c811b=Array[_0x5f12('0x2a')](_0x5ae843)[_0x5f12('0x2')](_0x4cc15a=>_0x4cc15a[_0x5f12('0x40')]);}_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3c')](_0x488801=>{_0xf822c5[_0x5f12('0x5')](_0x488801[_0x5f12('0x4')](_0x13be31),{'commandName':_0x69095a,'commandParams':[]},_0x3c811b,_0x69095a);});});}_0xf822c5[_0x5f12('0x1c')][_0x5f12('0x1f')](_0x1db85b=>{const {data:_0x24ae3d}=_0x1db85b;if(_0x24ae3d)return'mergeTableCells'==_0x24ae3d[_0x5f12('0x38')]?{'type':_0x5f12('0x42'),'content':_0x745999(_0x4c8d7b,_0x5f12('0x11'))}:void 0x0;}),_0xf822c5['_descriptionFactory'][_0x5f12('0x1f')](_0x287820=>{const {data:_0x1dedd2}=_0x287820;if(_0x1dedd2)return _0x5f12('0x3a')==_0x1dedd2['commandName']?{'type':_0x5f12('0x42'),'content':_0x745999(_0x4c8d7b,_0x5f12('0x14'))}:_0x5f12('0x35')==_0x1dedd2[_0x5f12('0x38')]?{'type':_0x5f12('0x42'),'content':_0x745999(_0x4c8d7b,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x50bdef=_0x245d6e[_0x5f12('0x46')]();for(const _0x21ac4f of['mergeTableCellUp','mergeTableCellRight',_0x5f12('0xc'),_0x5f12('0x2f')])_0xf822c5['_suggestionFactory']['registerCustomCallback'](_0x5f12('0x4a'),_0x21ac4f,_0x5f12('0x17'),_0x50bdef);for(const _0x1bbbc6 of['splitTableCellVertically','splitTableCellHorizontally'])_0xf822c5[_0x5f12('0x28')][_0x5f12('0x12')](_0x5f12('0x4a'),_0x1bbbc6,_0x5f12('0x17'),_0x50bdef);_0xf822c5['_suggestionFactory'][_0x5f12('0x12')]('formatBlock',_0x5f12('0x0'),_0x5f12('0x17'),_0x562475=>{_0x64d57b['model']['change'](_0x2bb05f=>{const _0x34794d=Array[_0x5f12('0x2a')](_0x1f0fd5[_0x5f12('0x23')]())[_0x5f12('0x2')](_0x57c764=>_0x1d4014[_0x5f12('0x25')](_0x57c764));_0x2bb05f[_0x5f12('0x22')](_0x562475),_0x64d57b[_0x5f12('0x4b')][_0x5f12('0x36')](_0x5f12('0x0'))[_0x5f12('0x3')](),_0x64d57b[_0x5f12('0x1b')](_0x5f12('0x0'),{'forceDefaultExecution':!0x0});const _0x199f01=_0x34794d[_0x5f12('0xd')](_0x36955f=>_0x5f12('0x24')!=_0x36955f[_0x5f12('0x49')][_0x5f12('0x37')]);_0x199f01[_0x5f12('0x10')]>0x0&&_0x2bb05f['setSelection'](_0x199f01);for(const _0xbc6613 of _0x34794d)_0xbc6613['detach']();});});for(const _0x2dc4d9 of[_0x5f12('0x2b'),_0x5f12('0xc'),_0x5f12('0x2f'),_0x5f12('0x27')]){const _0x5489ed=_0x64d57b[_0x5f12('0x4b')][_0x5f12('0x36')](_0x2dc4d9);_0x5489ed['on']('set:isEnabled',(_0x1f7c68,_0x3c3ac1,_0x1dad7b)=>{if(_0x1dad7b){const _0x12e1e7=_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3d')][_0x5f12('0x6')][_0x5f12('0x1e')]()[_0x5f12('0x43')]()[_0x5f12('0x16')](_0xbad652=>_0xbad652['is'](_0x5f12('0xf'),_0x5f12('0x41')));this[_0x5f12('0x47')](_0x5489ed['value'],_0x12e1e7)||(_0x1f7c68[_0x5f12('0x26')]=!0x1,_0x1f7c68[_0x5f12('0x15')]());}},{'priority':_0x5f12('0x2d')});}}[_0x5f12('0xb')](){const _0xad50fd=this[_0x5f12('0x33')][_0x5f12('0x4b')]['get'](_0x5f12('0x0')),_0x3730b2=this[_0x5f12('0x33')]['plugins'][_0x5f12('0x36')](_0x5f12('0xe'));if(!_0xad50fd[_0x5f12('0x18')])return!0x1;const _0x5e9090=_0x3730b2[_0x5f12('0x30')](this['editor'][_0x5f12('0x8')][_0x5f12('0x3d')]['selection']);for(const _0x56f3d2 of _0x5e9090)for(const _0x4b8b98 of _0x5e9090)if(_0x56f3d2!=_0x4b8b98&&!this[_0x5f12('0x47')](_0x56f3d2,_0x4b8b98))return!0x1;return!0x0;}[_0x5f12('0x47')](_0x3fbf2b,_0x2ef9a1){const _0x57225c=this[_0x5f12('0x33')][_0x5f12('0x19')][_0x5f12('0x36')](_0x5f12('0xa')),_0x45da05=this['editor'][_0x5f12('0x8')][_0x5f12('0x4')](_0x3fbf2b),_0x383f6f=this[_0x5f12('0x33')][_0x5f12('0x8')][_0x5f12('0x4')](_0x2ef9a1),_0x3fd3ae=new Set(),_0x2fb9b9=new Set();for(const _0x38af1a of _0x57225c['getSuggestions']())if((_0x5f12('0x48')==_0x38af1a[_0x5f12('0x1a')]||'deletion'==_0x38af1a['type']||_0x5f12('0x0')==_0x38af1a['subType'])&&_0x38af1a['isInContent'])for(const _0x1bf9e4 of _0x38af1a[_0x5f12('0x23')]())_0x1bf9e4[_0x5f12('0x21')](_0x45da05,!0x0)&&_0x3fd3ae[_0x5f12('0x3f')](_0x38af1a['type']+':'+_0x38af1a[_0x5f12('0x2e')]['id']),_0x1bf9e4[_0x5f12('0x21')](_0x383f6f,!0x0)&&_0x2fb9b9[_0x5f12('0x3f')](_0x38af1a[_0x5f12('0x1a')]+':'+_0x38af1a[_0x5f12('0x2e')]['id']);if(_0x3fd3ae[_0x5f12('0x20')]!=_0x2fb9b9[_0x5f12('0x20')])return!0x1;for(const _0x195228 of _0x3fd3ae)if(!_0x2fb9b9[_0x5f12('0x13')](_0x195228))return!0x1;return!0x0;}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/tableofcontents
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for the Table of contents feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesTableOfContents extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/tableofcontents
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for the Table of contents feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesTableOfContents extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34f2=['TrackChangesEditing','enableCommand','commands','plugins','registerElementLabel','get','_descriptionFactory','insertTableOfContents','afterInit','tableOfContents'];(function(_0x248359,_0x34f286){const _0x2e45cf=function(_0x2c0100){while(--_0x2c0100){_0x248359['push'](_0x248359['shift']());}};_0x2e45cf(++_0x34f286);}(_0x34f2,0xfd));const _0x2e45=function(_0x248359,_0x34f286){_0x248359=_0x248359-0x0;let _0x2e45cf=_0x34f2[_0x248359];return _0x2e45cf;};import{Plugin as _0x2d74fc}from'ckeditor5/src/core';import{getTranslation as _0x1687b4}from'../utils/common-translations';export default class St extends _0x2d74fc{[_0x2e45('0x5')](){const _0x456548=this['editor'];if(!_0x456548[_0x2e45('0x9')][_0x2e45('0x2')]('insertTableOfContents'))return;_0x456548['plugins'][_0x2e45('0x2')](_0x2e45('0x7'))[_0x2e45('0x8')](_0x2e45('0x4'));const _0x3d390f=_0x456548[_0x2e45('0x0')]['get'](_0x2e45('0x7')),_0x34155e=_0x456548['locale'];_0x3d390f[_0x2e45('0x3')][_0x2e45('0x1')](_0x2e45('0x6'),_0x2d2095=>_0x1687b4(_0x34155e,'ELEMENT_TABLE_OF_CONTENTS',_0x2d2095));}}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/tableproperties
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import type { Range } from 'ckeditor5/src/engine';
|
|
10
|
-
import type { default as Suggestion } from '../suggestion';
|
|
11
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
12
|
-
/**
|
|
13
|
-
* Provides track changes plugin integration for table properties feature.
|
|
14
|
-
*/
|
|
15
|
-
export default class TrackChangesTableProperties extends Plugin {
|
|
16
|
-
constructor(editor: Editor);
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
static get pluginName(): "TrackChangesTableProperties";
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
afterInit(): void;
|
|
25
|
-
handleDiscardAction(properties: Array<string>, ranges: Array<Range>, data: any): void;
|
|
26
|
-
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
27
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/tableproperties
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
import type { Range } from 'ckeditor5/src/engine';
|
|
10
|
+
import type { default as Suggestion } from '../suggestion';
|
|
11
|
+
import type { Description } from '../suggestiondescriptionfactory';
|
|
12
|
+
/**
|
|
13
|
+
* Provides track changes plugin integration for table properties feature.
|
|
14
|
+
*/
|
|
15
|
+
export default class TrackChangesTableProperties extends Plugin {
|
|
16
|
+
constructor(editor: Editor);
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "TrackChangesTableProperties";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
afterInit(): void;
|
|
25
|
+
handleDiscardAction(properties: Array<string>, ranges: Array<Range>, data: any): void;
|
|
26
|
+
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
27
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1810=['tableCellBorderStyle','accept','document','tableCellVerticalAlignment','setAttribute','handleSuggestionDescription','TrackChangesEditing','plugins','get','registerDescriptionCallback','change','TableUtils','tableCellHorizontalAlignment','getSuggestions','commandParams','tableCellWidth','subType','has','formatBlock','handleDiscardAction','*Format:*\x20change\x20table\x20properties','TableCellPropertiesEditing','removeAttribute','tableCellProperties','start','table','join','registerCustomCallback','enableCommand','tableCellBorderColor','tableCellBackgroundColor','_suggestionFactory','enqueueChange','_handlePropertyChange','editor','selection','getAttribute','getSuggestionCallback','getFirstPosition','nodeAfter','locale','TrackChangesTableProperties','tableCellBorderWidth','discard','pluginName','tableProperties','tableHeight','*Format:*\x20change\x20table\x20cell\x20properties','tableBorderColor','getContainedElement','TablePropertiesEditing','tableWidth','model','data','format','_getSuggestion'];(function(_0x4ec658,_0x18109a){const _0x554806=function(_0x293fc1){while(--_0x293fc1){_0x4ec658['push'](_0x4ec658['shift']());}};_0x554806(++_0x18109a);}(_0x1810,0x1af));const _0x5548=function(_0x4ec658,_0x18109a){_0x4ec658=_0x4ec658-0x0;let _0x554806=_0x1810[_0x4ec658];return _0x554806;};import{Plugin as _0x1f7e24}from'ckeditor5/src/core';import{getTranslation as _0x5d6771}from'../utils/common-translations';export default class Dt extends _0x1f7e24{constructor(_0x1ce6db){super(_0x1ce6db),this[_0x5548('0x6')]=[_0x5548('0x9'),'tableBorderStyle','tableBorderWidth','tableAlignment',_0x5548('0xc'),_0x5548('0x7'),'tableBackgroundColor'],this['tableCellProperties']=[_0x5548('0x2e'),_0x5548('0x11'),_0x5548('0x3'),'tableCellPadding',_0x5548('0x20'),'tableCellHeight',_0x5548('0x2f'),_0x5548('0x1d'),_0x5548('0x14')];}static get[_0x5548('0x5')](){return _0x5548('0x2');}['afterInit'](){const _0xc0cd4a=this[_0x5548('0x33')][_0x5548('0x18')][_0x5548('0x19')](_0x5548('0x17'));if(this[_0x5548('0x33')][_0x5548('0x18')]['has'](_0x5548('0xb'))){for(const _0x2c11c4 of this[_0x5548('0x6')])_0xc0cd4a[_0x5548('0x2d')](_0x2c11c4,(_0x296f79,_0x369fe1)=>{const _0x1d2756=this[_0x5548('0x33')][_0x5548('0xd')][_0x5548('0x13')]['selection'][_0x5548('0x37')]()['findAncestor'](_0x5548('0x2a'));this[_0x5548('0x32')](_0x2c11c4,[_0x1d2756],this[_0x5548('0x6')],_0x5548('0x6'),_0x296f79,_0x369fe1);});_0xc0cd4a[_0x5548('0x30')][_0x5548('0x2c')](_0x5548('0x23'),'tableProperties',_0x5548('0x12'),_0xc0cd4a[_0x5548('0x30')][_0x5548('0x36')]('formatBlock',null,'discard')),_0xc0cd4a[_0x5548('0x30')][_0x5548('0x2c')]('formatBlock',_0x5548('0x6'),_0x5548('0x4'),(_0x2cb97e,_0x44d765)=>this[_0x5548('0x24')](this['tableProperties'],_0x2cb97e,_0x44d765)),_0xc0cd4a[_0x5548('0x30')][_0x5548('0x2c')](_0x5548('0x23'),_0x5548('0x6'),'join',()=>!0x1);}if(this[_0x5548('0x33')]['plugins'][_0x5548('0x22')](_0x5548('0x26'))){for(const _0x598bcd of this[_0x5548('0x28')])_0xc0cd4a[_0x5548('0x2d')](_0x598bcd,(_0x301e77,_0xdc8781)=>{const _0x5444ea=this[_0x5548('0x33')]['plugins']['get'](_0x5548('0x1c'))['getSelectionAffectedTableCells'](this[_0x5548('0x33')][_0x5548('0xd')][_0x5548('0x13')][_0x5548('0x34')]);this[_0x5548('0x32')](_0x598bcd,_0x5444ea,this[_0x5548('0x28')],'tableCellProperties',_0x301e77,_0xdc8781);});_0xc0cd4a[_0x5548('0x30')]['registerCustomCallback'](_0x5548('0x23'),_0x5548('0x28'),_0x5548('0x12'),_0xc0cd4a['_suggestionFactory'][_0x5548('0x36')]('formatBlock',null,_0x5548('0x4'))),_0xc0cd4a[_0x5548('0x30')][_0x5548('0x2c')](_0x5548('0x23'),_0x5548('0x28'),_0x5548('0x4'),(_0x497c85,_0xff492f)=>this[_0x5548('0x24')](this[_0x5548('0x28')],_0x497c85,_0xff492f)),_0xc0cd4a[_0x5548('0x30')]['registerCustomCallback']('formatBlock',_0x5548('0x28'),_0x5548('0x2b'),()=>!0x1);}_0xc0cd4a['_descriptionFactory'][_0x5548('0x1a')](_0xef0daa=>this[_0x5548('0x16')](_0xef0daa));}['_handlePropertyChange'](_0xad561b,_0x1c1269,_0x40d076,_0x10ef7c,_0x136ef9,_0x517413){const _0x1930b6=this[_0x5548('0x33')][_0x5548('0x18')][_0x5548('0x19')](_0x5548('0x17'));this[_0x5548('0x33')]['model'][_0x5548('0x31')](_0x517413['batch'],()=>{for(const _0x22944a of _0x1c1269){if(this[_0x5548('0x10')](_0x22944a,_0x10ef7c))_0x136ef9(_0x517413);else{const _0x29e807={};for(const _0x49ac8b of _0x40d076){const _0x4b0aa5=_0x22944a[_0x5548('0x35')](_0x49ac8b);void 0x0!==_0x4b0aa5&&(_0x29e807[_0x49ac8b]=_0x4b0aa5);}_0x136ef9(_0x517413),_0x1930b6['markBlockFormat'](_0x22944a,{'commandParams':[_0x29e807]},[],_0x10ef7c);}}});}[_0x5548('0x24')](_0x24c5cd,_0x29a8e5,_0x37f717){const _0x4ae80f=_0x29a8e5[0x0][_0x5548('0x29')][_0x5548('0x0')],_0x24e5ba=_0x37f717[_0x5548('0x1f')][0x0];this[_0x5548('0x33')][_0x5548('0xd')][_0x5548('0x1b')](_0xab37ae=>{for(const _0x470213 of _0x24c5cd)void 0x0!==_0x24e5ba[_0x470213]?_0xab37ae[_0x5548('0x15')](_0x470213,_0x24e5ba[_0x470213],_0x4ae80f):_0xab37ae[_0x5548('0x27')](_0x470213,_0x4ae80f);});}[_0x5548('0x16')](_0x2e65fb){if(_0x2e65fb[_0x5548('0xe')])switch(_0x2e65fb['subType']){case _0x5548('0x6'):return{'type':'format','content':_0x5d6771(this['editor'][_0x5548('0x1')],_0x5548('0x25'))};case'tableCellProperties':return{'type':_0x5548('0xf'),'content':_0x5d6771(this['editor']['locale'],_0x5548('0x8'))};}}[_0x5548('0x10')](_0xe9bf5d,_0x1251a6){const _0x18c38f=this[_0x5548('0x33')][_0x5548('0x18')][_0x5548('0x19')]('TrackChangesEditing');for(const _0x32e39b of _0x18c38f[_0x5548('0x1e')]({'skipNotAttached':!0x0})){const _0x3f52cb=_0x32e39b[_0x5548('0xa')]();if(_0x32e39b[_0x5548('0x21')]===_0x1251a6&&_0x3f52cb===_0xe9bf5d)return _0x32e39b;}return null;}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/template
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for template feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesTemplate extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/template
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for template feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesTemplate extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bb2=['get','plugins','enableCommand','insertTemplate','TrackChangesEditing','has','afterInit','Template'];(function(_0x1eb90d,_0x3bb290){const _0x3767be=function(_0x54b222){while(--_0x54b222){_0x1eb90d['push'](_0x1eb90d['shift']());}};_0x3767be(++_0x3bb290);}(_0x3bb2,0xe5));const _0x3767=function(_0x1eb90d,_0x3bb290){_0x1eb90d=_0x1eb90d-0x0;let _0x3767be=_0x3bb2[_0x1eb90d];return _0x3767be;};import{Plugin as _0x3cfb40}from'ckeditor5/src/core';export default class bt extends _0x3cfb40{[_0x3767('0x1')](){const _0x50fa63=this['editor'];_0x50fa63[_0x3767('0x4')][_0x3767('0x0')](_0x3767('0x2'))&&_0x50fa63[_0x3767('0x4')][_0x3767('0x3')](_0x3767('0x7'))[_0x3767('0x5')](_0x3767('0x6'));}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/title
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for title feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesTitle extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/title
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for title feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesTitle extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbf94=['_splitMarkerName','isCollapsed','createRange','newRange','TrackChangesEditing','from','locale','plugins','end','afterInit','title-content','getChangedMarkers','suggestion','get','nodeBefore','forward','registerElementLabel','Title','element','differ','isEqual','model','document','ELEMENT_TITLE','schema','isTouching','start','removeMarker','editor'];(function(_0x1ef500,_0xbf941a){const _0x52e255=function(_0x39219f){while(--_0x39219f){_0x1ef500['push'](_0x1ef500['shift']());}};_0x52e255(++_0xbf941a);}(_0xbf94,0xe6));const _0x52e2=function(_0x1ef500,_0xbf941a){_0x1ef500=_0x1ef500-0x0;let _0x52e255=_0xbf94[_0x1ef500];return _0x52e255;};import{Plugin as _0x11fbd8}from'ckeditor5/src/core';import{getTranslation as _0x4756bb}from'../utils/common-translations';export default class It extends _0x11fbd8{[_0x52e2('0xb')](){const _0x3be69a=this[_0x52e2('0x1')];if(!_0x3be69a[_0x52e2('0x9')]['has'](_0x52e2('0x13')))return;const _0xe73945=_0x3be69a[_0x52e2('0x9')][_0x52e2('0xf')](_0x52e2('0x6'));_0xe73945['_descriptionFactory'][_0x52e2('0x12')]('title-content',()=>_0x4756bb(_0x3be69a[_0x52e2('0x8')],_0x52e2('0x19'))),_0x3be69a[_0x52e2('0x17')][_0x52e2('0x18')]['registerPostFixer'](_0x24c6ec=>{let _0x1c93f6=!0x1;const _0x214e3f=Array[_0x52e2('0x7')](_0x3be69a[_0x52e2('0x17')][_0x52e2('0x18')][_0x52e2('0x15')][_0x52e2('0xd')]());for(const {name:_0x37ea49,data:_0x44d40f}of _0x214e3f){const {group:_0x348d8d}=_0xe73945[_0x52e2('0x2')](_0x37ea49);if(_0x52e2('0xe')!==_0x348d8d||!_0x44d40f['newRange'])continue;const _0x7ab21e=_0x44d40f[_0x52e2('0x5')],_0x58f93a=_0x7ab21e[_0x52e2('0xa')][_0x52e2('0x10')];if(!_0x58f93a||!_0x58f93a['is'](_0x52e2('0x14'),_0x52e2('0xc')))continue;if(!_0x7ab21e[_0x52e2('0x1c')][_0x52e2('0x1b')](_0x7ab21e[_0x52e2('0xa')]))continue;const _0x25c77d=_0x3be69a[_0x52e2('0x17')][_0x52e2('0x1a')]['getNearestSelectionRange'](_0x7ab21e[_0x52e2('0xa')],_0x52e2('0x11'));if(_0x25c77d&&_0x25c77d[_0x52e2('0x3')]){const _0x547a1c=_0x24c6ec[_0x52e2('0x4')](_0x7ab21e[_0x52e2('0x1c')],_0x25c77d[_0x52e2('0x1c')]);_0x547a1c[_0x52e2('0x16')](_0x7ab21e)||(_0x24c6ec['updateMarker'](_0x37ea49,{'range':_0x547a1c}),_0x1c93f6=!0x0);}_0x1c93f6||(_0x24c6ec[_0x52e2('0x0')](_0x37ea49),_0x1c93f6=!0x0);}return _0x1c93f6;});}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/undo
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:undo/undo~Undo undo feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesUndo extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/undo
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:undo/undo~Undo undo feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesUndo extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb94f=['TrackChangesEditing','undo','afterInit','enableCommand','get','editor','has','redo','plugins'];(function(_0x1a6404,_0xb94f65){const _0x1b1808=function(_0x1c1a83){while(--_0x1c1a83){_0x1a6404['push'](_0x1a6404['shift']());}};_0x1b1808(++_0xb94f65);}(_0xb94f,0xd2));const _0x1b18=function(_0x1a6404,_0xb94f65){_0x1a6404=_0x1a6404-0x0;let _0x1b1808=_0xb94f[_0x1a6404];return _0x1b1808;};import{Plugin as _0x4e3cc5}from'ckeditor5/src/core';export default class vt extends _0x4e3cc5{[_0x1b18('0x8')](){const _0x1b62b4=this[_0x1b18('0x2')],_0x2ea7ff=_0x1b62b4[_0x1b18('0x5')][_0x1b18('0x1')](_0x1b18('0x6'));_0x1b62b4['plugins'][_0x1b18('0x3')]('UndoEditing')&&(_0x2ea7ff[_0x1b18('0x0')](_0x1b18('0x7')),_0x2ea7ff['enableCommand'](_0x1b18('0x4')));}}
|