@progress/kendo-angular-editor 13.1.0 → 13.1.1-develop.1
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 +1 -3
- package/common/commands.d.ts +16 -1
- package/common/css-settings.interface.d.ts +1 -3
- package/common/font-family-item.interface.d.ts +0 -8
- package/common/font-size-item.interface.d.ts +0 -8
- package/common/format-item.interface.d.ts +0 -8
- package/common/paste-cleanup-settings.d.ts +0 -11
- package/editor.component.d.ts +1 -63
- package/editor.module.d.ts +4 -25
- package/esm2020/editor.component.mjs +1 -63
- package/esm2020/editor.module.mjs +4 -25
- package/esm2020/localization/custom-messages.component.mjs +1 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/tools/alignment/editor-align-center-button.directive.mjs +2 -9
- package/esm2020/tools/alignment/editor-align-justify-button.directive.mjs +2 -9
- package/esm2020/tools/alignment/editor-align-left-button.directive.mjs +2 -9
- package/esm2020/tools/alignment/editor-align-right-button.directive.mjs +2 -9
- package/esm2020/tools/blockquote/editor-blockquote-button.directive.mjs +2 -9
- package/esm2020/tools/colorpicker/editor-back-color.directive.mjs +4 -0
- package/esm2020/tools/colorpicker/editor-colorpicker.component.mjs +3 -1
- package/esm2020/tools/colorpicker/editor-fore-color.directive.mjs +4 -0
- package/esm2020/tools/editor-clean-formatting-button.directive.mjs +2 -9
- package/esm2020/tools/fontfamily/editor-fontfamily.component.mjs +1 -1
- package/esm2020/tools/fontsize/editor-fontsize.component.mjs +1 -3
- package/esm2020/tools/format/editor-format.component.mjs +1 -1
- package/esm2020/tools/history/editor-redo-button.directive.mjs +2 -9
- package/esm2020/tools/history/editor-undo-button.directive.mjs +2 -9
- package/esm2020/tools/image/editor-insert-image-button.directive.mjs +2 -9
- package/esm2020/tools/indentation/editor-indent-button.directive.mjs +2 -9
- package/esm2020/tools/indentation/editor-outdent-button.directive.mjs +2 -9
- package/esm2020/tools/link/editor-create-link-button.directive.mjs +2 -9
- package/esm2020/tools/link/editor-insert-file-button.directive.mjs +3 -3
- package/esm2020/tools/link/editor-unlink-button.directive.mjs +2 -9
- package/esm2020/tools/list/editor-insert-ordered-list-button.directive.mjs +2 -9
- package/esm2020/tools/list/editor-insert-unordered-list-button.directive.mjs +2 -9
- package/esm2020/tools/print/editor-print-button.directive.mjs +2 -9
- package/esm2020/tools/select-all/select-all-button.directive.mjs +2 -9
- package/esm2020/tools/source/editor-view-source-button.directive.mjs +2 -9
- package/esm2020/tools/tables/editor-add-column-after-button.directive.mjs +3 -3
- package/esm2020/tools/tables/editor-add-column-before-button.directive.mjs +3 -3
- package/esm2020/tools/tables/editor-add-row-after-button.directive.mjs +3 -3
- package/esm2020/tools/tables/editor-add-row-before-button.directive.mjs +3 -3
- package/esm2020/tools/tables/editor-delete-column-button.directive.mjs +3 -3
- package/esm2020/tools/tables/editor-delete-row-button.directive.mjs +3 -3
- package/esm2020/tools/tables/editor-delete-table-button.directive.mjs +3 -3
- package/esm2020/tools/typographical-emphasis/editor-bold-button.directive.mjs +2 -9
- package/esm2020/tools/typographical-emphasis/editor-italic-button.directive.mjs +2 -9
- package/esm2020/tools/typographical-emphasis/editor-strikethrough-button.directive.mjs +2 -9
- package/esm2020/tools/typographical-emphasis/editor-subscript-button.directive.mjs +2 -9
- package/esm2020/tools/typographical-emphasis/editor-superscript-button.directive.mjs +2 -9
- package/esm2020/tools/typographical-emphasis/editor-underline-button.directive.mjs +2 -9
- package/esm2020/util.mjs +12 -1
- package/fesm2015/progress-kendo-angular-editor.mjs +106 -338
- package/fesm2020/progress-kendo-angular-editor.mjs +106 -338
- package/index.d.ts +0 -1
- package/localization/custom-messages.component.d.ts +1 -1
- package/package.json +14 -14
- package/schematics/ngAdd/index.js +3 -3
- package/tools/alignment/editor-align-center-button.directive.d.ts +2 -9
- package/tools/alignment/editor-align-justify-button.directive.d.ts +2 -9
- package/tools/alignment/editor-align-left-button.directive.d.ts +2 -9
- package/tools/alignment/editor-align-right-button.directive.d.ts +2 -9
- package/tools/blockquote/editor-blockquote-button.directive.d.ts +2 -9
- package/tools/colorpicker/editor-back-color.directive.d.ts +4 -0
- package/tools/colorpicker/editor-colorpicker.component.d.ts +3 -1
- package/tools/colorpicker/editor-fore-color.directive.d.ts +4 -0
- package/tools/editor-clean-formatting-button.directive.d.ts +2 -9
- package/tools/fontfamily/editor-fontfamily.component.d.ts +1 -1
- package/tools/fontsize/editor-fontsize.component.d.ts +1 -3
- package/tools/format/editor-format.component.d.ts +1 -1
- package/tools/history/editor-redo-button.directive.d.ts +2 -9
- package/tools/history/editor-undo-button.directive.d.ts +2 -9
- package/tools/image/editor-insert-image-button.directive.d.ts +2 -9
- package/tools/indentation/editor-indent-button.directive.d.ts +2 -9
- package/tools/indentation/editor-outdent-button.directive.d.ts +2 -9
- package/tools/link/editor-create-link-button.directive.d.ts +2 -9
- package/tools/link/editor-insert-file-button.directive.d.ts +3 -3
- package/tools/link/editor-unlink-button.directive.d.ts +2 -9
- package/tools/list/editor-insert-ordered-list-button.directive.d.ts +2 -9
- package/tools/list/editor-insert-unordered-list-button.directive.d.ts +2 -9
- package/tools/print/editor-print-button.directive.d.ts +2 -9
- package/tools/select-all/select-all-button.directive.d.ts +2 -9
- package/tools/source/editor-view-source-button.directive.d.ts +2 -9
- 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/typographical-emphasis/editor-bold-button.directive.d.ts +2 -9
- package/tools/typographical-emphasis/editor-italic-button.directive.d.ts +2 -9
- package/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +2 -9
- package/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +2 -9
- package/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +2 -9
- package/tools/typographical-emphasis/editor-underline-button.directive.d.ts +2 -9
- package/util.d.ts +12 -1
- package/esm2020/preventable-events/paste-event-data.mjs +0 -5
- package/preventable-events/paste-event-data.d.ts +0 -21
|
@@ -9,21 +9,14 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor ViewSource tool
|
|
12
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor **ViewSource** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive will predefine the
|
|
14
|
+
* The directive will predefine the SVG icon and `click` event handlers of the button.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```html
|
|
18
18
|
* <kendo-toolbar-button kendoEditorViewSourceButton></kendo-toolbar-button>
|
|
19
19
|
* ```
|
|
20
|
-
*
|
|
21
|
-
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```html
|
|
25
|
-
* <kendo-toolbar-button kendoEditorViewSourceButton ></kendo-toolbar-button>
|
|
26
|
-
* ```
|
|
27
20
|
*/
|
|
28
21
|
export declare class EditorViewSourceButtonDirective extends EditorCommandDialog {
|
|
29
22
|
constructor(button: ToolBarButtonComponent, localization: EditorLocalizationService, providerService: ProviderService, toolsService: EditorToolsService);
|
|
@@ -9,13 +9,13 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AddColumnAfter tool
|
|
12
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor **AddColumnAfter** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive will predefine the
|
|
14
|
+
* The directive will predefine the SVG icon and `click` event handlers of the button.
|
|
15
15
|
* In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
|
-
* ```
|
|
18
|
+
* ```html
|
|
19
19
|
* <kendo-toolbar-button kendoEditorAddColumnAfterButton></kendo-toolbar-button>
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
@@ -9,13 +9,13 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AddColumnBefore tool
|
|
12
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor **AddColumnBefore** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive will predefine the
|
|
14
|
+
* The directive will predefine the SVG icon and `click` event handlers of the button.
|
|
15
15
|
* In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
|
-
* ```
|
|
18
|
+
* ```html
|
|
19
19
|
* <kendo-toolbar-button kendoEditorAddColumnBeforeButton></kendo-toolbar-button>
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
@@ -9,13 +9,13 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AddRowAfter tool
|
|
12
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor **AddRowAfter** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive will predefine the
|
|
14
|
+
* The directive will predefine the SVG icon and `click` event handlers of the button.
|
|
15
15
|
* In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
|
-
* ```
|
|
18
|
+
* ```html
|
|
19
19
|
* <kendo-toolbar-button kendoEditorAddRowAfterButton></kendo-toolbar-button>
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
@@ -9,13 +9,13 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AddRowBefore tool
|
|
12
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor **AddRowBefore** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive will predefine the
|
|
14
|
+
* The directive will predefine the SVG icon and `click` event handlers of the button.
|
|
15
15
|
* In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
|
-
* ```
|
|
18
|
+
* ```html
|
|
19
19
|
* <kendo-toolbar-button kendoEditorAddRowBeforeButton></kendo-toolbar-button>
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
@@ -9,13 +9,13 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor DeleteColumn tool
|
|
12
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor **DeleteColumn** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive will predefine the
|
|
14
|
+
* The directive will predefine the SVG icon and `click` event handlers of the button.
|
|
15
15
|
* In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
|
-
* ```
|
|
18
|
+
* ```html
|
|
19
19
|
* <kendo-toolbar-button kendoEditorDeleteColumnButton></kendo-toolbar-button>
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
@@ -9,13 +9,13 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor DeleteRow tool
|
|
12
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor **DeleteRow** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive will predefine the
|
|
14
|
+
* The directive will predefine the SVG icon and `click` event handlers of the button.
|
|
15
15
|
* In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
|
-
* ```
|
|
18
|
+
* ```html
|
|
19
19
|
* <kendo-toolbar-button kendoEditorDeleteRowButton></kendo-toolbar-button>
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
@@ -9,13 +9,13 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor DeleteTable tool
|
|
12
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor **DeleteTable** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive will predefine the
|
|
14
|
+
* The directive will predefine the SVG icon and `click` event handlers of the button.
|
|
15
15
|
* In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
|
-
* ```
|
|
18
|
+
* ```html
|
|
19
19
|
* <kendo-toolbar-button kendoEditorDeleteTableButton></kendo-toolbar-button>
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
@@ -9,22 +9,15 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Bold tool
|
|
12
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor **Bold** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive will predefine the
|
|
14
|
+
* The directive will predefine the SVG icon and `click` event handlers of the button.
|
|
15
15
|
* In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
19
19
|
* <kendo-toolbar-button kendoEditorBoldButton></kendo-toolbar-button>
|
|
20
20
|
* ```
|
|
21
|
-
*
|
|
22
|
-
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```html
|
|
26
|
-
* <kendo-toolbar-button kendoEditorBoldButton ></kendo-toolbar-button>
|
|
27
|
-
* ```
|
|
28
21
|
*/
|
|
29
22
|
export declare class EditorBoldButtonDirective extends EditorCommandButton {
|
|
30
23
|
constructor(button: ToolBarButtonComponent, localization: EditorLocalizationService, providerService: ProviderService, toolsService: EditorToolsService);
|
|
@@ -9,22 +9,15 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Italic tool
|
|
12
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor **Italic** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive will predefine the
|
|
14
|
+
* The directive will predefine the SVG icon and `click` event handlers of the button.
|
|
15
15
|
* In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
19
19
|
* <kendo-toolbar-button kendoEditorItalicButton></kendo-toolbar-button>
|
|
20
20
|
* ```
|
|
21
|
-
*
|
|
22
|
-
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```html
|
|
26
|
-
* <kendo-toolbar-button kendoEditorItalicButton ></kendo-toolbar-button>
|
|
27
|
-
* ```
|
|
28
21
|
*/
|
|
29
22
|
export declare class EditorItalicButtonDirective extends EditorCommandButton {
|
|
30
23
|
constructor(button: ToolBarButtonComponent, localization: EditorLocalizationService, providerService: ProviderService, toolsService: EditorToolsService);
|
|
@@ -9,22 +9,15 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Strikethrough tool
|
|
12
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor **Strikethrough** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive will predefine the
|
|
14
|
+
* The directive will predefine the SVG icon and `click` event handlers of the button.
|
|
15
15
|
* In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
19
19
|
* <kendo-toolbar-button kendoEditorStrikethroughButton></kendo-toolbar-button>
|
|
20
20
|
* ```
|
|
21
|
-
*
|
|
22
|
-
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```html
|
|
26
|
-
* <kendo-toolbar-button kendoEditorStrikethroughButton ></kendo-toolbar-button>
|
|
27
|
-
* ```
|
|
28
21
|
*/
|
|
29
22
|
export declare class EditorStrikethroughButtonDirective extends EditorCommandButton {
|
|
30
23
|
constructor(button: ToolBarButtonComponent, localization: EditorLocalizationService, providerService: ProviderService, toolsService: EditorToolsService);
|
|
@@ -9,22 +9,15 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Subscript tool
|
|
12
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor **Subscript** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive will predefine the
|
|
14
|
+
* The directive will predefine the SVG icon and `click` event handlers of the button.
|
|
15
15
|
* In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
19
19
|
* <kendo-toolbar-button kendoEditorSubscriptButton></kendo-toolbar-button>
|
|
20
20
|
* ```
|
|
21
|
-
*
|
|
22
|
-
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```html
|
|
26
|
-
* <kendo-toolbar-button kendoEditorSubscriptButton ></kendo-toolbar-button>
|
|
27
|
-
* ```
|
|
28
21
|
*/
|
|
29
22
|
export declare class EditorSubscriptButtonDirective extends EditorCommandButton {
|
|
30
23
|
constructor(button: ToolBarButtonComponent, localization: EditorLocalizationService, providerService: ProviderService, toolsService: EditorToolsService);
|
|
@@ -9,22 +9,15 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Superscript tool
|
|
12
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor **Superscript** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive will predefine the
|
|
14
|
+
* The directive will predefine the SVG icon and `click` event handlers of the button.
|
|
15
15
|
* In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
19
19
|
* <kendo-toolbar-button kendoEditorSuperscriptButton></kendo-toolbar-button>
|
|
20
20
|
* ```
|
|
21
|
-
*
|
|
22
|
-
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```html
|
|
26
|
-
* <kendo-toolbar-button kendoEditorSuperscriptButton ></kendo-toolbar-button>
|
|
27
|
-
* ```
|
|
28
21
|
*/
|
|
29
22
|
export declare class EditorSuperscriptButtonDirective extends EditorCommandButton {
|
|
30
23
|
constructor(button: ToolBarButtonComponent, localization: EditorLocalizationService, providerService: ProviderService, toolsService: EditorToolsService);
|
|
@@ -9,22 +9,15 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Underline tool
|
|
12
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor **Underline** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive will predefine the
|
|
14
|
+
* The directive will predefine the SVG icon and `click` event handlers of the button.
|
|
15
15
|
* In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
19
19
|
* <kendo-toolbar-button kendoEditorUnderlineButton></kendo-toolbar-button>
|
|
20
20
|
* ```
|
|
21
|
-
*
|
|
22
|
-
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```html
|
|
26
|
-
* <kendo-toolbar-button kendoEditorUnderlineButton ></kendo-toolbar-button>
|
|
27
|
-
* ```
|
|
28
21
|
*/
|
|
29
22
|
export declare class EditorUnderlineButtonDirective extends EditorCommandButton {
|
|
30
23
|
constructor(button: ToolBarButtonComponent, localization: EditorLocalizationService, providerService: ProviderService, toolsService: EditorToolsService);
|
package/util.d.ts
CHANGED
|
@@ -78,7 +78,18 @@ export declare const conditionallyExecute: <T, R>(fn: (x: T) => R) => (condition
|
|
|
78
78
|
*/
|
|
79
79
|
export declare const pipe: (...fns: any[]) => (x: any) => any;
|
|
80
80
|
/**
|
|
81
|
-
* A method for extracting the text from the current editor state's selection
|
|
81
|
+
* A method for extracting the text from the current editor state's selection ([see example]({% slug plugins_editor %}#toc-popup-tools)).
|
|
82
|
+
*
|
|
83
|
+
* ```ts
|
|
84
|
+
* import {getSelectionText} from '@progress/kendo-angular-editor';
|
|
85
|
+
*
|
|
86
|
+
* export class AppComponent {
|
|
87
|
+
* @ViewChild('editor') public editor;
|
|
88
|
+
* public onClick(){
|
|
89
|
+
* const selection = getSelectionText(this.editor.view.state)
|
|
90
|
+
* }
|
|
91
|
+
* }
|
|
92
|
+
* ```
|
|
82
93
|
* @param state
|
|
83
94
|
* @returns
|
|
84
95
|
*/
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* The Editor [`pastedContent`]({% slug api_editor_editorcomponent %}#toc-pastedcontent) callback argument.
|
|
7
|
-
*/
|
|
8
|
-
export declare type EditorPastedContentArgs = {
|
|
9
|
-
/**
|
|
10
|
-
* The HTML content cleaned in accordance with the [`PasteCleanupSettings`]({% slug paste_cleanup %}).
|
|
11
|
-
*/
|
|
12
|
-
cleanedHtml: string;
|
|
13
|
-
/**
|
|
14
|
-
* The raw pasted content.
|
|
15
|
-
*/
|
|
16
|
-
originalHtml: string;
|
|
17
|
-
/**
|
|
18
|
-
* The original DOM event.
|
|
19
|
-
*/
|
|
20
|
-
originalEvent: ClipboardEvent;
|
|
21
|
-
};
|