@ckeditor/ckeditor5-track-changes 36.0.1 → 37.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/ckeditor5-metadata.json +10 -0
- package/package.json +20 -5
- package/src/augmentation.d.ts +36 -0
- package/src/augmentation.js +23 -0
- package/src/commands/acceptsuggestioncommand.d.ts +20 -0
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +20 -0
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +20 -0
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -0
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +22 -0
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -0
- package/src/index.js +1 -1
- package/src/integrations/alignment.d.ts +13 -0
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +13 -0
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +13 -0
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +13 -0
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +13 -0
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +10 -0
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +12 -0
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +13 -0
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +25 -0
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +11 -0
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +17 -0
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +13 -0
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.d.ts +13 -0
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +13 -0
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +13 -0
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +13 -0
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +13 -0
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +19 -0
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +14 -0
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +13 -0
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +11 -0
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +13 -0
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +13 -0
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +25 -0
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +13 -0
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +13 -0
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +13 -0
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +13 -0
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +13 -0
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +13 -0
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +11 -0
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +13 -0
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +14 -0
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +38 -0
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +17 -0
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +17 -0
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +22 -0
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +17 -0
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +17 -0
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableproperties.d.ts +23 -0
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/title.d.ts +13 -0
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +13 -0
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +17 -0
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +266 -0
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +151 -0
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +222 -0
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +53 -0
- package/src/trackchangesconfig.js +23 -0
- package/src/trackchangesdata.d.ts +38 -0
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +391 -0
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +34 -0
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +36 -0
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +166 -0
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +184 -0
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +5 -0
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +26 -0
- package/src/utils/utils.js +1 -1
package/ckeditor5-metadata.json
CHANGED
|
@@ -16,6 +16,16 @@
|
|
|
16
16
|
"requires": [
|
|
17
17
|
"Comments"
|
|
18
18
|
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "Track changes data",
|
|
22
|
+
"className": "TrackChangesData",
|
|
23
|
+
"description": "This plugin returns the editor data with accepted or discarded suggestions without modifying the editor content.",
|
|
24
|
+
"docs": "features/collaboration/track-changes/track-changes-data.html",
|
|
25
|
+
"path": "src/trackchangesdata.js",
|
|
26
|
+
"requires": [
|
|
27
|
+
"TrackChanges"
|
|
28
|
+
]
|
|
19
29
|
}
|
|
20
30
|
]
|
|
21
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "37.0.0-rc.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -26,10 +26,25 @@
|
|
|
26
26
|
"framework"
|
|
27
27
|
],
|
|
28
28
|
"main": "src/index.js",
|
|
29
|
+
"files": [
|
|
30
|
+
"build",
|
|
31
|
+
"lang",
|
|
32
|
+
"src/**/*.js",
|
|
33
|
+
"src/**/*.d.ts",
|
|
34
|
+
"theme",
|
|
35
|
+
"ckeditor5-metadata.json",
|
|
36
|
+
"CHANGELOG.md"
|
|
37
|
+
],
|
|
38
|
+
"scripts": {
|
|
39
|
+
"dll:build": "webpack",
|
|
40
|
+
"build": "tsc -p ./tsconfig.json",
|
|
41
|
+
"postversion": "npm run build"
|
|
42
|
+
},
|
|
29
43
|
"dependencies": {
|
|
30
|
-
"ckeditor5": "^
|
|
44
|
+
"ckeditor5": "^37.0.0-rc.0",
|
|
31
45
|
"ckeditor5-collaboration": "^36.0.1",
|
|
32
|
-
"lodash-es": "^4.17.11"
|
|
33
|
-
|
|
34
|
-
|
|
46
|
+
"lodash-es": "^4.17.11"
|
|
47
|
+
},
|
|
48
|
+
"types": "src/index.d.ts",
|
|
49
|
+
"obfuscated": true
|
|
35
50
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { TrackChangesConfig, TrackChangesEditing, AcceptSuggestionCommand, DiscardSuggestionCommand, ExecuteOnAllSuggestionsCommand, ExecuteOnSelectedSuggestionsCommand, TrackChangesCommand } from './index';
|
|
2
|
+
import type { Editor } from 'ckeditor5/src/core';
|
|
3
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
4
|
+
interface EditorConfig {
|
|
5
|
+
/**
|
|
6
|
+
* The configuration of the {@link module:track-changes/trackchanges~TrackChanges} feature.
|
|
7
|
+
*
|
|
8
|
+
* Read more in {@link module:track-changes/trackchangesconfig~TrackChangesConfig}.
|
|
9
|
+
*/
|
|
10
|
+
trackChanges?: TrackChangesConfig;
|
|
11
|
+
/**
|
|
12
|
+
* The configuration of the track changes data feature.
|
|
13
|
+
*/
|
|
14
|
+
trackChangesData?: {
|
|
15
|
+
/**
|
|
16
|
+
* Callback that creates an editor instances.
|
|
17
|
+
*
|
|
18
|
+
* Used in non-standard integrations. See track changes data
|
|
19
|
+
* {@glink features/collaboration/track-changes/track-changes-data#configuring-track-changes-data-plugin configuration guide}.
|
|
20
|
+
*/
|
|
21
|
+
editorCreator?: (config: EditorConfig, createElement: Function) => Promise<Editor>;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
interface PluginsMap {
|
|
25
|
+
[TrackChangesEditing.pluginName]: TrackChangesEditing;
|
|
26
|
+
}
|
|
27
|
+
interface CommandsMap {
|
|
28
|
+
acceptSuggestion: AcceptSuggestionCommand;
|
|
29
|
+
discardSuggestion: DiscardSuggestionCommand;
|
|
30
|
+
acceptAllSuggestions: ExecuteOnAllSuggestionsCommand<AcceptSuggestionCommand>;
|
|
31
|
+
discardAllSuggestions: ExecuteOnAllSuggestionsCommand<DiscardSuggestionCommand>;
|
|
32
|
+
acceptSelectedSuggestions: ExecuteOnSelectedSuggestionsCommand<AcceptSuggestionCommand>;
|
|
33
|
+
discardSelectedSuggestions: ExecuteOnSelectedSuggestionsCommand<DiscardSuggestionCommand>;
|
|
34
|
+
trackChanges: TrackChangesCommand;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 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
|
+
export{};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/commands/acceptsuggestioncommand
|
|
3
|
+
* @publicApi
|
|
4
|
+
*/
|
|
5
|
+
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
6
|
+
import type Suggestion from '../suggestion';
|
|
7
|
+
/**
|
|
8
|
+
* A command that accepts the suggestion chain.
|
|
9
|
+
*/
|
|
10
|
+
export default class AcceptSuggestionCommand extends Command {
|
|
11
|
+
constructor(editor: Editor, suggestions: Map<string, Suggestion>);
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
*/
|
|
15
|
+
refresh(): void;
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
execute(suggestionId: string): void;
|
|
20
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22fa=['refresh','get','_suggestions','acceptSuggestion','plugins','execute','track-changes-accept-suggestion-not-found'];(function(_0x57c665,_0x22fa0f){const _0x515917=function(_0x1b6929){while(--_0x1b6929){_0x57c665['push'](_0x57c665['shift']());}};_0x515917(++_0x22fa0f);}(_0x22fa,0x1d5));const _0x5159=function(_0x57c665,_0x22fa0f){_0x57c665=_0x57c665-0x0;let _0x515917=_0x22fa[_0x57c665];return _0x515917;};import{Command as _0x405d40}from'ckeditor5/src/core';import{CKEditorError as _0x58e503}from'ckeditor5/src/utils';export default class M extends _0x405d40{constructor(_0xa7bb2f,_0x584468){super(_0xa7bb2f),this['_suggestions']=_0x584468,this[_0x5159('0x0')]();}[_0x5159('0x0')](){this['isEnabled']=!0x0;}[_0x5159('0x5')](_0x3f94c1){const _0x566b97=this[_0x5159('0x2')]['get'](_0x3f94c1);if(!_0x566b97)throw new _0x58e503(_0x5159('0x6'),this);this['editor'][_0x5159('0x4')][_0x5159('0x1')]('TrackChangesEditing')[_0x5159('0x3')](_0x566b97);}}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/commands/discardsuggestioncommand
|
|
3
|
+
* @publicApi
|
|
4
|
+
*/
|
|
5
|
+
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
6
|
+
import type Suggestion from '../suggestion';
|
|
7
|
+
/**
|
|
8
|
+
* A command that discards the suggestion chain.
|
|
9
|
+
*/
|
|
10
|
+
export default class DiscardSuggestionCommand extends Command {
|
|
11
|
+
constructor(editor: Editor, suggestions: Map<string, Suggestion>);
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
*/
|
|
15
|
+
refresh(): void;
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
execute(suggestionId: string): void;
|
|
20
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1461=['plugins','execute','_suggestions','get','editor','isEnabled','discardSuggestion','refresh','TrackChangesEditing'];(function(_0x4c35f5,_0x1461ef){const _0x25217c=function(_0x15f2f0){while(--_0x15f2f0){_0x4c35f5['push'](_0x4c35f5['shift']());}};_0x25217c(++_0x1461ef);}(_0x1461,0x1a4));const _0x2521=function(_0x4c35f5,_0x1461ef){_0x4c35f5=_0x4c35f5-0x0;let _0x25217c=_0x1461[_0x4c35f5];return _0x25217c;};import{Command as _0x614818}from'ckeditor5/src/core';import{CKEditorError as _0x4971c2}from'ckeditor5/src/utils';export default class $ extends _0x614818{constructor(_0x2c4826,_0x4282d0){super(_0x2c4826),this[_0x2521('0x5')]=_0x4282d0,this[_0x2521('0x1')]();}[_0x2521('0x1')](){this[_0x2521('0x8')]=!0x0;}[_0x2521('0x4')](_0x4d826c){const _0x3d39e0=this[_0x2521('0x5')][_0x2521('0x6')](_0x4d826c);if(!_0x3d39e0)throw new _0x4971c2('track-changes-discard-suggestion-not-found',this);this[_0x2521('0x7')][_0x2521('0x3')]['get'](_0x2521('0x2'))[_0x2521('0x0')](_0x3d39e0);}}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/commands/executeonallsuggestionscommand
|
|
3
|
+
* @publicApi
|
|
4
|
+
*/
|
|
5
|
+
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
6
|
+
import type Suggestion from '../suggestion';
|
|
7
|
+
/**
|
|
8
|
+
* A command that executes passed command (accept or discard suggestion command) at once for all suggestions in the document.
|
|
9
|
+
*/
|
|
10
|
+
export default class ExecuteOnAllSuggestionsCommand<T extends Command> extends Command {
|
|
11
|
+
constructor(editor: Editor, command: T, suggestions: Map<string, Suggestion>);
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
*/
|
|
15
|
+
refresh(): void;
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
execute(): void;
|
|
20
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37b3=['_command','model','refresh','values','isInContent','editor','isEnabled','_suggestions','from'];(function(_0x3eda6f,_0x37b33a){const _0x32de71=function(_0x3b65a3){while(--_0x3b65a3){_0x3eda6f['push'](_0x3eda6f['shift']());}};_0x32de71(++_0x37b33a);}(_0x37b3,0x16c));const _0x32de=function(_0x3eda6f,_0x37b33a){_0x3eda6f=_0x3eda6f-0x0;let _0x32de71=_0x37b3[_0x3eda6f];return _0x32de71;};import{Command as _0x44d1f4}from'ckeditor5/src/core';import{sortSuggestions as _0x4a894c,executeCommandForSuggestions as _0x2a237f}from'../utils/utils';export default class N extends _0x44d1f4{constructor(_0x2d2061,_0x49a260,_0x1b0fba){super(_0x2d2061),this[_0x32de('0x5')]=_0x49a260,this[_0x32de('0x3')]=_0x1b0fba,this[_0x32de('0x7')]();}[_0x32de('0x7')](){const _0x26d8b7=Array[_0x32de('0x4')](this[_0x32de('0x3')]['values']())['some'](_0x565f40=>_0x565f40[_0x32de('0x0')]);this[_0x32de('0x2')]=this[_0x32de('0x5')][_0x32de('0x2')]&&_0x26d8b7;}['execute'](){const _0x23f7c3=_0x4a894c(Array[_0x32de('0x4')](this[_0x32de('0x3')][_0x32de('0x8')]()));_0x2a237f(this[_0x32de('0x1')][_0x32de('0x6')],this[_0x32de('0x5')],_0x23f7c3);}}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/commands/executeonselectedsuggestionscommand
|
|
3
|
+
* @publicApi
|
|
4
|
+
*/
|
|
5
|
+
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
6
|
+
import type Suggestion from '../suggestion';
|
|
7
|
+
/**
|
|
8
|
+
* A command that executes passed command (accept or discard suggestion command) at once for all suggestions selected in the document.
|
|
9
|
+
*/
|
|
10
|
+
export default class ExecuteOnSelectedSuggestionsCommand<T extends Command> extends Command {
|
|
11
|
+
constructor(editor: Editor, command: T, suggestions: Map<string, Suggestion>);
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
*/
|
|
15
|
+
refresh(): void;
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
execute(): void;
|
|
20
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1071=['_suggestions','values','document','model','editor','from','_command','execute','isEnabled','refresh','_selectedSuggestions'];(function(_0x335c70,_0x1071a0){const _0x4500fe=function(_0xb01708){while(--_0xb01708){_0x335c70['push'](_0x335c70['shift']());}};_0x4500fe(++_0x1071a0);}(_0x1071,0x13b));const _0x4500=function(_0x335c70,_0x1071a0){_0x335c70=_0x335c70-0x0;let _0x4500fe=_0x1071[_0x335c70];return _0x4500fe;};import{Command as _0x2a17aa}from'ckeditor5/src/core';import{sortSuggestions as _0x1df66a,getSelectedSuggestions as _0x289deb,executeCommandForSuggestions as _0x41cbdc}from'../utils/utils';export default class R extends _0x2a17aa{constructor(_0x5ae8c0,_0x67a737,_0x1cc87d){super(_0x5ae8c0),this[_0x4500('0xa')]=_0x67a737,this[_0x4500('0x4')]=_0x1cc87d,this['_selectedSuggestions']=new Set(),this[_0x4500('0x2')]();}[_0x4500('0x2')](){const _0x5d8dd4=this[_0x4500('0x8')][_0x4500('0x7')][_0x4500('0x6')]['selection'],_0x23564d=Array[_0x4500('0x9')](this[_0x4500('0x4')][_0x4500('0x5')]());this[_0x4500('0x3')]=_0x289deb(_0x5d8dd4,_0x23564d),this['isEnabled']=this['_command'][_0x4500('0x1')]&&!!this[_0x4500('0x3')]['size'];}[_0x4500('0x0')](){const _0x2c84f6=_0x1df66a(Array['from'](this[_0x4500('0x3')]));_0x41cbdc(this['editor'][_0x4500('0x7')],this[_0x4500('0xa')],_0x2c84f6);}}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/commands/trackchangescommand
|
|
3
|
+
* @publicApi
|
|
4
|
+
*/
|
|
5
|
+
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
6
|
+
/**
|
|
7
|
+
* Turns the track changes mode on and off.
|
|
8
|
+
*
|
|
9
|
+
* When the track changes mode is on, this command disables all the unsupported commands.
|
|
10
|
+
*/
|
|
11
|
+
export default class TrackChangesCommand extends Command {
|
|
12
|
+
value: boolean;
|
|
13
|
+
constructor(editor: Editor, enabledCommands: Set<Command>);
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
refresh(): void;
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
execute(): void;
|
|
22
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13a3=['affectsData','forceDisabled','editor','value','has','clearForceDisabled','isEnabled','execute','_enableCommands','commands','TrackChangesCommand','refresh','_disableUnsupportedCommands','_enabledCommands'];(function(_0x442a3a,_0x13a35e){const _0x5531ca=function(_0xfaa4b1){while(--_0xfaa4b1){_0x442a3a['push'](_0x442a3a['shift']());}};_0x5531ca(++_0x13a35e);}(_0x13a3,0x182));const _0x5531=function(_0x442a3a,_0x13a35e){_0x442a3a=_0x442a3a-0x0;let _0x5531ca=_0x13a3[_0x442a3a];return _0x5531ca;};import{Command as _0x33615b}from'ckeditor5/src/core';export default class _ extends _0x33615b{constructor(_0x2351c0,_0x2ff32d){super(_0x2351c0),this[_0x5531('0x5')]=_0x2ff32d,this[_0x5531('0x9')]=!0x1,this[_0x5531('0x3')]();}[_0x5531('0x3')](){this[_0x5531('0xc')]=!0x0;}[_0x5531('0xd')](){this[_0x5531('0x9')]=!this[_0x5531('0x9')],this['value']?this[_0x5531('0x4')]():this[_0x5531('0x0')]();}['_disableUnsupportedCommands'](){for(const _0x72b84b of this[_0x5531('0x8')][_0x5531('0x1')]['commands']())_0x72b84b[_0x5531('0x6')]&&!this[_0x5531('0x5')][_0x5531('0xa')](_0x72b84b)&&_0x72b84b[_0x5531('0x7')](_0x5531('0x2'));}[_0x5531('0x0')](){for(const _0x1b6512 of this[_0x5531('0x8')][_0x5531('0x1')][_0x5531('0x1')]())_0x1b6512[_0x5531('0x6')]&&!this['_enabledCommands'][_0x5531('0xa')](_0x1b6512)&&_0x1b6512[_0x5531('0xb')](_0x5531('0x2'));}}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default as TrackChanges, type SuggestionData } from './trackchanges';
|
|
2
|
+
export { default as TrackChangesData } from './trackchangesdata';
|
|
3
|
+
export { default as TrackChangesEditing } from './trackchangesediting';
|
|
4
|
+
export { SuggestionJSON } from './suggestion';
|
|
5
|
+
export { default as BaseSuggestionThreadView } from './ui/view/basesuggestionthreadview';
|
|
6
|
+
export type { TrackChangesConfig } from './trackchangesconfig';
|
|
7
|
+
export type { default as AcceptSuggestionCommand } from './commands/acceptsuggestioncommand';
|
|
8
|
+
export type { default as DiscardSuggestionCommand } from './commands/discardsuggestioncommand';
|
|
9
|
+
export type { default as ExecuteOnAllSuggestionsCommand } from './commands/executeonallsuggestionscommand';
|
|
10
|
+
export type { default as ExecuteOnSelectedSuggestionsCommand } from './commands/executeonselectedsuggestionscommand';
|
|
11
|
+
export type { default as TrackChangesCommand } from './commands/trackchangescommand';
|
|
12
|
+
import './augmentation';
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export{default as TrackChanges}from'./trackchanges';export{default as TrackChangesData}from'./trackchangesdata';export{default as BaseSuggestionThreadView}from'./ui/view/basesuggestionthreadview';
|
|
23
|
+
export{default as TrackChanges}from'./trackchanges';export{default as TrackChangesData}from'./trackchangesdata';export{default as TrackChangesEditing}from'./trackchangesediting';export{default as BaseSuggestionThreadView}from'./ui/view/basesuggestionthreadview';import'./augmentation';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/alignment
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for alignment feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesAlignment extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x342e=['TrackChangesEditing','FORMAT_ALIGN_TO_CENTER','editor','center','commandParams','has','locale','afterInit','change','FORMAT_ALIGN_TO_RIGHT','left','getAttribute','enableCommand','justify','plugins','right','alignment','ltr','contentLanguageDirection','get','format','markBlockFormat','commandName','document','filter','*Format:*\x20%0','AlignmentEditing','model','_descriptionFactory','registerDescriptionCallback','selection','value','FORMAT_ALIGN_TO_LEFT'];(function(_0x3a0d4f,_0x342e19){const _0x167108=function(_0x2d98c8){while(--_0x2d98c8){_0x3a0d4f['push'](_0x3a0d4f['shift']());}};_0x167108(++_0x342e19);}(_0x342e,0x158));const _0x1671=function(_0x3a0d4f,_0x342e19){_0x3a0d4f=_0x3a0d4f-0x0;let _0x167108=_0x342e[_0x3a0d4f];return _0x167108;};import{Plugin as _0x39ecd8}from'ckeditor5/src/core';import{getTranslation as _0x23ca82}from'../utils/common-translations';export default class x extends _0x39ecd8{[_0x1671('0x1a')](){const _0x4e8270=this['editor'],_0x3a1756=_0x4e8270[_0x1671('0x19')];if(!_0x4e8270['plugins'][_0x1671('0x18')](_0x1671('0xc')))return;const _0x9a4daf=_0x4e8270[_0x1671('0x0')][_0x1671('0x5')](_0x1671('0x13'));_0x9a4daf[_0x1671('0x1f')](_0x1671('0x2'),(_0x5827ae,_0x22e7d4={})=>{let _0x374e6a=_0x22e7d4[_0x1671('0x11')];_0x22e7d4[_0x1671('0x11')]||(_0x374e6a=_0x1671('0x3')===_0x4e8270[_0x1671('0x19')][_0x1671('0x4')]?_0x1671('0x1d'):_0x1671('0x1'));const _0x4bc116=Array['from'](this['editor'][_0x1671('0xd')][_0x1671('0x9')][_0x1671('0x10')]['getSelectedBlocks']())[_0x1671('0xa')](_0x2765a2=>function(_0x3cd9b0,_0xb7ad1f,_0x5775ad){const _0x290a9b=_0x3cd9b0[_0x1671('0x1e')](_0x1671('0x2'))||null;return _0xb7ad1f['checkAttribute'](_0x3cd9b0,_0x1671('0x2'))&&_0x5775ad!=_0x290a9b;}(_0x2765a2,this[_0x1671('0x15')][_0x1671('0xd')]['schema'],_0x374e6a));_0x4e8270['model'][_0x1671('0x1b')](()=>{for(const _0x358f88 of _0x4bc116)_0x9a4daf[_0x1671('0x7')](_0x358f88,{'commandName':_0x1671('0x2'),'commandParams':[{'value':_0x374e6a}]});});}),_0x9a4daf[_0x1671('0xe')][_0x1671('0xf')](_0x1243da=>{const {data:_0x57a80c}=_0x1243da;if(_0x57a80c&&'alignment'==_0x57a80c[_0x1671('0x8')]){const _0x83a4f9=_0x57a80c[_0x1671('0x17')][0x0]['value'];return{'type':_0x1671('0x6'),'content':_0x23ca82(_0x3a1756,_0x1671('0xb'),function(_0x318445){switch(_0x318445){case _0x1671('0x1d'):return _0x23ca82(_0x3a1756,_0x1671('0x12'));case'right':return _0x23ca82(_0x3a1756,_0x1671('0x1c'));case _0x1671('0x16'):return _0x23ca82(_0x3a1756,_0x1671('0x14'));case _0x1671('0x20'):return _0x23ca82(_0x3a1756,'FORMAT_JUSTIFY_TEXT');}}(_0x83a4f9))};}});}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/basicstyles
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for basic styles features.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesBasicStyles extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5af4=['slice','FORMAT_CODE','FORMAT_SUPERSCRIPT','plugins','toLowerCase','document','registerDescriptionCallback','subscript','has','locale','StrikethroughEditing','commandParams','underline','*Remove\x20format:*\x20%0','FORMAT_BOLD','strikethrough','editor','afterInit','forceValue','format','code','commandName','bold','BoldEditing','commands','FORMAT_UNDERLINE','superscript','change','TrackChangesEditing','get','from','getRanges','italic','markInlineFormat','enableCommand','FORMAT_SUBSCRIPT','value','FORMAT_ITALIC'];(function(_0x19e00e,_0x5af4cd){const _0x16f47f=function(_0x5d0fd0){while(--_0x5d0fd0){_0x19e00e['push'](_0x19e00e['shift']());}};_0x16f47f(++_0x5af4cd);}(_0x5af4,0xd0));const _0x16f4=function(_0x19e00e,_0x5af4cd){_0x19e00e=_0x19e00e-0x0;let _0x16f47f=_0x5af4[_0x19e00e];return _0x16f47f;};import{Plugin as _0xf26af5}from'ckeditor5/src/core';import{getTranslation as _0x27c442}from'../utils/common-translations';import{getRangesWithAttribute as _0x317481}from'./utils';const Ht=[_0x16f4('0x5'),'ItalicEditing','UnderlineEditing','CodeEditing',_0x16f4('0x1e'),'SubscriptEditing','SuperscriptEditing'];export default class U extends _0xf26af5{[_0x16f4('0x25')](){const _0x5ccc7e=this[_0x16f4('0x24')],_0x2a9bba=_0x5ccc7e['model'],_0x8cf930=_0x5ccc7e[_0x16f4('0x17')]['get'](_0x16f4('0xa')),_0x4c1841=_0x5ccc7e[_0x16f4('0x1d')];for(const _0xfbfbca of Ht){if(!_0x5ccc7e[_0x16f4('0x17')][_0x16f4('0x1c')](_0xfbfbca))continue;const _0x2b5c3d=_0xfbfbca[_0x16f4('0x14')](0x0,-0x7)[_0x16f4('0x18')](),_0xe67ab2=_0x5ccc7e[_0x16f4('0x6')][_0x16f4('0xb')](_0x2b5c3d);_0x8cf930[_0x16f4('0x10')](_0x2b5c3d,(_0x46f108,_0x155007={})=>{const _0x573d1d=_0x2a9bba[_0x16f4('0x19')]['selection'];if(_0x573d1d['isCollapsed'])return void _0x46f108(_0x155007);const _0x4fa9b9=void 0x0!==_0x155007['forceValue']?_0x155007['forceValue']:!_0xe67ab2[_0x16f4('0x12')];_0x2a9bba[_0x16f4('0x9')](()=>{const _0xc7c24e=Array[_0x16f4('0xc')](_0x573d1d[_0x16f4('0xd')]());for(const _0x37daa2 of _0xc7c24e){const _0x24268a=_0x4fa9b9?[_0x37daa2]:_0x317481(_0x2b5c3d,_0x37daa2,_0x2a9bba);for(const _0x3305c6 of _0x24268a)_0x8cf930[_0x16f4('0xf')](_0x3305c6,{'commandName':_0x2b5c3d,'commandParams':[{'forceValue':_0x4fa9b9}]});}});});}function _0x7d297d(_0x379dd4,_0x5c0799){_0x8cf930['_descriptionFactory'][_0x16f4('0x1a')](_0x2d7a9d=>{const {data:_0x16b273}=_0x2d7a9d;if(_0x16b273&&_0x16b273[_0x16f4('0x3')]===_0x379dd4)return _0x16b273[_0x16f4('0x1f')][0x0][_0x16f4('0x0')]?{'type':_0x16f4('0x1'),'content':_0x27c442(_0x4c1841,'*Format:*\x20%0',_0x5c0799)}:{'type':'format','content':_0x27c442(_0x4c1841,_0x16f4('0x21'),_0x5c0799)};});}_0x7d297d(_0x16f4('0x4'),_0x27c442(_0x4c1841,_0x16f4('0x22'))),_0x7d297d(_0x16f4('0xe'),_0x27c442(_0x4c1841,_0x16f4('0x13'))),_0x7d297d(_0x16f4('0x20'),_0x27c442(_0x4c1841,_0x16f4('0x7'))),_0x7d297d(_0x16f4('0x2'),_0x27c442(_0x4c1841,_0x16f4('0x15'))),_0x7d297d(_0x16f4('0x23'),_0x27c442(_0x4c1841,'FORMAT_STRIKETHROUGH')),_0x7d297d(_0x16f4('0x1b'),_0x27c442(_0x4c1841,_0x16f4('0x11'))),_0x7d297d(_0x16f4('0x8'),_0x27c442(_0x4c1841,_0x16f4('0x16')));}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/blockquote
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for block quote feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesBlockQuote extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45d2=['commandName','has','editor','checkChild','commandParams','selection','forceValue','locale','getSelectedBlocks','from','_descriptionFactory','enableCommand','markBlockFormat','ELEMENT_BLOCK_QUOTE','$root','commands','format','TrackChangesEditing','value','change','afterInit','filter','get','plugins','blockQuote','name','parent','*Remove\x20format:*\x20%0','model','BlockQuoteEditing'];(function(_0x1c396d,_0x45d240){const _0x1cf8a4=function(_0x23a358){while(--_0x23a358){_0x1c396d['push'](_0x1c396d['shift']());}};_0x1cf8a4(++_0x45d240);}(_0x45d2,0xda));const _0x1cf8=function(_0x1c396d,_0x45d240){_0x1c396d=_0x1c396d-0x0;let _0x1cf8a4=_0x45d2[_0x1c396d];return _0x1cf8a4;};import{Plugin as _0x5e1a89}from'ckeditor5/src/core';import{getTranslation as _0x449dbd}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x397f46}from'../utils/utils';export default class j extends _0x5e1a89{[_0x1cf8('0xc')](){const _0x4e1233=this[_0x1cf8('0x18')],_0x5cc8b0=_0x4e1233[_0x1cf8('0x1d')];if(!_0x4e1233[_0x1cf8('0xf')][_0x1cf8('0x17')](_0x1cf8('0x15')))return;const _0x4977d1=_0x4e1233[_0x1cf8('0xf')]['get'](_0x1cf8('0x9')),_0x22f77f=this[_0x1cf8('0x18')][_0x1cf8('0x7')][_0x1cf8('0xe')]('blockQuote');_0x4977d1[_0x1cf8('0x3')]('blockQuote',(_0x250ac2,_0x23c0b2={})=>{const _0x502073=this[_0x1cf8('0x18')][_0x1cf8('0x14')]['document'][_0x1cf8('0x1b')],_0x416fdc=_0x23c0b2&&void 0x0!==_0x23c0b2[_0x1cf8('0x1c')]?_0x23c0b2[_0x1cf8('0x1c')]:!_0x22f77f[_0x1cf8('0xa')];let _0x19deee=[];if(_0x416fdc){const _0x3b5445=Array['from'](_0x502073[_0x1cf8('0x0')]())[_0x1cf8('0xd')](_0x102f1c=>Kt(_0x102f1c)||function(_0x29de6d,_0x5378af){const _0x21fb21=_0x5378af[_0x1cf8('0x19')](_0x29de6d[_0x1cf8('0x12')],_0x1cf8('0x10')),_0xbc23c=_0x5378af[_0x1cf8('0x19')]([_0x1cf8('0x6'),_0x1cf8('0x10')],_0x29de6d);return _0x21fb21&&_0xbc23c;}(_0x102f1c,this[_0x1cf8('0x18')][_0x1cf8('0x14')]['schema']));_0x19deee=_0x397f46(_0x3b5445,_0x4e1233[_0x1cf8('0x14')]);}else{const _0x137fca=Array[_0x1cf8('0x1')](_0x502073[_0x1cf8('0x0')]())[_0x1cf8('0xd')](_0x4566bc=>Kt(_0x4566bc));_0x19deee=_0x397f46(_0x137fca,_0x4e1233['model']);}_0x4e1233[_0x1cf8('0x14')][_0x1cf8('0xb')](()=>{for(const _0xfe8f of _0x19deee)_0x4977d1[_0x1cf8('0x4')](_0xfe8f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x416fdc}]});});}),_0x4977d1[_0x1cf8('0x2')]['registerDescriptionCallback'](_0x5748d0=>{const {data:_0x11ac89}=_0x5748d0;if(_0x11ac89&&_0x1cf8('0x10')==_0x11ac89[_0x1cf8('0x16')]){const _0x5c198a=_0x449dbd(_0x5cc8b0,_0x1cf8('0x5'));return _0x11ac89[_0x1cf8('0x1a')][0x0]['forceValue']?{'type':_0x1cf8('0x8'),'content':_0x449dbd(_0x5cc8b0,'*Format:*\x20%0',_0x5c198a)}:{'type':_0x1cf8('0x8'),'content':_0x449dbd(_0x5cc8b0,_0x1cf8('0x13'),_0x5c198a)};}});}}function Kt(_0x81be5d){return'blockQuote'==_0x81be5d['parent'][_0x1cf8('0x11')];}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/ckbox
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for the CKBox feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesCKBox extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ccd=['commands','editor','TrackChangesEditing','ckbox','afterInit','enableCommand','get','plugins'];(function(_0x561742,_0x1ccd9c){const _0x230879=function(_0x3eb63a){while(--_0x3eb63a){_0x561742['push'](_0x561742['shift']());}};_0x230879(++_0x1ccd9c);}(_0x1ccd,0x1cd));const _0x2308=function(_0x561742,_0x1ccd9c){_0x561742=_0x561742-0x0;let _0x230879=_0x1ccd[_0x561742];return _0x230879;};import{Plugin as _0x5b2539}from'ckeditor5/src/core';export default class E extends _0x5b2539{[_0x2308('0x7')](){const _0x57d28c=this[_0x2308('0x4')];_0x57d28c[_0x2308('0x3')][_0x2308('0x1')](_0x2308('0x6'))&&_0x57d28c[_0x2308('0x2')][_0x2308('0x1')](_0x2308('0x5'))[_0x2308('0x0')](_0x2308('0x6'));}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/codeblock
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for code block feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesCodeBlock extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x385b=['label','_descriptionFactory','editor','CodeBlock','config','TrackChangesEditing','selection','locale','registerElementLabel','*Remove\x20format:*\x20%0','parent','registerDescriptionCallback','schema','enableCommand','format','forceValue','blockName','isLimit','model','codeBlock','getSelectedBlocks','indentCodeBlock','get','language','change','outdentCodeBlock','plugins','ELEMENT_CODE_BLOCK','document','filter','from','languages','afterInit','name','commandParams','find','commandName','has'];(function(_0x27ba01,_0x385b6e){const _0x599e12=function(_0x6135a0){while(--_0x6135a0){_0x27ba01['push'](_0x27ba01['shift']());}};_0x599e12(++_0x385b6e);}(_0x385b,0x10b));const _0x599e=function(_0x27ba01,_0x385b6e){_0x27ba01=_0x27ba01-0x0;let _0x599e12=_0x385b[_0x27ba01];return _0x599e12;};import{Plugin as _0x25b7b5}from'ckeditor5/src/core';import{getTranslation as _0x49c88a}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x10293b}from'../utils/utils';export default class O extends _0x25b7b5{[_0x599e('0x1f')](){const _0x2b9195=this[_0x599e('0x1')];if(!_0x2b9195[_0x599e('0x19')][_0x599e('0x24')](_0x599e('0x2')))return;const _0x5dbb98=_0x2b9195['plugins'][_0x599e('0x15')](_0x599e('0x4')),_0x30ef11=_0x2b9195[_0x599e('0x6')],_0x185578=_0x2b9195[_0x599e('0x3')]['get']('codeBlock')[_0x599e('0x1e')],_0x433fda=_0x2b9195['commands']['get']('codeBlock');_0x5dbb98[_0x599e('0xc')](_0x599e('0x14')),_0x5dbb98[_0x599e('0xc')](_0x599e('0x18')),_0x5dbb98['enableCommand'](_0x599e('0x12'),(_0x96fc37,_0x4d7acf={})=>{const _0x26dda5=_0x2b9195[_0x599e('0x11')],_0x34a273=_0x2b9195[_0x599e('0x11')][_0x599e('0x1b')][_0x599e('0x5')],_0x36da16=_0x4d7acf&&void 0x0!==_0x4d7acf[_0x599e('0xe')]?_0x4d7acf['forceValue']:!_0x433fda['value'];let _0x41b202;_0x4d7acf[_0x599e('0x16')]||(_0x4d7acf['language']=_0x185578[0x0][_0x599e('0x16')]),_0x41b202=_0x36da16?Array[_0x599e('0x1d')](_0x34a273[_0x599e('0x13')]())['filter'](_0x190b19=>to(_0x190b19)||function(_0x3046f3,_0x513a66){if(_0x3046f3['is']('rootElement')||_0x513a66[_0x599e('0x10')](_0x3046f3))return!0x1;return _0x513a66['checkChild'](_0x3046f3[_0x599e('0x9')],_0x599e('0x12'));}(_0x190b19,_0x26dda5[_0x599e('0xb')])):Array[_0x599e('0x1d')](_0x34a273['getSelectedBlocks']())[_0x599e('0x1c')](_0x5827c4=>to(_0x5827c4));const _0x14b76f=_0x10293b(_0x41b202,_0x26dda5);_0x26dda5[_0x599e('0x17')](()=>{for(const _0x31c5cc of _0x14b76f)_0x5dbb98['markBlockFormat'](_0x31c5cc,{'commandName':_0x599e('0x12'),'commandParams':[{..._0x4d7acf,'forceValue':_0x36da16}],'formatGroupId':_0x599e('0xf')});});}),(_0x5dbb98[_0x599e('0x0')][_0x599e('0x7')](_0x599e('0x12'),_0x71af95=>_0x49c88a(_0x30ef11,_0x599e('0x1a'),_0x71af95)),_0x5dbb98[_0x599e('0x0')][_0x599e('0xa')](_0x1b4732=>{const _0x49cca4=_0x30ef11['t'],{type:_0x3d5d20,data:_0x4d3b96}=_0x1b4732;if('formatBlock'==_0x3d5d20&&_0x4d3b96&&'codeBlock'==_0x4d3b96[_0x599e('0x23')]){const _0x204476=_0x4d3b96[_0x599e('0x21')][0x0][_0x599e('0x16')],_0x2d591d=_0x49cca4(_0x185578[_0x599e('0x22')](_0x4f99cc=>_0x4f99cc[_0x599e('0x16')]===_0x204476)[_0x599e('0x25')]);return _0x4d3b96[_0x599e('0x21')][0x0][_0x599e('0xe')]?{'type':_0x599e('0xd'),'content':_0x49c88a(_0x30ef11,'*Format:*\x20%0',_0x49c88a(_0x30ef11,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2d591d+')')}:{'type':'format','content':_0x49c88a(_0x30ef11,_0x599e('0x8'),_0x49c88a(_0x30ef11,'ELEMENT_CODE_BLOCK',0x1))};}}));}}function to(_0x39427e){return'codeBlock'==_0x39427e[_0x599e('0x20')];}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/comments
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:comments/comments~Comments comments feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesComments extends Plugin {
|
|
9
|
+
afterInit(): void;
|
|
10
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d2d=['afterInit','CommentsEditing','has','addCommentThread','plugins','enableCommand','editor'];(function(_0x133789,_0x1d2d64){const _0x3f8014=function(_0x1f30d3){while(--_0x1f30d3){_0x133789['push'](_0x133789['shift']());}};_0x3f8014(++_0x1d2d64);}(_0x1d2d,0xb4));const _0x3f80=function(_0x133789,_0x1d2d64){_0x133789=_0x133789-0x0;let _0x3f8014=_0x1d2d[_0x133789];return _0x3f8014;};import{Plugin as _0x2cc8f4}from'ckeditor5/src/core';export default class F extends _0x2cc8f4{[_0x3f80('0x2')](){const _0x1c3713=this[_0x3f80('0x1')];if(!_0x1c3713['plugins'][_0x3f80('0x4')](_0x3f80('0x3')))return;_0x1c3713[_0x3f80('0x6')]['get']('TrackChangesEditing')[_0x3f80('0x0')](_0x3f80('0x5'));}}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/deletecommand
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:typing/inputcommand~DeleteCommand delete command}. Also
|
|
7
|
+
* provides integration {@link module:engine/model/model~Model#deleteContent} as many features use it internally.
|
|
8
|
+
*/
|
|
9
|
+
export default class TrackChangesDeleteCommand extends Plugin {
|
|
10
|
+
static get requires(): PluginDependencies;
|
|
11
|
+
init(): void;
|
|
12
|
+
}
|