@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
|
@@ -14,22 +14,15 @@ 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
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor **Underline** tool
|
|
18
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
19
|
-
* The directive will predefine the
|
|
19
|
+
* The directive will predefine the SVG icon and `click` event handlers of the button.
|
|
20
20
|
* In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```html
|
|
24
24
|
* <kendo-toolbar-button kendoEditorUnderlineButton></kendo-toolbar-button>
|
|
25
25
|
* ```
|
|
26
|
-
*
|
|
27
|
-
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```html
|
|
31
|
-
* <kendo-toolbar-button kendoEditorUnderlineButton ></kendo-toolbar-button>
|
|
32
|
-
* ```
|
|
33
26
|
*/
|
|
34
27
|
export class EditorUnderlineButtonDirective extends EditorCommandButton {
|
|
35
28
|
constructor(button, localization, providerService, toolsService) {
|
package/esm2020/util.mjs
CHANGED
|
@@ -117,7 +117,18 @@ export const conditionallyExecute = (fn) => (condition) => (param) => (condition
|
|
|
117
117
|
export const pipe = (...fns) => x => fns.reduce((y, f) => f(y), x);
|
|
118
118
|
// This re-declaration is neccessary for proper API generation
|
|
119
119
|
/**
|
|
120
|
-
* A method for extracting the text from the current editor state's selection
|
|
120
|
+
* A method for extracting the text from the current editor state's selection ([see example]({% slug plugins_editor %}#toc-popup-tools)).
|
|
121
|
+
*
|
|
122
|
+
* ```ts
|
|
123
|
+
* import {getSelectionText} from '@progress/kendo-angular-editor';
|
|
124
|
+
*
|
|
125
|
+
* export class AppComponent {
|
|
126
|
+
* @ViewChild('editor') public editor;
|
|
127
|
+
* public onClick(){
|
|
128
|
+
* const selection = getSelectionText(this.editor.view.state)
|
|
129
|
+
* }
|
|
130
|
+
* }
|
|
131
|
+
* ```
|
|
121
132
|
* @param state
|
|
122
133
|
* @returns
|
|
123
134
|
*/
|