@progress/kendo-angular-editor 19.1.2-develop.2 → 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.
- package/common/apply-to-word-options.d.ts +12 -6
- package/common/commands.d.ts +7 -6
- package/common/css-settings.interface.d.ts +13 -4
- package/common/font-family-item.interface.d.ts +11 -3
- package/common/font-size-item.interface.d.ts +11 -3
- package/common/format-item.interface.d.ts +11 -3
- package/common/paste-cleanup-settings.d.ts +29 -24
- package/common/plugins-function.d.ts +7 -6
- package/common/resizable-options.interface.d.ts +15 -5
- package/directives.d.ts +1 -1
- package/editor.component.d.ts +36 -27
- package/editor.module.d.ts +5 -4
- package/esm2022/common/error-messages.mjs +1 -1
- package/esm2022/directives.mjs +1 -1
- package/esm2022/editor.component.mjs +36 -27
- package/esm2022/editor.module.mjs +5 -4
- package/esm2022/localization/custom-messages.component.mjs +10 -1
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/preventable-events/paste-event.mjs +4 -4
- package/esm2022/tools/alignment/editor-align-center-button.directive.mjs +3 -3
- package/esm2022/tools/alignment/editor-align-justify-button.directive.mjs +3 -3
- package/esm2022/tools/alignment/editor-align-left-button.directive.mjs +3 -3
- package/esm2022/tools/alignment/editor-align-right-button.directive.mjs +3 -3
- package/esm2022/tools/blockquote/editor-blockquote-button.directive.mjs +2 -3
- package/esm2022/tools/colorpicker/editor-back-color.directive.mjs +3 -4
- package/esm2022/tools/colorpicker/editor-colorpicker.component.mjs +20 -10
- package/esm2022/tools/colorpicker/editor-fore-color.directive.mjs +3 -4
- package/esm2022/tools/editor-clean-formatting-button.directive.mjs +3 -3
- package/esm2022/tools/fontfamily/editor-fontfamily.component.mjs +4 -5
- package/esm2022/tools/fontsize/editor-fontsize.component.mjs +6 -6
- package/esm2022/tools/format/editor-format.component.mjs +6 -6
- package/esm2022/tools/history/editor-redo-button.directive.mjs +3 -3
- package/esm2022/tools/history/editor-undo-button.directive.mjs +3 -3
- package/esm2022/tools/image/editor-insert-image-button.directive.mjs +2 -2
- package/esm2022/tools/indentation/editor-indent-button.directive.mjs +3 -4
- package/esm2022/tools/indentation/editor-outdent-button.directive.mjs +3 -4
- package/esm2022/tools/link/editor-create-link-button.directive.mjs +3 -4
- package/esm2022/tools/link/editor-insert-file-button.directive.mjs +2 -3
- package/esm2022/tools/link/editor-unlink-button.directive.mjs +3 -4
- package/esm2022/tools/list/editor-insert-ordered-list-button.directive.mjs +3 -4
- package/esm2022/tools/list/editor-insert-unordered-list-button.directive.mjs +3 -3
- package/esm2022/tools/print/editor-print-button.directive.mjs +3 -3
- package/esm2022/tools/select-all/select-all-button.directive.mjs +2 -2
- package/esm2022/tools/source/editor-view-source-button.directive.mjs +2 -2
- package/esm2022/tools/tables/editor-add-column-after-button.directive.mjs +3 -3
- package/esm2022/tools/tables/editor-add-column-before-button.directive.mjs +3 -3
- package/esm2022/tools/tables/editor-add-row-after-button.directive.mjs +3 -3
- package/esm2022/tools/tables/editor-add-row-before-button.directive.mjs +3 -3
- package/esm2022/tools/tables/editor-delete-column-button.directive.mjs +3 -3
- package/esm2022/tools/tables/editor-delete-row-button.directive.mjs +3 -3
- package/esm2022/tools/tables/editor-delete-table-button.directive.mjs +3 -3
- package/esm2022/tools/tables/editor-insert-table-button.component.mjs +3 -1
- package/esm2022/tools/tables/editor-merge-cells-button.directive.mjs +4 -4
- package/esm2022/tools/tables/editor-split-cell-button.directive.mjs +4 -4
- package/esm2022/tools/typographical-emphasis/editor-bold-button.directive.mjs +3 -3
- package/esm2022/tools/typographical-emphasis/editor-italic-button.directive.mjs +3 -3
- package/esm2022/tools/typographical-emphasis/editor-strikethrough-button.directive.mjs +3 -3
- package/esm2022/tools/typographical-emphasis/editor-subscript-button.directive.mjs +3 -3
- package/esm2022/tools/typographical-emphasis/editor-superscript-button.directive.mjs +3 -3
- package/esm2022/tools/typographical-emphasis/editor-underline-button.directive.mjs +3 -3
- package/esm2022/util.mjs +7 -6
- package/fesm2022/progress-kendo-angular-editor.mjs +210 -188
- package/localization/custom-messages.component.d.ts +10 -1
- package/package.json +15 -15
- package/preventable-events/paste-event.d.ts +4 -4
- package/schematics/ngAdd/index.js +4 -4
- package/tools/alignment/editor-align-center-button.directive.d.ts +3 -3
- package/tools/alignment/editor-align-justify-button.directive.d.ts +3 -3
- package/tools/alignment/editor-align-left-button.directive.d.ts +3 -3
- package/tools/alignment/editor-align-right-button.directive.d.ts +3 -3
- package/tools/blockquote/editor-blockquote-button.directive.d.ts +2 -3
- package/tools/colorpicker/editor-back-color.directive.d.ts +3 -4
- package/tools/colorpicker/editor-colorpicker.component.d.ts +20 -10
- package/tools/colorpicker/editor-fore-color.directive.d.ts +3 -4
- package/tools/editor-clean-formatting-button.directive.d.ts +3 -3
- package/tools/fontfamily/editor-fontfamily.component.d.ts +4 -5
- package/tools/fontsize/editor-fontsize.component.d.ts +6 -6
- package/tools/format/editor-format.component.d.ts +6 -6
- package/tools/history/editor-redo-button.directive.d.ts +3 -3
- package/tools/history/editor-undo-button.directive.d.ts +3 -3
- package/tools/image/editor-insert-image-button.directive.d.ts +2 -2
- package/tools/indentation/editor-indent-button.directive.d.ts +3 -4
- package/tools/indentation/editor-outdent-button.directive.d.ts +3 -4
- package/tools/link/editor-create-link-button.directive.d.ts +3 -4
- package/tools/link/editor-insert-file-button.directive.d.ts +2 -3
- package/tools/link/editor-unlink-button.directive.d.ts +3 -4
- package/tools/list/editor-insert-ordered-list-button.directive.d.ts +3 -4
- package/tools/list/editor-insert-unordered-list-button.directive.d.ts +3 -3
- package/tools/print/editor-print-button.directive.d.ts +3 -3
- package/tools/select-all/select-all-button.directive.d.ts +2 -2
- package/tools/source/editor-view-source-button.directive.d.ts +2 -2
- package/tools/tables/editor-add-column-after-button.directive.d.ts +3 -3
- package/tools/tables/editor-add-column-before-button.directive.d.ts +3 -3
- package/tools/tables/editor-add-row-after-button.directive.d.ts +3 -3
- package/tools/tables/editor-add-row-before-button.directive.d.ts +3 -3
- package/tools/tables/editor-delete-column-button.directive.d.ts +3 -3
- package/tools/tables/editor-delete-row-button.directive.d.ts +3 -3
- package/tools/tables/editor-delete-table-button.directive.d.ts +3 -3
- package/tools/tables/editor-insert-table-button.component.d.ts +3 -1
- package/tools/tables/editor-merge-cells-button.directive.d.ts +4 -4
- package/tools/tables/editor-split-cell-button.directive.d.ts +4 -4
- package/tools/typographical-emphasis/editor-bold-button.directive.d.ts +3 -3
- package/tools/typographical-emphasis/editor-italic-button.directive.d.ts +3 -3
- package/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +3 -3
- package/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +3 -3
- package/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +3 -3
- package/tools/typographical-emphasis/editor-underline-button.directive.d.ts +3 -3
- 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
|
-
*
|
|
18
|
-
*
|
|
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
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* The directive
|
|
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
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* The directive
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **InsertUnorderedList** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
*
|
|
20
|
-
*
|
|
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
|
-
*
|
|
18
|
+
* Configures a ToolBarButtonComponent as an Editor **Print** tool
|
|
19
19
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
20
|
-
*
|
|
20
|
+
* This directive sets the SVG icon and `click` event handlers for the button.
|
|
21
21
|
*
|
|
22
|
-
*
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **SelectAll** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
*
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **ViewSource** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
* The directive
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **AddColumnAfter** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
* The directive
|
|
20
|
-
*
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **AddColumnBefore** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
* The directive
|
|
20
|
-
*
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **AddRowAfter** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
* The directive
|
|
20
|
-
*
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **AddRowBefore** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
* The directive
|
|
20
|
-
*
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **DeleteColumn** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
* The directive
|
|
20
|
-
*
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **DeleteRow** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
* The directive
|
|
20
|
-
*
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **DeleteTable** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
* The directive
|
|
20
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
19
|
+
* Configures an existing ToolBarButtonComponent as an Editor **MergeCells** tool
|
|
20
20
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
21
|
-
* The directive
|
|
22
|
-
*
|
|
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
|
-
* ```
|
|
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
|
-
*
|
|
19
|
+
* Configures an existing ToolBarButtonComponent as an Editor SplitCell tool
|
|
20
20
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
21
|
-
* The directive
|
|
22
|
-
*
|
|
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
|
-
* ```
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **Bold** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
*
|
|
20
|
-
*
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **Italic** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
*
|
|
20
|
-
*
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **Strikethrough** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
*
|
|
20
|
-
*
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **Subscript** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
*
|
|
20
|
-
*
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **Superscript** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
*
|
|
20
|
-
*
|
|
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
|
-
*
|
|
17
|
+
* Configures a ToolBarButtonComponent as an Editor **Underline** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
*
|
|
20
|
-
*
|
|
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
|
-
*
|
|
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
|
|
120
|
+
* @param state The current `EditorState`.
|
|
121
|
+
* @returns The selected text.
|
|
121
122
|
*/
|
|
122
123
|
export const getSelectionText = (state) => commonGetSelectionText(state);
|
|
123
124
|
/**
|