@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
|
@@ -1,24 +1,24 @@
|
|
|
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/commands/discardsuggestioncommand
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
11
|
-
/**
|
|
12
|
-
* A command that discards the suggestion chain.
|
|
13
|
-
*/
|
|
14
|
-
export default class DiscardSuggestionCommand extends Command {
|
|
15
|
-
constructor(editor: Editor, suggestions: Map<string, Suggestion>);
|
|
16
|
-
/**
|
|
17
|
-
* @inheritDoc
|
|
18
|
-
*/
|
|
19
|
-
refresh(): void;
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
execute(suggestionId: string): void;
|
|
24
|
-
}
|
|
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/commands/discardsuggestioncommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import type Suggestion from '../suggestion';
|
|
11
|
+
/**
|
|
12
|
+
* A command that discards the suggestion chain.
|
|
13
|
+
*/
|
|
14
|
+
export default class DiscardSuggestionCommand extends Command {
|
|
15
|
+
constructor(editor: Editor, suggestions: Map<string, Suggestion>);
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
refresh(): void;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
execute(suggestionId: string): void;
|
|
24
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x215c=['editor','getRanges','canEditAt','isEnabled','TrackChangesEditing','discardSuggestion','track-changes-discard-suggestion-not-found','model','get','plugins','_suggestions','refresh'];(function(_0xf97519,_0x215c4b){const _0x535910=function(_0x120b67){while(--_0x120b67){_0xf97519['push'](_0xf97519['shift']());}};_0x535910(++_0x215c4b);}(_0x215c,0xa5));const _0x5359=function(_0xf97519,_0x215c4b){_0xf97519=_0xf97519-0x0;let _0x535910=_0x215c[_0xf97519];return _0x535910;};import{Command as _0x43c34a}from'ckeditor5/src/core';import{CKEditorError as _0xcf51b1}from'ckeditor5/src/utils';export default class x extends _0x43c34a{constructor(_0x59d0e8,_0x2bb1dd){super(_0x59d0e8),this[_0x5359('0x1')]=_0x2bb1dd,this[_0x5359('0x2')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x5359('0x2')](){this[_0x5359('0x6')]=!0x0;}['execute'](_0xccf869){const _0x336dc5=this[_0x5359('0x1')][_0x5359('0xb')](_0xccf869);if(!_0x336dc5)throw new _0xcf51b1(_0x5359('0x9'),this);const _0x10fa9f=_0x336dc5[_0x5359('0x4')]();this[_0x5359('0x3')][_0x5359('0xa')][_0x5359('0x5')](_0x10fa9f)&&this[_0x5359('0x3')][_0x5359('0x0')][_0x5359('0xb')](_0x5359('0x7'))[_0x5359('0x8')](_0x336dc5);}}
|
|
@@ -1,24 +1,24 @@
|
|
|
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/commands/executeonallsuggestionscommand
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
11
|
-
/**
|
|
12
|
-
* A command that executes passed command (accept or discard suggestion command) at once for all suggestions in the document.
|
|
13
|
-
*/
|
|
14
|
-
export default class ExecuteOnAllSuggestionsCommand<T extends Command> extends Command {
|
|
15
|
-
constructor(editor: Editor, command: T, suggestions: Map<string, Suggestion>);
|
|
16
|
-
/**
|
|
17
|
-
* @inheritDoc
|
|
18
|
-
*/
|
|
19
|
-
refresh(): void;
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
execute(): void;
|
|
24
|
-
}
|
|
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/commands/executeonallsuggestionscommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import type Suggestion from '../suggestion';
|
|
11
|
+
/**
|
|
12
|
+
* A command that executes passed command (accept or discard suggestion command) at once for all suggestions in the document.
|
|
13
|
+
*/
|
|
14
|
+
export default class ExecuteOnAllSuggestionsCommand<T extends Command> extends Command {
|
|
15
|
+
constructor(editor: Editor, command: T, suggestions: Map<string, Suggestion>);
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
refresh(): void;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
execute(): void;
|
|
24
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ed5=['_suggestions','getRanges','model','canEditAt','execute','refresh','some','isInContent','values','_isEnabledBasedOnSelection','editor','_command','from','isEnabled'];(function(_0x3b5aa1,_0x3ed55e){const _0x393a8d=function(_0x55af41){while(--_0x55af41){_0x3b5aa1['push'](_0x3b5aa1['shift']());}};_0x393a8d(++_0x3ed55e);}(_0x3ed5,0x15d));const _0x393a=function(_0x3b5aa1,_0x3ed55e){_0x3b5aa1=_0x3b5aa1-0x0;let _0x393a8d=_0x3ed5[_0x3b5aa1];return _0x393a8d;};import{Command as _0x250d4e}from'ckeditor5/src/core';import{sortSuggestions as _0x513e10,executeCommandForSuggestions as _0x9ad544}from'../utils/utils';export default class E extends _0x250d4e{constructor(_0x30dac9,_0x660826,_0x46eebe){super(_0x30dac9),this[_0x393a('0xc')]=_0x660826,this[_0x393a('0x1')]=_0x46eebe,this[_0x393a('0x6')](),this[_0x393a('0xa')]=!0x1;}[_0x393a('0x6')](){const _0x551213=Array[_0x393a('0xd')](this[_0x393a('0x1')][_0x393a('0x9')]())[_0x393a('0x7')](_0x4d2665=>_0x4d2665[_0x393a('0x8')]);this['isEnabled']=this[_0x393a('0xc')][_0x393a('0x0')]&&_0x551213;}[_0x393a('0x5')](){const _0x133a86=_0x513e10(Array['from'](this[_0x393a('0x1')][_0x393a('0x9')]()));for(const _0xa7c119 of _0x133a86){const _0x1621d6=_0xa7c119[_0x393a('0x2')]();if(!this[_0x393a('0xb')][_0x393a('0x3')][_0x393a('0x4')](_0x1621d6))return;}_0x9ad544(this[_0x393a('0xb')]['model'],this[_0x393a('0xc')],_0x133a86);}}
|
|
@@ -1,24 +1,24 @@
|
|
|
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/commands/executeonselectedsuggestionscommand
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
11
|
-
/**
|
|
12
|
-
* A command that executes passed command (accept or discard suggestion command) at once for all suggestions selected in the document.
|
|
13
|
-
*/
|
|
14
|
-
export default class ExecuteOnSelectedSuggestionsCommand<T extends Command> extends Command {
|
|
15
|
-
constructor(editor: Editor, command: T, suggestions: Map<string, Suggestion>);
|
|
16
|
-
/**
|
|
17
|
-
* @inheritDoc
|
|
18
|
-
*/
|
|
19
|
-
refresh(): void;
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
execute(): void;
|
|
24
|
-
}
|
|
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/commands/executeonselectedsuggestionscommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import type Suggestion from '../suggestion';
|
|
11
|
+
/**
|
|
12
|
+
* A command that executes passed command (accept or discard suggestion command) at once for all suggestions selected in the document.
|
|
13
|
+
*/
|
|
14
|
+
export default class ExecuteOnSelectedSuggestionsCommand<T extends Command> extends Command {
|
|
15
|
+
constructor(editor: Editor, command: T, suggestions: Map<string, Suggestion>);
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
refresh(): void;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
execute(): void;
|
|
24
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x175d=['getRanges','_suggestions','refresh','size','from','isEnabled','_isEnabledBasedOnSelection','canEditAt','model','values','editor','selection','_selectedSuggestions','_command'];(function(_0x5cb683,_0x175d5f){const _0x58670d=function(_0x2160b7){while(--_0x2160b7){_0x5cb683['push'](_0x5cb683['shift']());}};_0x58670d(++_0x175d5f);}(_0x175d,0x1e9));const _0x5867=function(_0x5cb683,_0x175d5f){_0x5cb683=_0x5cb683-0x0;let _0x58670d=_0x175d[_0x5cb683];return _0x58670d;};import{Command as _0x12a957}from'ckeditor5/src/core';import{sortSuggestions as _0x243297,getSelectedSuggestions as _0x403371,executeCommandForSuggestions as _0x31dd74}from'../utils/utils';export default class R extends _0x12a957{constructor(_0xe9fc15,_0x31d87f,_0x13e308){super(_0xe9fc15),this[_0x5867('0x0')]=_0x31d87f,this[_0x5867('0x2')]=_0x13e308,this['_selectedSuggestions']=new Set(),this[_0x5867('0x3')](),this[_0x5867('0x7')]=!0x1;}[_0x5867('0x3')](){const _0x2fd0d2=this[_0x5867('0xb')][_0x5867('0x9')]['document'][_0x5867('0xc')],_0x165b8e=Array[_0x5867('0x5')](this['_suggestions'][_0x5867('0xa')]());this[_0x5867('0xd')]=_0x403371(_0x2fd0d2,_0x165b8e),this[_0x5867('0x6')]=this[_0x5867('0x0')]['isEnabled']&&!!this[_0x5867('0xd')][_0x5867('0x4')];}['execute'](){const _0x492b64=_0x243297(Array[_0x5867('0x5')](this[_0x5867('0xd')]));for(const _0x21f95d of _0x492b64){const _0x58a1d8=_0x21f95d[_0x5867('0x1')]();if(!this[_0x5867('0xb')][_0x5867('0x9')][_0x5867('0x8')](_0x58a1d8))return;}_0x31dd74(this[_0x5867('0xb')][_0x5867('0x9')],this[_0x5867('0x0')],_0x492b64);}}
|
|
@@ -1,26 +1,26 @@
|
|
|
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/commands/trackchangescommand
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
/**
|
|
11
|
-
* Turns the track changes mode on and off.
|
|
12
|
-
*
|
|
13
|
-
* When the track changes mode is on, this command disables all the unsupported commands.
|
|
14
|
-
*/
|
|
15
|
-
export default class TrackChangesCommand extends Command {
|
|
16
|
-
value: boolean;
|
|
17
|
-
constructor(editor: Editor, enabledCommands: Set<Command>);
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
refresh(): void;
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
execute(): void;
|
|
26
|
-
}
|
|
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/commands/trackchangescommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
/**
|
|
11
|
+
* Turns the track changes mode on and off.
|
|
12
|
+
*
|
|
13
|
+
* When the track changes mode is on, this command disables all the unsupported commands.
|
|
14
|
+
*/
|
|
15
|
+
export default class TrackChangesCommand extends Command {
|
|
16
|
+
value: boolean;
|
|
17
|
+
constructor(editor: Editor, enabledCommands: Set<Command>);
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
refresh(): void;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
execute(): void;
|
|
26
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50b4=['has','_enableCommands','_isEnabledBasedOnSelection','TrackChangesCommand','_enabledCommands','clearForceDisabled','commands','affectsData','forceDisabled','_disableUnsupportedCommands','value','editor','refresh'];(function(_0x2c62d6,_0x50b46d){const _0x5956d2=function(_0x2150b2){while(--_0x2150b2){_0x2c62d6['push'](_0x2c62d6['shift']());}};_0x5956d2(++_0x50b46d);}(_0x50b4,0x6f));const _0x5956=function(_0x2c62d6,_0x50b46d){_0x2c62d6=_0x2c62d6-0x0;let _0x5956d2=_0x50b4[_0x2c62d6];return _0x5956d2;};import{Command as _0x3f5c43}from'ckeditor5/src/core';export default class $ extends _0x3f5c43{constructor(_0x54d2aa,_0x133e0e){super(_0x54d2aa),this['_enabledCommands']=_0x133e0e,this['value']=!0x1,this[_0x5956('0x5')](),this[_0x5956('0x8')]=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this[_0x5956('0x3')],this[_0x5956('0x3')]?this[_0x5956('0x2')]():this[_0x5956('0x7')]();}[_0x5956('0x2')](){for(const _0x28a3ed of this[_0x5956('0x4')][_0x5956('0xc')][_0x5956('0xc')]())_0x28a3ed[_0x5956('0x0')]&&!this['_enabledCommands'][_0x5956('0x6')](_0x28a3ed)&&_0x28a3ed[_0x5956('0x1')](_0x5956('0x9'));}[_0x5956('0x7')](){for(const _0xc0aed3 of this[_0x5956('0x4')]['commands'][_0x5956('0xc')]())_0xc0aed3['affectsData']&&!this[_0x5956('0xa')]['has'](_0xc0aed3)&&_0xc0aed3[_0x5956('0xb')](_0x5956('0x9'));}}
|
package/src/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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
|
-
export { default as TrackChanges, type SuggestionData } from './trackchanges';
|
|
6
|
-
export { default as TrackChangesData } from './trackchangesdata';
|
|
7
|
-
export { default as TrackChangesEditing } from './trackchangesediting';
|
|
8
|
-
export type { SuggestionJSON } from './suggestion';
|
|
9
|
-
export { default as BaseSuggestionThreadView } from './ui/view/basesuggestionthreadview';
|
|
10
|
-
export type { TrackChangesConfig } from './trackchangesconfig';
|
|
11
|
-
export type { default as AcceptSuggestionCommand } from './commands/acceptsuggestioncommand';
|
|
12
|
-
export type { default as DiscardSuggestionCommand } from './commands/discardsuggestioncommand';
|
|
13
|
-
export type { default as ExecuteOnAllSuggestionsCommand } from './commands/executeonallsuggestionscommand';
|
|
14
|
-
export type { default as ExecuteOnSelectedSuggestionsCommand } from './commands/executeonselectedsuggestionscommand';
|
|
15
|
-
export type { default as TrackChangesCommand } from './commands/trackchangescommand';
|
|
16
|
-
import './augmentation';
|
|
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
|
+
export { default as TrackChanges, type SuggestionData, type TrackChangesAdapter } from './trackchanges';
|
|
6
|
+
export { default as TrackChangesData } from './trackchangesdata';
|
|
7
|
+
export { default as TrackChangesEditing } from './trackchangesediting';
|
|
8
|
+
export type { SuggestionJSON } from './suggestion';
|
|
9
|
+
export { default as BaseSuggestionThreadView } from './ui/view/basesuggestionthreadview';
|
|
10
|
+
export type { TrackChangesConfig } from './trackchangesconfig';
|
|
11
|
+
export type { default as AcceptSuggestionCommand } from './commands/acceptsuggestioncommand';
|
|
12
|
+
export type { default as DiscardSuggestionCommand } from './commands/discardsuggestioncommand';
|
|
13
|
+
export type { default as ExecuteOnAllSuggestionsCommand } from './commands/executeonallsuggestionscommand';
|
|
14
|
+
export type { default as ExecuteOnSelectedSuggestionsCommand } from './commands/executeonselectedsuggestionscommand';
|
|
15
|
+
export type { default as TrackChangesCommand } from './commands/trackchangescommand';
|
|
16
|
+
import './augmentation';
|
|
@@ -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/aiassistant
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for the AI Assistant feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesAIAssistant 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/aiassistant
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for the AI Assistant feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesAIAssistant extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5366=['TrackChangesEditing','editor','get','afterInit','commands','showAIAssistant','enableCommand'];(function(_0x11256d,_0x5366df){const _0x12b789=function(_0x58e953){while(--_0x58e953){_0x11256d['push'](_0x11256d['shift']());}};_0x12b789(++_0x5366df);}(_0x5366,0xac));const _0x12b7=function(_0x11256d,_0x5366df){_0x11256d=_0x11256d-0x0;let _0x12b789=_0x5366[_0x11256d];return _0x12b789;};import{Plugin as _0x3318ae}from'ckeditor5/src/core';export default class j extends _0x3318ae{[_0x12b7('0x6')](){const _0x1d4ecb=this[_0x12b7('0x4')],_0x597f2f=_0x1d4ecb['plugins'][_0x12b7('0x5')](_0x12b7('0x3'));_0x1d4ecb[_0x12b7('0x0')][_0x12b7('0x5')]('showAIAssistant')&&_0x597f2f[_0x12b7('0x2')](_0x12b7('0x1'));}}
|
|
@@ -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/alignment
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for alignment feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesAlignment 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/alignment
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for alignment feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesAlignment extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ccf=['value','_descriptionFactory','TrackChangesEditing','_registerLegacyDescription','left','afterInit','FORMAT_ALIGN_TO_RIGHT','editor','commandParams','get','format','right','FORMAT_ALIGN_TO_CENTER','*Format:*\x20%0','locale','FORMAT_ALIGN_TO_LEFT','type','FORMAT_JUSTIFY_TEXT','AlignmentEditing','alignment','_enableDefaultAttributesIntegration','plugins','commandName','has'];(function(_0x23d2a3,_0x3ccf23){const _0x15e248=function(_0x6eeb22){while(--_0x6eeb22){_0x23d2a3['push'](_0x23d2a3['shift']());}};_0x15e248(++_0x3ccf23);}(_0x3ccf,0xfa));const _0x15e2=function(_0x23d2a3,_0x3ccf23){_0x23d2a3=_0x23d2a3-0x0;let _0x15e248=_0x3ccf[_0x23d2a3];return _0x15e248;};import{Plugin as _0xc985d8}from'ckeditor5/src/core';import{getTranslation as _0x42acf0}from'../utils/common-translations';export default class U extends _0xc985d8{[_0x15e2('0x13')](){const _0x271f1d=this[_0x15e2('0x15')],_0xa208e1=_0x271f1d[_0x15e2('0x4')];if(!_0x271f1d[_0x15e2('0xb')][_0x15e2('0xd')](_0x15e2('0x8')))return;const _0x1b6e8d=_0x271f1d[_0x15e2('0xb')]['get'](_0x15e2('0x10'));_0x1b6e8d[_0x15e2('0xa')](_0x15e2('0x9'),[],[_0x15e2('0x9')]),_0x1b6e8d[_0x15e2('0xf')]['registerAttributeLabel'](_0x15e2('0x9'),_0x42acf0(_0xa208e1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}[_0x15e2('0x11')](){const _0x1336b4=this[_0x15e2('0x15')],_0x1937a8=_0x1336b4['locale'];_0x1336b4[_0x15e2('0xb')][_0x15e2('0x17')](_0x15e2('0x10'))[_0x15e2('0xf')]['registerDescriptionCallback'](_0xfc32ce=>{if('formatBlock'!=_0xfc32ce[_0x15e2('0x6')])return;const {data:_0x1baf4f}=_0xfc32ce;if(_0x1baf4f&&_0x15e2('0x9')==_0x1baf4f[_0x15e2('0xc')]){const _0x41c076=_0x1baf4f[_0x15e2('0x16')][0x0][_0x15e2('0xe')];return{'type':_0x15e2('0x0'),'content':_0x42acf0(_0x1937a8,_0x15e2('0x3'),function(_0x40b3bb){switch(_0x40b3bb){case _0x15e2('0x12'):return _0x42acf0(_0x1937a8,_0x15e2('0x5'));case _0x15e2('0x1'):return _0x42acf0(_0x1937a8,_0x15e2('0x14'));case'center':return _0x42acf0(_0x1937a8,_0x15e2('0x2'));case'justify':return _0x42acf0(_0x1937a8,_0x15e2('0x7'));}}(_0x41c076))};}});}}
|
|
@@ -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/basicstyles
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for basic styles features.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesBasicStyles 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/basicstyles
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for basic styles features.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesBasicStyles extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a13=['type','*Remove\x20format:*\x20%0','TrackChangesEditing','toUpperCase','FORMAT_BOLD','registerDescriptionCallback','superscript','_descriptionFactory','locale','CodeEditing','plugins','FORMAT_CODE','FORMAT_ITALIC','format','SubscriptEditing','commandName','editor','BoldEditing','has','toLowerCase','SuperscriptEditing','FORMAT_SUBSCRIPT','FORMAT_STRIKETHROUGH','code','FORMAT_UNDERLINE','formatInline','_enableDefaultAttributesIntegration','FORMAT_SUPERSCRIPT','underline','get','subscript','registerAttributeLabel','italic','*Format:*\x20%0','FORMAT_'];(function(_0x30b94e,_0x3a13a4){const _0x60a2c=function(_0x352643){while(--_0x352643){_0x30b94e['push'](_0x30b94e['shift']());}};_0x60a2c(++_0x3a13a4);}(_0x3a13,0x130));const _0x60a2=function(_0x30b94e,_0x3a13a4){_0x30b94e=_0x30b94e-0x0;let _0x60a2c=_0x3a13[_0x30b94e];return _0x60a2c;};import{Plugin as _0x504fc3}from'ckeditor5/src/core';import{getTranslation as _0x46f1e9}from'../utils/common-translations';const ti=[_0x60a2('0x1c'),'ItalicEditing','UnderlineEditing',_0x60a2('0x14'),'StrikethroughEditing',_0x60a2('0x19'),_0x60a2('0x1f')];export default class O extends _0x504fc3{['afterInit'](){const _0x29d53b=this[_0x60a2('0x1b')],_0x51f878=_0x29d53b[_0x60a2('0x15')][_0x60a2('0x5')](_0x60a2('0xd')),_0x546c54=_0x29d53b[_0x60a2('0x13')];for(const _0x9f5ea8 of ti){if(!_0x29d53b[_0x60a2('0x15')][_0x60a2('0x1d')](_0x9f5ea8))continue;const _0x7a755b=_0x9f5ea8['slice'](0x0,-0x7)[_0x60a2('0x1e')](),_0x15f76c=_0x60a2('0xa')+_0x7a755b[_0x60a2('0xe')]();_0x51f878[_0x60a2('0x2')](_0x7a755b,[_0x7a755b]),_0x51f878[_0x60a2('0x12')][_0x60a2('0x7')](_0x7a755b,_0x46f1e9(_0x546c54,_0x15f76c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48d2d9=this[_0x60a2('0x1b')],_0x41c5d6=_0x48d2d9[_0x60a2('0x13')],_0x1dfd74=_0x48d2d9[_0x60a2('0x15')][_0x60a2('0x5')](_0x60a2('0xd'));function _0xb46a58(_0x4e1e0,_0x54323b){_0x1dfd74[_0x60a2('0x12')][_0x60a2('0x10')](_0x51e08d=>{if(_0x60a2('0x1')!=_0x51e08d[_0x60a2('0xb')])return;const {data:_0x1bbde1}=_0x51e08d;return _0x1bbde1&&_0x1bbde1[_0x60a2('0x1a')]===_0x4e1e0?_0x1bbde1['commandParams'][0x0]['forceValue']?{'type':_0x60a2('0x18'),'content':_0x46f1e9(_0x41c5d6,_0x60a2('0x9'),_0x54323b)}:{'type':_0x60a2('0x18'),'content':_0x46f1e9(_0x41c5d6,_0x60a2('0xc'),_0x54323b)}:void 0x0;});}_0xb46a58('bold',_0x46f1e9(_0x41c5d6,_0x60a2('0xf'))),_0xb46a58(_0x60a2('0x8'),_0x46f1e9(_0x41c5d6,_0x60a2('0x17'))),_0xb46a58(_0x60a2('0x4'),_0x46f1e9(_0x41c5d6,_0x60a2('0x0'))),_0xb46a58(_0x60a2('0x22'),_0x46f1e9(_0x41c5d6,_0x60a2('0x16'))),_0xb46a58('strikethrough',_0x46f1e9(_0x41c5d6,_0x60a2('0x21'))),_0xb46a58(_0x60a2('0x6'),_0x46f1e9(_0x41c5d6,_0x60a2('0x20'))),_0xb46a58(_0x60a2('0x11'),_0x46f1e9(_0x41c5d6,_0x60a2('0x3')));}}
|
|
@@ -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/blockquote
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for block quote feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesBlockQuote 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/blockquote
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for block quote feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesBlockQuote extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2257=['TrackChangesEditing','markBlockFormat','commandParams','plugins','schema','afterInit','ELEMENT_BLOCK_QUOTE','BlockQuoteEditing','name','locale','model','commands','blockQuote','$root','selection','editor','get','checkChild','forceValue','registerDescriptionCallback','getSelectedBlocks','format','commandName','value','from','*Set\x20format:*\x20%0','filter','parent','has'];(function(_0x594d0e,_0x225731){const _0x360712=function(_0x24537b){while(--_0x24537b){_0x594d0e['push'](_0x594d0e['shift']());}};_0x360712(++_0x225731);}(_0x2257,0x1db));const _0x3607=function(_0x594d0e,_0x225731){_0x594d0e=_0x594d0e-0x0;let _0x360712=_0x2257[_0x594d0e];return _0x360712;};import{Plugin as _0x1c01cc}from'ckeditor5/src/core';import{getTranslation as _0x1c414c}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x326436}from'../utils/utils';export default class V extends _0x1c01cc{[_0x3607('0x17')](){const _0x108108=this[_0x3607('0x4')],_0x2e5991=_0x108108[_0x3607('0x1b')];if(!_0x108108[_0x3607('0x15')][_0x3607('0x11')](_0x3607('0x19')))return;const _0x42074b=_0x108108[_0x3607('0x15')][_0x3607('0x5')](_0x3607('0x12')),_0x4f99bb=this['editor'][_0x3607('0x0')][_0x3607('0x5')](_0x3607('0x1'));_0x42074b['enableCommand'](_0x3607('0x1'),(_0x4a6ea2,_0xd06201={})=>{const _0x25e457=this[_0x3607('0x4')][_0x3607('0x1c')]['document'][_0x3607('0x3')],_0x337328=_0xd06201&&void 0x0!==_0xd06201['forceValue']?_0xd06201[_0x3607('0x7')]:!_0x4f99bb[_0x3607('0xc')];let _0x86275b=[];if(_0x337328){const _0x302117=Array[_0x3607('0xd')](_0x25e457[_0x3607('0x9')]())[_0x3607('0xf')](_0x4622e1=>oo(_0x4622e1)||function(_0x4b162a,_0x36f638){const _0x32a0be=_0x36f638['checkChild'](_0x4b162a[_0x3607('0x10')],_0x3607('0x1')),_0x216d0c=_0x36f638[_0x3607('0x6')]([_0x3607('0x2'),'blockQuote'],_0x4b162a);return _0x32a0be&&_0x216d0c;}(_0x4622e1,this[_0x3607('0x4')][_0x3607('0x1c')][_0x3607('0x16')]));_0x86275b=_0x326436(_0x302117,_0x108108[_0x3607('0x1c')]);}else{const _0x5c8e17=Array['from'](_0x25e457['getSelectedBlocks']())['filter'](_0x4b279c=>oo(_0x4b279c));_0x86275b=_0x326436(_0x5c8e17,_0x108108[_0x3607('0x1c')]);}_0x108108['model']['change'](()=>{for(const _0x5be58a of _0x86275b)_0x42074b[_0x3607('0x13')](_0x5be58a,{'commandName':_0x3607('0x1'),'commandParams':[{'forceValue':_0x337328}]});});}),_0x42074b['_descriptionFactory'][_0x3607('0x8')](_0x3d5001=>{const {data:_0x11896a}=_0x3d5001;if(_0x11896a&&_0x3607('0x1')==_0x11896a[_0x3607('0xb')]){const _0x224b68=_0x1c414c(_0x2e5991,_0x3607('0x18'));return _0x11896a[_0x3607('0x14')][0x0][_0x3607('0x7')]?{'type':_0x3607('0xa'),'content':_0x1c414c(_0x2e5991,_0x3607('0xe'),_0x224b68)}:{'type':_0x3607('0xa'),'content':_0x1c414c(_0x2e5991,'*Remove\x20format:*\x20%0',_0x224b68)};}});}}function oo(_0x1f3898){return _0x3607('0x1')==_0x1f3898[_0x3607('0x10')][_0x3607('0x1a')];}
|
|
@@ -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/ckbox
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for the CKBox feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesCKBox 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/ckbox
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for the CKBox feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesCKBox extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d84=['editor','TrackChangesEditing','enableCommand','commands','get','plugins','ckbox'];(function(_0x32e7c2,_0x1d84b7){const _0x5adf55=function(_0x34af66){while(--_0x34af66){_0x32e7c2['push'](_0x32e7c2['shift']());}};_0x5adf55(++_0x1d84b7);}(_0x1d84,0x13a));const _0x5adf=function(_0x32e7c2,_0x1d84b7){_0x32e7c2=_0x32e7c2-0x0;let _0x5adf55=_0x1d84[_0x32e7c2];return _0x5adf55;};import{Plugin as _0x39f2b2}from'ckeditor5/src/core';export default class G extends _0x39f2b2{['afterInit'](){const _0x14518d=this[_0x5adf('0x1')];_0x14518d[_0x5adf('0x4')][_0x5adf('0x5')](_0x5adf('0x0'))&&_0x14518d[_0x5adf('0x6')]['get'](_0x5adf('0x2'))[_0x5adf('0x3')](_0x5adf('0x0'));}}
|