@ckeditor/ckeditor5-track-changes 40.0.0 → 40.2.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 +15 -15
- package/LICENSE.md +3 -3
- package/README.md +1 -1
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +20 -1
- package/lang/translations/ar.po +78 -2
- package/lang/translations/az.po +77 -1
- package/lang/translations/bg.po +78 -2
- package/lang/translations/bn.po +78 -2
- package/lang/translations/ca.po +78 -2
- package/lang/translations/cs.po +78 -2
- package/lang/translations/da.po +78 -2
- package/lang/translations/de.po +78 -2
- package/lang/translations/el.po +78 -2
- package/lang/translations/en-au.po +78 -2
- package/lang/translations/en.po +78 -2
- package/lang/translations/es.po +78 -2
- package/lang/translations/et.po +78 -2
- package/lang/translations/fi.po +78 -2
- package/lang/translations/fr.po +78 -2
- package/lang/translations/gl.po +90 -14
- package/lang/translations/he.po +78 -2
- package/lang/translations/hi.po +78 -2
- package/lang/translations/hr.po +78 -2
- package/lang/translations/hu.po +78 -2
- package/lang/translations/id.po +78 -2
- package/lang/translations/it.po +78 -2
- package/lang/translations/ja.po +78 -2
- package/lang/translations/ko.po +78 -2
- package/lang/translations/lt.po +78 -2
- package/lang/translations/lv.po +78 -2
- package/lang/translations/ms.po +78 -2
- package/lang/translations/nl.po +78 -2
- package/lang/translations/no.po +78 -2
- package/lang/translations/pl.po +78 -2
- package/lang/translations/pt-br.po +96 -20
- package/lang/translations/pt.po +78 -2
- package/lang/translations/ro.po +78 -2
- package/lang/translations/ru.po +78 -2
- package/lang/translations/sk.po +78 -2
- package/lang/translations/sq.po +77 -1
- package/lang/translations/sr-latn.po +78 -2
- package/lang/translations/sr.po +78 -2
- package/lang/translations/sv.po +78 -2
- package/lang/translations/th.po +78 -2
- package/lang/translations/tk.po +77 -1
- package/lang/translations/tr.po +78 -2
- package/lang/translations/tt.po +77 -1
- package/lang/translations/uk.po +78 -2
- package/lang/translations/ur.po +77 -1
- package/lang/translations/vi.po +78 -2
- package/lang/translations/zh-cn.po +78 -2
- package/lang/translations/zh.po +78 -2
- package/package.json +3 -3
- 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 -17
- package/src/integrations/aiassistant.js +1 -1
- 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 +17 -23
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +17 -0
- package/src/integrations/imagestyle.js +23 -0
- 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 +17 -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 +291 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +183 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +180 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +78 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +524 -468
- 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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e7e=['data-suggestion','formatBlock','TableEditing','forceValue','registerCustomCallback','getSuggestion','_splitMarkerName','FORMAT_HEADER_ROW','addClass','downcastDispatcher','writer','setTableRowHeader','_suggestionFactory','afterInit','createTableWalker','markerRange','bindElementToMarker','cell','_registerLegacyDescription','FORMAT_HEADER_COLUMN','setAttribute','_descriptionFactory','editor','TrackChangesEditing','get','requires','FORMAT_REGULAR_ROW','highest','has','*Format:*\x20%0','registerAttributeLabel','end','item','headingColumns','format','ck-suggestion-marker--active','toViewElement','addMarker:suggestion','unbindElementFromMarkerName','mapper','locale','type','ck-suggestion-marker-','editing','markerNameToElements','removeAttribute','showSuggestionHighlights','_handleLegacySuggestions','getCellLocation','nodeAfter','setTableColumnHeader','markerName','accept','commandName','data','commandParams','headingRows','plugins','removeClass','start','_enableDefaultAttributesIntegration'];(function(_0x5797d3,_0x1e7e21){const _0x1014b2=function(_0x2500a2){while(--_0x2500a2){_0x5797d3['push'](_0x5797d3['shift']());}};_0x1014b2(++_0x1e7e21);}(_0x1e7e,0x1d4));const _0x1014=function(_0x5797d3,_0x1e7e21){_0x5797d3=_0x5797d3-0x0;let _0x1014b2=_0x1e7e[_0x5797d3];return _0x1014b2;};import{Plugin as _0x28d52f}from'ckeditor5/src/core';import _0x431aaa from'./table';import{getTranslation as _0x380f92}from'../utils/common-translations';export default class St extends _0x28d52f{static get[_0x1014('0x2d')](){return[_0x431aaa];}[_0x1014('0x21')](){const _0xb46fa8=this[_0x1014('0x2a')];if(!_0xb46fa8[_0x1014('0x10')][_0x1014('0x30')](_0x1014('0x16')))return;const _0x1f349a=_0xb46fa8[_0x1014('0x3c')],_0x5d5f1d=_0xb46fa8['plugins'][_0x1014('0x2c')](_0x1014('0x2b'));_0x5d5f1d[_0x1014('0x13')](_0x1014('0x1f'),[],['headingRows']),_0x5d5f1d[_0x1014('0x13')](_0x1014('0x9'),[],['headingColumns']),_0x5d5f1d[_0x1014('0x29')]['registerAttributeLabel'](_0x1014('0xf'),_0x380f92(_0x1f349a,'FORMAT_HEADER_ROW')),_0x5d5f1d[_0x1014('0x29')][_0x1014('0x32')](_0x1014('0x35'),_0x380f92(_0x1f349a,_0x1014('0x27'))),this['_handleLegacySuggestions']();}[_0x1014('0x6')](){const _0x4b4946=this[_0x1014('0x2a')][_0x1014('0x10')][_0x1014('0x2c')]('TrackChangesEditing'),_0x5d0193=this[_0x1014('0x2a')]['plugins'][_0x1014('0x2c')]('TableUtils'),_0x3770b6=this['editor'][_0x1014('0x10')][_0x1014('0x2c')](_0x431aaa)['_acceptFormatSuggestionCallbackFactory']();function _0x3af317({showActiveMarker:_0x4086ba=!0x0,setDataAttribute:_0x24ef0d=!0x0}={}){return(_0xa8c169,_0x56fa21,_0x218044)=>{const {type:_0x3921dd,id:_0x902b92}=_0x4b4946[_0x1014('0x1a')](_0x56fa21[_0x1014('0xa')]),_0x47b2dc=_0x4b4946[_0x1014('0x19')](_0x902b92),_0x21554e=_0x47b2dc['data'];if(_0x1014('0x15')!=_0x47b2dc[_0x1014('0x0')]||!_0x21554e||_0x1014('0x9')!=_0x21554e[_0x1014('0xc')])return;if(_0x56fa21[_0x1014('0x34')])return void _0xa8c169['stop']();if(!_0x218044['consumable']['consume'](_0x56fa21[_0x1014('0x23')],_0xa8c169['name']))return;const _0x41662b=_0x56fa21[_0x1014('0x23')][_0x1014('0x12')][_0x1014('0x8')],_0x524261=_0x56fa21[_0x1014('0x23')][_0x1014('0x33')]['nodeBefore'],_0x1741f1=_0x41662b['parent']['parent'],{column:_0x1f2793}=_0x5d0193[_0x1014('0x7')](_0x41662b),{column:_0x58ce86}=_0x5d0193[_0x1014('0x7')](_0x524261);for(let _0x513b76=_0x1f2793;_0x513b76<=_0x58ce86;_0x513b76++){const _0x89fe9b=_0x5d0193[_0x1014('0x22')](_0x1741f1,{'column':_0x513b76,'includeAllSlots':!0x1});for(const _0x276f73 of _0x89fe9b){const _0x39e800=_0x276f73[_0x1014('0x25')],_0x13efb4=_0x218044[_0x1014('0x3b')][_0x1014('0x38')](_0x39e800);_0x218044[_0x1014('0x1e')][_0x1014('0x1c')](_0x1014('0x1')+_0x3921dd,_0x13efb4),_0x24ef0d&&_0x218044[_0x1014('0x1e')][_0x1014('0x28')](_0x1014('0x14'),_0x902b92,_0x13efb4),_0x218044[_0x1014('0x3b')][_0x1014('0x24')](_0x13efb4,_0x56fa21[_0x1014('0xa')]),_0x4086ba&&(_0x4b4946['activeMarkers']['includes'](_0x56fa21[_0x1014('0xa')])?_0x218044[_0x1014('0x1e')][_0x1014('0x1c')](_0x1014('0x37'),_0x13efb4):_0x218044[_0x1014('0x1e')][_0x1014('0x11')](_0x1014('0x37'),_0x13efb4));}}};}_0x4b4946[_0x1014('0x20')][_0x1014('0x18')](_0x1014('0x15'),_0x1014('0x1f'),_0x1014('0xb'),_0x3770b6),_0x4b4946[_0x1014('0x20')][_0x1014('0x18')]('formatBlock',_0x1014('0x9'),'accept',_0x3770b6),this[_0x1014('0x2a')]['editing']['downcastDispatcher']['on'](_0x1014('0x39'),_0x3af317(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on'](_0x1014('0x39'),(_0x58f32f,_0x2278e3,_0x2c5c32)=>{_0x2c5c32['options'][_0x1014('0x5')]&&_0x3af317({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x58f32f,_0x2278e3,_0x2c5c32);},{'priority':'highest'}),this[_0x1014('0x2a')][_0x1014('0x2')][_0x1014('0x1d')]['on']('removeMarker:suggestion',(_0x56238f,_0x11d8ca,_0x4d7a89)=>{const {type:_0x2b62fe,id:_0x239684}=_0x4b4946[_0x1014('0x1a')](_0x11d8ca[_0x1014('0xa')]),_0x2b49f6=_0x4b4946[_0x1014('0x19')](_0x239684),_0x3b1a73=_0x2b49f6[_0x1014('0xd')];if(_0x1014('0x15')!=_0x2b49f6[_0x1014('0x0')]||!_0x3b1a73||_0x1014('0x9')!=_0x3b1a73[_0x1014('0xc')])return;const _0xe87fe7=_0x4d7a89[_0x1014('0x3b')][_0x1014('0x3')](_0x11d8ca[_0x1014('0xa')]);if(_0xe87fe7)for(const _0x59b48c of _0xe87fe7)_0x4d7a89[_0x1014('0x1e')][_0x1014('0x11')](_0x1014('0x1')+_0x2b62fe,_0x59b48c),_0x4d7a89[_0x1014('0x1e')]['removeClass'](_0x1014('0x37'),_0x59b48c),_0x4d7a89[_0x1014('0x1e')][_0x1014('0x4')](_0x1014('0x14'),_0x59b48c),_0x4d7a89[_0x1014('0x3b')][_0x1014('0x3a')](_0x59b48c,_0x11d8ca[_0x1014('0xa')]);},{'priority':_0x1014('0x2f')}),this[_0x1014('0x26')]();}[_0x1014('0x26')](){const _0x22cdd6=this[_0x1014('0x2a')],_0x1c3586=_0x22cdd6[_0x1014('0x3c')];function _0x30fbca(_0x184720){return{'type':_0x1014('0x36'),'content':_0x380f92(_0x1c3586,_0x1014('0x31'),_0x184720)};}_0x22cdd6[_0x1014('0x10')][_0x1014('0x2c')](_0x1014('0x2b'))['_descriptionFactory']['registerDescriptionCallback'](_0x1e6cec=>{if(_0x1014('0x15')!=_0x1e6cec[_0x1014('0x0')])return;const {data:_0x5387bd}=_0x1e6cec;if(_0x5387bd){if(_0x1014('0x1f')==_0x5387bd[_0x1014('0xc')]){const _0x73e2e6=_0x5387bd[_0x1014('0xe')][0x0]['forceValue'];return _0x30fbca(_0x380f92(_0x1c3586,_0x73e2e6?_0x1014('0x1b'):_0x1014('0x2e')));}if(_0x1014('0x9')==_0x5387bd[_0x1014('0xc')]){const _0x985bc3=_0x5387bd[_0x1014('0xe')][0x0][_0x1014('0x17')];return _0x30fbca(_0x380f92(_0x1c3586,_0x985bc3?_0x1014('0x27'):'FORMAT_REGULAR_COLUMN'));}}});}}
|
|
@@ -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 _0x27f4=['trackChanges','editor','*Split\x20cell:*\x20horizontally','_descriptionFactory','return','has','insertion','subType','filter','createRangeOn','_acceptFormatSuggestionCallbackFactory','TableEditing','mergeTableCellLeft','low','document','from','element','format','mergeTableCellRight','mergeTableCellUp','markBlockFormat','deletion','requires','_areSelectedCellsMergable','createTableWalker','formatInline','TableUtils','commandName','change','table','execute','splitTableCellHorizontally','horizontally','author','rootName','get','getFirstPosition','getRanges','commands','_areMergableCells','getAncestors','mergeTableCells','accept','splitTableCellVertically','getCellLocation','find','markMultiRangeBlockFormat','value','set:isEnabled','detach','formatBlock','registerDescriptionCallback','_suggestionFactory','selection','*Merge\x20cells*','map','length','root','plugins','mergeTableCellDown','getSelectionAffectedTableCells','model','add','_tablePostFixingSubtypes','type','containsRange','findAncestor','enableCommand','registerCustomCallback','cell','$graveyard','tableCell'];(function(_0x33c2e2,_0x27f4e3){const _0x36aa39=function(_0x3887c3){while(--_0x3887c3){_0x33c2e2['push'](_0x33c2e2['shift']());}};_0x36aa39(++_0x27f4e3);}(_0x27f4,0x13d));const _0x36aa=function(_0x33c2e2,_0x27f4e3){_0x33c2e2=_0x33c2e2-0x0;let _0x36aa39=_0x27f4[_0x33c2e2];return _0x36aa39;};import{Plugin as _0x26c818}from'ckeditor5/src/core';import _0x89496f from'./table';import{LiveRange as _0xb99239}from'ckeditor5/src/engine';import{getTranslation as _0x2e38e0}from'../utils/common-translations';export default class yt extends _0x26c818{static get[_0x36aa('0x41')](){return[_0x89496f];}['afterInit'](){const _0x473158=this[_0x36aa('0x2c')],_0x4493c5=_0x473158[_0x36aa('0x20')][_0x36aa('0x39')][_0x36aa('0x18')],_0x3ca5af=_0x473158['locale'];if(!_0x473158[_0x36aa('0x1d')][_0x36aa('0x30')](_0x36aa('0x36')))return;const _0x135cb5=_0x473158[_0x36aa('0x1d')][_0x36aa('0x6')]('TrackChangesEditing'),_0xb7f449=_0x473158[_0x36aa('0x1d')][_0x36aa('0x6')]('TableUtils'),_0x224777=_0x473158['plugins'][_0x36aa('0x6')](_0x89496f);_0x224777[_0x36aa('0x22')]['push'](_0x36aa('0xc')),_0x135cb5[_0x36aa('0x26')](_0x36aa('0xc'),()=>{const _0x528392=_0xb7f449[_0x36aa('0x1f')](_0x473158[_0x36aa('0x20')][_0x36aa('0x39')][_0x36aa('0x18')]);_0x473158[_0x36aa('0x20')][_0x36aa('0x47')](()=>{_0x135cb5[_0x36aa('0x11')](_0x528392,{'commandName':_0x36aa('0xc'),'commandParams':[]},[],_0x36aa('0xc'));});}),_0x473158[_0x36aa('0x9')][_0x36aa('0x6')]('mergeTableCells')['on'](_0x36aa('0x1'),(_0x2f4fdc,_0xfb2da3)=>{_0x473158['commands']['get'](_0x36aa('0x2b'))[_0x36aa('0x12')]&&(_0xfb2da3['length']>0x0&&_0xfb2da3[_0xfb2da3['length']-0x1]&&_0xfb2da3[_0xfb2da3[_0x36aa('0x1b')]-0x1]['forceDefaultExecution']||_0x135cb5['_isForcedDefaultExecutionBlock']||this[_0x36aa('0x42')]()||_0x2f4fdc['stop']());},{'priority':'highest'});for(const _0x1600e2 of[_0x36aa('0x3e'),_0x36aa('0x3d'),_0x36aa('0x1e'),_0x36aa('0x37')]){const _0x535e65=_0x473158[_0x36aa('0x9')][_0x36aa('0x6')](_0x1600e2);_0x135cb5['enableCommand'](_0x1600e2,()=>{const _0x32674c=_0x473158[_0x36aa('0x20')][_0x36aa('0x39')][_0x36aa('0x18')]['getFirstPosition']()[_0x36aa('0xb')]()[_0x36aa('0x10')](_0x2427ef=>_0x2427ef['is']('element',_0x36aa('0x2a'))),_0x2abea8=_0x535e65[_0x36aa('0x12')];_0x473158[_0x36aa('0x20')][_0x36aa('0x47')](()=>{_0x135cb5['markMultiRangeBlockFormat']([_0x32674c,_0x2abea8],{'commandName':'mergeTableCells','commandParams':[]},[],_0x36aa('0xc'));});});}for(const _0x21af18 of[_0x36aa('0xe'),_0x36aa('0x2')]){const _0x5ca3e3=_0x473158[_0x36aa('0x9')][_0x36aa('0x6')](_0x21af18);_0x135cb5['enableCommand'](_0x21af18,()=>{const _0x47bf7f=_0xb7f449[_0x36aa('0x1f')](_0x473158[_0x36aa('0x20')][_0x36aa('0x39')][_0x36aa('0x18')])[0x0],_0x3fcd56=_0x47bf7f[_0x36aa('0x25')](_0x36aa('0x0')),{column:_0x104be9,row:_0x374db1}=_0xb7f449[_0x36aa('0xf')](_0x47bf7f);let _0x3f3537=[];if(_0x36aa('0x3')==_0x5ca3e3['direction']){const _0x4e4cc8=_0xb7f449[_0x36aa('0x43')](_0x3fcd56,{'startRow':_0x374db1,'endRow':_0x374db1,'includeAllSlots':!0x0});_0x3f3537=Array[_0x36aa('0x3a')](_0x4e4cc8)[_0x36aa('0x1a')](_0x3bc85f=>_0x3bc85f[_0x36aa('0x28')]);}else{const _0x441f9c=_0xb7f449[_0x36aa('0x43')](_0x3fcd56,{'column':_0x104be9,'includeAllSlots':!0x0});_0x3f3537=Array[_0x36aa('0x3a')](_0x441f9c)['map'](_0x18f429=>_0x18f429[_0x36aa('0x28')]);}_0x473158['model'][_0x36aa('0x47')](_0x395f10=>{_0x135cb5[_0x36aa('0x3f')](_0x395f10['createRangeOn'](_0x47bf7f),{'commandName':_0x21af18,'commandParams':[]},_0x3f3537,_0x21af18);});});}_0x135cb5['_descriptionFactory']['registerDescriptionCallback'](_0x39eb90=>{if(_0x36aa('0x15')!=_0x39eb90['type']&&_0x36aa('0x44')!=_0x39eb90[_0x36aa('0x23')])return;const {data:_0x40850f}=_0x39eb90;return _0x40850f&&'mergeTableCells'==_0x40850f[_0x36aa('0x46')]?{'type':'format','content':_0x2e38e0(_0x3ca5af,_0x36aa('0x19'))}:void 0x0;}),_0x135cb5[_0x36aa('0x2e')][_0x36aa('0x16')](_0x62740d=>{if(_0x36aa('0x15')!=_0x62740d[_0x36aa('0x23')]&&'formatInline'!=_0x62740d['type'])return;const {data:_0x51bd9d}=_0x62740d;return _0x51bd9d?_0x36aa('0xe')==_0x51bd9d[_0x36aa('0x46')]?{'type':_0x36aa('0x3c'),'content':_0x2e38e0(_0x3ca5af,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x51bd9d[_0x36aa('0x46')]?{'type':_0x36aa('0x3c'),'content':_0x2e38e0(_0x3ca5af,_0x36aa('0x2d'))}:void 0x0:void 0x0;});const _0x306341=_0x224777[_0x36aa('0x35')]();for(const _0x443881 of[_0x36aa('0x3e'),_0x36aa('0x3d'),_0x36aa('0x1e'),_0x36aa('0x37')])_0x135cb5[_0x36aa('0x17')][_0x36aa('0x27')]('formatBlock',_0x443881,'accept',_0x306341);for(const _0x177784 of['splitTableCellVertically',_0x36aa('0x2')])_0x135cb5[_0x36aa('0x17')][_0x36aa('0x27')](_0x36aa('0x15'),_0x177784,'accept',_0x306341);_0x135cb5[_0x36aa('0x17')]['registerCustomCallback'](_0x36aa('0x15'),_0x36aa('0xc'),_0x36aa('0xd'),_0x27359c=>{_0x473158['model']['change'](_0x52edfe=>{const _0x36d401=Array[_0x36aa('0x3a')](_0x4493c5[_0x36aa('0x8')]())[_0x36aa('0x1a')](_0x4ac5b9=>_0xb99239['fromRange'](_0x4ac5b9));_0x52edfe['setSelection'](_0x27359c),_0x473158[_0x36aa('0x9')][_0x36aa('0x6')](_0x36aa('0xc'))['refresh'](),_0x473158['execute'](_0x36aa('0xc'),{'forceDefaultExecution':!0x0});const _0x286db1=_0x36d401[_0x36aa('0x33')](_0x30b072=>_0x36aa('0x29')!=_0x30b072[_0x36aa('0x1c')][_0x36aa('0x5')]);_0x286db1[_0x36aa('0x1b')]>0x0&&_0x52edfe['setSelection'](_0x286db1);for(const _0x1d95c1 of _0x36d401)_0x1d95c1[_0x36aa('0x14')]();});});for(const _0x1329dd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft',_0x36aa('0x3d')]){const _0x3dbccd=_0x473158[_0x36aa('0x9')][_0x36aa('0x6')](_0x1329dd);_0x3dbccd['on'](_0x36aa('0x13'),(_0x507e5d,_0x5e7cc2,_0x16cf36)=>{if(_0x16cf36){const _0x2895b2=_0x473158[_0x36aa('0x20')][_0x36aa('0x39')][_0x36aa('0x18')][_0x36aa('0x7')]()[_0x36aa('0xb')]()[_0x36aa('0x10')](_0x827425=>_0x827425['is'](_0x36aa('0x3b'),'tableCell'));this[_0x36aa('0xa')](_0x3dbccd[_0x36aa('0x12')],_0x2895b2)||(_0x507e5d[_0x36aa('0x2f')]=!0x1,_0x507e5d['stop']());}},{'priority':_0x36aa('0x38')});}}[_0x36aa('0x42')](){const _0x16f17c=this[_0x36aa('0x2c')][_0x36aa('0x9')][_0x36aa('0x6')](_0x36aa('0xc')),_0x44b94b=this[_0x36aa('0x2c')][_0x36aa('0x1d')][_0x36aa('0x6')](_0x36aa('0x45'));if(!_0x16f17c['isEnabled'])return!0x1;const _0x48e3b7=_0x44b94b['getSelectionAffectedTableCells'](this[_0x36aa('0x2c')][_0x36aa('0x20')][_0x36aa('0x39')]['selection']);for(const _0x408115 of _0x48e3b7)for(const _0x1e3158 of _0x48e3b7)if(_0x408115!=_0x1e3158&&!this['_areMergableCells'](_0x408115,_0x1e3158))return!0x1;return!0x0;}[_0x36aa('0xa')](_0x1267a6,_0x472672){const _0x4ddc46=this[_0x36aa('0x2c')][_0x36aa('0x1d')][_0x36aa('0x6')]('TrackChangesEditing'),_0x49b77b=this[_0x36aa('0x2c')][_0x36aa('0x20')][_0x36aa('0x34')](_0x1267a6),_0x3b7d31=this[_0x36aa('0x2c')][_0x36aa('0x20')][_0x36aa('0x34')](_0x472672),_0x484a0e=new Set(),_0x759494=new Set();for(const _0x29336c of _0x4ddc46['getSuggestions']())if((_0x36aa('0x31')==_0x29336c[_0x36aa('0x23')]||_0x36aa('0x40')==_0x29336c[_0x36aa('0x23')]||'mergeTableCells'==_0x29336c[_0x36aa('0x32')])&&_0x29336c['isInContent'])for(const _0x2637a1 of _0x29336c[_0x36aa('0x8')]())_0x2637a1[_0x36aa('0x24')](_0x49b77b,!0x0)&&_0x484a0e[_0x36aa('0x21')](_0x29336c[_0x36aa('0x23')]+':'+_0x29336c[_0x36aa('0x4')]['id']),_0x2637a1[_0x36aa('0x24')](_0x3b7d31,!0x0)&&_0x759494['add'](_0x29336c['type']+':'+_0x29336c[_0x36aa('0x4')]['id']);if(_0x484a0e['size']!=_0x759494['size'])return!0x1;for(const _0x40b7d0 of _0x484a0e)if(!_0x759494[_0x36aa('0x30')](_0x40b7d0))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 _0x1f6b=['_descriptionFactory','ELEMENT_TABLE_OF_CONTENTS','registerElementLabel','locale','TrackChangesEditing','tableOfContents','commands','enableCommand','get','afterInit','editor','plugins','insertTableOfContents'];(function(_0x1465e1,_0x1f6b3d){const _0x39129f=function(_0x3b1fbd){while(--_0x3b1fbd){_0x1465e1['push'](_0x1465e1['shift']());}};_0x39129f(++_0x1f6b3d);}(_0x1f6b,0xb9));const _0x3912=function(_0x1465e1,_0x1f6b3d){_0x1465e1=_0x1465e1-0x0;let _0x39129f=_0x1f6b[_0x1465e1];return _0x39129f;};import{Plugin as _0x48c8ca}from'ckeditor5/src/core';import{getTranslation as _0x26a220}from'../utils/common-translations';export default class Ct extends _0x48c8ca{[_0x3912('0x6')](){const _0x15c912=this[_0x3912('0x7')];if(!_0x15c912[_0x3912('0x3')][_0x3912('0x5')](_0x3912('0x9')))return;_0x15c912[_0x3912('0x8')][_0x3912('0x5')](_0x3912('0x1'))[_0x3912('0x4')](_0x3912('0x9'));const _0x1ad5e7=_0x15c912['plugins']['get']('TrackChangesEditing'),_0x32b3ed=_0x15c912[_0x3912('0x0')];_0x1ad5e7[_0x3912('0xa')][_0x3912('0xc')](_0x3912('0x2'),_0xf42348=>_0x26a220(_0x32b3ed,_0x3912('0xb'),_0xf42348));}}
|
|
@@ -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 _0x1ac7=['enableCommand','batch','*Format:*\x20change\x20table\x20cell\x20properties','tableWidth','get','has','nodeAfter','_suggestionFactory','registerDescriptionCallback','TrackChangesEditing','tableCellProperties','model','table','selection','tableHeight','discard','formatBlock','getFirstPosition','getSuggestionCallback','editor','handleDiscardAction','tableCellPadding','_descriptionFactory','_handlePropertyChange','tableBorderStyle','getAttribute','format','registerCustomCallback','TablePropertiesEditing','getContainedElement','tableProperties','tableCellWidth','getSuggestions','removeAttribute','tableBackgroundColor','tableCellHeight','enqueueChange','accept','handleSuggestionDescription','afterInit','data','document','join','plugins','tableCellHorizontalAlignment','locale','TableUtils','TableCellPropertiesEditing','markBlockFormat','tableBorderColor','subType','tableCellBorderColor'];(function(_0x432f1a,_0x1ac7a1){const _0x523dc4=function(_0x5a1688){while(--_0x5a1688){_0x432f1a['push'](_0x432f1a['shift']());}};_0x523dc4(++_0x1ac7a1);}(_0x1ac7,0x17e));const _0x523d=function(_0x432f1a,_0x1ac7a1){_0x432f1a=_0x432f1a-0x0;let _0x523dc4=_0x1ac7[_0x432f1a];return _0x523dc4;};import{Plugin as _0x890481}from'ckeditor5/src/core';import{getTranslation as _0x16f514}from'../utils/common-translations';export default class Mt extends _0x890481{constructor(_0x476054){super(_0x476054),this[_0x523d('0xc')]=[_0x523d('0x1f'),_0x523d('0x6'),'tableBorderWidth','tableAlignment',_0x523d('0x25'),_0x523d('0x30'),_0x523d('0x10')],this[_0x523d('0x2c')]=[_0x523d('0x21'),'tableCellBorderStyle','tableCellBorderWidth',_0x523d('0x3'),_0x523d('0xd'),_0x523d('0x11'),'tableCellBackgroundColor',_0x523d('0x1a'),'tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}[_0x523d('0x15')](){const _0x5297b9=this[_0x523d('0x1')][_0x523d('0x19')]['get'](_0x523d('0x2b'));if(this[_0x523d('0x1')][_0x523d('0x19')]['has'](_0x523d('0xa'))){for(const _0x32be83 of this[_0x523d('0xc')])_0x5297b9['enableCommand'](_0x32be83,(_0x4c13db,_0x241ad2)=>{const _0x32637e=this[_0x523d('0x1')][_0x523d('0x2d')][_0x523d('0x17')][_0x523d('0x2f')][_0x523d('0x33')]()['findAncestor'](_0x523d('0x2e'));this['_handlePropertyChange'](_0x32be83,[_0x32637e],this[_0x523d('0xc')],_0x523d('0xc'),_0x4c13db,_0x241ad2);});_0x5297b9['_suggestionFactory'][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0xc'),'accept',_0x5297b9[_0x523d('0x29')]['getSuggestionCallback'](_0x523d('0x32'),null,'discard')),_0x5297b9['_suggestionFactory'][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0xc'),_0x523d('0x31'),(_0x1f1e1e,_0x4047cb)=>this[_0x523d('0x2')](this[_0x523d('0xc')],_0x1f1e1e,_0x4047cb)),_0x5297b9[_0x523d('0x29')][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0xc'),'join',()=>!0x1);}if(this[_0x523d('0x1')][_0x523d('0x19')][_0x523d('0x27')](_0x523d('0x1d'))){for(const _0x1d0d22 of this[_0x523d('0x2c')])_0x5297b9[_0x523d('0x22')](_0x1d0d22,(_0x1641c3,_0x3d2060)=>{const _0x35d13f=this[_0x523d('0x1')]['plugins'][_0x523d('0x26')](_0x523d('0x1c'))['getSelectionAffectedTableCells'](this[_0x523d('0x1')]['model'][_0x523d('0x17')]['selection']);this['_handlePropertyChange'](_0x1d0d22,_0x35d13f,this['tableCellProperties'],'tableCellProperties',_0x1641c3,_0x3d2060);});_0x5297b9[_0x523d('0x29')]['registerCustomCallback'](_0x523d('0x32'),_0x523d('0x2c'),_0x523d('0x13'),_0x5297b9[_0x523d('0x29')][_0x523d('0x0')](_0x523d('0x32'),null,'discard')),_0x5297b9[_0x523d('0x29')][_0x523d('0x9')](_0x523d('0x32'),'tableCellProperties',_0x523d('0x31'),(_0x1227d6,_0x14ca83)=>this[_0x523d('0x2')](this[_0x523d('0x2c')],_0x1227d6,_0x14ca83)),_0x5297b9['_suggestionFactory'][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0x2c'),_0x523d('0x18'),()=>!0x1);}_0x5297b9[_0x523d('0x4')][_0x523d('0x2a')](_0x379646=>this[_0x523d('0x14')](_0x379646));}[_0x523d('0x5')](_0xa574e0,_0x2d5b46,_0x52fd71,_0x22749e,_0x3597cc,_0x5aaa70){const _0x4450e6=this['editor']['plugins'][_0x523d('0x26')](_0x523d('0x2b'));this[_0x523d('0x1')]['model'][_0x523d('0x12')](_0x5aaa70[_0x523d('0x23')],()=>{for(const _0x5e2d9d of _0x2d5b46){if(this['_getSuggestion'](_0x5e2d9d,_0x22749e))_0x3597cc(_0x5aaa70);else{const _0xbfcbee={};for(const _0x3e8fa8 of _0x52fd71){const _0x3e4cec=_0x5e2d9d[_0x523d('0x7')](_0x3e8fa8);void 0x0!==_0x3e4cec&&(_0xbfcbee[_0x3e8fa8]=_0x3e4cec);}_0x3597cc(_0x5aaa70),_0x4450e6[_0x523d('0x1e')](_0x5e2d9d,{'commandParams':[_0xbfcbee]},[],_0x22749e);}}});}[_0x523d('0x2')](_0x5b7e39,_0x5d1b58,_0x15c644){const _0x5ae496=_0x5d1b58[0x0]['start'][_0x523d('0x28')],_0x5965bd=_0x15c644['commandParams'][0x0];this['editor'][_0x523d('0x2d')]['change'](_0x203910=>{for(const _0xbabbe3 of _0x5b7e39)void 0x0!==_0x5965bd[_0xbabbe3]?_0x203910['setAttribute'](_0xbabbe3,_0x5965bd[_0xbabbe3],_0x5ae496):_0x203910[_0x523d('0xf')](_0xbabbe3,_0x5ae496);});}['handleSuggestionDescription'](_0x58734a){if(_0x58734a[_0x523d('0x16')])switch(_0x58734a[_0x523d('0x20')]){case _0x523d('0xc'):return{'type':_0x523d('0x8'),'content':_0x16f514(this[_0x523d('0x1')][_0x523d('0x1b')],'*Format:*\x20change\x20table\x20properties')};case _0x523d('0x2c'):return{'type':_0x523d('0x8'),'content':_0x16f514(this['editor'][_0x523d('0x1b')],_0x523d('0x24'))};}}['_getSuggestion'](_0x489a30,_0x206da1){const _0x522fea=this['editor'][_0x523d('0x19')][_0x523d('0x26')](_0x523d('0x2b'));for(const _0x43f9db of _0x522fea[_0x523d('0xe')]({'skipNotAttached':!0x0})){const _0x30fd14=_0x43f9db[_0x523d('0xb')]();if(_0x43f9db[_0x523d('0x20')]===_0x206da1&&_0x30fd14===_0x489a30)return _0x43f9db;}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 _0x2828=['afterInit','TrackChangesEditing','has','Template','enableCommand','plugins','get'];(function(_0x588cfb,_0x282820){const _0x4b76e2=function(_0x503933){while(--_0x503933){_0x588cfb['push'](_0x588cfb['shift']());}};_0x4b76e2(++_0x282820);}(_0x2828,0x1d8));const _0x4b76=function(_0x588cfb,_0x282820){_0x588cfb=_0x588cfb-0x0;let _0x4b76e2=_0x2828[_0x588cfb];return _0x4b76e2;};import{Plugin as _0x421c51}from'ckeditor5/src/core';export default class vt extends _0x421c51{[_0x4b76('0x4')](){const _0x2d4cfe=this['editor'];_0x2d4cfe[_0x4b76('0x2')][_0x4b76('0x6')](_0x4b76('0x0'))&&_0x2d4cfe[_0x4b76('0x2')][_0x4b76('0x3')](_0x4b76('0x5'))[_0x4b76('0x1')]('insertTemplate');}}
|
|
@@ -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 _0x5e95=['schema','_splitMarkerName','has','isEqual','document','editor','isCollapsed','end','afterInit','suggestion','start','model','ELEMENT_TITLE','removeMarker','getChangedMarkers','createRange','forward','locale','title-content','from','updateMarker','element'];(function(_0x331b3b,_0x5e950c){const _0x5a9ba6=function(_0x45c03f){while(--_0x45c03f){_0x331b3b['push'](_0x331b3b['shift']());}};_0x5a9ba6(++_0x5e950c);}(_0x5e95,0x13a));const _0x5a9b=function(_0x331b3b,_0x5e950c){_0x331b3b=_0x331b3b-0x0;let _0x5a9ba6=_0x5e95[_0x331b3b];return _0x5a9ba6;};import{Plugin as _0x3f245a}from'ckeditor5/src/core';import{getTranslation as _0x61b65d}from'../utils/common-translations';export default class _t extends _0x3f245a{[_0x5a9b('0x2')](){const _0x14a488=this[_0x5a9b('0x15')];if(!_0x14a488['plugins'][_0x5a9b('0x12')]('Title'))return;const _0x43b8ac=_0x14a488['plugins']['get']('TrackChangesEditing');_0x43b8ac['_descriptionFactory']['registerElementLabel'](_0x5a9b('0xc'),()=>_0x61b65d(_0x14a488[_0x5a9b('0xb')],_0x5a9b('0x6'))),_0x14a488[_0x5a9b('0x5')][_0x5a9b('0x14')]['registerPostFixer'](_0x2cd45a=>{let _0x3b9b55=!0x1;const _0x57180a=Array[_0x5a9b('0xd')](_0x14a488[_0x5a9b('0x5')]['document']['differ'][_0x5a9b('0x8')]());for(const {name:_0x1bec36,data:_0x3ae090}of _0x57180a){const {group:_0xdc6af9}=_0x43b8ac[_0x5a9b('0x11')](_0x1bec36);if(_0x5a9b('0x3')!==_0xdc6af9||!_0x3ae090['newRange'])continue;const _0x1c55c6=_0x3ae090['newRange'],_0x74aab7=_0x1c55c6['end']['nodeBefore'];if(!_0x74aab7||!_0x74aab7['is'](_0x5a9b('0xf'),_0x5a9b('0xc')))continue;if(!_0x1c55c6[_0x5a9b('0x4')]['isTouching'](_0x1c55c6[_0x5a9b('0x1')]))continue;const _0x168464=_0x14a488[_0x5a9b('0x5')][_0x5a9b('0x10')]['getNearestSelectionRange'](_0x1c55c6[_0x5a9b('0x1')],_0x5a9b('0xa'));if(_0x168464&&_0x168464[_0x5a9b('0x0')]){const _0xf59709=_0x2cd45a[_0x5a9b('0x9')](_0x1c55c6[_0x5a9b('0x4')],_0x168464[_0x5a9b('0x4')]);_0xf59709[_0x5a9b('0x13')](_0x1c55c6)||(_0x2cd45a[_0x5a9b('0xe')](_0x1bec36,{'range':_0xf59709}),_0x3b9b55=!0x0);}_0x3b9b55||(_0x2cd45a[_0x5a9b('0x7')](_0x1bec36),_0x3b9b55=!0x0);}return _0x3b9b55;});}}
|
|
@@ -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 _0x1a11=['undo','get','enableCommand','has','TrackChangesEditing','editor','afterInit','plugins'];(function(_0x3c54cb,_0x1a11ad){const _0x31b686=function(_0x1fd816){while(--_0x1fd816){_0x3c54cb['push'](_0x3c54cb['shift']());}};_0x31b686(++_0x1a11ad);}(_0x1a11,0x161));const _0x31b6=function(_0x3c54cb,_0x1a11ad){_0x3c54cb=_0x3c54cb-0x0;let _0x31b686=_0x1a11[_0x3c54cb];return _0x31b686;};import{Plugin as _0x5f1e27}from'ckeditor5/src/core';export default class Dt extends _0x5f1e27{[_0x31b6('0x5')](){const _0xe299cf=this[_0x31b6('0x4')],_0x4bd904=_0xe299cf[_0x31b6('0x6')][_0x31b6('0x0')](_0x31b6('0x3'));_0xe299cf[_0x31b6('0x6')][_0x31b6('0x2')]('UndoEditing')&&(_0x4bd904['enableCommand'](_0x31b6('0x7')),_0x4bd904[_0x31b6('0x1')]('redo'));}}
|
|
@@ -1,21 +1,21 @@
|
|
|
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
|
-
import type { Editor } from 'ckeditor5/src/core';
|
|
6
|
-
import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine';
|
|
7
|
-
import type { GetCallback } from 'ckeditor5/src/utils';
|
|
8
|
-
/**
|
|
9
|
-
* Searches given `range` and returns all sub-ranges containing items with given `attributeKey`.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getRangesWithAttribute(attributeKey: string, range: Range, model: Model): Array<Range>;
|
|
12
|
-
/**
|
|
13
|
-
* For given `element`, if it is a list item, returns all list items that would be affected by renaming `element` to a different element.
|
|
14
|
-
*/
|
|
15
|
-
export declare function getElementsAffectedByListItemRename(element: Element): Array<Element>;
|
|
16
|
-
/**
|
|
17
|
-
* Returns the conversion function for down-casting split/merge markers.
|
|
18
|
-
*/
|
|
19
|
-
export declare function downcastSplitMergeMarker(editor: Editor, type: 'split' | 'merge', { showActiveMarker }?: {
|
|
20
|
-
showActiveMarker?: boolean | undefined;
|
|
21
|
-
}): GetCallback<DowncastAddMarkerEvent>;
|
|
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
|
+
import type { Editor } from 'ckeditor5/src/core';
|
|
6
|
+
import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine';
|
|
7
|
+
import type { GetCallback } from 'ckeditor5/src/utils';
|
|
8
|
+
/**
|
|
9
|
+
* Searches given `range` and returns all sub-ranges containing items with given `attributeKey`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getRangesWithAttribute(attributeKey: string, range: Range, model: Model): Array<Range>;
|
|
12
|
+
/**
|
|
13
|
+
* For given `element`, if it is a list item, returns all list items that would be affected by renaming `element` to a different element.
|
|
14
|
+
*/
|
|
15
|
+
export declare function getElementsAffectedByListItemRename(element: Element): Array<Element>;
|
|
16
|
+
/**
|
|
17
|
+
* Returns the conversion function for down-casting split/merge markers.
|
|
18
|
+
*/
|
|
19
|
+
export declare function downcastSplitMergeMarker(editor: Editor, type: 'split' | 'merge', { showActiveMarker }?: {
|
|
20
|
+
showActiveMarker?: boolean | undefined;
|
|
21
|
+
}): GetCallback<DowncastAddMarkerEvent>;
|