@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
|
@@ -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 AddRowAfter tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -21,8 +22,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
21
22
|
*/
|
|
22
23
|
var EditorAddRowAfterButtonDirective = /** @class */ (function (_super) {
|
|
23
24
|
tslib_1.__extends(EditorAddRowAfterButtonDirective, _super);
|
|
24
|
-
function EditorAddRowAfterButtonDirective(button, editor, localization) {
|
|
25
|
-
return _super.call(this, 'addRowAfter', button, editor, localization) || this;
|
|
25
|
+
function EditorAddRowAfterButtonDirective(button, editor, localization, toolsService) {
|
|
26
|
+
return _super.call(this, 'addRowAfter', button, editor, localization, toolsService) || this;
|
|
26
27
|
}
|
|
27
28
|
EditorAddRowAfterButtonDirective = tslib_1.__decorate([
|
|
28
29
|
Directive({
|
|
@@ -31,7 +32,8 @@ var EditorAddRowAfterButtonDirective = /** @class */ (function (_super) {
|
|
|
31
32
|
tslib_1.__param(1, Host()),
|
|
32
33
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
33
34
|
EditorComponent,
|
|
34
|
-
EditorLocalizationService
|
|
35
|
+
EditorLocalizationService,
|
|
36
|
+
EditorToolsService])
|
|
35
37
|
], EditorAddRowAfterButtonDirective);
|
|
36
38
|
return EditorAddRowAfterButtonDirective;
|
|
37
39
|
}(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 AddRowBefore tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -21,8 +22,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
21
22
|
*/
|
|
22
23
|
var EditorAddRowBeforeButtonDirective = /** @class */ (function (_super) {
|
|
23
24
|
tslib_1.__extends(EditorAddRowBeforeButtonDirective, _super);
|
|
24
|
-
function EditorAddRowBeforeButtonDirective(button, editor, localization) {
|
|
25
|
-
return _super.call(this, 'addRowBefore', button, editor, localization) || this;
|
|
25
|
+
function EditorAddRowBeforeButtonDirective(button, editor, localization, toolsService) {
|
|
26
|
+
return _super.call(this, 'addRowBefore', button, editor, localization, toolsService) || this;
|
|
26
27
|
}
|
|
27
28
|
EditorAddRowBeforeButtonDirective = tslib_1.__decorate([
|
|
28
29
|
Directive({
|
|
@@ -31,7 +32,8 @@ var EditorAddRowBeforeButtonDirective = /** @class */ (function (_super) {
|
|
|
31
32
|
tslib_1.__param(1, Host()),
|
|
32
33
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
33
34
|
EditorComponent,
|
|
34
|
-
EditorLocalizationService
|
|
35
|
+
EditorLocalizationService,
|
|
36
|
+
EditorToolsService])
|
|
35
37
|
], EditorAddRowBeforeButtonDirective);
|
|
36
38
|
return EditorAddRowBeforeButtonDirective;
|
|
37
39
|
}(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 DeleteColumn tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -21,8 +22,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
21
22
|
*/
|
|
22
23
|
var EditorDeleteColumnButtonDirective = /** @class */ (function (_super) {
|
|
23
24
|
tslib_1.__extends(EditorDeleteColumnButtonDirective, _super);
|
|
24
|
-
function EditorDeleteColumnButtonDirective(button, editor, localization) {
|
|
25
|
-
return _super.call(this, 'deleteColumn', button, editor, localization) || this;
|
|
25
|
+
function EditorDeleteColumnButtonDirective(button, editor, localization, toolsService) {
|
|
26
|
+
return _super.call(this, 'deleteColumn', button, editor, localization, toolsService) || this;
|
|
26
27
|
}
|
|
27
28
|
EditorDeleteColumnButtonDirective = tslib_1.__decorate([
|
|
28
29
|
Directive({
|
|
@@ -31,7 +32,8 @@ var EditorDeleteColumnButtonDirective = /** @class */ (function (_super) {
|
|
|
31
32
|
tslib_1.__param(1, Host()),
|
|
32
33
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
33
34
|
EditorComponent,
|
|
34
|
-
EditorLocalizationService
|
|
35
|
+
EditorLocalizationService,
|
|
36
|
+
EditorToolsService])
|
|
35
37
|
], EditorDeleteColumnButtonDirective);
|
|
36
38
|
return EditorDeleteColumnButtonDirective;
|
|
37
39
|
}(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 DeleteRow tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -21,8 +22,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
21
22
|
*/
|
|
22
23
|
var EditorDeleteRowButtonDirective = /** @class */ (function (_super) {
|
|
23
24
|
tslib_1.__extends(EditorDeleteRowButtonDirective, _super);
|
|
24
|
-
function EditorDeleteRowButtonDirective(button, editor, localization) {
|
|
25
|
-
return _super.call(this, 'deleteRow', button, editor, localization) || this;
|
|
25
|
+
function EditorDeleteRowButtonDirective(button, editor, localization, toolsService) {
|
|
26
|
+
return _super.call(this, 'deleteRow', button, editor, localization, toolsService) || this;
|
|
26
27
|
}
|
|
27
28
|
EditorDeleteRowButtonDirective = tslib_1.__decorate([
|
|
28
29
|
Directive({
|
|
@@ -31,7 +32,8 @@ var EditorDeleteRowButtonDirective = /** @class */ (function (_super) {
|
|
|
31
32
|
tslib_1.__param(1, Host()),
|
|
32
33
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
33
34
|
EditorComponent,
|
|
34
|
-
EditorLocalizationService
|
|
35
|
+
EditorLocalizationService,
|
|
36
|
+
EditorToolsService])
|
|
35
37
|
], EditorDeleteRowButtonDirective);
|
|
36
38
|
return EditorDeleteRowButtonDirective;
|
|
37
39
|
}(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 DeleteTable tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -21,8 +22,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
21
22
|
*/
|
|
22
23
|
var EditorDeleteTableButtonDirective = /** @class */ (function (_super) {
|
|
23
24
|
tslib_1.__extends(EditorDeleteTableButtonDirective, _super);
|
|
24
|
-
function EditorDeleteTableButtonDirective(button, editor, localization) {
|
|
25
|
-
return _super.call(this, 'deleteTable', button, editor, localization) || this;
|
|
25
|
+
function EditorDeleteTableButtonDirective(button, editor, localization, toolsService) {
|
|
26
|
+
return _super.call(this, 'deleteTable', button, editor, localization, toolsService) || this;
|
|
26
27
|
}
|
|
27
28
|
EditorDeleteTableButtonDirective = tslib_1.__decorate([
|
|
28
29
|
Directive({
|
|
@@ -31,7 +32,8 @@ var EditorDeleteTableButtonDirective = /** @class */ (function (_super) {
|
|
|
31
32
|
tslib_1.__param(1, Host()),
|
|
32
33
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
33
34
|
EditorComponent,
|
|
34
|
-
EditorLocalizationService
|
|
35
|
+
EditorLocalizationService,
|
|
36
|
+
EditorToolsService])
|
|
35
37
|
], EditorDeleteTableButtonDirective);
|
|
36
38
|
return EditorDeleteTableButtonDirective;
|
|
37
39
|
}(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
|
* @hidden
|
|
13
14
|
*
|
|
@@ -23,8 +24,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
23
24
|
*/
|
|
24
25
|
var EditorMergeCellsButtonDirective = /** @class */ (function (_super) {
|
|
25
26
|
tslib_1.__extends(EditorMergeCellsButtonDirective, _super);
|
|
26
|
-
function EditorMergeCellsButtonDirective(button, editor, localization) {
|
|
27
|
-
return _super.call(this, 'mergeCells', button, editor, localization) || this;
|
|
27
|
+
function EditorMergeCellsButtonDirective(button, editor, localization, toolsService) {
|
|
28
|
+
return _super.call(this, 'mergeCells', button, editor, localization, toolsService) || this;
|
|
28
29
|
}
|
|
29
30
|
EditorMergeCellsButtonDirective = tslib_1.__decorate([
|
|
30
31
|
Directive({
|
|
@@ -33,7 +34,8 @@ var EditorMergeCellsButtonDirective = /** @class */ (function (_super) {
|
|
|
33
34
|
tslib_1.__param(1, Host()),
|
|
34
35
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
35
36
|
EditorComponent,
|
|
36
|
-
EditorLocalizationService
|
|
37
|
+
EditorLocalizationService,
|
|
38
|
+
EditorToolsService])
|
|
37
39
|
], EditorMergeCellsButtonDirective);
|
|
38
40
|
return EditorMergeCellsButtonDirective;
|
|
39
41
|
}(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
|
* @hidden
|
|
13
14
|
*
|
|
@@ -23,8 +24,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
23
24
|
*/
|
|
24
25
|
var EditorSplitCellButtonDirective = /** @class */ (function (_super) {
|
|
25
26
|
tslib_1.__extends(EditorSplitCellButtonDirective, _super);
|
|
26
|
-
function EditorSplitCellButtonDirective(button, editor, localization) {
|
|
27
|
-
return _super.call(this, 'splitCell', button, editor, localization) || this;
|
|
27
|
+
function EditorSplitCellButtonDirective(button, editor, localization, toolsService) {
|
|
28
|
+
return _super.call(this, 'splitCell', button, editor, localization, toolsService) || this;
|
|
28
29
|
}
|
|
29
30
|
EditorSplitCellButtonDirective = tslib_1.__decorate([
|
|
30
31
|
Directive({
|
|
@@ -33,7 +34,8 @@ var EditorSplitCellButtonDirective = /** @class */ (function (_super) {
|
|
|
33
34
|
tslib_1.__param(1, Host()),
|
|
34
35
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
35
36
|
EditorComponent,
|
|
36
|
-
EditorLocalizationService
|
|
37
|
+
EditorLocalizationService,
|
|
38
|
+
EditorToolsService])
|
|
37
39
|
], EditorSplitCellButtonDirective);
|
|
38
40
|
return EditorSplitCellButtonDirective;
|
|
39
41
|
}(EditorCommandButton));
|
|
@@ -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 * as tslib_1 from "tslib";
|
|
6
|
+
import { Injectable } from '@angular/core';
|
|
7
|
+
import { Subject } from 'rxjs';
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
var EditorToolsService = /** @class */ (function () {
|
|
12
|
+
function EditorToolsService() {
|
|
13
|
+
this.needsCheck = new Subject();
|
|
14
|
+
}
|
|
15
|
+
EditorToolsService = tslib_1.__decorate([
|
|
16
|
+
Injectable()
|
|
17
|
+
], EditorToolsService);
|
|
18
|
+
return EditorToolsService;
|
|
19
|
+
}());
|
|
20
|
+
export { EditorToolsService };
|
|
@@ -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 Bold 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 EditorBoldButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorBoldButtonDirective, _super);
|
|
31
|
-
function EditorBoldButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'bold', button, editor, localization) || this;
|
|
32
|
+
function EditorBoldButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'bold', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorBoldButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorBoldButtonDirective = /** @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
|
], EditorBoldButtonDirective);
|
|
43
45
|
return EditorBoldButtonDirective;
|
|
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 Italic 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 EditorItalicButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorItalicButtonDirective, _super);
|
|
31
|
-
function EditorItalicButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'italic', button, editor, localization) || this;
|
|
32
|
+
function EditorItalicButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'italic', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorItalicButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorItalicButtonDirective = /** @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
|
], EditorItalicButtonDirective);
|
|
43
45
|
return EditorItalicButtonDirective;
|
|
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 Strikethrough 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 EditorStrikethroughButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorStrikethroughButtonDirective, _super);
|
|
31
|
-
function EditorStrikethroughButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'strikethrough', button, editor, localization) || this;
|
|
32
|
+
function EditorStrikethroughButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'strikethrough', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorStrikethroughButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorStrikethroughButtonDirective = /** @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
|
], EditorStrikethroughButtonDirective);
|
|
43
45
|
return EditorStrikethroughButtonDirective;
|
|
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 Subscript 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 EditorSubscriptButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorSubscriptButtonDirective, _super);
|
|
31
|
-
function EditorSubscriptButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'subscript', button, editor, localization) || this;
|
|
32
|
+
function EditorSubscriptButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'subscript', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorSubscriptButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorSubscriptButtonDirective = /** @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
|
], EditorSubscriptButtonDirective);
|
|
43
45
|
return EditorSubscriptButtonDirective;
|
|
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 Superscript 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 EditorSuperscriptButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorSuperscriptButtonDirective, _super);
|
|
31
|
-
function EditorSuperscriptButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'superscript', button, editor, localization) || this;
|
|
32
|
+
function EditorSuperscriptButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'superscript', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorSuperscriptButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorSuperscriptButtonDirective = /** @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
|
], EditorSuperscriptButtonDirective);
|
|
43
45
|
return EditorSuperscriptButtonDirective;
|
|
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 Underline 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 EditorUnderlineButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorUnderlineButtonDirective, _super);
|
|
31
|
-
function EditorUnderlineButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'underline', button, editor, localization) || this;
|
|
32
|
+
function EditorUnderlineButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'underline', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorUnderlineButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorUnderlineButtonDirective = /** @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
|
], EditorUnderlineButtonDirective);
|
|
43
45
|
return EditorUnderlineButtonDirective;
|
|
44
46
|
}(EditorCommandButton));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
const ɵ0 = (arg) => `plugins must be a function, but received ${JSON.stringify(arg)}.`;
|
|
5
|
+
const ɵ0 = (arg) => `plugins must be a function, but received ${JSON.stringify(arg)}.`, ɵ1 = (arg) => `pastedContent must be a function, but received ${JSON.stringify(arg)}.`;
|
|
6
6
|
/* tslint:disable:variable-name */
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
@@ -11,8 +11,9 @@ export const EditorErrorMessages = {
|
|
|
11
11
|
schemaType: 'Expected value of type Schema. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/',
|
|
12
12
|
setSchemaOnce: 'The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/',
|
|
13
13
|
pluginsCallbackType: ɵ0,
|
|
14
|
+
pastedContentCallbackType: ɵ1,
|
|
14
15
|
setPluginsOnce: 'The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/',
|
|
15
16
|
setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/',
|
|
16
17
|
printTool: 'The Print tool and functionality are supported only in iframe mode. See https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorPrintButtonDirective/'
|
|
17
18
|
};
|
|
18
|
-
export { ɵ0 };
|
|
19
|
+
export { ɵ0, ɵ1 };
|
|
@@ -8,12 +8,16 @@
|
|
|
8
8
|
export interface PasteCleanupSettings {
|
|
9
9
|
/**
|
|
10
10
|
* If set to `true`, MS Word lists will be converted into HTML lists.
|
|
11
|
+
*
|
|
12
|
+
* @default false
|
|
11
13
|
*/
|
|
12
14
|
convertMsLists?: boolean;
|
|
13
15
|
/**
|
|
14
16
|
* If set to `true`, comments will be removed from the HTML.
|
|
15
17
|
*
|
|
16
18
|
* For example `<!-- comment --> <p> content </p>` will result in `<p> content </p>`
|
|
19
|
+
*
|
|
20
|
+
* @default false
|
|
17
21
|
*/
|
|
18
22
|
removeHtmlComments?: boolean;
|
|
19
23
|
/**
|
|
@@ -21,6 +25,8 @@ export interface PasteCleanupSettings {
|
|
|
21
25
|
* > Child nodes of removed tags will be kept in place.
|
|
22
26
|
*
|
|
23
27
|
* For example when `stripTags: ['span']`, `<p><span lang=EN-US>content</span></p>` will result in `<p>content</p>`
|
|
28
|
+
*
|
|
29
|
+
* @default []
|
|
24
30
|
*/
|
|
25
31
|
stripTags?: string[];
|
|
26
32
|
/**
|
|
@@ -32,12 +38,16 @@ export interface PasteCleanupSettings {
|
|
|
32
38
|
*
|
|
33
39
|
* For example when `removeAttributes: ['lang']`, `<p><span lang=EN-US>content</span></p>`
|
|
34
40
|
* will result in `<p><span>content</span></p>`
|
|
41
|
+
*
|
|
42
|
+
* @default []
|
|
35
43
|
*/
|
|
36
44
|
removeAttributes?: string[] | 'all';
|
|
37
45
|
/**
|
|
38
46
|
* If set to `true`, class attributes starting with 'Mso' will be removed from the HTML.
|
|
39
47
|
*
|
|
40
48
|
* For example `<p class="MsoNormal">pasted from MS Word</p>` will result in `<p>pasted from MS Word</p>`
|
|
49
|
+
*
|
|
50
|
+
* @default false
|
|
41
51
|
*/
|
|
42
52
|
removeMsClasses?: boolean;
|
|
43
53
|
/**
|
|
@@ -45,12 +55,16 @@ export interface PasteCleanupSettings {
|
|
|
45
55
|
*
|
|
46
56
|
* For example `<p><span style="color:#7C7C7C; mso-themecolor:accent3; mso-themeshade:191;">content</span></p>`
|
|
47
57
|
* will result in `<p><span style="color: #7C7C7C; background: silver;">content</span></p>`
|
|
58
|
+
*
|
|
59
|
+
* @default false
|
|
48
60
|
*/
|
|
49
61
|
removeMsStyles?: boolean;
|
|
50
62
|
/**
|
|
51
63
|
* Determines whether invalid HTML should be removed.
|
|
52
64
|
*
|
|
53
65
|
* For example `<p>content <o:p>, <w:sdtPr></p>` will result in `<p>content </p>`
|
|
66
|
+
*
|
|
67
|
+
* @default true
|
|
54
68
|
*/
|
|
55
69
|
removeInvalidHTML?: boolean;
|
|
56
70
|
}
|
|
@@ -15,6 +15,8 @@ import { PasteCleanupSettings } from './common/paste-cleanup-settings';
|
|
|
15
15
|
import { PluginsFn } from './common/plugins-function';
|
|
16
16
|
import { ApplyToWordOptions } from './common/apply-to-word-options';
|
|
17
17
|
import { EditorResizableOptions } from './common/resizable-options.interface';
|
|
18
|
+
import { EditorToolsService } from './tools/tools.service';
|
|
19
|
+
import { EditorPasteEvent } from './preventable-events/paste-event';
|
|
18
20
|
/**
|
|
19
21
|
* Represents the [Kendo UI Editor component for Angular]({% slug overview_editor %}).
|
|
20
22
|
*/
|
|
@@ -24,6 +26,7 @@ export declare class EditorComponent implements AfterViewInit, ControlValueAcces
|
|
|
24
26
|
private cdr;
|
|
25
27
|
private ngZone;
|
|
26
28
|
private element;
|
|
29
|
+
private toolsService;
|
|
27
30
|
/**
|
|
28
31
|
* Sets the value of the Editor ([see example]({% slug overview_editor %}#toc-basic-usage)).
|
|
29
32
|
*/
|
|
@@ -68,14 +71,6 @@ export declare class EditorComponent implements AfterViewInit, ControlValueAcces
|
|
|
68
71
|
* The hint, which is displayed when the component is empty.
|
|
69
72
|
*/
|
|
70
73
|
placeholder: string;
|
|
71
|
-
/**
|
|
72
|
-
* By design, the Editor emits `valueChange`, updates the model and the ToolBar state on each keystroke.
|
|
73
|
-
* When you are interested in ignoring the new values for a given amout of time and take only the most recent one, you can use the `updateInterval` property.
|
|
74
|
-
* A possible use case is to get the new values and to update the ToolBar state at a maximum rate per second in order to speed up your application.
|
|
75
|
-
* The specified interval (in milliseconds) should be a positive number.
|
|
76
|
-
* By default the `updateInterval` is set to 100 miliseconds. If set to zero the delay will be disabled entirely.
|
|
77
|
-
*/
|
|
78
|
-
updateInterval: number;
|
|
79
74
|
/**
|
|
80
75
|
* By default, whitespace is collapsed as per HTML's rules.
|
|
81
76
|
* Set to `true` to preserve whitespace, but normalize newlines to spaces.
|
|
@@ -105,6 +100,11 @@ export declare class EditorComponent implements AfterViewInit, ControlValueAcces
|
|
|
105
100
|
* Fires when the content area of the Editor is focused ([see example]({% slug overview_editor %}#toc-events)).
|
|
106
101
|
*/
|
|
107
102
|
onFocus: EventEmitter<undefined>;
|
|
103
|
+
/**
|
|
104
|
+
* Fires when the user performs paste in the content area of the Editor ([see example]({% slug overview_editor %}#toc-events)).
|
|
105
|
+
* The event is preventable. If you cancel it, the Editor content will not change.
|
|
106
|
+
*/
|
|
107
|
+
paste: EventEmitter<EditorPasteEvent>;
|
|
108
108
|
/**
|
|
109
109
|
* Fires when the content area of the Editor is blurred ([see example]({% slug overview_editor %}#toc-events)).
|
|
110
110
|
*/
|
|
@@ -157,16 +157,19 @@ export declare class EditorComponent implements AfterViewInit, ControlValueAcces
|
|
|
157
157
|
private subs;
|
|
158
158
|
private _view;
|
|
159
159
|
private _value;
|
|
160
|
-
private _previousValue;
|
|
161
160
|
private _disabled;
|
|
162
161
|
private _readonly;
|
|
163
162
|
private _schema;
|
|
164
163
|
private _plugins;
|
|
165
164
|
private _placeholder;
|
|
166
165
|
private _styleObserver;
|
|
166
|
+
private trOnChange;
|
|
167
|
+
private htmlOnChange;
|
|
168
|
+
private inForm;
|
|
169
|
+
private _pasteEvent;
|
|
167
170
|
private afterViewInit;
|
|
168
171
|
private contentAreaLoaded;
|
|
169
|
-
constructor(dialogService: DialogService, localization: LocalizationService, cdr: ChangeDetectorRef, ngZone: NgZone, element: ElementRef);
|
|
172
|
+
constructor(dialogService: DialogService, localization: LocalizationService, cdr: ChangeDetectorRef, ngZone: NgZone, element: ElementRef, toolsService: EditorToolsService);
|
|
170
173
|
ngOnInit(): void;
|
|
171
174
|
ngAfterViewInit(): void;
|
|
172
175
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -277,8 +280,12 @@ export declare class EditorComponent implements AfterViewInit, ControlValueAcces
|
|
|
277
280
|
*/
|
|
278
281
|
isEmpty(): boolean;
|
|
279
282
|
private initialize;
|
|
283
|
+
private dispatchTransaction;
|
|
284
|
+
private transformPastedHTML;
|
|
285
|
+
private changeValue;
|
|
286
|
+
private onChangeCallback;
|
|
280
287
|
private normalizeSize;
|
|
281
288
|
private normalizeProperties;
|
|
282
|
-
private onChangeCallback;
|
|
283
289
|
private onTouchedCallback;
|
|
290
|
+
private onPaste;
|
|
284
291
|
}
|