@progress/kendo-angular-editor 19.1.2-develop.2 → 19.1.2-develop.4
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
|
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Configures a ToolBarButtonComponent as an Editor **AddColumnBefore** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive
|
|
15
|
-
*
|
|
14
|
+
* The directive sets the SVG icon and `click` event handlers for the button.
|
|
15
|
+
* The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Configures a ToolBarButtonComponent as an Editor **AddRowAfter** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive
|
|
15
|
-
*
|
|
14
|
+
* The directive sets the SVG icon and `click` event handlers for the button.
|
|
15
|
+
* The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Configures a ToolBarButtonComponent as an Editor **AddRowBefore** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive
|
|
15
|
-
*
|
|
14
|
+
* The directive sets the SVG icon and `click` event handlers for the button.
|
|
15
|
+
* The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Configures a ToolBarButtonComponent as an Editor **DeleteColumn** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive
|
|
15
|
-
*
|
|
14
|
+
* The directive sets the SVG icon and `click` event handlers for the button.
|
|
15
|
+
* The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Configures a ToolBarButtonComponent as an Editor **DeleteRow** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive
|
|
15
|
-
*
|
|
14
|
+
* The directive sets the SVG icon and `click` event handlers for the button.
|
|
15
|
+
* The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Configures a ToolBarButtonComponent as an Editor **DeleteTable** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
* The directive
|
|
15
|
-
*
|
|
14
|
+
* The directive sets the SVG icon and `click` event handlers for the button.
|
|
15
|
+
* The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
@@ -12,7 +12,9 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
12
12
|
import { TableData } from '../../common/table-data.interface';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Represents toolbar component which allows creating and insertig a table in the Editor's content.
|
|
16
|
+
*
|
|
17
|
+
* Use this toolbar component to let users create and insert a table in the Editor's content.
|
|
16
18
|
*
|
|
17
19
|
* @example
|
|
18
20
|
* ```html
|
|
@@ -11,13 +11,13 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
/**
|
|
12
12
|
* @hidden
|
|
13
13
|
*
|
|
14
|
-
*
|
|
14
|
+
* Configures an existing ToolBarButtonComponent as an Editor **MergeCells** tool
|
|
15
15
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
16
|
-
* The directive
|
|
17
|
-
*
|
|
16
|
+
* The directive predefines the `icon` and `click` event handlers of the button.
|
|
17
|
+
* It also updates the `disabled` state of the button based on the cursor position in the editing area.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
|
-
* ```
|
|
20
|
+
* ```html
|
|
21
21
|
* <kendo-toolbar-button kendoEditorMergeCellsButton></kendo-toolbar-button>
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
@@ -11,13 +11,13 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
/**
|
|
12
12
|
* @hidden
|
|
13
13
|
*
|
|
14
|
-
*
|
|
14
|
+
* Configures an existing ToolBarButtonComponent as an Editor SplitCell tool
|
|
15
15
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
16
|
-
* The directive
|
|
17
|
-
*
|
|
16
|
+
* The directive predefines the `icon` and `click` event handlers of the button.
|
|
17
|
+
* It also updates the `disabled` state of the button based on the cursor position in the editing area.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
|
-
* ```
|
|
20
|
+
* ```html
|
|
21
21
|
* <kendo-toolbar-button kendoEditorSplitCellButton></kendo-toolbar-button>
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Configures a ToolBarButtonComponent as an Editor **Bold** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* This directive sets the SVG icon and `click` event handlers for the button.
|
|
15
|
+
* The directive also updates the `selected` state of the button based on the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Configures a ToolBarButtonComponent as an Editor **Italic** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* This directive sets the SVG icon and `click` event handlers for the button.
|
|
15
|
+
* The directive also updates the `selected` state of the button based on the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Configures a ToolBarButtonComponent as an Editor **Strikethrough** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* This directive sets the SVG icon and `click` event handlers for the button.
|
|
15
|
+
* The directive also updates the `selected` state of the button based on the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Configures a ToolBarButtonComponent as an Editor **Subscript** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* This directive sets the SVG icon and `click` event handlers for the button.
|
|
15
|
+
* The directive also updates the `selected` state of the button based on the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Configures a ToolBarButtonComponent as an Editor **Superscript** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* This directive sets the SVG icon and `click` event handlers for the button.
|
|
15
|
+
* The directive also updates the `selected` state of the button based on the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
|
|
|
9
9
|
import { EditorToolsService } from '../tools.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Configures a ToolBarButtonComponent as an Editor **Underline** tool
|
|
13
13
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* This directive sets the SVG icon and `click` event handlers for the button.
|
|
15
|
+
* The directive also updates the `selected` state of the button based on the cursor position in the editing area.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
package/util.d.ts
CHANGED
|
@@ -74,20 +74,21 @@ export declare const conditionallyExecute: <T, R>(fn: (x: T) => R) => (condition
|
|
|
74
74
|
*/
|
|
75
75
|
export declare const pipe: (...fns: any[]) => (x: any) => any;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Extracts the text from the current editor state's selection ([see example]({% slug plugins_editor %}#toc-popup-tools)).
|
|
78
78
|
*
|
|
79
|
+
* @example
|
|
79
80
|
* ```ts
|
|
80
|
-
* import {getSelectionText} from '@progress/kendo-angular-editor';
|
|
81
|
+
* import { getSelectionText } from '@progress/kendo-angular-editor';
|
|
81
82
|
*
|
|
82
83
|
* export class AppComponent {
|
|
83
84
|
* @ViewChild('editor') public editor;
|
|
84
|
-
* public onClick(){
|
|
85
|
-
* const selection = getSelectionText(this.editor.view.state)
|
|
85
|
+
* public onClick() {
|
|
86
|
+
* const selection = getSelectionText(this.editor.view.state);
|
|
86
87
|
* }
|
|
87
88
|
* }
|
|
88
89
|
* ```
|
|
89
|
-
* @param state
|
|
90
|
-
* @returns
|
|
90
|
+
* @param state The current `EditorState`.
|
|
91
|
+
* @returns The selected text.
|
|
91
92
|
*/
|
|
92
93
|
export declare const getSelectionText: (state: EditorState) => string;
|
|
93
94
|
/**
|