@progress/kendo-angular-editor 2.5.0-dev.202111240844 → 3.0.0-dev.202112211443
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/dist/cdn/js/kendo-angular-editor.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/common/error-messages.js +3 -2
- package/dist/es/editor.component.js +102 -69
- package/dist/es/index.js +1 -0
- package/dist/es/main.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/preventable-events/paste-event-data.js +4 -0
- package/dist/es/preventable-events/paste-event.js +25 -0
- package/dist/es/tools/alignment/editor-align-center-button.directive.js +5 -3
- package/dist/es/tools/alignment/editor-align-justify-button.directive.js +5 -3
- package/dist/es/tools/alignment/editor-align-left-button.directive.js +5 -3
- package/dist/es/tools/alignment/editor-align-right-button.directive.js +5 -3
- package/dist/es/tools/editor-clean-formatting-button.directive.js +5 -3
- package/dist/es/tools/fontfamily/editor-fontfamily.component.js +9 -3
- package/dist/es/tools/fontsize/editor-fontsize.component.js +9 -3
- package/dist/es/tools/format/editor-format.component.js +9 -3
- package/dist/es/tools/history/editor-redo-button.directive.js +5 -3
- package/dist/es/tools/history/editor-undo-button.directive.js +5 -3
- package/dist/es/tools/image/editor-insert-image-button.directive.js +5 -3
- package/dist/es/tools/indentation/editor-indent-button.directive.js +5 -3
- package/dist/es/tools/indentation/editor-outdent-button.directive.js +5 -3
- package/dist/es/tools/link/editor-create-link-button.directive.js +5 -3
- package/dist/es/tools/link/editor-insert-file-button.directive.js +5 -3
- package/dist/es/tools/link/editor-unlink-button.directive.js +5 -3
- package/dist/es/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
- package/dist/es/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
- package/dist/es/tools/print/editor-print-button.directive.js +5 -3
- package/dist/es/tools/select-all/select-all-button.directive.js +5 -3
- package/dist/es/tools/shared/editor-command-base.js +3 -1
- package/dist/es/tools/shared/editor-command-button.js +3 -2
- package/dist/es/tools/shared/editor-command-dialog.js +3 -2
- package/dist/es/tools/source/editor-view-source-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-column-after-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-column-before-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-row-after-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-row-before-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-delete-column-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-delete-row-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-delete-table-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-merge-cells-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-split-cell-button.directive.js +5 -3
- package/dist/es/tools/tools.service.js +20 -0
- package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
- package/dist/es2015/common/error-messages.js +3 -2
- package/dist/es2015/common/paste-cleanup-settings.d.ts +14 -0
- package/dist/es2015/editor.component.d.ts +18 -11
- package/dist/es2015/editor.component.js +102 -69
- package/dist/es2015/index.d.ts +1 -0
- package/dist/es2015/index.js +1 -0
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/main.d.ts +2 -0
- package/dist/es2015/main.js +1 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/preventable-events/paste-event-data.d.ts +21 -0
- package/dist/es2015/preventable-events/paste-event-data.js +4 -0
- package/dist/es2015/preventable-events/paste-event.d.ts +27 -0
- package/dist/es2015/preventable-events/paste-event.js +20 -0
- package/dist/es2015/tools/alignment/editor-align-center-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +5 -3
- package/dist/es2015/tools/alignment/editor-align-justify-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +5 -3
- package/dist/es2015/tools/alignment/editor-align-left-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +5 -3
- package/dist/es2015/tools/alignment/editor-align-right-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +5 -3
- package/dist/es2015/tools/editor-clean-formatting-button.directive.d.ts +2 -1
- package/dist/es2015/tools/editor-clean-formatting-button.directive.js +5 -3
- package/dist/es2015/tools/fontfamily/editor-fontfamily.component.d.ts +3 -1
- package/dist/es2015/tools/fontfamily/editor-fontfamily.component.js +9 -3
- package/dist/es2015/tools/fontsize/editor-fontsize.component.d.ts +3 -1
- package/dist/es2015/tools/fontsize/editor-fontsize.component.js +9 -3
- package/dist/es2015/tools/format/editor-format.component.d.ts +3 -1
- package/dist/es2015/tools/format/editor-format.component.js +9 -3
- package/dist/es2015/tools/history/editor-redo-button.directive.d.ts +2 -1
- package/dist/es2015/tools/history/editor-redo-button.directive.js +5 -3
- package/dist/es2015/tools/history/editor-undo-button.directive.d.ts +2 -1
- package/dist/es2015/tools/history/editor-undo-button.directive.js +5 -3
- package/dist/es2015/tools/image/editor-insert-image-button.directive.d.ts +2 -1
- package/dist/es2015/tools/image/editor-insert-image-button.directive.js +5 -3
- package/dist/es2015/tools/indentation/editor-indent-button.directive.d.ts +2 -1
- package/dist/es2015/tools/indentation/editor-indent-button.directive.js +5 -3
- package/dist/es2015/tools/indentation/editor-outdent-button.directive.d.ts +2 -1
- package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +5 -3
- package/dist/es2015/tools/link/editor-create-link-button.directive.d.ts +2 -1
- package/dist/es2015/tools/link/editor-create-link-button.directive.js +5 -3
- package/dist/es2015/tools/link/editor-insert-file-button.directive.d.ts +2 -1
- package/dist/es2015/tools/link/editor-insert-file-button.directive.js +5 -3
- package/dist/es2015/tools/link/editor-unlink-button.directive.d.ts +2 -1
- package/dist/es2015/tools/link/editor-unlink-button.directive.js +5 -3
- package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.d.ts +2 -1
- package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
- package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.d.ts +2 -1
- package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
- package/dist/es2015/tools/print/editor-print-button.directive.d.ts +2 -1
- package/dist/es2015/tools/print/editor-print-button.directive.js +5 -3
- package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +2 -1
- package/dist/es2015/tools/select-all/select-all-button.directive.js +5 -3
- package/dist/es2015/tools/shared/editor-command-base.d.ts +3 -1
- package/dist/es2015/tools/shared/editor-command-base.js +3 -1
- package/dist/es2015/tools/shared/editor-command-button.d.ts +3 -1
- package/dist/es2015/tools/shared/editor-command-button.js +3 -2
- package/dist/es2015/tools/shared/editor-command-dialog.d.ts +3 -1
- package/dist/es2015/tools/shared/editor-command-dialog.js +3 -2
- package/dist/es2015/tools/source/editor-view-source-button.directive.d.ts +2 -1
- package/dist/es2015/tools/source/editor-view-source-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-column-after-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-column-before-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-row-after-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-row-before-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-delete-column-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-delete-row-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-delete-table-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-merge-cells-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-split-cell-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +5 -3
- package/dist/es2015/tools/tools.service.d.ts +11 -0
- package/dist/es2015/tools/tools.service.js +22 -0
- package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
- package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
- package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
- package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
- package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
- package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
- package/dist/fesm2015/index.js +301 -186
- package/dist/fesm5/index.js +302 -186
- package/dist/npm/common/error-messages.js +3 -1
- package/dist/npm/editor.component.js +98 -65
- package/dist/npm/index.js +2 -0
- package/dist/npm/main.js +2 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/preventable-events/paste-event-data.js +6 -0
- package/dist/npm/preventable-events/paste-event.js +27 -0
- package/dist/npm/tools/alignment/editor-align-center-button.directive.js +5 -3
- package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +5 -3
- package/dist/npm/tools/alignment/editor-align-left-button.directive.js +5 -3
- package/dist/npm/tools/alignment/editor-align-right-button.directive.js +5 -3
- package/dist/npm/tools/editor-clean-formatting-button.directive.js +5 -3
- package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +9 -3
- package/dist/npm/tools/fontsize/editor-fontsize.component.js +9 -3
- package/dist/npm/tools/format/editor-format.component.js +9 -3
- package/dist/npm/tools/history/editor-redo-button.directive.js +5 -3
- package/dist/npm/tools/history/editor-undo-button.directive.js +5 -3
- package/dist/npm/tools/image/editor-insert-image-button.directive.js +5 -3
- package/dist/npm/tools/indentation/editor-indent-button.directive.js +5 -3
- package/dist/npm/tools/indentation/editor-outdent-button.directive.js +5 -3
- package/dist/npm/tools/link/editor-create-link-button.directive.js +5 -3
- package/dist/npm/tools/link/editor-insert-file-button.directive.js +5 -3
- package/dist/npm/tools/link/editor-unlink-button.directive.js +5 -3
- package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
- package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
- package/dist/npm/tools/print/editor-print-button.directive.js +5 -3
- package/dist/npm/tools/select-all/select-all-button.directive.js +5 -3
- package/dist/npm/tools/shared/editor-command-base.js +3 -1
- package/dist/npm/tools/shared/editor-command-button.js +3 -2
- package/dist/npm/tools/shared/editor-command-dialog.js +3 -2
- package/dist/npm/tools/source/editor-view-source-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-delete-column-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-delete-row-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-delete-table-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-split-cell-button.directive.js +5 -3
- package/dist/npm/tools/tools.service.js +22 -0
- package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
- package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
- package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
- package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
- package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
- package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
- package/dist/systemjs/kendo-angular-editor.js +1 -1
- package/package.json +4 -4
package/dist/es2015/main.d.ts
CHANGED
|
@@ -9,3 +9,5 @@ export { EditorState, Plugin, PluginKey, Transaction, EditorView, Decoration, De
|
|
|
9
9
|
export { PluginsFn } from './common/plugins-function';
|
|
10
10
|
export { ApplyToWordOptions } from './common/apply-to-word-options';
|
|
11
11
|
export { EditorResizableOptions } from './common/resizable-options.interface';
|
|
12
|
+
export { EditorPasteEvent } from './preventable-events/paste-event';
|
|
13
|
+
export { EditorPastedContentArgs } from './preventable-events/paste-event-data';
|
package/dist/es2015/main.js
CHANGED
|
@@ -6,3 +6,4 @@ export { EditorComponent } from './editor.component';
|
|
|
6
6
|
export { EditorModule } from './editor.module';
|
|
7
7
|
export { schema, Schema } from './config/schema';
|
|
8
8
|
export { EditorState, Plugin, PluginKey, Transaction, EditorView, Decoration, DecorationSet, NodeType, Node, MarkType, Mark, InputRule, inputRules, wrappingInputRule, textblockTypeInputRule, keymap, baseKeymap, history, dropCursor, gapCursor, tableNodes, getSelectionText } from '@progress/kendo-editor-common';
|
|
9
|
+
export { EditorPasteEvent } from './preventable-events/paste-event';
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-editor',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1640097479,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 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
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { PreventableEvent } from "@progress/kendo-angular-common";
|
|
6
|
+
/**
|
|
7
|
+
* The Editor [`paste`]({% slug api_editor_editorcomponent %}#toc-paste) event.
|
|
8
|
+
*/
|
|
9
|
+
export declare class EditorPasteEvent extends PreventableEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The HTML content cleaned in accordance with the [`PasteCleanupSettings`]({% slug paste_cleanup %}).
|
|
12
|
+
*/
|
|
13
|
+
cleanedHtml: string;
|
|
14
|
+
/**
|
|
15
|
+
* The raw pasted content.
|
|
16
|
+
*/
|
|
17
|
+
originalHtml: string;
|
|
18
|
+
/**
|
|
19
|
+
* The original DOM event.
|
|
20
|
+
*/
|
|
21
|
+
originalEvent: ClipboardEvent;
|
|
22
|
+
/**
|
|
23
|
+
* Constructs the event arguments for the `paste` event.
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
constructor(cleanedHtml: string, originalHtml: string, originalEvent: ClipboardEvent);
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { PreventableEvent } from "@progress/kendo-angular-common";
|
|
6
|
+
/**
|
|
7
|
+
* The Editor [`paste`]({% slug api_editor_editorcomponent %}#toc-paste) event.
|
|
8
|
+
*/
|
|
9
|
+
export class EditorPasteEvent extends PreventableEvent {
|
|
10
|
+
/**
|
|
11
|
+
* Constructs the event arguments for the `paste` event.
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
constructor(cleanedHtml, originalHtml, originalEvent) {
|
|
15
|
+
super();
|
|
16
|
+
this.cleanedHtml = cleanedHtml;
|
|
17
|
+
this.originalHtml = originalHtml;
|
|
18
|
+
this.originalEvent = originalEvent;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignCenter tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
export declare class EditorAlignCenterButtonDirective extends EditorCommandButton {
|
|
28
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
29
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
29
30
|
}
|
|
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
8
8
|
import { EditorComponent } from '../../editor.component';
|
|
9
9
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
10
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
+
import { EditorToolsService } from '../tools.service';
|
|
11
12
|
/**
|
|
12
13
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignCenter tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
27
28
|
* ```
|
|
28
29
|
*/
|
|
29
30
|
let EditorAlignCenterButtonDirective = class EditorAlignCenterButtonDirective extends EditorCommandButton {
|
|
30
|
-
constructor(button, editor, localization) {
|
|
31
|
-
super('alignCenter', button, editor, localization);
|
|
31
|
+
constructor(button, editor, localization, toolsService) {
|
|
32
|
+
super('alignCenter', button, editor, localization, toolsService);
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
EditorAlignCenterButtonDirective = tslib_1.__decorate([
|
|
@@ -38,6 +39,7 @@ EditorAlignCenterButtonDirective = tslib_1.__decorate([
|
|
|
38
39
|
tslib_1.__param(1, Host()),
|
|
39
40
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
40
41
|
EditorComponent,
|
|
41
|
-
EditorLocalizationService
|
|
42
|
+
EditorLocalizationService,
|
|
43
|
+
EditorToolsService])
|
|
42
44
|
], EditorAlignCenterButtonDirective);
|
|
43
45
|
export { EditorAlignCenterButtonDirective };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignJustify tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
export declare class EditorAlignJustifyButtonDirective extends EditorCommandButton {
|
|
28
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
29
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
29
30
|
}
|
|
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
8
8
|
import { EditorComponent } from '../../editor.component';
|
|
9
9
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
10
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
+
import { EditorToolsService } from '../tools.service';
|
|
11
12
|
/**
|
|
12
13
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignJustify tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
27
28
|
* ```
|
|
28
29
|
*/
|
|
29
30
|
let EditorAlignJustifyButtonDirective = class EditorAlignJustifyButtonDirective extends EditorCommandButton {
|
|
30
|
-
constructor(button, editor, localization) {
|
|
31
|
-
super('alignJustify', button, editor, localization);
|
|
31
|
+
constructor(button, editor, localization, toolsService) {
|
|
32
|
+
super('alignJustify', button, editor, localization, toolsService);
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
EditorAlignJustifyButtonDirective = tslib_1.__decorate([
|
|
@@ -38,6 +39,7 @@ EditorAlignJustifyButtonDirective = tslib_1.__decorate([
|
|
|
38
39
|
tslib_1.__param(1, Host()),
|
|
39
40
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
40
41
|
EditorComponent,
|
|
41
|
-
EditorLocalizationService
|
|
42
|
+
EditorLocalizationService,
|
|
43
|
+
EditorToolsService])
|
|
42
44
|
], EditorAlignJustifyButtonDirective);
|
|
43
45
|
export { EditorAlignJustifyButtonDirective };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignLeft tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
export declare class EditorAlignLeftButtonDirective extends EditorCommandButton {
|
|
28
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
29
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
29
30
|
}
|
|
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
8
8
|
import { EditorComponent } from '../../editor.component';
|
|
9
9
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
10
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
+
import { EditorToolsService } from '../tools.service';
|
|
11
12
|
/**
|
|
12
13
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignLeft tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
27
28
|
* ```
|
|
28
29
|
*/
|
|
29
30
|
let EditorAlignLeftButtonDirective = class EditorAlignLeftButtonDirective extends EditorCommandButton {
|
|
30
|
-
constructor(button, editor, localization) {
|
|
31
|
-
super('alignLeft', button, editor, localization);
|
|
31
|
+
constructor(button, editor, localization, toolsService) {
|
|
32
|
+
super('alignLeft', button, editor, localization, toolsService);
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
EditorAlignLeftButtonDirective = tslib_1.__decorate([
|
|
@@ -38,6 +39,7 @@ EditorAlignLeftButtonDirective = tslib_1.__decorate([
|
|
|
38
39
|
tslib_1.__param(1, Host()),
|
|
39
40
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
40
41
|
EditorComponent,
|
|
41
|
-
EditorLocalizationService
|
|
42
|
+
EditorLocalizationService,
|
|
43
|
+
EditorToolsService])
|
|
42
44
|
], EditorAlignLeftButtonDirective);
|
|
43
45
|
export { EditorAlignLeftButtonDirective };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignRight tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
export declare class EditorAlignRightButtonDirective extends EditorCommandButton {
|
|
28
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
29
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
29
30
|
}
|
|
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
8
8
|
import { EditorComponent } from '../../editor.component';
|
|
9
9
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
10
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
+
import { EditorToolsService } from '../tools.service';
|
|
11
12
|
/**
|
|
12
13
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignRight tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
27
28
|
* ```
|
|
28
29
|
*/
|
|
29
30
|
let EditorAlignRightButtonDirective = class EditorAlignRightButtonDirective extends EditorCommandButton {
|
|
30
|
-
constructor(button, editor, localization) {
|
|
31
|
-
super('alignRight', button, editor, localization);
|
|
31
|
+
constructor(button, editor, localization, toolsService) {
|
|
32
|
+
super('alignRight', button, editor, localization, toolsService);
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
EditorAlignRightButtonDirective = tslib_1.__decorate([
|
|
@@ -38,6 +39,7 @@ EditorAlignRightButtonDirective = tslib_1.__decorate([
|
|
|
38
39
|
tslib_1.__param(1, Host()),
|
|
39
40
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
40
41
|
EditorComponent,
|
|
41
|
-
EditorLocalizationService
|
|
42
|
+
EditorLocalizationService,
|
|
43
|
+
EditorToolsService])
|
|
42
44
|
], EditorAlignRightButtonDirective);
|
|
43
45
|
export { EditorAlignRightButtonDirective };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../editor.component';
|
|
7
7
|
import { EditorCommandButton } from './shared/editor-command-button';
|
|
8
8
|
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from './tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Clean Formatting tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -24,5 +25,5 @@ import { EditorLocalizationService } from '../localization/editor-localization.s
|
|
|
24
25
|
* ```
|
|
25
26
|
*/
|
|
26
27
|
export declare class EditorCleanFormattingButtonDirective extends EditorCommandButton {
|
|
27
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
28
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
28
29
|
}
|
|
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
8
8
|
import { EditorComponent } from '../editor.component';
|
|
9
9
|
import { EditorCommandButton } from './shared/editor-command-button';
|
|
10
10
|
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
11
|
+
import { EditorToolsService } from './tools.service';
|
|
11
12
|
/**
|
|
12
13
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Clean Formatting tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -26,8 +27,8 @@ import { EditorLocalizationService } from '../localization/editor-localization.s
|
|
|
26
27
|
* ```
|
|
27
28
|
*/
|
|
28
29
|
let EditorCleanFormattingButtonDirective = class EditorCleanFormattingButtonDirective extends EditorCommandButton {
|
|
29
|
-
constructor(button, editor, localization) {
|
|
30
|
-
super('cleanFormatting', button, editor, localization);
|
|
30
|
+
constructor(button, editor, localization, toolsService) {
|
|
31
|
+
super('cleanFormatting', button, editor, localization, toolsService);
|
|
31
32
|
}
|
|
32
33
|
};
|
|
33
34
|
EditorCleanFormattingButtonDirective = tslib_1.__decorate([
|
|
@@ -37,6 +38,7 @@ EditorCleanFormattingButtonDirective = tslib_1.__decorate([
|
|
|
37
38
|
tslib_1.__param(1, Host()),
|
|
38
39
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
39
40
|
EditorComponent,
|
|
40
|
-
EditorLocalizationService
|
|
41
|
+
EditorLocalizationService,
|
|
42
|
+
EditorToolsService])
|
|
41
43
|
], EditorCleanFormattingButtonDirective);
|
|
42
44
|
export { EditorCleanFormattingButtonDirective };
|
|
@@ -9,6 +9,7 @@ import { FontFamilyItem } from '../../common/font-family-item.interface';
|
|
|
9
9
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
10
10
|
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
11
11
|
import { FontFamilyDropDownListComponent } from './editor-fontfamily-dropdownlist.component';
|
|
12
|
+
import { EditorToolsService } from '../tools.service';
|
|
12
13
|
/**
|
|
13
14
|
* A component which configures an existing `DropDownListComponent` as an Editor tool
|
|
14
15
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -24,6 +25,7 @@ export declare class EditorFontFamilyComponent extends ToolBarToolComponent {
|
|
|
24
25
|
private editor;
|
|
25
26
|
private dialogService;
|
|
26
27
|
private localization;
|
|
28
|
+
private toolsService;
|
|
27
29
|
value: string;
|
|
28
30
|
disabled: boolean;
|
|
29
31
|
tabindex: number;
|
|
@@ -53,7 +55,7 @@ export declare class EditorFontFamilyComponent extends ToolBarToolComponent {
|
|
|
53
55
|
}) => boolean;
|
|
54
56
|
private subs;
|
|
55
57
|
private _data;
|
|
56
|
-
constructor(editor: EditorComponent, dialogService: DialogService, localization: EditorLocalizationService);
|
|
58
|
+
constructor(editor: EditorComponent, dialogService: DialogService, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
57
59
|
ngOnInit(): void;
|
|
58
60
|
/**
|
|
59
61
|
* @hidden
|
|
@@ -12,6 +12,7 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
12
12
|
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
13
13
|
import { FontFamilyDialogComponent } from '../../dialogs/font-family-dialog.component';
|
|
14
14
|
import { FontFamilyDropDownListComponent } from './editor-fontfamily-dropdownlist.component';
|
|
15
|
+
import { EditorToolsService } from '../tools.service';
|
|
15
16
|
/**
|
|
16
17
|
* A component which configures an existing `DropDownListComponent` as an Editor tool
|
|
17
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -24,11 +25,12 @@ import { FontFamilyDropDownListComponent } from './editor-fontfamily-dropdownlis
|
|
|
24
25
|
* ```
|
|
25
26
|
*/
|
|
26
27
|
let EditorFontFamilyComponent = EditorFontFamilyComponent_1 = class EditorFontFamilyComponent extends ToolBarToolComponent {
|
|
27
|
-
constructor(editor, dialogService, localization) {
|
|
28
|
+
constructor(editor, dialogService, localization, toolsService) {
|
|
28
29
|
super();
|
|
29
30
|
this.editor = editor;
|
|
30
31
|
this.dialogService = dialogService;
|
|
31
32
|
this.localization = localization;
|
|
33
|
+
this.toolsService = toolsService;
|
|
32
34
|
this.disabled = false;
|
|
33
35
|
this.tabindex = -1;
|
|
34
36
|
/**
|
|
@@ -70,7 +72,10 @@ let EditorFontFamilyComponent = EditorFontFamilyComponent_1 = class EditorFontFa
|
|
|
70
72
|
return itemArgs.dataItem.fontName === null;
|
|
71
73
|
}
|
|
72
74
|
};
|
|
73
|
-
setTimeout(() =>
|
|
75
|
+
setTimeout(() => {
|
|
76
|
+
this.defaultItem = { text: this.title, fontName: null };
|
|
77
|
+
this.toolsService.needsCheck.next();
|
|
78
|
+
});
|
|
74
79
|
this.subs = this.editor.stateChange.subscribe(({ style }) => {
|
|
75
80
|
this.value = getUniqueStyleValues(style.selected, 'font-family') || null;
|
|
76
81
|
this.disabled = style.disabled;
|
|
@@ -213,6 +218,7 @@ EditorFontFamilyComponent = EditorFontFamilyComponent_1 = tslib_1.__decorate([
|
|
|
213
218
|
tslib_1.__param(0, Host()),
|
|
214
219
|
tslib_1.__metadata("design:paramtypes", [EditorComponent,
|
|
215
220
|
DialogService,
|
|
216
|
-
EditorLocalizationService
|
|
221
|
+
EditorLocalizationService,
|
|
222
|
+
EditorToolsService])
|
|
217
223
|
], EditorFontFamilyComponent);
|
|
218
224
|
export { EditorFontFamilyComponent };
|
|
@@ -10,6 +10,7 @@ import { FontSizeItem } from '../../common/font-size-item.interface';
|
|
|
10
10
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
11
|
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
12
12
|
import { FontSizeDropDownListComponent } from './editor-fontsize-dropdownlist.component';
|
|
13
|
+
import { EditorToolsService } from '../tools.service';
|
|
13
14
|
/**
|
|
14
15
|
* A component which configures an existing `DropDownListComponent` as an Editor tool
|
|
15
16
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -25,6 +26,7 @@ export declare class EditorFontSizeComponent extends ToolBarToolComponent {
|
|
|
25
26
|
private editor;
|
|
26
27
|
private dialogService;
|
|
27
28
|
private localization;
|
|
29
|
+
private toolsService;
|
|
28
30
|
value: string;
|
|
29
31
|
disabled: boolean;
|
|
30
32
|
tabindex: number;
|
|
@@ -51,7 +53,7 @@ export declare class EditorFontSizeComponent extends ToolBarToolComponent {
|
|
|
51
53
|
itemDisabled: ItemDisabledFn;
|
|
52
54
|
private subs;
|
|
53
55
|
private _data;
|
|
54
|
-
constructor(editor: EditorComponent, dialogService: DialogService, localization: EditorLocalizationService);
|
|
56
|
+
constructor(editor: EditorComponent, dialogService: DialogService, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
55
57
|
ngOnInit(): void;
|
|
56
58
|
/**
|
|
57
59
|
* @hidden
|
|
@@ -12,6 +12,7 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
12
12
|
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
13
13
|
import { FontSizeDialogComponent } from '../../dialogs/font-size-dialog.component';
|
|
14
14
|
import { FontSizeDropDownListComponent } from './editor-fontsize-dropdownlist.component';
|
|
15
|
+
import { EditorToolsService } from '../tools.service';
|
|
15
16
|
/**
|
|
16
17
|
* A component which configures an existing `DropDownListComponent` as an Editor tool
|
|
17
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -24,11 +25,12 @@ import { FontSizeDropDownListComponent } from './editor-fontsize-dropdownlist.co
|
|
|
24
25
|
* ```
|
|
25
26
|
*/
|
|
26
27
|
let EditorFontSizeComponent = EditorFontSizeComponent_1 = class EditorFontSizeComponent extends ToolBarToolComponent {
|
|
27
|
-
constructor(editor, dialogService, localization) {
|
|
28
|
+
constructor(editor, dialogService, localization, toolsService) {
|
|
28
29
|
super();
|
|
29
30
|
this.editor = editor;
|
|
30
31
|
this.dialogService = dialogService;
|
|
31
32
|
this.localization = localization;
|
|
33
|
+
this.toolsService = toolsService;
|
|
32
34
|
this.disabled = false;
|
|
33
35
|
this.tabindex = -1;
|
|
34
36
|
/**
|
|
@@ -63,7 +65,10 @@ let EditorFontSizeComponent = EditorFontSizeComponent_1 = class EditorFontSizeCo
|
|
|
63
65
|
return itemArgs.dataItem.size === null;
|
|
64
66
|
}
|
|
65
67
|
};
|
|
66
|
-
setTimeout(() =>
|
|
68
|
+
setTimeout(() => {
|
|
69
|
+
this.defaultItem = { text: this.title, size: null };
|
|
70
|
+
this.toolsService.needsCheck.next();
|
|
71
|
+
});
|
|
67
72
|
this.subs = this.editor.stateChange.subscribe(({ style }) => {
|
|
68
73
|
// remove units(px, em, rem...)
|
|
69
74
|
// string#match returns array
|
|
@@ -208,6 +213,7 @@ EditorFontSizeComponent = EditorFontSizeComponent_1 = tslib_1.__decorate([
|
|
|
208
213
|
tslib_1.__param(0, Host()),
|
|
209
214
|
tslib_1.__metadata("design:paramtypes", [EditorComponent,
|
|
210
215
|
DialogService,
|
|
211
|
-
EditorLocalizationService
|
|
216
|
+
EditorLocalizationService,
|
|
217
|
+
EditorToolsService])
|
|
212
218
|
], EditorFontSizeComponent);
|
|
213
219
|
export { EditorFontSizeComponent };
|
|
@@ -10,6 +10,7 @@ import { EditorComponent } from '../../editor.component';
|
|
|
10
10
|
import { FormatItem } from '../../common/format-item.interface';
|
|
11
11
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
12
12
|
import { FormatDropDownListComponent } from './editor-format-dropdownlist.component';
|
|
13
|
+
import { EditorToolsService } from '../tools.service';
|
|
13
14
|
/**
|
|
14
15
|
* A component which configures an existing `DropDownListComponent` as an Editor tool
|
|
15
16
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -25,6 +26,7 @@ export declare class EditorFormatComponent extends ToolBarToolComponent {
|
|
|
25
26
|
private editor;
|
|
26
27
|
private dialogService;
|
|
27
28
|
private localization;
|
|
29
|
+
private toolsService;
|
|
28
30
|
value: string;
|
|
29
31
|
defaultItem: FormatItem;
|
|
30
32
|
itemDisabled: ItemDisabledFn;
|
|
@@ -44,7 +46,7 @@ export declare class EditorFormatComponent extends ToolBarToolComponent {
|
|
|
44
46
|
formatButton: ElementRef;
|
|
45
47
|
private subs;
|
|
46
48
|
private _data;
|
|
47
|
-
constructor(editor: EditorComponent, dialogService: DialogService, localization: EditorLocalizationService);
|
|
49
|
+
constructor(editor: EditorComponent, dialogService: DialogService, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
48
50
|
ngOnInit(): void;
|
|
49
51
|
/**
|
|
50
52
|
* @hidden
|
|
@@ -12,6 +12,7 @@ import { EditorComponent } from '../../editor.component';
|
|
|
12
12
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
13
13
|
import { FormatDialogComponent } from '../../dialogs/format-dialog.component';
|
|
14
14
|
import { FormatDropDownListComponent } from './editor-format-dropdownlist.component';
|
|
15
|
+
import { EditorToolsService } from '../tools.service';
|
|
15
16
|
/**
|
|
16
17
|
* A component which configures an existing `DropDownListComponent` as an Editor tool
|
|
17
18
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -24,11 +25,12 @@ import { FormatDropDownListComponent } from './editor-format-dropdownlist.compon
|
|
|
24
25
|
* ```
|
|
25
26
|
*/
|
|
26
27
|
let EditorFormatComponent = EditorFormatComponent_1 = class EditorFormatComponent extends ToolBarToolComponent {
|
|
27
|
-
constructor(editor, dialogService, localization) {
|
|
28
|
+
constructor(editor, dialogService, localization, toolsService) {
|
|
28
29
|
super();
|
|
29
30
|
this.editor = editor;
|
|
30
31
|
this.dialogService = dialogService;
|
|
31
32
|
this.localization = localization;
|
|
33
|
+
this.toolsService = toolsService;
|
|
32
34
|
this.disabled = false;
|
|
33
35
|
this.tabindex = -1;
|
|
34
36
|
/**
|
|
@@ -64,7 +66,10 @@ let EditorFormatComponent = EditorFormatComponent_1 = class EditorFormatComponen
|
|
|
64
66
|
return itemArgs.dataItem.tag === null;
|
|
65
67
|
}
|
|
66
68
|
};
|
|
67
|
-
setTimeout(() =>
|
|
69
|
+
setTimeout(() => {
|
|
70
|
+
this.defaultItem = { text: this.title, tag: null };
|
|
71
|
+
this.toolsService.needsCheck.next();
|
|
72
|
+
});
|
|
68
73
|
this.subs = this.editor.stateChange.subscribe(({ format }) => {
|
|
69
74
|
const index = this.data.findIndex(item => item.tag === format.selected.tag);
|
|
70
75
|
this.value = index !== -1 ? format.selected.tag : null;
|
|
@@ -205,6 +210,7 @@ EditorFormatComponent = EditorFormatComponent_1 = tslib_1.__decorate([
|
|
|
205
210
|
tslib_1.__param(0, Host()),
|
|
206
211
|
tslib_1.__metadata("design:paramtypes", [EditorComponent,
|
|
207
212
|
DialogService,
|
|
208
|
-
EditorLocalizationService
|
|
213
|
+
EditorLocalizationService,
|
|
214
|
+
EditorToolsService])
|
|
209
215
|
], EditorFormatComponent);
|
|
210
216
|
export { EditorFormatComponent };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Redo tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
export declare class EditorRedoButtonDirective extends EditorCommandButton {
|
|
28
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
29
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
29
30
|
}
|
|
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
8
8
|
import { EditorComponent } from '../../editor.component';
|
|
9
9
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
10
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
+
import { EditorToolsService } from '../tools.service';
|
|
11
12
|
/**
|
|
12
13
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Redo tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
27
28
|
* ```
|
|
28
29
|
*/
|
|
29
30
|
let EditorRedoButtonDirective = class EditorRedoButtonDirective extends EditorCommandButton {
|
|
30
|
-
constructor(button, editor, localization) {
|
|
31
|
-
super('redo', button, editor, localization);
|
|
31
|
+
constructor(button, editor, localization, toolsService) {
|
|
32
|
+
super('redo', button, editor, localization, toolsService);
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
EditorRedoButtonDirective = tslib_1.__decorate([
|
|
@@ -38,6 +39,7 @@ EditorRedoButtonDirective = tslib_1.__decorate([
|
|
|
38
39
|
tslib_1.__param(1, Host()),
|
|
39
40
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
40
41
|
EditorComponent,
|
|
41
|
-
EditorLocalizationService
|
|
42
|
+
EditorLocalizationService,
|
|
43
|
+
EditorToolsService])
|
|
42
44
|
], EditorRedoButtonDirective);
|
|
43
45
|
export { EditorRedoButtonDirective };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Undo tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
export declare class EditorUndoButtonDirective extends EditorCommandButton {
|
|
28
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
29
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
29
30
|
}
|
|
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
8
8
|
import { EditorComponent } from '../../editor.component';
|
|
9
9
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
10
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
+
import { EditorToolsService } from '../tools.service';
|
|
11
12
|
/**
|
|
12
13
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Undo tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
27
28
|
* ```
|
|
28
29
|
*/
|
|
29
30
|
let EditorUndoButtonDirective = class EditorUndoButtonDirective extends EditorCommandButton {
|
|
30
|
-
constructor(button, editor, localization) {
|
|
31
|
-
super('undo', button, editor, localization);
|
|
31
|
+
constructor(button, editor, localization, toolsService) {
|
|
32
|
+
super('undo', button, editor, localization, toolsService);
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
EditorUndoButtonDirective = tslib_1.__decorate([
|
|
@@ -38,6 +39,7 @@ EditorUndoButtonDirective = tslib_1.__decorate([
|
|
|
38
39
|
tslib_1.__param(1, Host()),
|
|
39
40
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
40
41
|
EditorComponent,
|
|
41
|
-
EditorLocalizationService
|
|
42
|
+
EditorLocalizationService,
|
|
43
|
+
EditorToolsService])
|
|
42
44
|
], EditorUndoButtonDirective);
|
|
43
45
|
export { EditorUndoButtonDirective };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandDialog } from '../shared/editor-command-dialog';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor InsertImage tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -24,5 +25,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
24
25
|
* ```
|
|
25
26
|
*/
|
|
26
27
|
export declare class EditorInsertImageButtonDirective extends EditorCommandDialog {
|
|
27
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
28
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
28
29
|
}
|