@ckeditor/ckeditor5-restricted-editing 45.2.1-alpha.9 → 46.0.0-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-restricted-editing",
3
- "version": "45.2.1-alpha.9",
3
+ "version": "46.0.0-alpha.0",
4
4
  "description": "Restricted editing feature for CKEditor 5 editors.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,12 +12,12 @@
12
12
  "type": "module",
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-core": "45.2.1-alpha.9",
16
- "@ckeditor/ckeditor5-engine": "45.2.1-alpha.9",
17
- "@ckeditor/ckeditor5-icons": "45.2.1-alpha.9",
18
- "@ckeditor/ckeditor5-ui": "45.2.1-alpha.9",
19
- "@ckeditor/ckeditor5-utils": "45.2.1-alpha.9",
20
- "ckeditor5": "45.2.1-alpha.9"
15
+ "@ckeditor/ckeditor5-core": "46.0.0-alpha.0",
16
+ "@ckeditor/ckeditor5-engine": "46.0.0-alpha.0",
17
+ "@ckeditor/ckeditor5-icons": "46.0.0-alpha.0",
18
+ "@ckeditor/ckeditor5-ui": "46.0.0-alpha.0",
19
+ "@ckeditor/ckeditor5-utils": "46.0.0-alpha.0",
20
+ "ckeditor5": "46.0.0-alpha.0"
21
21
  },
22
22
  "author": "CKSource (http://cksource.com/)",
23
23
  "license": "SEE LICENSE IN LICENSE.md",
package/src/index.d.ts CHANGED
@@ -5,13 +5,15 @@
5
5
  /**
6
6
  * @module restricted-editing
7
7
  */
8
- export { default as RestrictedEditingMode } from './restrictededitingmode.js';
9
- export { default as RestrictedEditingModeEditing } from './restrictededitingmodeediting.js';
10
- export { default as RestrictedEditingModeUI } from './restrictededitingmodeui.js';
11
- export { default as StandardEditingMode } from './standardeditingmode.js';
12
- export { default as StandardEditingModeEditing } from './standardeditingmodeediting.js';
13
- export { default as StandardEditingModeUI } from './standardeditingmodeui.js';
8
+ export { RestrictedEditingMode } from './restrictededitingmode.js';
9
+ export { RestrictedEditingModeEditing } from './restrictededitingmodeediting.js';
10
+ export { RestrictedEditingModeUI } from './restrictededitingmodeui.js';
11
+ export { RestrictedEditingExceptionCommand, type RestrictedEditingExceptionCommandParams } from './restrictededitingexceptioncommand.js';
12
+ export { RestrictedEditingModeNavigationCommand, type RestrictedEditingModeNavigationDirection } from './restrictededitingmodenavigationcommand.js';
13
+ export { StandardEditingMode } from './standardeditingmode.js';
14
+ export { StandardEditingModeEditing } from './standardeditingmodeediting.js';
15
+ export { StandardEditingModeUI } from './standardeditingmodeui.js';
14
16
  export type { RestrictedEditingConfig } from './restrictededitingconfig.js';
15
- export type { default as RestrictedEditingExceptionCommand } from './restrictededitingexceptioncommand.js';
16
- export type { default as RestrictedEditingModeNavigationCommand } from './restrictededitingmodenavigationcommand.js';
17
+ export { setupExceptionHighlighting as _setupRestrictedEditingExceptionHighlighting, resurrectCollapsedMarkerPostFixer as _resurrectRestrictedEditingCollapsedMarkerPostFixer, extendMarkerOnTypingPostFixer as _extendRestrictedEditingMarkerOnTypingPostFixer, upcastHighlightToMarker as _upcastRestrictedEditingHighlightToMarker } from './restrictededitingmode/converters.js';
18
+ export { getMarkerAtPosition as _getRestrictedEditingMarkerAtPosition, isPositionInRangeBoundaries as _isRestrictedEditingPositionInRangeBoundaries, isSelectionInMarker as _isRestrictedEditingSelectionInMarker } from './restrictededitingmode/utils.js';
17
19
  import './augmentation.js';
package/src/index.js CHANGED
@@ -5,10 +5,14 @@
5
5
  /**
6
6
  * @module restricted-editing
7
7
  */
8
- export { default as RestrictedEditingMode } from './restrictededitingmode.js';
9
- export { default as RestrictedEditingModeEditing } from './restrictededitingmodeediting.js';
10
- export { default as RestrictedEditingModeUI } from './restrictededitingmodeui.js';
11
- export { default as StandardEditingMode } from './standardeditingmode.js';
12
- export { default as StandardEditingModeEditing } from './standardeditingmodeediting.js';
13
- export { default as StandardEditingModeUI } from './standardeditingmodeui.js';
8
+ export { RestrictedEditingMode } from './restrictededitingmode.js';
9
+ export { RestrictedEditingModeEditing } from './restrictededitingmodeediting.js';
10
+ export { RestrictedEditingModeUI } from './restrictededitingmodeui.js';
11
+ export { RestrictedEditingExceptionCommand } from './restrictededitingexceptioncommand.js';
12
+ export { RestrictedEditingModeNavigationCommand } from './restrictededitingmodenavigationcommand.js';
13
+ export { StandardEditingMode } from './standardeditingmode.js';
14
+ export { StandardEditingModeEditing } from './standardeditingmodeediting.js';
15
+ export { StandardEditingModeUI } from './standardeditingmodeui.js';
16
+ export { setupExceptionHighlighting as _setupRestrictedEditingExceptionHighlighting, resurrectCollapsedMarkerPostFixer as _resurrectRestrictedEditingCollapsedMarkerPostFixer, extendMarkerOnTypingPostFixer as _extendRestrictedEditingMarkerOnTypingPostFixer, upcastHighlightToMarker as _upcastRestrictedEditingHighlightToMarker } from './restrictededitingmode/converters.js';
17
+ export { getMarkerAtPosition as _getRestrictedEditingMarkerAtPosition, isPositionInRangeBoundaries as _isRestrictedEditingPositionInRangeBoundaries, isSelectionInMarker as _isRestrictedEditingSelectionInMarker } from './restrictededitingmode/utils.js';
14
18
  import './augmentation.js';
@@ -9,7 +9,7 @@ import { Command } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The command that toggles exceptions from the restricted editing on text.
11
11
  */
12
- export default class RestrictedEditingExceptionCommand extends Command {
12
+ export declare class RestrictedEditingExceptionCommand extends Command {
13
13
  /**
14
14
  * A flag indicating whether the command is active
15
15
  *
@@ -9,7 +9,7 @@ import { Command } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The command that toggles exceptions from the restricted editing on text.
11
11
  */
12
- export default class RestrictedEditingExceptionCommand extends Command {
12
+ export class RestrictedEditingExceptionCommand extends Command {
13
13
  /**
14
14
  * @inheritDoc
15
15
  */
@@ -18,20 +18,27 @@ import { type MatcherPattern, type ModelPostFixer, type UpcastDispatcher } from
18
18
  * * The class is added in the view post-fixer, after other changes in the model tree are converted to the view.
19
19
  *
20
20
  * This way, adding and removing the highlight does not interfere with conversion.
21
+ *
22
+ * @internal
21
23
  */
22
24
  export declare function setupExceptionHighlighting(editor: Editor): void;
23
25
  /**
24
26
  * A post-fixer that prevents removing a collapsed marker from the document.
27
+ *
28
+ * @internal
25
29
  */
26
30
  export declare function resurrectCollapsedMarkerPostFixer(editor: Editor): ModelPostFixer;
27
31
  /**
28
32
  * A post-fixer that extends a marker when the user types on its boundaries.
33
+ *
34
+ * @internal
29
35
  */
30
36
  export declare function extendMarkerOnTypingPostFixer(editor: Editor): ModelPostFixer;
31
37
  /**
32
38
  * A view highlight-to-marker conversion helper.
33
39
  *
34
40
  * @param config Conversion configuration.
41
+ * @internal
35
42
  */
36
43
  export declare function upcastHighlightToMarker(config: {
37
44
  view: MatcherPattern;
@@ -16,6 +16,8 @@ const HIGHLIGHT_CLASS = 'restricted-editing-exception_selected';
16
16
  * * The class is added in the view post-fixer, after other changes in the model tree are converted to the view.
17
17
  *
18
18
  * This way, adding and removing the highlight does not interfere with conversion.
19
+ *
20
+ * @internal
19
21
  */
20
22
  export function setupExceptionHighlighting(editor) {
21
23
  const view = editor.editing.view;
@@ -53,6 +55,8 @@ export function setupExceptionHighlighting(editor) {
53
55
  }
54
56
  /**
55
57
  * A post-fixer that prevents removing a collapsed marker from the document.
58
+ *
59
+ * @internal
56
60
  */
57
61
  export function resurrectCollapsedMarkerPostFixer(editor) {
58
62
  // This post-fixer shouldn't be necessary after https://github.com/ckeditor/ckeditor5/issues/5778.
@@ -71,6 +75,8 @@ export function resurrectCollapsedMarkerPostFixer(editor) {
71
75
  }
72
76
  /**
73
77
  * A post-fixer that extends a marker when the user types on its boundaries.
78
+ *
79
+ * @internal
74
80
  */
75
81
  export function extendMarkerOnTypingPostFixer(editor) {
76
82
  // This post-fixer shouldn't be necessary after https://github.com/ckeditor/ckeditor5/issues/5778.
@@ -90,6 +96,7 @@ export function extendMarkerOnTypingPostFixer(editor) {
90
96
  * A view highlight-to-marker conversion helper.
91
97
  *
92
98
  * @param config Conversion configuration.
99
+ * @internal
93
100
  */
94
101
  export function upcastHighlightToMarker(config) {
95
102
  return (dispatcher) => dispatcher.on('element:span', (evt, data, conversionApi) => {
@@ -3,7 +3,7 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import type { Editor } from 'ckeditor5/src/core.js';
6
- import type { DocumentSelection, Marker, Position, Range } from 'ckeditor5/src/engine.js';
6
+ import type { ModelDocumentSelection, Marker, ModelPosition, ModelRange } from 'ckeditor5/src/engine.js';
7
7
  /**
8
8
  * @module restricted-editing/restrictededitingmode/utils
9
9
  */
@@ -11,12 +11,16 @@ import type { DocumentSelection, Marker, Position, Range } from 'ckeditor5/src/e
11
11
  * Returns a single "restricted-editing-exception" marker at a given position. Contrary to
12
12
  * {@link module:engine/model/markercollection~MarkerCollection#getMarkersAtPosition}, it returnd a marker also when the postion is
13
13
  * equal to one of the marker's start or end positions.
14
+ *
15
+ * @internal
14
16
  */
15
- export declare function getMarkerAtPosition(editor: Editor, position: Position): Marker | undefined;
17
+ export declare function getMarkerAtPosition(editor: Editor, position: ModelPosition): Marker | undefined;
16
18
  /**
17
19
  * Checks if the position is fully contained in the range. Positions equal to range start or end are considered "in".
20
+ *
21
+ * @internal
18
22
  */
19
- export declare function isPositionInRangeBoundaries(range: Range, position: Position): boolean;
23
+ export declare function isPositionInRangeBoundaries(range: ModelRange, position: ModelPosition): boolean;
20
24
  /**
21
25
  * Checks if the selection is fully contained in the marker. Positions on marker boundaries are considered "in".
22
26
  *
@@ -26,5 +30,7 @@ export declare function isPositionInRangeBoundaries(range: Range, position: Posi
26
30
  * <marker>f[oo</marker> ba]r -> false
27
31
  * <marker>foo</marker> []bar -> false
28
32
  * ```
33
+ *
34
+ * @internal
29
35
  */
30
- export declare function isSelectionInMarker(selection: DocumentSelection, marker?: Marker): boolean;
36
+ export declare function isSelectionInMarker(selection: ModelDocumentSelection, marker?: Marker): boolean;
@@ -9,6 +9,8 @@
9
9
  * Returns a single "restricted-editing-exception" marker at a given position. Contrary to
10
10
  * {@link module:engine/model/markercollection~MarkerCollection#getMarkersAtPosition}, it returnd a marker also when the postion is
11
11
  * equal to one of the marker's start or end positions.
12
+ *
13
+ * @internal
12
14
  */
13
15
  export function getMarkerAtPosition(editor, position) {
14
16
  for (const marker of editor.model.markers) {
@@ -22,6 +24,8 @@ export function getMarkerAtPosition(editor, position) {
22
24
  }
23
25
  /**
24
26
  * Checks if the position is fully contained in the range. Positions equal to range start or end are considered "in".
27
+ *
28
+ * @internal
25
29
  */
26
30
  export function isPositionInRangeBoundaries(range, position) {
27
31
  return (range.containsPosition(position) ||
@@ -37,6 +41,8 @@ export function isPositionInRangeBoundaries(range, position) {
37
41
  * <marker>f[oo</marker> ba]r -> false
38
42
  * <marker>foo</marker> []bar -> false
39
43
  * ```
44
+ *
45
+ * @internal
40
46
  */
41
47
  export function isSelectionInMarker(selection, marker) {
42
48
  if (!marker) {
@@ -6,8 +6,8 @@
6
6
  * @module restricted-editing/restrictededitingmode
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import RestrictedEditingModeEditing from './restrictededitingmodeediting.js';
10
- import RestrictedEditingModeUI from './restrictededitingmodeui.js';
9
+ import { RestrictedEditingModeEditing } from './restrictededitingmodeediting.js';
10
+ import { RestrictedEditingModeUI } from './restrictededitingmodeui.js';
11
11
  import '../theme/restrictedediting.css';
12
12
  /**
13
13
  * The restricted editing mode plugin.
@@ -17,7 +17,7 @@ import '../theme/restrictedediting.css';
17
17
  * * The {@link module:restricted-editing/restrictededitingmodeediting~RestrictedEditingModeEditing restricted mode editing feature}.
18
18
  * * The {@link module:restricted-editing/restrictededitingmodeui~RestrictedEditingModeUI restricted mode UI feature}.
19
19
  */
20
- export default class RestrictedEditingMode extends Plugin {
20
+ export declare class RestrictedEditingMode extends Plugin {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -6,8 +6,8 @@
6
6
  * @module restricted-editing/restrictededitingmode
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import RestrictedEditingModeEditing from './restrictededitingmodeediting.js';
10
- import RestrictedEditingModeUI from './restrictededitingmodeui.js';
9
+ import { RestrictedEditingModeEditing } from './restrictededitingmodeediting.js';
10
+ import { RestrictedEditingModeUI } from './restrictededitingmodeui.js';
11
11
  import '../theme/restrictedediting.css';
12
12
  /**
13
13
  * The restricted editing mode plugin.
@@ -17,7 +17,7 @@ import '../theme/restrictedediting.css';
17
17
  * * The {@link module:restricted-editing/restrictededitingmodeediting~RestrictedEditingModeEditing restricted mode editing feature}.
18
18
  * * The {@link module:restricted-editing/restrictededitingmodeui~RestrictedEditingModeUI restricted mode UI feature}.
19
19
  */
20
- export default class RestrictedEditingMode extends Plugin {
20
+ export class RestrictedEditingMode extends Plugin {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -13,7 +13,7 @@ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
13
13
  * * It registers the `'goToPreviousRestrictedEditingException'` and `'goToNextRestrictedEditingException'` commands.
14
14
  * * It also enables highlighting exception markers that are selected.
15
15
  */
16
- export default class RestrictedEditingModeEditing extends Plugin {
16
+ export declare class RestrictedEditingModeEditing extends Plugin {
17
17
  /**
18
18
  * Command names that are enabled outside the non-restricted regions.
19
19
  */
@@ -6,7 +6,7 @@
6
6
  * @module restricted-editing/restrictededitingmodeediting
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import RestrictedEditingModeNavigationCommand from './restrictededitingmodenavigationcommand.js';
9
+ import { RestrictedEditingModeNavigationCommand } from './restrictededitingmodenavigationcommand.js';
10
10
  import { extendMarkerOnTypingPostFixer, resurrectCollapsedMarkerPostFixer, setupExceptionHighlighting, upcastHighlightToMarker } from './restrictededitingmode/converters.js';
11
11
  import { getMarkerAtPosition, isSelectionInMarker } from './restrictededitingmode/utils.js';
12
12
  const COMMAND_FORCE_DISABLE_ID = 'RestrictedEditingMode';
@@ -17,7 +17,7 @@ const COMMAND_FORCE_DISABLE_ID = 'RestrictedEditingMode';
17
17
  * * It registers the `'goToPreviousRestrictedEditingException'` and `'goToNextRestrictedEditingException'` commands.
18
18
  * * It also enables highlighting exception markers that are selected.
19
19
  */
20
- export default class RestrictedEditingModeEditing extends Plugin {
20
+ export class RestrictedEditingModeEditing extends Plugin {
21
21
  /**
22
22
  * Command names that are enabled outside the non-restricted regions.
23
23
  */
@@ -6,7 +6,7 @@ import { Command, type Editor } from 'ckeditor5/src/core.js';
6
6
  /**
7
7
  * The command that allows navigation across the exceptions in the edited document.
8
8
  */
9
- export default class RestrictedEditingModeNavigationCommand extends Command {
9
+ export declare class RestrictedEditingModeNavigationCommand extends Command {
10
10
  /**
11
11
  * The direction of the command.
12
12
  */
@@ -6,7 +6,7 @@ import { Command } from 'ckeditor5/src/core.js';
6
6
  /**
7
7
  * The command that allows navigation across the exceptions in the edited document.
8
8
  */
9
- export default class RestrictedEditingModeNavigationCommand extends Command {
9
+ export class RestrictedEditingModeNavigationCommand extends Command {
10
10
  /**
11
11
  * The direction of the command.
12
12
  */
@@ -12,7 +12,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
12
12
  * It introduces the `'restrictedEditing'` dropdown that offers tools to navigate between exceptions across
13
13
  * the document.
14
14
  */
15
- export default class RestrictedEditingModeUI extends Plugin {
15
+ export declare class RestrictedEditingModeUI extends Plugin {
16
16
  /**
17
17
  * @inheritDoc
18
18
  */
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import { IconContentLock } from 'ckeditor5/src/icons.js';
10
- import { ViewModel, createDropdown, addListToDropdown, MenuBarMenuListItemButtonView, MenuBarMenuView, MenuBarMenuListView, MenuBarMenuListItemView } from 'ckeditor5/src/ui.js';
10
+ import { UIModel, createDropdown, addListToDropdown, MenuBarMenuListItemButtonView, MenuBarMenuView, MenuBarMenuListView, MenuBarMenuListItemView } from 'ckeditor5/src/ui.js';
11
11
  import { Collection } from 'ckeditor5/src/utils.js';
12
12
  /**
13
13
  * The restricted editing mode UI feature.
@@ -15,7 +15,7 @@ import { Collection } from 'ckeditor5/src/utils.js';
15
15
  * It introduces the `'restrictedEditing'` dropdown that offers tools to navigate between exceptions across
16
16
  * the document.
17
17
  */
18
- export default class RestrictedEditingModeUI extends Plugin {
18
+ export class RestrictedEditingModeUI extends Plugin {
19
19
  /**
20
20
  * @inheritDoc
21
21
  */
@@ -112,7 +112,7 @@ export default class RestrictedEditingModeUI extends Plugin {
112
112
  const command = editor.commands.get(commandName);
113
113
  const definition = {
114
114
  type: 'button',
115
- model: new ViewModel({
115
+ model: new UIModel({
116
116
  label,
117
117
  withText: true,
118
118
  keystroke,
@@ -6,8 +6,8 @@
6
6
  * @module restricted-editing/standardeditingmode
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import StandardEditingModeEditing from './standardeditingmodeediting.js';
10
- import StandardEditingModeUI from './standardeditingmodeui.js';
9
+ import { StandardEditingModeEditing } from './standardeditingmodeediting.js';
10
+ import { StandardEditingModeUI } from './standardeditingmodeui.js';
11
11
  import '../theme/restrictedediting.css';
12
12
  /**
13
13
  * The standard editing mode plugin.
@@ -17,7 +17,7 @@ import '../theme/restrictedediting.css';
17
17
  * * The {@link module:restricted-editing/standardeditingmodeediting~StandardEditingModeEditing standard mode editing feature}.
18
18
  * * The {@link module:restricted-editing/standardeditingmodeui~StandardEditingModeUI standard mode UI feature}.
19
19
  */
20
- export default class StandardEditingMode extends Plugin {
20
+ export declare class StandardEditingMode extends Plugin {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -6,8 +6,8 @@
6
6
  * @module restricted-editing/standardeditingmode
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import StandardEditingModeEditing from './standardeditingmodeediting.js';
10
- import StandardEditingModeUI from './standardeditingmodeui.js';
9
+ import { StandardEditingModeEditing } from './standardeditingmodeediting.js';
10
+ import { StandardEditingModeUI } from './standardeditingmodeui.js';
11
11
  import '../theme/restrictedediting.css';
12
12
  /**
13
13
  * The standard editing mode plugin.
@@ -17,7 +17,7 @@ import '../theme/restrictedediting.css';
17
17
  * * The {@link module:restricted-editing/standardeditingmodeediting~StandardEditingModeEditing standard mode editing feature}.
18
18
  * * The {@link module:restricted-editing/standardeditingmodeui~StandardEditingModeUI standard mode UI feature}.
19
19
  */
20
- export default class StandardEditingMode extends Plugin {
20
+ export class StandardEditingMode extends Plugin {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -13,7 +13,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
13
13
  * a `<span>` element with the `restricted-editing-exception` CSS class.
14
14
  * * It registers the `'restrictedEditingException'` command.
15
15
  */
16
- export default class StandardEditingModeEditing extends Plugin {
16
+ export declare class StandardEditingModeEditing extends Plugin {
17
17
  /**
18
18
  * @inheritDoc
19
19
  */
@@ -6,7 +6,7 @@
6
6
  * @module restricted-editing/standardeditingmodeediting
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import RestrictedEditingExceptionCommand from './restrictededitingexceptioncommand.js';
9
+ import { RestrictedEditingExceptionCommand } from './restrictededitingexceptioncommand.js';
10
10
  /**
11
11
  * The standard editing mode editing feature.
12
12
  *
@@ -14,7 +14,7 @@ import RestrictedEditingExceptionCommand from './restrictededitingexceptioncomma
14
14
  * a `<span>` element with the `restricted-editing-exception` CSS class.
15
15
  * * It registers the `'restrictedEditingException'` command.
16
16
  */
17
- export default class StandardEditingModeEditing extends Plugin {
17
+ export class StandardEditingModeEditing extends Plugin {
18
18
  /**
19
19
  * @inheritDoc
20
20
  */
@@ -11,7 +11,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
11
11
  *
12
12
  * It introduces the `'restrictedEditingException'` button that marks text as unrestricted for editing.
13
13
  */
14
- export default class StandardEditingModeUI extends Plugin {
14
+ export declare class StandardEditingModeUI extends Plugin {
15
15
  /**
16
16
  * @inheritDoc
17
17
  */
@@ -13,7 +13,7 @@ import { ButtonView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
13
13
  *
14
14
  * It introduces the `'restrictedEditingException'` button that marks text as unrestricted for editing.
15
15
  */
16
- export default class StandardEditingModeUI extends Plugin {
16
+ export class StandardEditingModeUI extends Plugin {
17
17
  /**
18
18
  * @inheritDoc
19
19
  */