@progress/kendo-angular-editor 2.5.0-dev.202111231749 → 2.5.0
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/editor.component.js +7 -2
- package/dist/es/index.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- 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 +9 -9
- 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/editor.component.d.ts +3 -1
- package/dist/es2015/editor.component.js +7 -2
- 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/package-metadata.js +1 -1
- 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 -2
- package/dist/es2015/tools/shared/editor-command-base.js +8 -8
- 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 +195 -126
- package/dist/fesm5/index.js +194 -127
- package/dist/npm/editor.component.js +7 -2
- package/dist/npm/index.js +2 -0
- package/dist/npm/package-metadata.js +1 -1
- 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 +9 -9
- 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
|
@@ -24,6 +24,7 @@ import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
24
24
|
import { EditorLocalizationService } from './localization/editor-localization.service';
|
|
25
25
|
import { defaultStyle, tablesStyles, rtlStyles } from './common/styles';
|
|
26
26
|
import { EditorErrorMessages } from './common/error-messages';
|
|
27
|
+
import { EditorToolsService } from './tools/tools.service';
|
|
27
28
|
var EMPTY_PARAGRAPH = '<p></p>';
|
|
28
29
|
var defaultPasteCleanupSettings = {
|
|
29
30
|
convertMsLists: false,
|
|
@@ -54,13 +55,14 @@ var ɵ0 = getPasteCleanupAttributes;
|
|
|
54
55
|
* Represents the [Kendo UI Editor component for Angular]({% slug overview_editor %}).
|
|
55
56
|
*/
|
|
56
57
|
var EditorComponent = /** @class */ (function () {
|
|
57
|
-
function EditorComponent(dialogService, localization, cdr, ngZone, element) {
|
|
58
|
+
function EditorComponent(dialogService, localization, cdr, ngZone, element, toolsService) {
|
|
58
59
|
var _this = this;
|
|
59
60
|
this.dialogService = dialogService;
|
|
60
61
|
this.localization = localization;
|
|
61
62
|
this.cdr = cdr;
|
|
62
63
|
this.ngZone = ngZone;
|
|
63
64
|
this.element = element;
|
|
65
|
+
this.toolsService = toolsService;
|
|
64
66
|
/**
|
|
65
67
|
* If set to `false`, the Editor will run in style non-encapsulated mode. This means
|
|
66
68
|
* that the styles of the page will be persisted in the Editor and its content will be affected by them.
|
|
@@ -408,6 +410,7 @@ var EditorComponent = /** @class */ (function () {
|
|
|
408
410
|
var rtl = _a.rtl;
|
|
409
411
|
_this.direction = rtl ? 'rtl' : 'ltr';
|
|
410
412
|
}));
|
|
413
|
+
this.subs.add(this.toolsService.needsCheck.subscribe(function () { return _this.cdr.markForCheck(); }));
|
|
411
414
|
};
|
|
412
415
|
EditorComponent.prototype.ngAfterViewInit = function () {
|
|
413
416
|
this.afterViewInit.next();
|
|
@@ -960,6 +963,7 @@ var EditorComponent = /** @class */ (function () {
|
|
|
960
963
|
selector: 'kendo-editor',
|
|
961
964
|
providers: [
|
|
962
965
|
EditorLocalizationService,
|
|
966
|
+
EditorToolsService,
|
|
963
967
|
{
|
|
964
968
|
provide: LocalizationService,
|
|
965
969
|
useExisting: EditorLocalizationService
|
|
@@ -988,7 +992,8 @@ var EditorComponent = /** @class */ (function () {
|
|
|
988
992
|
LocalizationService,
|
|
989
993
|
ChangeDetectorRef,
|
|
990
994
|
NgZone,
|
|
991
|
-
ElementRef
|
|
995
|
+
ElementRef,
|
|
996
|
+
EditorToolsService])
|
|
992
997
|
], EditorComponent);
|
|
993
998
|
return EditorComponent;
|
|
994
999
|
}());
|
package/dist/es/index.js
CHANGED
|
@@ -60,6 +60,7 @@ export { EditorInsertTableButtonComponent } from './tools/tables/editor-insert-t
|
|
|
60
60
|
export { EditorMergeCellsButtonDirective } from './tools/tables/editor-merge-cells-button.directive';
|
|
61
61
|
export { EditorSplitCellButtonDirective } from './tools/tables/editor-split-cell-button.directive';
|
|
62
62
|
export { PopupTableGridComponent } from './tools/tables/popup-table-grid.component';
|
|
63
|
+
export { EditorToolsService } from './tools/tools.service';
|
|
63
64
|
export { EditorBoldButtonDirective } from './tools/typographical-emphasis/editor-bold-button.directive';
|
|
64
65
|
export { EditorItalicButtonDirective } from './tools/typographical-emphasis/editor-italic-button.directive';
|
|
65
66
|
export { EditorStrikethroughButtonDirective } from './tools/typographical-emphasis/editor-strikethrough-button.directive';
|
|
@@ -9,7 +9,7 @@ export var packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-editor',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1638198421,
|
|
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
|
};
|
|
@@ -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)).
|
|
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
28
29
|
*/
|
|
29
30
|
var EditorAlignCenterButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorAlignCenterButtonDirective, _super);
|
|
31
|
-
function EditorAlignCenterButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'alignCenter', button, editor, localization) || this;
|
|
32
|
+
function EditorAlignCenterButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'alignCenter', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorAlignCenterButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorAlignCenterButtonDirective = /** @class */ (function (_super) {
|
|
|
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
|
return EditorAlignCenterButtonDirective;
|
|
44
46
|
}(EditorCommandButton));
|
|
@@ -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)).
|
|
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
28
29
|
*/
|
|
29
30
|
var EditorAlignJustifyButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorAlignJustifyButtonDirective, _super);
|
|
31
|
-
function EditorAlignJustifyButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'alignJustify', button, editor, localization) || this;
|
|
32
|
+
function EditorAlignJustifyButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'alignJustify', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorAlignJustifyButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorAlignJustifyButtonDirective = /** @class */ (function (_super) {
|
|
|
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
|
return EditorAlignJustifyButtonDirective;
|
|
44
46
|
}(EditorCommandButton));
|
|
@@ -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)).
|
|
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
28
29
|
*/
|
|
29
30
|
var EditorAlignLeftButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorAlignLeftButtonDirective, _super);
|
|
31
|
-
function EditorAlignLeftButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'alignLeft', button, editor, localization) || this;
|
|
32
|
+
function EditorAlignLeftButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'alignLeft', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorAlignLeftButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorAlignLeftButtonDirective = /** @class */ (function (_super) {
|
|
|
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
|
return EditorAlignLeftButtonDirective;
|
|
44
46
|
}(EditorCommandButton));
|
|
@@ -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)).
|
|
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
28
29
|
*/
|
|
29
30
|
var EditorAlignRightButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorAlignRightButtonDirective, _super);
|
|
31
|
-
function EditorAlignRightButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'alignRight', button, editor, localization) || this;
|
|
32
|
+
function EditorAlignRightButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'alignRight', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorAlignRightButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorAlignRightButtonDirective = /** @class */ (function (_super) {
|
|
|
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
|
return EditorAlignRightButtonDirective;
|
|
44
46
|
}(EditorCommandButton));
|
|
@@ -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)).
|
|
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../localization/editor-localization.s
|
|
|
27
28
|
*/
|
|
28
29
|
var EditorCleanFormattingButtonDirective = /** @class */ (function (_super) {
|
|
29
30
|
tslib_1.__extends(EditorCleanFormattingButtonDirective, _super);
|
|
30
|
-
function EditorCleanFormattingButtonDirective(button, editor, localization) {
|
|
31
|
-
return _super.call(this, 'cleanFormatting', button, editor, localization) || this;
|
|
31
|
+
function EditorCleanFormattingButtonDirective(button, editor, localization, toolsService) {
|
|
32
|
+
return _super.call(this, 'cleanFormatting', button, editor, localization, toolsService) || this;
|
|
32
33
|
}
|
|
33
34
|
EditorCleanFormattingButtonDirective = tslib_1.__decorate([
|
|
34
35
|
Directive({
|
|
@@ -37,7 +38,8 @@ var EditorCleanFormattingButtonDirective = /** @class */ (function (_super) {
|
|
|
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
|
return EditorCleanFormattingButtonDirective;
|
|
43
45
|
}(EditorCommandButton));
|
|
@@ -11,6 +11,7 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
11
11
|
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
12
12
|
import { FontFamilyDialogComponent } from '../../dialogs/font-family-dialog.component';
|
|
13
13
|
import { FontFamilyDropDownListComponent } from './editor-fontfamily-dropdownlist.component';
|
|
14
|
+
import { EditorToolsService } from '../tools.service';
|
|
14
15
|
/**
|
|
15
16
|
* A component which configures an existing `DropDownListComponent` as an Editor tool
|
|
16
17
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -24,11 +25,12 @@ import { FontFamilyDropDownListComponent } from './editor-fontfamily-dropdownlis
|
|
|
24
25
|
*/
|
|
25
26
|
var EditorFontFamilyComponent = /** @class */ (function (_super) {
|
|
26
27
|
tslib_1.__extends(EditorFontFamilyComponent, _super);
|
|
27
|
-
function EditorFontFamilyComponent(editor, dialogService, localization) {
|
|
28
|
+
function EditorFontFamilyComponent(editor, dialogService, localization, toolsService) {
|
|
28
29
|
var _this = _super.call(this) || this;
|
|
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
|
/**
|
|
@@ -77,7 +79,10 @@ var EditorFontFamilyComponent = /** @class */ (function (_super) {
|
|
|
77
79
|
return itemArgs.dataItem.fontName === null;
|
|
78
80
|
}
|
|
79
81
|
};
|
|
80
|
-
setTimeout(function () {
|
|
82
|
+
setTimeout(function () {
|
|
83
|
+
_this.defaultItem = { text: _this.title, fontName: null };
|
|
84
|
+
_this.toolsService.needsCheck.next();
|
|
85
|
+
});
|
|
81
86
|
this.subs = this.editor.stateChange.subscribe(function (_a) {
|
|
82
87
|
var style = _a.style;
|
|
83
88
|
_this.value = getUniqueStyleValues(style.selected, 'font-family') || null;
|
|
@@ -198,7 +203,8 @@ var EditorFontFamilyComponent = /** @class */ (function (_super) {
|
|
|
198
203
|
tslib_1.__param(0, Host()),
|
|
199
204
|
tslib_1.__metadata("design:paramtypes", [EditorComponent,
|
|
200
205
|
DialogService,
|
|
201
|
-
EditorLocalizationService
|
|
206
|
+
EditorLocalizationService,
|
|
207
|
+
EditorToolsService])
|
|
202
208
|
], EditorFontFamilyComponent);
|
|
203
209
|
return EditorFontFamilyComponent;
|
|
204
210
|
}(ToolBarToolComponent));
|
|
@@ -11,6 +11,7 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
11
11
|
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
12
12
|
import { FontSizeDialogComponent } from '../../dialogs/font-size-dialog.component';
|
|
13
13
|
import { FontSizeDropDownListComponent } from './editor-fontsize-dropdownlist.component';
|
|
14
|
+
import { EditorToolsService } from '../tools.service';
|
|
14
15
|
/**
|
|
15
16
|
* A component which configures an existing `DropDownListComponent` as an Editor tool
|
|
16
17
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -24,11 +25,12 @@ import { FontSizeDropDownListComponent } from './editor-fontsize-dropdownlist.co
|
|
|
24
25
|
*/
|
|
25
26
|
var EditorFontSizeComponent = /** @class */ (function (_super) {
|
|
26
27
|
tslib_1.__extends(EditorFontSizeComponent, _super);
|
|
27
|
-
function EditorFontSizeComponent(editor, dialogService, localization) {
|
|
28
|
+
function EditorFontSizeComponent(editor, dialogService, localization, toolsService) {
|
|
28
29
|
var _this = _super.call(this) || this;
|
|
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 @@ var EditorFontSizeComponent = /** @class */ (function (_super) {
|
|
|
70
72
|
return itemArgs.dataItem.size === null;
|
|
71
73
|
}
|
|
72
74
|
};
|
|
73
|
-
setTimeout(function () {
|
|
75
|
+
setTimeout(function () {
|
|
76
|
+
_this.defaultItem = { text: _this.title, size: null };
|
|
77
|
+
_this.toolsService.needsCheck.next();
|
|
78
|
+
});
|
|
74
79
|
this.subs = this.editor.stateChange.subscribe(function (_a) {
|
|
75
80
|
// remove units(px, em, rem...)
|
|
76
81
|
// string#match returns array
|
|
@@ -193,7 +198,8 @@ var EditorFontSizeComponent = /** @class */ (function (_super) {
|
|
|
193
198
|
tslib_1.__param(0, Host()),
|
|
194
199
|
tslib_1.__metadata("design:paramtypes", [EditorComponent,
|
|
195
200
|
DialogService,
|
|
196
|
-
EditorLocalizationService
|
|
201
|
+
EditorLocalizationService,
|
|
202
|
+
EditorToolsService])
|
|
197
203
|
], EditorFontSizeComponent);
|
|
198
204
|
return EditorFontSizeComponent;
|
|
199
205
|
}(ToolBarToolComponent));
|
|
@@ -11,6 +11,7 @@ import { EditorComponent } from '../../editor.component';
|
|
|
11
11
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
12
12
|
import { FormatDialogComponent } from '../../dialogs/format-dialog.component';
|
|
13
13
|
import { FormatDropDownListComponent } from './editor-format-dropdownlist.component';
|
|
14
|
+
import { EditorToolsService } from '../tools.service';
|
|
14
15
|
/**
|
|
15
16
|
* A component which configures an existing `DropDownListComponent` as an Editor tool
|
|
16
17
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -24,11 +25,12 @@ import { FormatDropDownListComponent } from './editor-format-dropdownlist.compon
|
|
|
24
25
|
*/
|
|
25
26
|
var EditorFormatComponent = /** @class */ (function (_super) {
|
|
26
27
|
tslib_1.__extends(EditorFormatComponent, _super);
|
|
27
|
-
function EditorFormatComponent(editor, dialogService, localization) {
|
|
28
|
+
function EditorFormatComponent(editor, dialogService, localization, toolsService) {
|
|
28
29
|
var _this = _super.call(this) || this;
|
|
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
|
/**
|
|
@@ -71,7 +73,10 @@ var EditorFormatComponent = /** @class */ (function (_super) {
|
|
|
71
73
|
return itemArgs.dataItem.tag === null;
|
|
72
74
|
}
|
|
73
75
|
};
|
|
74
|
-
setTimeout(function () {
|
|
76
|
+
setTimeout(function () {
|
|
77
|
+
_this.defaultItem = { text: _this.title, tag: null };
|
|
78
|
+
_this.toolsService.needsCheck.next();
|
|
79
|
+
});
|
|
75
80
|
this.subs = this.editor.stateChange.subscribe(function (_a) {
|
|
76
81
|
var format = _a.format;
|
|
77
82
|
var index = _this.data.findIndex(function (item) { return item.tag === format.selected.tag; });
|
|
@@ -190,7 +195,8 @@ var EditorFormatComponent = /** @class */ (function (_super) {
|
|
|
190
195
|
tslib_1.__param(0, Host()),
|
|
191
196
|
tslib_1.__metadata("design:paramtypes", [EditorComponent,
|
|
192
197
|
DialogService,
|
|
193
|
-
EditorLocalizationService
|
|
198
|
+
EditorLocalizationService,
|
|
199
|
+
EditorToolsService])
|
|
194
200
|
], EditorFormatComponent);
|
|
195
201
|
return EditorFormatComponent;
|
|
196
202
|
}(ToolBarToolComponent));
|
|
@@ -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)).
|
|
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
28
29
|
*/
|
|
29
30
|
var EditorRedoButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorRedoButtonDirective, _super);
|
|
31
|
-
function EditorRedoButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'redo', button, editor, localization) || this;
|
|
32
|
+
function EditorRedoButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'redo', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorRedoButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorRedoButtonDirective = /** @class */ (function (_super) {
|
|
|
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
|
return EditorRedoButtonDirective;
|
|
44
46
|
}(EditorCommandButton));
|
|
@@ -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)).
|
|
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
28
29
|
*/
|
|
29
30
|
var EditorUndoButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorUndoButtonDirective, _super);
|
|
31
|
-
function EditorUndoButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'undo', button, editor, localization) || this;
|
|
32
|
+
function EditorUndoButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'undo', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorUndoButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorUndoButtonDirective = /** @class */ (function (_super) {
|
|
|
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
|
return EditorUndoButtonDirective;
|
|
44
46
|
}(EditorCommandButton));
|
|
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
8
8
|
import { EditorComponent } from '../../editor.component';
|
|
9
9
|
import { EditorCommandDialog } from '../shared/editor-command-dialog';
|
|
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 InsertImage 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
|
var EditorInsertImageButtonDirective = /** @class */ (function (_super) {
|
|
29
30
|
tslib_1.__extends(EditorInsertImageButtonDirective, _super);
|
|
30
|
-
function EditorInsertImageButtonDirective(button, editor, localization) {
|
|
31
|
-
return _super.call(this, 'insertImage', button, editor, localization) || this;
|
|
31
|
+
function EditorInsertImageButtonDirective(button, editor, localization, toolsService) {
|
|
32
|
+
return _super.call(this, 'insertImage', button, editor, localization, toolsService) || this;
|
|
32
33
|
}
|
|
33
34
|
EditorInsertImageButtonDirective = tslib_1.__decorate([
|
|
34
35
|
Directive({
|
|
@@ -37,7 +38,8 @@ var EditorInsertImageButtonDirective = /** @class */ (function (_super) {
|
|
|
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
|
], EditorInsertImageButtonDirective);
|
|
42
44
|
return EditorInsertImageButtonDirective;
|
|
43
45
|
}(EditorCommandDialog));
|
|
@@ -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 Indent tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
28
29
|
*/
|
|
29
30
|
var EditorIndentButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorIndentButtonDirective, _super);
|
|
31
|
-
function EditorIndentButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'indent', button, editor, localization) || this;
|
|
32
|
+
function EditorIndentButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'indent', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorIndentButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorIndentButtonDirective = /** @class */ (function (_super) {
|
|
|
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
|
], EditorIndentButtonDirective);
|
|
43
45
|
return EditorIndentButtonDirective;
|
|
44
46
|
}(EditorCommandButton));
|
|
@@ -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 Outdent tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
28
29
|
*/
|
|
29
30
|
var EditorOutdentButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorOutdentButtonDirective, _super);
|
|
31
|
-
function EditorOutdentButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'outdent', button, editor, localization) || this;
|
|
32
|
+
function EditorOutdentButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'outdent', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorOutdentButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorOutdentButtonDirective = /** @class */ (function (_super) {
|
|
|
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
|
], EditorOutdentButtonDirective);
|
|
43
45
|
return EditorOutdentButtonDirective;
|
|
44
46
|
}(EditorCommandButton));
|
|
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
8
8
|
import { EditorComponent } from '../../editor.component';
|
|
9
9
|
import { EditorCommandDialog } from '../shared/editor-command-dialog';
|
|
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 CreateLink tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
28
29
|
*/
|
|
29
30
|
var EditorCreateLinkButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorCreateLinkButtonDirective, _super);
|
|
31
|
-
function EditorCreateLinkButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'createLink', button, editor, localization) || this;
|
|
32
|
+
function EditorCreateLinkButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'createLink', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorCreateLinkButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorCreateLinkButtonDirective = /** @class */ (function (_super) {
|
|
|
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
|
], EditorCreateLinkButtonDirective);
|
|
43
45
|
return EditorCreateLinkButtonDirective;
|
|
44
46
|
}(EditorCommandDialog));
|
|
@@ -8,6 +8,7 @@ import { EditorComponent } from '../../editor.component';
|
|
|
8
8
|
import { EditorCommandDialog } from '../shared/editor-command-dialog';
|
|
9
9
|
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
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 'Insert File' tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -20,8 +21,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
20
21
|
*/
|
|
21
22
|
var EditorInsertFileButtonDirective = /** @class */ (function (_super) {
|
|
22
23
|
tslib_1.__extends(EditorInsertFileButtonDirective, _super);
|
|
23
|
-
function EditorInsertFileButtonDirective(button, editor, localization) {
|
|
24
|
-
return _super.call(this, 'insertFile', button, editor, localization) || this;
|
|
24
|
+
function EditorInsertFileButtonDirective(button, editor, localization, toolsService) {
|
|
25
|
+
return _super.call(this, 'insertFile', button, editor, localization, toolsService) || this;
|
|
25
26
|
}
|
|
26
27
|
EditorInsertFileButtonDirective = tslib_1.__decorate([
|
|
27
28
|
Directive({
|
|
@@ -30,7 +31,8 @@ var EditorInsertFileButtonDirective = /** @class */ (function (_super) {
|
|
|
30
31
|
tslib_1.__param(1, Host()),
|
|
31
32
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
32
33
|
EditorComponent,
|
|
33
|
-
EditorLocalizationService
|
|
34
|
+
EditorLocalizationService,
|
|
35
|
+
EditorToolsService])
|
|
34
36
|
], EditorInsertFileButtonDirective);
|
|
35
37
|
return EditorInsertFileButtonDirective;
|
|
36
38
|
}(EditorCommandDialog));
|
|
@@ -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 Unlink tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
28
29
|
*/
|
|
29
30
|
var EditorUnlinkButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorUnlinkButtonDirective, _super);
|
|
31
|
-
function EditorUnlinkButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'unlink', button, editor, localization) || this;
|
|
32
|
+
function EditorUnlinkButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'unlink', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorUnlinkButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorUnlinkButtonDirective = /** @class */ (function (_super) {
|
|
|
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
|
], EditorUnlinkButtonDirective);
|
|
43
45
|
return EditorUnlinkButtonDirective;
|
|
44
46
|
}(EditorCommandButton));
|
|
@@ -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 InsertOrderedList tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
28
29
|
*/
|
|
29
30
|
var EditorInsertOrderedListButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorInsertOrderedListButtonDirective, _super);
|
|
31
|
-
function EditorInsertOrderedListButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'insertOrderedList', button, editor, localization) || this;
|
|
32
|
+
function EditorInsertOrderedListButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'insertOrderedList', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorInsertOrderedListButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorInsertOrderedListButtonDirective = /** @class */ (function (_super) {
|
|
|
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
|
], EditorInsertOrderedListButtonDirective);
|
|
43
45
|
return EditorInsertOrderedListButtonDirective;
|
|
44
46
|
}(EditorCommandButton));
|