@ckeditor/ckeditor5-track-changes 39.0.1 → 40.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/LICENSE.md +6 -6
- package/README.md +14 -14
- package/build/track-changes.js +1 -1
- package/lang/translations/ar.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -7
- package/src/augmentation.d.ts +40 -40
- package/src/commands/acceptsuggestioncommand.d.ts +24 -24
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +24 -24
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +26 -26
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +16 -16
- package/src/integrations/aiassistant.d.ts +17 -0
- package/src/integrations/aiassistant.js +23 -0
- package/src/integrations/alignment.d.ts +17 -17
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +17 -17
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +17 -17
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +17 -17
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +17 -17
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +14 -14
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +17 -17
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +17 -17
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +29 -29
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +16 -16
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +21 -21
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +17 -17
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +17 -17
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +17 -17
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +17 -17
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +17 -17
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +17 -17
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +17 -17
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +23 -23
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +18 -18
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +17 -17
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +16 -16
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +17 -17
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +17 -17
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +29 -29
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +17 -17
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +17 -17
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +17 -17
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +17 -17
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +17 -17
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +17 -17
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +16 -16
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +17 -17
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +18 -18
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +42 -42
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +22 -22
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +19 -19
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +26 -26
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +22 -22
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +22 -22
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +17 -17
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +27 -27
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +17 -17
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +17 -17
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +17 -17
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +21 -21
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +276 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +163 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +244 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +75 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +468 -439
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +38 -38
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +37 -37
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -182
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +30 -30
- package/src/utils/utils.js +1 -1
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
|
@@ -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 _0x60ce=['TrackChangesEditing','_suggestions','plugins','canEditAt','getRanges','isEnabled','model','_isEnabledBasedOnSelection','get','track-changes-discard-suggestion-not-found','editor'];(function(_0x1f68b1,_0x60ce95){const _0x373f42=function(_0x173e1c){while(--_0x173e1c){_0x1f68b1['push'](_0x1f68b1['shift']());}};_0x373f42(++_0x60ce95);}(_0x60ce,0xe8));const _0x373f=function(_0x1f68b1,_0x60ce95){_0x1f68b1=_0x1f68b1-0x0;let _0x373f42=_0x60ce[_0x1f68b1];return _0x373f42;};import{Command as _0x248f0a}from'ckeditor5/src/core';import{CKEditorError as _0x2f6d5f}from'ckeditor5/src/utils';export default class $ extends _0x248f0a{constructor(_0x5658d6,_0x376db2){super(_0x5658d6),this['_suggestions']=_0x376db2,this['refresh'](),this[_0x373f('0x6')]=!0x1;}['refresh'](){this[_0x373f('0x4')]=!0x0;}['execute'](_0x43b2db){const _0x353cc9=this[_0x373f('0x0')][_0x373f('0x7')](_0x43b2db);if(!_0x353cc9)throw new _0x2f6d5f(_0x373f('0x8'),this);const _0xfbdf38=_0x353cc9[_0x373f('0x3')]();this['editor'][_0x373f('0x5')][_0x373f('0x2')](_0xfbdf38)&&this[_0x373f('0x9')][_0x373f('0x1')][_0x373f('0x7')](_0x373f('0xa'))['discardSuggestion'](_0x353cc9);}}
|
|
@@ -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 _0x3880=['getRanges','isInContent','execute','isEnabled','values','model','_suggestions','refresh','from','_command','editor'];(function(_0x3cb4f0,_0x388041){const _0x35201e=function(_0x3f1570){while(--_0x3f1570){_0x3cb4f0['push'](_0x3cb4f0['shift']());}};_0x35201e(++_0x388041);}(_0x3880,0x163));const _0x3520=function(_0x3cb4f0,_0x388041){_0x3cb4f0=_0x3cb4f0-0x0;let _0x35201e=_0x3880[_0x3cb4f0];return _0x35201e;};import{Command as _0xd82202}from'ckeditor5/src/core';import{sortSuggestions as _0x283458,executeCommandForSuggestions as _0x4ab057}from'../utils/utils';export default class N extends _0xd82202{constructor(_0xacc81a,_0x2263f1,_0x8da4b2){super(_0xacc81a),this[_0x3520('0x6')]=_0x2263f1,this[_0x3520('0x3')]=_0x8da4b2,this[_0x3520('0x4')](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1d061b=Array['from'](this[_0x3520('0x3')]['values']())['some'](_0x2b6e04=>_0x2b6e04[_0x3520('0x9')]);this[_0x3520('0x0')]=this[_0x3520('0x6')]['isEnabled']&&_0x1d061b;}[_0x3520('0xa')](){const _0x566083=_0x283458(Array[_0x3520('0x5')](this[_0x3520('0x3')][_0x3520('0x1')]()));for(const _0x290a0d of _0x566083){const _0xdea80f=_0x290a0d[_0x3520('0x8')]();if(!this[_0x3520('0x7')]['model']['canEditAt'](_0xdea80f))return;}_0x4ab057(this[_0x3520('0x7')][_0x3520('0x2')],this['_command'],_0x566083);}}
|
|
@@ -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 _0x50ff=['from','editor','_suggestions','execute','document','size','canEditAt','values','_selectedSuggestions','_command','getRanges','selection','model','isEnabled','refresh'];(function(_0x5ab14d,_0x50ff01){const _0x5eb5f0=function(_0x42eb30){while(--_0x42eb30){_0x5ab14d['push'](_0x5ab14d['shift']());}};_0x5eb5f0(++_0x50ff01);}(_0x50ff,0x1e1));const _0x5eb5=function(_0x5ab14d,_0x50ff01){_0x5ab14d=_0x5ab14d-0x0;let _0x5eb5f0=_0x50ff[_0x5ab14d];return _0x5eb5f0;};import{Command as _0xa897e8}from'ckeditor5/src/core';import{sortSuggestions as _0x405e45,getSelectedSuggestions as _0x285c39,executeCommandForSuggestions as _0x4f0258}from'../utils/utils';export default class R extends _0xa897e8{constructor(_0x32c0ec,_0x5969de,_0x3976ef){super(_0x32c0ec),this[_0x5eb5('0x8')]=_0x5969de,this[_0x5eb5('0x1')]=_0x3976ef,this[_0x5eb5('0x7')]=new Set(),this[_0x5eb5('0xd')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x5eb5('0xd')](){const _0xf9d2bb=this['editor']['model'][_0x5eb5('0x3')][_0x5eb5('0xa')],_0x36607b=Array[_0x5eb5('0xe')](this[_0x5eb5('0x1')][_0x5eb5('0x6')]());this[_0x5eb5('0x7')]=_0x285c39(_0xf9d2bb,_0x36607b),this[_0x5eb5('0xc')]=this[_0x5eb5('0x8')][_0x5eb5('0xc')]&&!!this['_selectedSuggestions'][_0x5eb5('0x4')];}[_0x5eb5('0x2')](){const _0x7fe869=_0x405e45(Array[_0x5eb5('0xe')](this[_0x5eb5('0x7')]));for(const _0x2f2dc8 of _0x7fe869){const _0x544771=_0x2f2dc8[_0x5eb5('0x9')]();if(!this['editor'][_0x5eb5('0xb')][_0x5eb5('0x5')](_0x544771))return;}_0x4f0258(this[_0x5eb5('0x0')][_0x5eb5('0xb')],this[_0x5eb5('0x8')],_0x7fe869);}}
|
|
@@ -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 _0x10f5=['editor','commands','refresh','_isEnabledBasedOnSelection','_enabledCommands','value','has','clearForceDisabled','execute','affectsData','_disableUnsupportedCommands','_enableCommands','TrackChangesCommand'];(function(_0x7b61f7,_0x10f5cc){const _0x381bcd=function(_0x10be11){while(--_0x10be11){_0x7b61f7['push'](_0x7b61f7['shift']());}};_0x381bcd(++_0x10f5cc);}(_0x10f5,0x84));const _0x381b=function(_0x7b61f7,_0x10f5cc){_0x7b61f7=_0x7b61f7-0x0;let _0x381bcd=_0x10f5[_0x7b61f7];return _0x381bcd;};import{Command as _0x459803}from'ckeditor5/src/core';export default class _ extends _0x459803{constructor(_0x23baba,_0x43493d){super(_0x23baba),this[_0x381b('0x2')]=_0x43493d,this[_0x381b('0x3')]=!0x1,this[_0x381b('0x0')](),this[_0x381b('0x1')]=!0x1;}[_0x381b('0x0')](){this['isEnabled']=!0x0;}[_0x381b('0x6')](){this[_0x381b('0x3')]=!this[_0x381b('0x3')],this[_0x381b('0x3')]?this['_disableUnsupportedCommands']():this[_0x381b('0x9')]();}[_0x381b('0x8')](){for(const _0x336785 of this[_0x381b('0xb')]['commands'][_0x381b('0xc')]())_0x336785['affectsData']&&!this['_enabledCommands'][_0x381b('0x4')](_0x336785)&&_0x336785['forceDisabled']('TrackChangesCommand');}[_0x381b('0x9')](){for(const _0x529307 of this[_0x381b('0xb')][_0x381b('0xc')][_0x381b('0xc')]())_0x529307[_0x381b('0x7')]&&!this[_0x381b('0x2')]['has'](_0x529307)&&_0x529307[_0x381b('0x5')](_0x381b('0xa'));}}
|
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 } 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';
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x3308=['showAIAssistant','afterInit','editor','get','commands','enableCommand','plugins'];(function(_0x65e238,_0x330895){const _0x1aa660=function(_0x1aed76){while(--_0x1aed76){_0x65e238['push'](_0x65e238['shift']());}};_0x1aa660(++_0x330895);}(_0x3308,0x7e));const _0x1aa6=function(_0x65e238,_0x330895){_0x65e238=_0x65e238-0x0;let _0x1aa660=_0x3308[_0x65e238];return _0x1aa660;};import{Plugin as _0x504481}from'ckeditor5/src/core';export default class j extends _0x504481{[_0x1aa6('0x1')](){const _0x52d3a0=this[_0x1aa6('0x2')],_0xbd2e74=_0x52d3a0[_0x1aa6('0x6')][_0x1aa6('0x3')]('TrackChangesEditing');_0x52d3a0[_0x1aa6('0x4')]['get'](_0x1aa6('0x0'))&&_0xbd2e74[_0x1aa6('0x5')](_0x1aa6('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/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 _0x351f=['markBlockFormat','afterInit','enableCommand','from','justify','FORMAT_ALIGN_TO_RIGHT','commandParams','left','schema','document','AlignmentEditing','FORMAT_ALIGN_TO_CENTER','getSelectedBlocks','FORMAT_ALIGN_TO_LEFT','editor','contentLanguageDirection','ltr','get','has','format','FORMAT_JUSTIFY_TEXT','alignment','registerDescriptionCallback','plugins','right','model','checkAttribute','*Format:*\x20%0','center','getAttribute','TrackChangesEditing'];(function(_0x34dc6e,_0x351fa1){const _0x5421d0=function(_0x1e8029){while(--_0x1e8029){_0x34dc6e['push'](_0x34dc6e['shift']());}};_0x5421d0(++_0x351fa1);}(_0x351f,0x142));const _0x5421=function(_0x34dc6e,_0x351fa1){_0x34dc6e=_0x34dc6e-0x0;let _0x5421d0=_0x351f[_0x34dc6e];return _0x5421d0;};import{Plugin as _0x4a1ad2}from'ckeditor5/src/core';import{getTranslation as _0xe12936}from'../utils/common-translations';export default class x extends _0x4a1ad2{[_0x5421('0x14')](){const _0x54c158=this[_0x5421('0x2')],_0x59f88d=_0x54c158['locale'];if(!_0x54c158[_0x5421('0xb')][_0x5421('0x6')](_0x5421('0x1d')))return;const _0x18025c=_0x54c158[_0x5421('0xb')][_0x5421('0x5')](_0x5421('0x12'));_0x18025c[_0x5421('0x15')](_0x5421('0x9'),(_0x6c7f31,_0x4c7426={})=>{let _0x56e02f=_0x4c7426['value'];_0x4c7426['value']||(_0x56e02f=_0x5421('0x4')===_0x54c158['locale'][_0x5421('0x3')]?'left':_0x5421('0xc'));const _0x56d8b7=Array[_0x5421('0x16')](this[_0x5421('0x2')][_0x5421('0xd')][_0x5421('0x1c')]['selection'][_0x5421('0x0')]())['filter'](_0x9587fa=>function(_0xeceb84,_0xabd9ae,_0x36f00b){const _0x437371=_0xeceb84[_0x5421('0x11')](_0x5421('0x9'))||null;return _0xabd9ae[_0x5421('0xe')](_0xeceb84,'alignment')&&_0x36f00b!=_0x437371;}(_0x9587fa,this[_0x5421('0x2')]['model'][_0x5421('0x1b')],_0x56e02f));_0x54c158[_0x5421('0xd')]['change'](()=>{for(const _0x2c6bfd of _0x56d8b7)_0x18025c[_0x5421('0x13')](_0x2c6bfd,{'commandName':_0x5421('0x9'),'commandParams':[{'value':_0x56e02f}]});});}),_0x18025c['_descriptionFactory'][_0x5421('0xa')](_0x1aa4b5=>{const {data:_0x69958b}=_0x1aa4b5;if(_0x69958b&&_0x5421('0x9')==_0x69958b['commandName']){const _0x3fdce7=_0x69958b[_0x5421('0x19')][0x0]['value'];return{'type':_0x5421('0x7'),'content':_0xe12936(_0x59f88d,_0x5421('0xf'),function(_0x4bf4d6){switch(_0x4bf4d6){case _0x5421('0x1a'):return _0xe12936(_0x59f88d,_0x5421('0x1'));case'right':return _0xe12936(_0x59f88d,_0x5421('0x18'));case _0x5421('0x10'):return _0xe12936(_0x59f88d,_0x5421('0x1e'));case _0x5421('0x17'):return _0xe12936(_0x59f88d,_0x5421('0x8'));}}(_0x3fdce7))};}});}}
|
|
@@ -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 _0x3293=['getRanges','FORMAT_UNDERLINE','FORMAT_ITALIC','locale','strikethrough','commandName','slice','afterInit','editor','markInlineFormat','toLowerCase','BoldEditing','value','code','FORMAT_SUPERSCRIPT','commands','isCollapsed','forceValue','enableCommand','model','UnderlineEditing','StrikethroughEditing','has','format','document','*Format:*\x20%0','get','superscript','plugins','SuperscriptEditing','_descriptionFactory','FORMAT_STRIKETHROUGH','selection','CodeEditing','FORMAT_BOLD','FORMAT_SUBSCRIPT','SubscriptEditing','subscript','FORMAT_CODE'];(function(_0x3a6c97,_0x329359){const _0x1dbc7c=function(_0x11ee6d){while(--_0x11ee6d){_0x3a6c97['push'](_0x3a6c97['shift']());}};_0x1dbc7c(++_0x329359);}(_0x3293,0x159));const _0x1dbc=function(_0x3a6c97,_0x329359){_0x3a6c97=_0x3a6c97-0x0;let _0x1dbc7c=_0x3293[_0x3a6c97];return _0x1dbc7c;};import{Plugin as _0x30573d}from'ckeditor5/src/core';import{getTranslation as _0x4ec84d}from'../utils/common-translations';import{getRangesWithAttribute as _0x44d0e5}from'./utils';const Zt=[_0x1dbc('0x11'),'ItalicEditing',_0x1dbc('0x1a'),_0x1dbc('0x0'),_0x1dbc('0x1b'),_0x1dbc('0x3'),_0x1dbc('0x23')];export default class U extends _0x30573d{[_0x1dbc('0xd')](){const _0x207a18=this[_0x1dbc('0xe')],_0x3afe2e=_0x207a18[_0x1dbc('0x19')],_0x342417=_0x207a18['plugins'][_0x1dbc('0x20')]('TrackChangesEditing'),_0x5e8a0a=_0x207a18[_0x1dbc('0x9')];for(const _0x718ed6 of Zt){if(!_0x207a18[_0x1dbc('0x22')][_0x1dbc('0x1c')](_0x718ed6))continue;const _0x32b8f1=_0x718ed6[_0x1dbc('0xc')](0x0,-0x7)[_0x1dbc('0x10')](),_0x22cc93=_0x207a18[_0x1dbc('0x15')]['get'](_0x32b8f1);_0x342417[_0x1dbc('0x18')](_0x32b8f1,(_0x10b24c,_0x133ed2={})=>{const _0x9e4a=_0x3afe2e[_0x1dbc('0x1e')][_0x1dbc('0x26')];if(_0x9e4a[_0x1dbc('0x16')])return void _0x10b24c(_0x133ed2);const _0x1bf442=void 0x0!==_0x133ed2[_0x1dbc('0x17')]?_0x133ed2[_0x1dbc('0x17')]:!_0x22cc93[_0x1dbc('0x12')];_0x3afe2e['change'](()=>{const _0x4f5568=Array['from'](_0x9e4a[_0x1dbc('0x6')]());for(const _0x1c145d of _0x4f5568){const _0x482329=_0x1bf442?[_0x1c145d]:_0x44d0e5(_0x32b8f1,_0x1c145d,_0x3afe2e);for(const _0x28e7a3 of _0x482329)_0x342417[_0x1dbc('0xf')](_0x28e7a3,{'commandName':_0x32b8f1,'commandParams':[{'forceValue':_0x1bf442}]});}});});}function _0x5c5af(_0x325105,_0x3f55b5){_0x342417[_0x1dbc('0x24')]['registerDescriptionCallback'](_0x33049e=>{const {data:_0x5511ef}=_0x33049e;if(_0x5511ef&&_0x5511ef[_0x1dbc('0xb')]===_0x325105)return _0x5511ef['commandParams'][0x0][_0x1dbc('0x17')]?{'type':_0x1dbc('0x1d'),'content':_0x4ec84d(_0x5e8a0a,_0x1dbc('0x1f'),_0x3f55b5)}:{'type':_0x1dbc('0x1d'),'content':_0x4ec84d(_0x5e8a0a,'*Remove\x20format:*\x20%0',_0x3f55b5)};});}_0x5c5af('bold',_0x4ec84d(_0x5e8a0a,_0x1dbc('0x1'))),_0x5c5af('italic',_0x4ec84d(_0x5e8a0a,_0x1dbc('0x8'))),_0x5c5af('underline',_0x4ec84d(_0x5e8a0a,_0x1dbc('0x7'))),_0x5c5af(_0x1dbc('0x13'),_0x4ec84d(_0x5e8a0a,_0x1dbc('0x5'))),_0x5c5af(_0x1dbc('0xa'),_0x4ec84d(_0x5e8a0a,_0x1dbc('0x25'))),_0x5c5af(_0x1dbc('0x4'),_0x4ec84d(_0x5e8a0a,_0x1dbc('0x2'))),_0x5c5af(_0x1dbc('0x21'),_0x4ec84d(_0x5e8a0a,_0x1dbc('0x14')));}}
|
|
@@ -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 _0x3553=['BlockQuoteEditing','editor','blockQuote','afterInit','schema','locale','getSelectedBlocks','checkChild','*Remove\x20format:*\x20%0','enableCommand','filter','model','parent','commandName','ELEMENT_BLOCK_QUOTE','plugins','selection','*Format:*\x20%0','has','format','get','commandParams','forceValue','value','name','change','commands'];(function(_0xf5ca9a,_0x355366){const _0x488795=function(_0x162cb0){while(--_0x162cb0){_0xf5ca9a['push'](_0xf5ca9a['shift']());}};_0x488795(++_0x355366);}(_0x3553,0xa4));const _0x4887=function(_0xf5ca9a,_0x355366){_0xf5ca9a=_0xf5ca9a-0x0;let _0x488795=_0x3553[_0xf5ca9a];return _0x488795;};import{Plugin as _0xd9cfaf}from'ckeditor5/src/core';import{getTranslation as _0xe3a237}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x4aec1a}from'../utils/utils';export default class O extends _0xd9cfaf{[_0x4887('0x1')](){const _0x5c3bce=this[_0x4887('0x1a')],_0x569fce=_0x5c3bce[_0x4887('0x3')];if(!_0x5c3bce[_0x4887('0xd')][_0x4887('0x10')](_0x4887('0x19')))return;const _0x45bc35=_0x5c3bce[_0x4887('0xd')][_0x4887('0x12')]('TrackChangesEditing'),_0x9f680b=this[_0x4887('0x1a')][_0x4887('0x18')][_0x4887('0x12')](_0x4887('0x0'));_0x45bc35[_0x4887('0x7')]('blockQuote',(_0x5abfab,_0x484627={})=>{const _0x7622a4=this[_0x4887('0x1a')]['model']['document'][_0x4887('0xe')],_0x102a1a=_0x484627&&void 0x0!==_0x484627[_0x4887('0x14')]?_0x484627[_0x4887('0x14')]:!_0x9f680b[_0x4887('0x15')];let _0x5ea788=[];if(_0x102a1a){const _0x193b5c=Array['from'](_0x7622a4[_0x4887('0x4')]())['filter'](_0x3c6c92=>oo(_0x3c6c92)||function(_0xaa048f,_0x51c4f8){const _0x226891=_0x51c4f8[_0x4887('0x5')](_0xaa048f['parent'],_0x4887('0x0')),_0x40e5a3=_0x51c4f8[_0x4887('0x5')](['$root',_0x4887('0x0')],_0xaa048f);return _0x226891&&_0x40e5a3;}(_0x3c6c92,this[_0x4887('0x1a')][_0x4887('0x9')][_0x4887('0x2')]));_0x5ea788=_0x4aec1a(_0x193b5c,_0x5c3bce[_0x4887('0x9')]);}else{const _0xb234f7=Array['from'](_0x7622a4[_0x4887('0x4')]())[_0x4887('0x8')](_0x394359=>oo(_0x394359));_0x5ea788=_0x4aec1a(_0xb234f7,_0x5c3bce['model']);}_0x5c3bce[_0x4887('0x9')][_0x4887('0x17')](()=>{for(const _0xbf3024 of _0x5ea788)_0x45bc35['markBlockFormat'](_0xbf3024,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x102a1a}]});});}),_0x45bc35['_descriptionFactory']['registerDescriptionCallback'](_0x4ad9b0=>{const {data:_0x28a08b}=_0x4ad9b0;if(_0x28a08b&&'blockQuote'==_0x28a08b[_0x4887('0xb')]){const _0x456f07=_0xe3a237(_0x569fce,_0x4887('0xc'));return _0x28a08b[_0x4887('0x13')][0x0]['forceValue']?{'type':_0x4887('0x11'),'content':_0xe3a237(_0x569fce,_0x4887('0xf'),_0x456f07)}:{'type':_0x4887('0x11'),'content':_0xe3a237(_0x569fce,_0x4887('0x6'),_0x456f07)};}});}}function oo(_0x27e746){return _0x4887('0x0')==_0x27e746[_0x4887('0xa')][_0x4887('0x16')];}
|
|
@@ -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 _0x1fb4=['TrackChangesEditing','ckbox','get','enableCommand','commands','plugins','editor'];(function(_0x493117,_0x1fb4be){const _0x4e19ce=function(_0x1e04c0){while(--_0x1e04c0){_0x493117['push'](_0x493117['shift']());}};_0x4e19ce(++_0x1fb4be);}(_0x1fb4,0x197));const _0x4e19=function(_0x493117,_0x1fb4be){_0x493117=_0x493117-0x0;let _0x4e19ce=_0x1fb4[_0x493117];return _0x4e19ce;};import{Plugin as _0x50cea5}from'ckeditor5/src/core';export default class E extends _0x50cea5{['afterInit'](){const _0x7b10fd=this[_0x4e19('0x5')];_0x7b10fd[_0x4e19('0x3')][_0x4e19('0x1')](_0x4e19('0x0'))&&_0x7b10fd[_0x4e19('0x4')][_0x4e19('0x1')](_0x4e19('0x6'))[_0x4e19('0x2')](_0x4e19('0x0'));}}
|