@progress/kendo-angular-editor 19.1.2-develop.1 → 19.1.2-develop.3

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.
Files changed (108) hide show
  1. package/common/apply-to-word-options.d.ts +12 -6
  2. package/common/commands.d.ts +7 -6
  3. package/common/css-settings.interface.d.ts +13 -4
  4. package/common/font-family-item.interface.d.ts +11 -3
  5. package/common/font-size-item.interface.d.ts +11 -3
  6. package/common/format-item.interface.d.ts +11 -3
  7. package/common/paste-cleanup-settings.d.ts +29 -24
  8. package/common/plugins-function.d.ts +7 -6
  9. package/common/resizable-options.interface.d.ts +15 -5
  10. package/directives.d.ts +1 -1
  11. package/editor.component.d.ts +36 -27
  12. package/editor.module.d.ts +5 -4
  13. package/esm2022/common/error-messages.mjs +1 -1
  14. package/esm2022/directives.mjs +1 -1
  15. package/esm2022/editor.component.mjs +36 -27
  16. package/esm2022/editor.module.mjs +5 -4
  17. package/esm2022/localization/custom-messages.component.mjs +10 -1
  18. package/esm2022/package-metadata.mjs +2 -2
  19. package/esm2022/preventable-events/paste-event.mjs +4 -4
  20. package/esm2022/tools/alignment/editor-align-center-button.directive.mjs +3 -3
  21. package/esm2022/tools/alignment/editor-align-justify-button.directive.mjs +3 -3
  22. package/esm2022/tools/alignment/editor-align-left-button.directive.mjs +3 -3
  23. package/esm2022/tools/alignment/editor-align-right-button.directive.mjs +3 -3
  24. package/esm2022/tools/blockquote/editor-blockquote-button.directive.mjs +2 -3
  25. package/esm2022/tools/colorpicker/editor-back-color.directive.mjs +3 -4
  26. package/esm2022/tools/colorpicker/editor-colorpicker.component.mjs +20 -10
  27. package/esm2022/tools/colorpicker/editor-fore-color.directive.mjs +3 -4
  28. package/esm2022/tools/editor-clean-formatting-button.directive.mjs +3 -3
  29. package/esm2022/tools/fontfamily/editor-fontfamily.component.mjs +4 -5
  30. package/esm2022/tools/fontsize/editor-fontsize.component.mjs +6 -6
  31. package/esm2022/tools/format/editor-format.component.mjs +6 -6
  32. package/esm2022/tools/history/editor-redo-button.directive.mjs +3 -3
  33. package/esm2022/tools/history/editor-undo-button.directive.mjs +3 -3
  34. package/esm2022/tools/image/editor-insert-image-button.directive.mjs +2 -2
  35. package/esm2022/tools/indentation/editor-indent-button.directive.mjs +3 -4
  36. package/esm2022/tools/indentation/editor-outdent-button.directive.mjs +3 -4
  37. package/esm2022/tools/link/editor-create-link-button.directive.mjs +3 -4
  38. package/esm2022/tools/link/editor-insert-file-button.directive.mjs +2 -3
  39. package/esm2022/tools/link/editor-unlink-button.directive.mjs +3 -4
  40. package/esm2022/tools/list/editor-insert-ordered-list-button.directive.mjs +3 -4
  41. package/esm2022/tools/list/editor-insert-unordered-list-button.directive.mjs +3 -3
  42. package/esm2022/tools/print/editor-print-button.directive.mjs +3 -3
  43. package/esm2022/tools/select-all/select-all-button.directive.mjs +2 -2
  44. package/esm2022/tools/source/editor-view-source-button.directive.mjs +2 -2
  45. package/esm2022/tools/tables/editor-add-column-after-button.directive.mjs +3 -3
  46. package/esm2022/tools/tables/editor-add-column-before-button.directive.mjs +3 -3
  47. package/esm2022/tools/tables/editor-add-row-after-button.directive.mjs +3 -3
  48. package/esm2022/tools/tables/editor-add-row-before-button.directive.mjs +3 -3
  49. package/esm2022/tools/tables/editor-delete-column-button.directive.mjs +3 -3
  50. package/esm2022/tools/tables/editor-delete-row-button.directive.mjs +3 -3
  51. package/esm2022/tools/tables/editor-delete-table-button.directive.mjs +3 -3
  52. package/esm2022/tools/tables/editor-insert-table-button.component.mjs +3 -1
  53. package/esm2022/tools/tables/editor-merge-cells-button.directive.mjs +4 -4
  54. package/esm2022/tools/tables/editor-split-cell-button.directive.mjs +4 -4
  55. package/esm2022/tools/typographical-emphasis/editor-bold-button.directive.mjs +3 -3
  56. package/esm2022/tools/typographical-emphasis/editor-italic-button.directive.mjs +3 -3
  57. package/esm2022/tools/typographical-emphasis/editor-strikethrough-button.directive.mjs +3 -3
  58. package/esm2022/tools/typographical-emphasis/editor-subscript-button.directive.mjs +3 -3
  59. package/esm2022/tools/typographical-emphasis/editor-superscript-button.directive.mjs +3 -3
  60. package/esm2022/tools/typographical-emphasis/editor-underline-button.directive.mjs +3 -3
  61. package/esm2022/util.mjs +7 -6
  62. package/fesm2022/progress-kendo-angular-editor.mjs +210 -188
  63. package/localization/custom-messages.component.d.ts +10 -1
  64. package/package.json +15 -15
  65. package/preventable-events/paste-event.d.ts +4 -4
  66. package/schematics/ngAdd/index.js +4 -4
  67. package/tools/alignment/editor-align-center-button.directive.d.ts +3 -3
  68. package/tools/alignment/editor-align-justify-button.directive.d.ts +3 -3
  69. package/tools/alignment/editor-align-left-button.directive.d.ts +3 -3
  70. package/tools/alignment/editor-align-right-button.directive.d.ts +3 -3
  71. package/tools/blockquote/editor-blockquote-button.directive.d.ts +2 -3
  72. package/tools/colorpicker/editor-back-color.directive.d.ts +3 -4
  73. package/tools/colorpicker/editor-colorpicker.component.d.ts +20 -10
  74. package/tools/colorpicker/editor-fore-color.directive.d.ts +3 -4
  75. package/tools/editor-clean-formatting-button.directive.d.ts +3 -3
  76. package/tools/fontfamily/editor-fontfamily.component.d.ts +4 -5
  77. package/tools/fontsize/editor-fontsize.component.d.ts +6 -6
  78. package/tools/format/editor-format.component.d.ts +6 -6
  79. package/tools/history/editor-redo-button.directive.d.ts +3 -3
  80. package/tools/history/editor-undo-button.directive.d.ts +3 -3
  81. package/tools/image/editor-insert-image-button.directive.d.ts +2 -2
  82. package/tools/indentation/editor-indent-button.directive.d.ts +3 -4
  83. package/tools/indentation/editor-outdent-button.directive.d.ts +3 -4
  84. package/tools/link/editor-create-link-button.directive.d.ts +3 -4
  85. package/tools/link/editor-insert-file-button.directive.d.ts +2 -3
  86. package/tools/link/editor-unlink-button.directive.d.ts +3 -4
  87. package/tools/list/editor-insert-ordered-list-button.directive.d.ts +3 -4
  88. package/tools/list/editor-insert-unordered-list-button.directive.d.ts +3 -3
  89. package/tools/print/editor-print-button.directive.d.ts +3 -3
  90. package/tools/select-all/select-all-button.directive.d.ts +2 -2
  91. package/tools/source/editor-view-source-button.directive.d.ts +2 -2
  92. package/tools/tables/editor-add-column-after-button.directive.d.ts +3 -3
  93. package/tools/tables/editor-add-column-before-button.directive.d.ts +3 -3
  94. package/tools/tables/editor-add-row-after-button.directive.d.ts +3 -3
  95. package/tools/tables/editor-add-row-before-button.directive.d.ts +3 -3
  96. package/tools/tables/editor-delete-column-button.directive.d.ts +3 -3
  97. package/tools/tables/editor-delete-row-button.directive.d.ts +3 -3
  98. package/tools/tables/editor-delete-table-button.directive.d.ts +3 -3
  99. package/tools/tables/editor-insert-table-button.component.d.ts +3 -1
  100. package/tools/tables/editor-merge-cells-button.directive.d.ts +4 -4
  101. package/tools/tables/editor-split-cell-button.directive.d.ts +4 -4
  102. package/tools/typographical-emphasis/editor-bold-button.directive.d.ts +3 -3
  103. package/tools/typographical-emphasis/editor-italic-button.directive.d.ts +3 -3
  104. package/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +3 -3
  105. package/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +3 -3
  106. package/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +3 -3
  107. package/tools/typographical-emphasis/editor-underline-button.directive.d.ts +3 -3
  108. package/util.d.ts +7 -6
@@ -14,9 +14,8 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Insert File** tool
18
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
17
+ * Configures a ToolBarButtonComponent as an Editor **Insert File** tool ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
18
+ * The directive sets the SVG icon and `click` event handlers for the button.
20
19
  *
21
20
  * @example
22
21
  * ```html
@@ -14,10 +14,9 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Unlink** tool
18
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
17
+ * Configures a ToolBarButtonComponent as an Editor **Unlink** tool ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
18
+ * The directive sets the SVG icon and `click` event handlers for the button.
19
+ * The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
21
20
  *
22
21
  * @example
23
22
  * ```html
@@ -14,10 +14,9 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **InsertOrderedList** tool
18
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
17
+ * Configures a ToolBarButtonComponent as an Editor **InsertOrderedList** tool ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
18
+ * The directive sets the SVG icon and `click` event handlers for the button.
19
+ * The directive also updates the `selected` state of the button based on the cursor position in the editing area.
21
20
  *
22
21
  * @example
23
22
  * ```html
@@ -14,10 +14,10 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **InsertUnorderedList** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **InsertUnorderedList** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
19
+ * This directive sets the SVG icon and `click` event handlers for the button.
20
+ * It also updates the `selected` state of the button based on the cursor position in the editing area.
21
21
  *
22
22
  * @example
23
23
  * ```html
@@ -15,11 +15,11 @@ import * as i2 from "../../localization/editor-localization.service";
15
15
  import * as i3 from "../../common/provider.service";
16
16
  import * as i4 from "../tools.service";
17
17
  /**
18
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Print** tool
18
+ * Configures a ToolBarButtonComponent as an Editor **Print** tool
19
19
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
20
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
+ * This directive sets the SVG icon and `click` event handlers for the button.
21
21
  *
22
- * > The Editor Print tool is supported in the default [`iframe`](slug:api_editor_editorcomponent#iframe) mode only.
22
+ * The Editor Print tool works only in the default [`iframe`](slug:api_editor_editorcomponent#iframe) mode.
23
23
  *
24
24
  * @example
25
25
  * ```html
@@ -14,9 +14,9 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **SelectAll** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **SelectAll** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
19
+ * This directive sets the SVG icon and `click` event handlers for the button.
20
20
  *
21
21
  * @example
22
22
  * ```html
@@ -14,9 +14,9 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **ViewSource** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **ViewSource** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
19
+ * The directive sets the SVG icon and `click` event handlers for the button.
20
20
  *
21
21
  * @example
22
22
  * ```html
@@ -14,10 +14,10 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **AddColumnAfter** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **AddColumnAfter** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
19
+ * The directive sets the SVG icon and `click` event handlers for the button.
20
+ * The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
21
21
  *
22
22
  * @example
23
23
  * ```html
@@ -14,10 +14,10 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **AddColumnBefore** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **AddColumnBefore** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
19
+ * The directive sets the SVG icon and `click` event handlers for the button.
20
+ * The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
21
21
  *
22
22
  * @example
23
23
  * ```html
@@ -14,10 +14,10 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **AddRowAfter** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **AddRowAfter** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
19
+ * The directive sets the SVG icon and `click` event handlers for the button.
20
+ * The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
21
21
  *
22
22
  * @example
23
23
  * ```html
@@ -14,10 +14,10 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **AddRowBefore** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **AddRowBefore** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
19
+ * The directive sets the SVG icon and `click` event handlers for the button.
20
+ * The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
21
21
  *
22
22
  * @example
23
23
  * ```html
@@ -14,10 +14,10 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **DeleteColumn** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **DeleteColumn** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
19
+ * The directive sets the SVG icon and `click` event handlers for the button.
20
+ * The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
21
21
  *
22
22
  * @example
23
23
  * ```html
@@ -14,10 +14,10 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **DeleteRow** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **DeleteRow** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
19
+ * The directive sets the SVG icon and `click` event handlers for the button.
20
+ * The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
21
21
  *
22
22
  * @example
23
23
  * ```html
@@ -14,10 +14,10 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **DeleteTable** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **DeleteTable** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
19
+ * The directive sets the SVG icon and `click` event handlers for the button.
20
+ * The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
21
21
  *
22
22
  * @example
23
23
  * ```html
@@ -26,7 +26,9 @@ import * as i4 from "../../common/provider.service";
26
26
  const popupWrapperWidth = '190px';
27
27
  const popupWrapperHeight = '164px'; // Set to '192px' when TableWizard button is added;
28
28
  /**
29
- * A toolbar component which allows the user to create and insert a table in the Editor's content.
29
+ * Represents toolbar component which allows creating and insertig a table in the Editor's content.
30
+ *
31
+ * Use this toolbar component to let users create and insert a table in the Editor's content.
30
32
  *
31
33
  * @example
32
34
  * ```html
@@ -16,13 +16,13 @@ import * as i4 from "../tools.service";
16
16
  /**
17
17
  * @hidden
18
18
  *
19
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor MergeCells tool
19
+ * Configures an existing ToolBarButtonComponent as an Editor **MergeCells** tool
20
20
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
21
- * The directive will predefine the `icon` and `click` event handlers of the button.
22
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
21
+ * The directive predefines the `icon` and `click` event handlers of the button.
22
+ * It also updates the `disabled` state of the button based on the cursor position in the editing area.
23
23
  *
24
24
  * @example
25
- * ```ts-no-run
25
+ * ```html
26
26
  * <kendo-toolbar-button kendoEditorMergeCellsButton></kendo-toolbar-button>
27
27
  * ```
28
28
  */
@@ -16,13 +16,13 @@ import * as i4 from "../tools.service";
16
16
  /**
17
17
  * @hidden
18
18
  *
19
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor SplitCell tool
19
+ * Configures an existing ToolBarButtonComponent as an Editor SplitCell tool
20
20
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
21
- * The directive will predefine the `icon` and `click` event handlers of the button.
22
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
21
+ * The directive predefines the `icon` and `click` event handlers of the button.
22
+ * It also updates the `disabled` state of the button based on the cursor position in the editing area.
23
23
  *
24
24
  * @example
25
- * ```ts-no-run
25
+ * ```html
26
26
  * <kendo-toolbar-button kendoEditorSplitCellButton></kendo-toolbar-button>
27
27
  * ```
28
28
  */
@@ -14,10 +14,10 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Bold** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **Bold** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
19
+ * This directive sets the SVG icon and `click` event handlers for the button.
20
+ * The directive also updates the `selected` state of the button based on the cursor position in the editing area.
21
21
  *
22
22
  * @example
23
23
  * ```html
@@ -14,10 +14,10 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Italic** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **Italic** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
19
+ * This directive sets the SVG icon and `click` event handlers for the button.
20
+ * The directive also updates the `selected` state of the button based on the cursor position in the editing area.
21
21
  *
22
22
  * @example
23
23
  * ```html
@@ -14,10 +14,10 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Strikethrough** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **Strikethrough** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
19
+ * This directive sets the SVG icon and `click` event handlers for the button.
20
+ * The directive also updates the `selected` state of the button based on the cursor position in the editing area.
21
21
  *
22
22
  * @example
23
23
  * ```html
@@ -14,10 +14,10 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Subscript** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **Subscript** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
19
+ * This directive sets the SVG icon and `click` event handlers for the button.
20
+ * The directive also updates the `selected` state of the button based on the cursor position in the editing area.
21
21
  *
22
22
  * @example
23
23
  * ```html
@@ -14,10 +14,10 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Superscript** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **Superscript** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
19
+ * This directive sets the SVG icon and `click` event handlers for the button.
20
+ * The directive also updates the `selected` state of the button based on the cursor position in the editing area.
21
21
  *
22
22
  * @example
23
23
  * ```html
@@ -14,10 +14,10 @@ import * as i2 from "../../localization/editor-localization.service";
14
14
  import * as i3 from "../../common/provider.service";
15
15
  import * as i4 from "../tools.service";
16
16
  /**
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Underline** tool
17
+ * Configures a ToolBarButtonComponent as an Editor **Underline** tool
18
18
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the SVG icon and `click` event handlers of the button.
20
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
19
+ * This directive sets the SVG icon and `click` event handlers for the button.
20
+ * The directive also updates the `selected` state of the button based on the cursor position in the editing area.
21
21
  *
22
22
  * @example
23
23
  * ```html
package/esm2022/util.mjs CHANGED
@@ -104,20 +104,21 @@ export const conditionallyExecute = (fn) => (condition) => (param) => (condition
104
104
  export const pipe = (...fns) => x => fns.reduce((y, f) => f(y), x);
105
105
  // This re-declaration is necessary for proper API generation
106
106
  /**
107
- * A method for extracting the text from the current editor state's selection ([see example]({% slug plugins_editor %}#toc-popup-tools)).
107
+ * Extracts the text from the current editor state's selection ([see example]({% slug plugins_editor %}#toc-popup-tools)).
108
108
  *
109
+ * @example
109
110
  * ```ts
110
- * import {getSelectionText} from '@progress/kendo-angular-editor';
111
+ * import { getSelectionText } from '@progress/kendo-angular-editor';
111
112
  *
112
113
  * export class AppComponent {
113
114
  * @ViewChild('editor') public editor;
114
- * public onClick(){
115
- * const selection = getSelectionText(this.editor.view.state)
115
+ * public onClick() {
116
+ * const selection = getSelectionText(this.editor.view.state);
116
117
  * }
117
118
  * }
118
119
  * ```
119
- * @param state
120
- * @returns the selection text.
120
+ * @param state The current `EditorState`.
121
+ * @returns The selected text.
121
122
  */
122
123
  export const getSelectionText = (state) => commonGetSelectionText(state);
123
124
  /**