@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.
Files changed (194) hide show
  1. package/dist/cdn/js/kendo-angular-editor.js +2 -2
  2. package/dist/cdn/main.js +1 -1
  3. package/dist/es/common/error-messages.js +3 -2
  4. package/dist/es/editor.component.js +102 -69
  5. package/dist/es/index.js +1 -0
  6. package/dist/es/main.js +1 -0
  7. package/dist/es/package-metadata.js +1 -1
  8. package/dist/es/preventable-events/paste-event-data.js +4 -0
  9. package/dist/es/preventable-events/paste-event.js +25 -0
  10. package/dist/es/tools/alignment/editor-align-center-button.directive.js +5 -3
  11. package/dist/es/tools/alignment/editor-align-justify-button.directive.js +5 -3
  12. package/dist/es/tools/alignment/editor-align-left-button.directive.js +5 -3
  13. package/dist/es/tools/alignment/editor-align-right-button.directive.js +5 -3
  14. package/dist/es/tools/editor-clean-formatting-button.directive.js +5 -3
  15. package/dist/es/tools/fontfamily/editor-fontfamily.component.js +9 -3
  16. package/dist/es/tools/fontsize/editor-fontsize.component.js +9 -3
  17. package/dist/es/tools/format/editor-format.component.js +9 -3
  18. package/dist/es/tools/history/editor-redo-button.directive.js +5 -3
  19. package/dist/es/tools/history/editor-undo-button.directive.js +5 -3
  20. package/dist/es/tools/image/editor-insert-image-button.directive.js +5 -3
  21. package/dist/es/tools/indentation/editor-indent-button.directive.js +5 -3
  22. package/dist/es/tools/indentation/editor-outdent-button.directive.js +5 -3
  23. package/dist/es/tools/link/editor-create-link-button.directive.js +5 -3
  24. package/dist/es/tools/link/editor-insert-file-button.directive.js +5 -3
  25. package/dist/es/tools/link/editor-unlink-button.directive.js +5 -3
  26. package/dist/es/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  27. package/dist/es/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  28. package/dist/es/tools/print/editor-print-button.directive.js +5 -3
  29. package/dist/es/tools/select-all/select-all-button.directive.js +5 -3
  30. package/dist/es/tools/shared/editor-command-base.js +3 -1
  31. package/dist/es/tools/shared/editor-command-button.js +3 -2
  32. package/dist/es/tools/shared/editor-command-dialog.js +3 -2
  33. package/dist/es/tools/source/editor-view-source-button.directive.js +5 -3
  34. package/dist/es/tools/tables/editor-add-column-after-button.directive.js +5 -3
  35. package/dist/es/tools/tables/editor-add-column-before-button.directive.js +5 -3
  36. package/dist/es/tools/tables/editor-add-row-after-button.directive.js +5 -3
  37. package/dist/es/tools/tables/editor-add-row-before-button.directive.js +5 -3
  38. package/dist/es/tools/tables/editor-delete-column-button.directive.js +5 -3
  39. package/dist/es/tools/tables/editor-delete-row-button.directive.js +5 -3
  40. package/dist/es/tools/tables/editor-delete-table-button.directive.js +5 -3
  41. package/dist/es/tools/tables/editor-merge-cells-button.directive.js +5 -3
  42. package/dist/es/tools/tables/editor-split-cell-button.directive.js +5 -3
  43. package/dist/es/tools/tools.service.js +20 -0
  44. package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  45. package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  46. package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  47. package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  48. package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  49. package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  50. package/dist/es2015/common/error-messages.js +3 -2
  51. package/dist/es2015/common/paste-cleanup-settings.d.ts +14 -0
  52. package/dist/es2015/editor.component.d.ts +18 -11
  53. package/dist/es2015/editor.component.js +102 -69
  54. package/dist/es2015/index.d.ts +1 -0
  55. package/dist/es2015/index.js +1 -0
  56. package/dist/es2015/index.metadata.json +1 -1
  57. package/dist/es2015/main.d.ts +2 -0
  58. package/dist/es2015/main.js +1 -0
  59. package/dist/es2015/package-metadata.js +1 -1
  60. package/dist/es2015/preventable-events/paste-event-data.d.ts +21 -0
  61. package/dist/es2015/preventable-events/paste-event-data.js +4 -0
  62. package/dist/es2015/preventable-events/paste-event.d.ts +27 -0
  63. package/dist/es2015/preventable-events/paste-event.js +20 -0
  64. package/dist/es2015/tools/alignment/editor-align-center-button.directive.d.ts +2 -1
  65. package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +5 -3
  66. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.d.ts +2 -1
  67. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +5 -3
  68. package/dist/es2015/tools/alignment/editor-align-left-button.directive.d.ts +2 -1
  69. package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +5 -3
  70. package/dist/es2015/tools/alignment/editor-align-right-button.directive.d.ts +2 -1
  71. package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +5 -3
  72. package/dist/es2015/tools/editor-clean-formatting-button.directive.d.ts +2 -1
  73. package/dist/es2015/tools/editor-clean-formatting-button.directive.js +5 -3
  74. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.d.ts +3 -1
  75. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.js +9 -3
  76. package/dist/es2015/tools/fontsize/editor-fontsize.component.d.ts +3 -1
  77. package/dist/es2015/tools/fontsize/editor-fontsize.component.js +9 -3
  78. package/dist/es2015/tools/format/editor-format.component.d.ts +3 -1
  79. package/dist/es2015/tools/format/editor-format.component.js +9 -3
  80. package/dist/es2015/tools/history/editor-redo-button.directive.d.ts +2 -1
  81. package/dist/es2015/tools/history/editor-redo-button.directive.js +5 -3
  82. package/dist/es2015/tools/history/editor-undo-button.directive.d.ts +2 -1
  83. package/dist/es2015/tools/history/editor-undo-button.directive.js +5 -3
  84. package/dist/es2015/tools/image/editor-insert-image-button.directive.d.ts +2 -1
  85. package/dist/es2015/tools/image/editor-insert-image-button.directive.js +5 -3
  86. package/dist/es2015/tools/indentation/editor-indent-button.directive.d.ts +2 -1
  87. package/dist/es2015/tools/indentation/editor-indent-button.directive.js +5 -3
  88. package/dist/es2015/tools/indentation/editor-outdent-button.directive.d.ts +2 -1
  89. package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +5 -3
  90. package/dist/es2015/tools/link/editor-create-link-button.directive.d.ts +2 -1
  91. package/dist/es2015/tools/link/editor-create-link-button.directive.js +5 -3
  92. package/dist/es2015/tools/link/editor-insert-file-button.directive.d.ts +2 -1
  93. package/dist/es2015/tools/link/editor-insert-file-button.directive.js +5 -3
  94. package/dist/es2015/tools/link/editor-unlink-button.directive.d.ts +2 -1
  95. package/dist/es2015/tools/link/editor-unlink-button.directive.js +5 -3
  96. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.d.ts +2 -1
  97. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  98. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.d.ts +2 -1
  99. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  100. package/dist/es2015/tools/print/editor-print-button.directive.d.ts +2 -1
  101. package/dist/es2015/tools/print/editor-print-button.directive.js +5 -3
  102. package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +2 -1
  103. package/dist/es2015/tools/select-all/select-all-button.directive.js +5 -3
  104. package/dist/es2015/tools/shared/editor-command-base.d.ts +3 -1
  105. package/dist/es2015/tools/shared/editor-command-base.js +3 -1
  106. package/dist/es2015/tools/shared/editor-command-button.d.ts +3 -1
  107. package/dist/es2015/tools/shared/editor-command-button.js +3 -2
  108. package/dist/es2015/tools/shared/editor-command-dialog.d.ts +3 -1
  109. package/dist/es2015/tools/shared/editor-command-dialog.js +3 -2
  110. package/dist/es2015/tools/source/editor-view-source-button.directive.d.ts +2 -1
  111. package/dist/es2015/tools/source/editor-view-source-button.directive.js +5 -3
  112. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.d.ts +2 -1
  113. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +5 -3
  114. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.d.ts +2 -1
  115. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +5 -3
  116. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.d.ts +2 -1
  117. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +5 -3
  118. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.d.ts +2 -1
  119. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +5 -3
  120. package/dist/es2015/tools/tables/editor-delete-column-button.directive.d.ts +2 -1
  121. package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +5 -3
  122. package/dist/es2015/tools/tables/editor-delete-row-button.directive.d.ts +2 -1
  123. package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +5 -3
  124. package/dist/es2015/tools/tables/editor-delete-table-button.directive.d.ts +2 -1
  125. package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +5 -3
  126. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.d.ts +2 -1
  127. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +5 -3
  128. package/dist/es2015/tools/tables/editor-split-cell-button.directive.d.ts +2 -1
  129. package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +5 -3
  130. package/dist/es2015/tools/tools.service.d.ts +11 -0
  131. package/dist/es2015/tools/tools.service.js +22 -0
  132. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.d.ts +2 -1
  133. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  134. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.d.ts +2 -1
  135. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  136. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +2 -1
  137. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  138. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +2 -1
  139. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  140. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +2 -1
  141. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  142. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.d.ts +2 -1
  143. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  144. package/dist/fesm2015/index.js +301 -186
  145. package/dist/fesm5/index.js +302 -186
  146. package/dist/npm/common/error-messages.js +3 -1
  147. package/dist/npm/editor.component.js +98 -65
  148. package/dist/npm/index.js +2 -0
  149. package/dist/npm/main.js +2 -0
  150. package/dist/npm/package-metadata.js +1 -1
  151. package/dist/npm/preventable-events/paste-event-data.js +6 -0
  152. package/dist/npm/preventable-events/paste-event.js +27 -0
  153. package/dist/npm/tools/alignment/editor-align-center-button.directive.js +5 -3
  154. package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +5 -3
  155. package/dist/npm/tools/alignment/editor-align-left-button.directive.js +5 -3
  156. package/dist/npm/tools/alignment/editor-align-right-button.directive.js +5 -3
  157. package/dist/npm/tools/editor-clean-formatting-button.directive.js +5 -3
  158. package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +9 -3
  159. package/dist/npm/tools/fontsize/editor-fontsize.component.js +9 -3
  160. package/dist/npm/tools/format/editor-format.component.js +9 -3
  161. package/dist/npm/tools/history/editor-redo-button.directive.js +5 -3
  162. package/dist/npm/tools/history/editor-undo-button.directive.js +5 -3
  163. package/dist/npm/tools/image/editor-insert-image-button.directive.js +5 -3
  164. package/dist/npm/tools/indentation/editor-indent-button.directive.js +5 -3
  165. package/dist/npm/tools/indentation/editor-outdent-button.directive.js +5 -3
  166. package/dist/npm/tools/link/editor-create-link-button.directive.js +5 -3
  167. package/dist/npm/tools/link/editor-insert-file-button.directive.js +5 -3
  168. package/dist/npm/tools/link/editor-unlink-button.directive.js +5 -3
  169. package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  170. package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  171. package/dist/npm/tools/print/editor-print-button.directive.js +5 -3
  172. package/dist/npm/tools/select-all/select-all-button.directive.js +5 -3
  173. package/dist/npm/tools/shared/editor-command-base.js +3 -1
  174. package/dist/npm/tools/shared/editor-command-button.js +3 -2
  175. package/dist/npm/tools/shared/editor-command-dialog.js +3 -2
  176. package/dist/npm/tools/source/editor-view-source-button.directive.js +5 -3
  177. package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +5 -3
  178. package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +5 -3
  179. package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +5 -3
  180. package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +5 -3
  181. package/dist/npm/tools/tables/editor-delete-column-button.directive.js +5 -3
  182. package/dist/npm/tools/tables/editor-delete-row-button.directive.js +5 -3
  183. package/dist/npm/tools/tables/editor-delete-table-button.directive.js +5 -3
  184. package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +5 -3
  185. package/dist/npm/tools/tables/editor-split-cell-button.directive.js +5 -3
  186. package/dist/npm/tools/tools.service.js +22 -0
  187. package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  188. package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  189. package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  190. package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  191. package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  192. package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  193. package/dist/systemjs/kendo-angular-editor.js +1 -1
  194. package/package.json +4 -4
@@ -3,14 +3,14 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { __decorate, __param, __metadata } from 'tslib';
6
- import { Inject, Optional, Input, ViewChild, ElementRef, Component, EventEmitter, isDevMode, Output, HostBinding, ContentChild, ViewContainerRef, forwardRef, ChangeDetectorRef, NgZone, TemplateRef, Host, Directive, NgModule } from '@angular/core';
6
+ import { Inject, Optional, Input, ViewChild, ElementRef, Component, Injectable, EventEmitter, isDevMode, Output, HostBinding, ContentChild, ViewContainerRef, forwardRef, ChangeDetectorRef, NgZone, TemplateRef, Host, Directive, NgModule } from '@angular/core';
7
7
  import { FormControl, Validators, FormGroup, NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
8
- import { BehaviorSubject, Subject, zip, fromEvent, merge, interval } from 'rxjs';
9
- import { take, filter, auditTime, map, concatMap, takeUntil } from 'rxjs/operators';
8
+ import { Subject, BehaviorSubject, zip, fromEvent, interval } from 'rxjs';
9
+ import { take, map, filter, concatMap, takeUntil } from 'rxjs/operators';
10
10
  import { ToolBarComponent, ToolBarToolComponent, ToolBarButtonComponent, ToolBarModule } from '@progress/kendo-angular-toolbar';
11
11
  import { DialogContentBase, DialogRef, DialogService, DialogModule } from '@progress/kendo-angular-dialog';
12
- import { isDocumentAvailable, guid, KendoInput, Keys } from '@progress/kendo-angular-common';
13
- import { nodes, Schema, marks, Selection, SelectionRange, TextSelection, Fragment, Slice, NodeSelection, insertNode, expandToWordWrap, toggleInlineFormat, bold, cleanFormatting, applyLink, applyInlineStyle, insertText, italic, strikethrough, subscript, superscript, underline, removeLink, link, selectAll, isAligned, alignCenterRules, alignBlocks, alignRemoveRules, alignJustifyRules, alignLeftRules, alignRightRules, formatBlockElements, getHtml, indent, insertImage, toggleOrderedList, toggleUnorderedList, outdent, redo, setHtml, undo, hasMark, activeNode, canIndentAsListItem, canBeIndented, indentRules, hasNode, canOutdentAsListItem, outdentRules, getActiveMarks, expandSelection, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell, deleteTable, getNodeFromSelection, getMark, getSelectionText, parseContent, Plugin, PluginKey, history, keymap, buildListKeymap, buildKeymap, baseKeymap, gapCursor, imageResizing, placeholder, EditorState, EditorView, hasSameMarkup, pasteCleanup, removeComments, sanitize, removeAttribute, sanitizeStyleAttr, sanitizeClassAttr } from '@progress/kendo-editor-common';
12
+ import { isDocumentAvailable, guid, PreventableEvent, hasObservers, KendoInput, Keys } from '@progress/kendo-angular-common';
13
+ import { nodes, Schema, marks, Selection, SelectionRange, TextSelection, Fragment, Slice, NodeSelection, insertNode, expandToWordWrap, toggleInlineFormat, bold, cleanFormatting, applyLink, applyInlineStyle, insertText, italic, strikethrough, subscript, superscript, underline, removeLink, link, selectAll, isAligned, alignCenterRules, alignBlocks, alignRemoveRules, alignJustifyRules, alignLeftRules, alignRightRules, formatBlockElements, getHtml, indent, insertImage, toggleOrderedList, toggleUnorderedList, outdent, redo, setHtml, undo, hasMark, activeNode, canIndentAsListItem, canBeIndented, indentRules, hasNode, canOutdentAsListItem, outdentRules, getActiveMarks, expandSelection, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell, deleteTable, getNodeFromSelection, getMark, getSelectionText, pasteCleanup, parseContent, AllSelection, Plugin, PluginKey, history, keymap, buildListKeymap, buildKeymap, baseKeymap, gapCursor, imageResizing, placeholder, EditorState, EditorView, removeComments, sanitize, removeAttribute, sanitizeStyleAttr, sanitizeClassAttr } from '@progress/kendo-editor-common';
14
14
  export { Schema, EditorState, Plugin, PluginKey, Transaction, EditorView, Decoration, DecorationSet, NodeType, Node, MarkType, Mark, InputRule, inputRules, wrappingInputRule, textblockTypeInputRule, keymap, baseKeymap, history, dropCursor, gapCursor, tableNodes, getSelectionText } from '@progress/kendo-editor-common';
15
15
  import { validatePackage } from '@progress/kendo-licensing';
16
16
  import { LocalizationService, L10N_PREFIX, RTL, MessageService, ComponentMessages } from '@progress/kendo-angular-l10n';
@@ -27,7 +27,7 @@ const packageMetadata = {
27
27
  name: '@progress/kendo-angular-editor',
28
28
  productName: 'Kendo UI for Angular',
29
29
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
30
- publishDate: 1637743184,
30
+ publishDate: 1640097479,
31
31
  version: '',
32
32
  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'
33
33
  };
@@ -2533,7 +2533,7 @@ const tablesStyles = `
2533
2533
  */
2534
2534
  const rtlStyles = 'body { direction: rtl }';
2535
2535
 
2536
- const ɵ0$6 = (arg) => `plugins must be a function, but received ${JSON.stringify(arg)}.`;
2536
+ const ɵ0$6 = (arg) => `plugins must be a function, but received ${JSON.stringify(arg)}.`, ɵ1$6 = (arg) => `pastedContent must be a function, but received ${JSON.stringify(arg)}.`;
2537
2537
  /* tslint:disable:variable-name */
2538
2538
  /**
2539
2539
  * @hidden
@@ -2542,21 +2542,53 @@ const EditorErrorMessages = {
2542
2542
  schemaType: 'Expected value of type Schema. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/',
2543
2543
  setSchemaOnce: 'The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/',
2544
2544
  pluginsCallbackType: ɵ0$6,
2545
+ pastedContentCallbackType: ɵ1$6,
2545
2546
  setPluginsOnce: 'The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/',
2546
2547
  setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/',
2547
2548
  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/'
2548
2549
  };
2549
2550
 
2551
+ /**
2552
+ * @hidden
2553
+ */
2554
+ let EditorToolsService = class EditorToolsService {
2555
+ /**
2556
+ * @hidden
2557
+ */
2558
+ constructor() {
2559
+ this.needsCheck = new Subject();
2560
+ }
2561
+ };
2562
+ EditorToolsService = __decorate([
2563
+ Injectable()
2564
+ ], EditorToolsService);
2565
+
2566
+ /**
2567
+ * The Editor [`paste`]({% slug api_editor_editorcomponent %}#toc-paste) event.
2568
+ */
2569
+ class EditorPasteEvent extends PreventableEvent {
2570
+ /**
2571
+ * Constructs the event arguments for the `paste` event.
2572
+ * @hidden
2573
+ */
2574
+ constructor(cleanedHtml, originalHtml, originalEvent) {
2575
+ super();
2576
+ this.cleanedHtml = cleanedHtml;
2577
+ this.originalHtml = originalHtml;
2578
+ this.originalEvent = originalEvent;
2579
+ }
2580
+ }
2581
+
2550
2582
  var EditorComponent_1;
2551
2583
  const EMPTY_PARAGRAPH = '<p></p>';
2552
2584
  const defaultPasteCleanupSettings = {
2553
2585
  convertMsLists: false,
2554
2586
  removeAttributes: [],
2555
2587
  removeHtmlComments: false,
2556
- removeInvalidHTML: false,
2588
+ removeInvalidHTML: true,
2557
2589
  removeMsClasses: false,
2558
2590
  removeMsStyles: false,
2559
- stripTags: ['']
2591
+ stripTags: []
2560
2592
  };
2561
2593
  const removeCommentsIf = conditionallyExecute(removeComments);
2562
2594
  const removeInvalidHTMLIf = conditionallyExecute(sanitize);
@@ -2574,12 +2606,13 @@ const getPasteCleanupAttributes = (config) => {
2574
2606
  * Represents the [Kendo UI Editor component for Angular]({% slug overview_editor %}).
2575
2607
  */
2576
2608
  let EditorComponent = EditorComponent_1 = class EditorComponent {
2577
- constructor(dialogService, localization, cdr, ngZone, element) {
2609
+ constructor(dialogService, localization, cdr, ngZone, element, toolsService) {
2578
2610
  this.dialogService = dialogService;
2579
2611
  this.localization = localization;
2580
2612
  this.cdr = cdr;
2581
2613
  this.ngZone = ngZone;
2582
2614
  this.element = element;
2615
+ this.toolsService = toolsService;
2583
2616
  /**
2584
2617
  * If set to `false`, the Editor will run in style non-encapsulated mode. This means
2585
2618
  * that the styles of the page will be persisted in the Editor and its content will be affected by them.
@@ -2591,14 +2624,6 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
2591
2624
  * @default false
2592
2625
  */
2593
2626
  this.applyToWord = false;
2594
- /**
2595
- * By design, the Editor emits `valueChange`, updates the model and the ToolBar state on each keystroke.
2596
- * 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.
2597
- * 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.
2598
- * The specified interval (in milliseconds) should be a positive number.
2599
- * By default the `updateInterval` is set to 100 miliseconds. If set to zero the delay will be disabled entirely.
2600
- */
2601
- this.updateInterval = 100;
2602
2627
  /**
2603
2628
  * By default, whitespace is collapsed as per HTML's rules.
2604
2629
  * Set to `true` to preserve whitespace, but normalize newlines to spaces.
@@ -2624,6 +2649,11 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
2624
2649
  * Fires when the content area of the Editor is focused ([see example]({% slug overview_editor %}#toc-events)).
2625
2650
  */
2626
2651
  this.onFocus = new EventEmitter();
2652
+ /**
2653
+ * Fires when the user performs paste in the content area of the Editor ([see example]({% slug overview_editor %}#toc-events)).
2654
+ * The event is preventable. If you cancel it, the Editor content will not change.
2655
+ */
2656
+ this.paste = new EventEmitter();
2627
2657
  /**
2628
2658
  * Fires when the content area of the Editor is blurred ([see example]({% slug overview_editor %}#toc-events)).
2629
2659
  */
@@ -2639,10 +2669,73 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
2639
2669
  this.valueModified = new Subject();
2640
2670
  this._readonly = false;
2641
2671
  this._placeholder = '';
2672
+ this.inForm = false;
2642
2673
  this.afterViewInit = new Subject();
2643
2674
  this.contentAreaLoaded = new Subject();
2644
- this.onChangeCallback = (_) => { }; // tslint:disable-line:no-empty
2675
+ this.dispatchTransaction = (tr) => {
2676
+ const docChanged = tr.docChanged;
2677
+ if (docChanged) {
2678
+ const doc = tr.doc;
2679
+ const html = getHtml({ doc });
2680
+ this.trOnChange = tr;
2681
+ this.htmlOnChange = html;
2682
+ this.ngZone.run(() => {
2683
+ this.valueModified.next(html);
2684
+ });
2685
+ }
2686
+ if (!docChanged || this.inForm) {
2687
+ this.view.updateState(this.view.state.apply(tr));
2688
+ }
2689
+ };
2690
+ this.transformPastedHTML = (dirtyHtml) => {
2691
+ const pasteCleanupSettings = Object.assign({}, defaultPasteCleanupSettings, this.pasteCleanupSettings);
2692
+ const html = pipe(removeInvalidHTMLIf(pasteCleanupSettings.removeInvalidHTML), removeCommentsIf(pasteCleanupSettings.removeHtmlComments))(dirtyHtml);
2693
+ const clean = pasteCleanup(html, {
2694
+ convertMsLists: pasteCleanupSettings.convertMsLists,
2695
+ stripTags: pasteCleanupSettings.stripTags.join('|'),
2696
+ attributes: getPasteCleanupAttributes(pasteCleanupSettings)
2697
+ });
2698
+ if (hasObservers(this.paste)) {
2699
+ const event = new EditorPasteEvent(clean, dirtyHtml, this._pasteEvent);
2700
+ this.ngZone.run(() => this.paste.emit(event));
2701
+ return event.isDefaultPrevented() ? '' : event.cleanedHtml;
2702
+ }
2703
+ return clean;
2704
+ };
2705
+ this.changeValue = (value) => {
2706
+ const prev = this._value;
2707
+ this._value = value;
2708
+ if (!this._view) {
2709
+ return;
2710
+ }
2711
+ if (this.htmlOnChange === value && this.trOnChange) {
2712
+ this.view.updateState(this.view.state.apply(this.trOnChange));
2713
+ }
2714
+ else {
2715
+ if ((prev || '') !== (value || '')) {
2716
+ const iframeContentWindowNotPresent = this.iframe && !this.container.element.nativeElement.contentWindow;
2717
+ if (iframeContentWindowNotPresent) {
2718
+ return;
2719
+ }
2720
+ const state = this.view.state;
2721
+ const nextDoc = parseContent(value || '', state.schema, { preserveWhitespace: this.preserveWhitespace });
2722
+ const tr = state.tr
2723
+ .setSelection(new AllSelection(state.doc))
2724
+ .replaceSelectionWith(nextDoc);
2725
+ this.view.updateState(state.apply(tr));
2726
+ }
2727
+ }
2728
+ this.trOnChange = null;
2729
+ this.htmlOnChange = null;
2730
+ };
2731
+ this.onChangeCallback = (value) => {
2732
+ this.changeValue(value);
2733
+ };
2645
2734
  this.onTouchedCallback = (_) => { }; // tslint:disable-line:no-empty
2735
+ this.onPaste = (_view, nativeEvent) => {
2736
+ this._pasteEvent = nativeEvent;
2737
+ return false;
2738
+ };
2646
2739
  validatePackage(packageMetadata);
2647
2740
  this.direction = localization.rtl ? 'rtl' : 'ltr';
2648
2741
  // https://stackoverflow.com/questions/56572483/chrome-is-synchronously-handling-iframe-loading-whereas-firefox-handles-it-asyn
@@ -2652,25 +2745,12 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
2652
2745
  * Sets the value of the Editor ([see example]({% slug overview_editor %}#toc-basic-usage)).
2653
2746
  */
2654
2747
  set value(value) {
2655
- if (this._previousValue === value) {
2656
- return;
2657
- }
2658
- this._value = value;
2659
- this._previousValue = value;
2660
- if (this._view) {
2661
- const iframeContentWindowNotPresent = this.iframe && !this.container.element.nativeElement.contentWindow;
2662
- if (iframeContentWindowNotPresent) {
2663
- return;
2664
- }
2665
- this.exec('setHTML', {
2666
- content: this._value || '',
2667
- parseOptions: {
2668
- preserveWhitespace: this.preserveWhitespace
2669
- }
2670
- });
2671
- }
2748
+ this.changeValue(value);
2672
2749
  }
2673
2750
  get value() {
2751
+ if (this.trOnChange) {
2752
+ return this.htmlOnChange;
2753
+ }
2674
2754
  let value = this._view ? this.getSource() : this._value;
2675
2755
  if (value === EMPTY_PARAGRAPH) {
2676
2756
  return this._value ? '' : this._value;
@@ -2848,6 +2928,7 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
2848
2928
  this.subs.add(this.localization.changes.subscribe(({ rtl }) => {
2849
2929
  this.direction = rtl ? 'rtl' : 'ltr';
2850
2930
  }));
2931
+ this.subs.add(this.toolsService.needsCheck.subscribe(() => this.cdr.markForCheck()));
2851
2932
  }
2852
2933
  ngAfterViewInit() {
2853
2934
  this.afterViewInit.next();
@@ -2859,6 +2940,9 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
2859
2940
  }
2860
2941
  }
2861
2942
  ngOnChanges(changes) {
2943
+ if (changes.value && this.view) {
2944
+ this.changeValue(changes.value.currentValue);
2945
+ }
2862
2946
  if (changes.iframe && !changes.iframe.isFirstChange()) {
2863
2947
  this.ngZone.onStable.pipe(take(1)).subscribe(() => this.initialize());
2864
2948
  }
@@ -2944,8 +3028,6 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
2944
3028
  const command = editorCommands[commandName](attr);
2945
3029
  // Executes a ProseMirror command.
2946
3030
  command(this._view.state, this._view.dispatch, this._view);
2947
- // See the `dispatchTransaction` comments.
2948
- // this.stateChange.emit(updateToolBar(this.view));
2949
3031
  }
2950
3032
  /**
2951
3033
  * Opens a dialog.
@@ -3030,6 +3112,7 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
3030
3112
  * @hidden
3031
3113
  */
3032
3114
  writeValue(value) {
3115
+ this.inForm = true;
3033
3116
  // To avoid confusion, non-existent values are always undefined.
3034
3117
  this.value = value === null ? undefined : value;
3035
3118
  }
@@ -3057,7 +3140,6 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
3057
3140
  return;
3058
3141
  }
3059
3142
  const currentSchema = this.schema || schema;
3060
- const that = this;
3061
3143
  const containerNativeElement = this.container.element.nativeElement;
3062
3144
  const contentNode = parseContent((this.value || '').trim(), currentSchema, { preserveWhitespace: this.preserveWhitespace });
3063
3145
  if (this.iframe) {
@@ -3101,7 +3183,7 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
3101
3183
  }),
3102
3184
  new Plugin({
3103
3185
  key: new PluginKey('editor-filter-disabled-state'),
3104
- filterTransaction: () => !this.disabled
3186
+ filterTransaction: () => !this.disabled || this.inForm
3105
3187
  }),
3106
3188
  history(),
3107
3189
  keymap(buildListKeymap(currentSchema)),
@@ -3128,31 +3210,10 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
3128
3210
  this._view = new EditorView({ mount: this.viewMountElement }, {
3129
3211
  state,
3130
3212
  editable: () => !this.readonly,
3131
- dispatchTransaction: function (tr) {
3132
- // `this` is bound to the view instance.
3133
- this.updateState(this.state.apply(tr));
3134
- // that.cdr.detectChanges();
3135
- // When the user utilizes keyboard shortcuts&mdash;for example, `Ctrl`+`b`&mdash;
3136
- // `tr.docChanged` is `true` and the toolbar is not updated.
3137
- // A possible future solution is to move the keymaps to the service.
3138
- // if (!tr.docChanged) {
3139
- // that.stateChange.emit(updateToolBar(that.view));
3140
- // }
3141
- const value = that.value;
3142
- if (!hasSameMarkup(value, that._previousValue, this.state.schema)) {
3143
- that._previousValue = value;
3144
- that.ngZone.run(() => that.valueModified.next(value));
3145
- }
3146
- },
3147
- transformPastedHTML: (html) => {
3148
- const pasteCleanupSettings = Object.assign({}, defaultPasteCleanupSettings, this.pasteCleanupSettings);
3149
- const clean = pipe(removeCommentsIf(pasteCleanupSettings.removeHtmlComments), removeInvalidHTMLIf(pasteCleanupSettings.removeInvalidHTML))(html);
3150
- const attributes = getPasteCleanupAttributes(pasteCleanupSettings);
3151
- return pasteCleanup(clean, {
3152
- convertMsLists: pasteCleanupSettings.convertMsLists,
3153
- stripTags: pasteCleanupSettings.stripTags.join('|'),
3154
- attributes
3155
- });
3213
+ dispatchTransaction: this.dispatchTransaction,
3214
+ transformPastedHTML: this.transformPastedHTML,
3215
+ handleDOMEvents: {
3216
+ paste: this.onPaste
3156
3217
  }
3157
3218
  });
3158
3219
  });
@@ -3193,7 +3254,7 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
3193
3254
  this.cdr.detectChanges();
3194
3255
  }
3195
3256
  }));
3196
- this.subs.add(merge(this.valueModified.pipe(filter(() => this.updateInterval > 0), auditTime(this.updateInterval)), this.valueModified.pipe(filter(() => this.updateInterval === 0))).subscribe((value) => {
3257
+ this.subs.add(this.valueModified.subscribe((value) => {
3197
3258
  this.onChangeCallback(value);
3198
3259
  this.valueChange.emit(value);
3199
3260
  this.cdr.markForCheck();
@@ -3286,10 +3347,6 @@ __decorate([
3286
3347
  __metadata("design:type", String),
3287
3348
  __metadata("design:paramtypes", [String])
3288
3349
  ], EditorComponent.prototype, "placeholder", null);
3289
- __decorate([
3290
- Input(),
3291
- __metadata("design:type", Number)
3292
- ], EditorComponent.prototype, "updateInterval", void 0);
3293
3350
  __decorate([
3294
3351
  Input(),
3295
3352
  __metadata("design:type", Object)
@@ -3310,6 +3367,10 @@ __decorate([
3310
3367
  Output('focus'),
3311
3368
  __metadata("design:type", EventEmitter)
3312
3369
  ], EditorComponent.prototype, "onFocus", void 0);
3370
+ __decorate([
3371
+ Output(),
3372
+ __metadata("design:type", EventEmitter)
3373
+ ], EditorComponent.prototype, "paste", void 0);
3313
3374
  __decorate([
3314
3375
  Output('blur'),
3315
3376
  __metadata("design:type", EventEmitter)
@@ -3397,6 +3458,7 @@ EditorComponent = EditorComponent_1 = __decorate([
3397
3458
  selector: 'kendo-editor',
3398
3459
  providers: [
3399
3460
  EditorLocalizationService,
3461
+ EditorToolsService,
3400
3462
  {
3401
3463
  provide: LocalizationService,
3402
3464
  useExisting: EditorLocalizationService
@@ -3556,7 +3618,7 @@ EditorComponent = EditorComponent_1 = __decorate([
3556
3618
  <div *ngIf="!iframe" #content [attr.dir]="direction" class="k-editor-content"></div>
3557
3619
 
3558
3620
  <div class="k-editor-content" *ngIf="iframe">
3559
- <iframe #content frameborder="0" class="k-iframe" (load)="iframeOnLoad()"></iframe>
3621
+ <iframe #content srcdoc="<!DOCTYPE html>" frameborder="0" class="k-iframe" (load)="iframeOnLoad()"></iframe>
3560
3622
  </div>
3561
3623
 
3562
3624
  <ng-container #dialogsContainer></ng-container>
@@ -3583,7 +3645,8 @@ EditorComponent = EditorComponent_1 = __decorate([
3583
3645
  LocalizationService,
3584
3646
  ChangeDetectorRef,
3585
3647
  NgZone,
3586
- ElementRef])
3648
+ ElementRef,
3649
+ EditorToolsService])
3587
3650
  ], EditorComponent);
3588
3651
 
3589
3652
  /**
@@ -4085,11 +4148,12 @@ var EditorFormatComponent_1;
4085
4148
  * ```
4086
4149
  */
4087
4150
  let EditorFormatComponent = EditorFormatComponent_1 = class EditorFormatComponent extends ToolBarToolComponent {
4088
- constructor(editor, dialogService, localization) {
4151
+ constructor(editor, dialogService, localization, toolsService) {
4089
4152
  super();
4090
4153
  this.editor = editor;
4091
4154
  this.dialogService = dialogService;
4092
4155
  this.localization = localization;
4156
+ this.toolsService = toolsService;
4093
4157
  this.disabled = false;
4094
4158
  this.tabindex = -1;
4095
4159
  /**
@@ -4125,7 +4189,10 @@ let EditorFormatComponent = EditorFormatComponent_1 = class EditorFormatComponen
4125
4189
  return itemArgs.dataItem.tag === null;
4126
4190
  }
4127
4191
  };
4128
- setTimeout(() => (this.defaultItem = { text: this.title, tag: null }));
4192
+ setTimeout(() => {
4193
+ this.defaultItem = { text: this.title, tag: null };
4194
+ this.toolsService.needsCheck.next();
4195
+ });
4129
4196
  this.subs = this.editor.stateChange.subscribe(({ format }) => {
4130
4197
  const index = this.data.findIndex(item => item.tag === format.selected.tag);
4131
4198
  this.value = index !== -1 ? format.selected.tag : null;
@@ -4266,7 +4333,8 @@ EditorFormatComponent = EditorFormatComponent_1 = __decorate([
4266
4333
  __param(0, Host()),
4267
4334
  __metadata("design:paramtypes", [EditorComponent,
4268
4335
  DialogService,
4269
- EditorLocalizationService])
4336
+ EditorLocalizationService,
4337
+ EditorToolsService])
4270
4338
  ], EditorFormatComponent);
4271
4339
 
4272
4340
  /**
@@ -4438,11 +4506,12 @@ var EditorFontSizeComponent_1;
4438
4506
  * ```
4439
4507
  */
4440
4508
  let EditorFontSizeComponent = EditorFontSizeComponent_1 = class EditorFontSizeComponent extends ToolBarToolComponent {
4441
- constructor(editor, dialogService, localization) {
4509
+ constructor(editor, dialogService, localization, toolsService) {
4442
4510
  super();
4443
4511
  this.editor = editor;
4444
4512
  this.dialogService = dialogService;
4445
4513
  this.localization = localization;
4514
+ this.toolsService = toolsService;
4446
4515
  this.disabled = false;
4447
4516
  this.tabindex = -1;
4448
4517
  /**
@@ -4477,7 +4546,10 @@ let EditorFontSizeComponent = EditorFontSizeComponent_1 = class EditorFontSizeCo
4477
4546
  return itemArgs.dataItem.size === null;
4478
4547
  }
4479
4548
  };
4480
- setTimeout(() => (this.defaultItem = { text: this.title, size: null }));
4549
+ setTimeout(() => {
4550
+ this.defaultItem = { text: this.title, size: null };
4551
+ this.toolsService.needsCheck.next();
4552
+ });
4481
4553
  this.subs = this.editor.stateChange.subscribe(({ style }) => {
4482
4554
  // remove units(px, em, rem...)
4483
4555
  // string#match returns array
@@ -4622,7 +4694,8 @@ EditorFontSizeComponent = EditorFontSizeComponent_1 = __decorate([
4622
4694
  __param(0, Host()),
4623
4695
  __metadata("design:paramtypes", [EditorComponent,
4624
4696
  DialogService,
4625
- EditorLocalizationService])
4697
+ EditorLocalizationService,
4698
+ EditorToolsService])
4626
4699
  ], EditorFontSizeComponent);
4627
4700
 
4628
4701
  var EditorFontFamilyComponent_1;
@@ -4638,11 +4711,12 @@ var EditorFontFamilyComponent_1;
4638
4711
  * ```
4639
4712
  */
4640
4713
  let EditorFontFamilyComponent = EditorFontFamilyComponent_1 = class EditorFontFamilyComponent extends ToolBarToolComponent {
4641
- constructor(editor, dialogService, localization) {
4714
+ constructor(editor, dialogService, localization, toolsService) {
4642
4715
  super();
4643
4716
  this.editor = editor;
4644
4717
  this.dialogService = dialogService;
4645
4718
  this.localization = localization;
4719
+ this.toolsService = toolsService;
4646
4720
  this.disabled = false;
4647
4721
  this.tabindex = -1;
4648
4722
  /**
@@ -4684,7 +4758,10 @@ let EditorFontFamilyComponent = EditorFontFamilyComponent_1 = class EditorFontFa
4684
4758
  return itemArgs.dataItem.fontName === null;
4685
4759
  }
4686
4760
  };
4687
- setTimeout(() => (this.defaultItem = { text: this.title, fontName: null }));
4761
+ setTimeout(() => {
4762
+ this.defaultItem = { text: this.title, fontName: null };
4763
+ this.toolsService.needsCheck.next();
4764
+ });
4688
4765
  this.subs = this.editor.stateChange.subscribe(({ style }) => {
4689
4766
  this.value = getUniqueStyleValues(style.selected, 'font-family') || null;
4690
4767
  this.disabled = style.disabled;
@@ -4827,7 +4904,8 @@ EditorFontFamilyComponent = EditorFontFamilyComponent_1 = __decorate([
4827
4904
  __param(0, Host()),
4828
4905
  __metadata("design:paramtypes", [EditorComponent,
4829
4906
  DialogService,
4830
- EditorLocalizationService])
4907
+ EditorLocalizationService,
4908
+ EditorToolsService])
4831
4909
  ], EditorFontFamilyComponent);
4832
4910
 
4833
4911
  // tslint:disable:no-forward-ref
@@ -5369,11 +5447,12 @@ const commandIcons = {
5369
5447
  * @hidden
5370
5448
  */
5371
5449
  class EditorCommandBase {
5372
- constructor(command, button, editor, localization) {
5450
+ constructor(command, button, editor, localization, toolsService) {
5373
5451
  this.command = command;
5374
5452
  this.button = button;
5375
5453
  this.editor = editor;
5376
5454
  this.localization = localization;
5455
+ this.toolsService = toolsService;
5377
5456
  setTimeout(() => {
5378
5457
  const text = this.localization.get(this.command);
5379
5458
  if (text) {
@@ -5385,6 +5464,7 @@ class EditorCommandBase {
5385
5464
  this.button.icon = commandIcons[this.command];
5386
5465
  }
5387
5466
  this.button.title = text;
5467
+ this.toolsService.needsCheck.next();
5388
5468
  });
5389
5469
  }
5390
5470
  ngOnInit() {
@@ -5409,12 +5489,13 @@ class EditorCommandBase {
5409
5489
  * @hidden
5410
5490
  */
5411
5491
  class EditorCommandButton extends EditorCommandBase {
5412
- constructor(command, button, editor, localization) {
5413
- super(command, button, editor, localization);
5492
+ constructor(command, button, editor, localization, toolsService) {
5493
+ super(command, button, editor, localization, toolsService);
5414
5494
  this.command = command;
5415
5495
  this.button = button;
5416
5496
  this.editor = editor;
5417
5497
  this.localization = localization;
5498
+ this.toolsService = toolsService;
5418
5499
  }
5419
5500
  clickHandler() {
5420
5501
  this.editor.exec(this.command, this.editor.applyToWord);
@@ -5448,8 +5529,8 @@ class EditorCommandButton extends EditorCommandBase {
5448
5529
  * ```
5449
5530
  */
5450
5531
  let EditorAlignLeftButtonDirective = class EditorAlignLeftButtonDirective extends EditorCommandButton {
5451
- constructor(button, editor, localization) {
5452
- super('alignLeft', button, editor, localization);
5532
+ constructor(button, editor, localization, toolsService) {
5533
+ super('alignLeft', button, editor, localization, toolsService);
5453
5534
  }
5454
5535
  };
5455
5536
  EditorAlignLeftButtonDirective = __decorate([
@@ -5459,7 +5540,8 @@ EditorAlignLeftButtonDirective = __decorate([
5459
5540
  __param(1, Host()),
5460
5541
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5461
5542
  EditorComponent,
5462
- EditorLocalizationService])
5543
+ EditorLocalizationService,
5544
+ EditorToolsService])
5463
5545
  ], EditorAlignLeftButtonDirective);
5464
5546
 
5465
5547
  /**
@@ -5481,8 +5563,8 @@ EditorAlignLeftButtonDirective = __decorate([
5481
5563
  * ```
5482
5564
  */
5483
5565
  let EditorAlignCenterButtonDirective = class EditorAlignCenterButtonDirective extends EditorCommandButton {
5484
- constructor(button, editor, localization) {
5485
- super('alignCenter', button, editor, localization);
5566
+ constructor(button, editor, localization, toolsService) {
5567
+ super('alignCenter', button, editor, localization, toolsService);
5486
5568
  }
5487
5569
  };
5488
5570
  EditorAlignCenterButtonDirective = __decorate([
@@ -5492,7 +5574,8 @@ EditorAlignCenterButtonDirective = __decorate([
5492
5574
  __param(1, Host()),
5493
5575
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5494
5576
  EditorComponent,
5495
- EditorLocalizationService])
5577
+ EditorLocalizationService,
5578
+ EditorToolsService])
5496
5579
  ], EditorAlignCenterButtonDirective);
5497
5580
 
5498
5581
  /**
@@ -5514,8 +5597,8 @@ EditorAlignCenterButtonDirective = __decorate([
5514
5597
  * ```
5515
5598
  */
5516
5599
  let EditorAlignRightButtonDirective = class EditorAlignRightButtonDirective extends EditorCommandButton {
5517
- constructor(button, editor, localization) {
5518
- super('alignRight', button, editor, localization);
5600
+ constructor(button, editor, localization, toolsService) {
5601
+ super('alignRight', button, editor, localization, toolsService);
5519
5602
  }
5520
5603
  };
5521
5604
  EditorAlignRightButtonDirective = __decorate([
@@ -5525,7 +5608,8 @@ EditorAlignRightButtonDirective = __decorate([
5525
5608
  __param(1, Host()),
5526
5609
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5527
5610
  EditorComponent,
5528
- EditorLocalizationService])
5611
+ EditorLocalizationService,
5612
+ EditorToolsService])
5529
5613
  ], EditorAlignRightButtonDirective);
5530
5614
 
5531
5615
  /**
@@ -5547,8 +5631,8 @@ EditorAlignRightButtonDirective = __decorate([
5547
5631
  * ```
5548
5632
  */
5549
5633
  let EditorAlignJustifyButtonDirective = class EditorAlignJustifyButtonDirective extends EditorCommandButton {
5550
- constructor(button, editor, localization) {
5551
- super('alignJustify', button, editor, localization);
5634
+ constructor(button, editor, localization, toolsService) {
5635
+ super('alignJustify', button, editor, localization, toolsService);
5552
5636
  }
5553
5637
  };
5554
5638
  EditorAlignJustifyButtonDirective = __decorate([
@@ -5558,7 +5642,8 @@ EditorAlignJustifyButtonDirective = __decorate([
5558
5642
  __param(1, Host()),
5559
5643
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5560
5644
  EditorComponent,
5561
- EditorLocalizationService])
5645
+ EditorLocalizationService,
5646
+ EditorToolsService])
5562
5647
  ], EditorAlignJustifyButtonDirective);
5563
5648
 
5564
5649
  /**
@@ -5580,8 +5665,8 @@ EditorAlignJustifyButtonDirective = __decorate([
5580
5665
  * ```
5581
5666
  */
5582
5667
  let EditorRedoButtonDirective = class EditorRedoButtonDirective extends EditorCommandButton {
5583
- constructor(button, editor, localization) {
5584
- super('redo', button, editor, localization);
5668
+ constructor(button, editor, localization, toolsService) {
5669
+ super('redo', button, editor, localization, toolsService);
5585
5670
  }
5586
5671
  };
5587
5672
  EditorRedoButtonDirective = __decorate([
@@ -5591,7 +5676,8 @@ EditorRedoButtonDirective = __decorate([
5591
5676
  __param(1, Host()),
5592
5677
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5593
5678
  EditorComponent,
5594
- EditorLocalizationService])
5679
+ EditorLocalizationService,
5680
+ EditorToolsService])
5595
5681
  ], EditorRedoButtonDirective);
5596
5682
 
5597
5683
  /**
@@ -5613,8 +5699,8 @@ EditorRedoButtonDirective = __decorate([
5613
5699
  * ```
5614
5700
  */
5615
5701
  let EditorUndoButtonDirective = class EditorUndoButtonDirective extends EditorCommandButton {
5616
- constructor(button, editor, localization) {
5617
- super('undo', button, editor, localization);
5702
+ constructor(button, editor, localization, toolsService) {
5703
+ super('undo', button, editor, localization, toolsService);
5618
5704
  }
5619
5705
  };
5620
5706
  EditorUndoButtonDirective = __decorate([
@@ -5624,19 +5710,21 @@ EditorUndoButtonDirective = __decorate([
5624
5710
  __param(1, Host()),
5625
5711
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5626
5712
  EditorComponent,
5627
- EditorLocalizationService])
5713
+ EditorLocalizationService,
5714
+ EditorToolsService])
5628
5715
  ], EditorUndoButtonDirective);
5629
5716
 
5630
5717
  /**
5631
5718
  * @hidden
5632
5719
  */
5633
5720
  class EditorCommandDialog extends EditorCommandBase {
5634
- constructor(dialog, button, editor, localization) {
5635
- super(dialog, button, editor, localization);
5721
+ constructor(dialog, button, editor, localization, toolsService) {
5722
+ super(dialog, button, editor, localization, toolsService);
5636
5723
  this.dialog = dialog;
5637
5724
  this.button = button;
5638
5725
  this.editor = editor;
5639
5726
  this.localization = localization;
5727
+ this.toolsService = toolsService;
5640
5728
  }
5641
5729
  clickHandler() {
5642
5730
  this.editor.openDialog(this.dialog);
@@ -5665,8 +5753,8 @@ class EditorCommandDialog extends EditorCommandBase {
5665
5753
  * ```
5666
5754
  */
5667
5755
  let EditorInsertImageButtonDirective = class EditorInsertImageButtonDirective extends EditorCommandDialog {
5668
- constructor(button, editor, localization) {
5669
- super('insertImage', button, editor, localization);
5756
+ constructor(button, editor, localization, toolsService) {
5757
+ super('insertImage', button, editor, localization, toolsService);
5670
5758
  }
5671
5759
  };
5672
5760
  EditorInsertImageButtonDirective = __decorate([
@@ -5676,7 +5764,8 @@ EditorInsertImageButtonDirective = __decorate([
5676
5764
  __param(1, Host()),
5677
5765
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5678
5766
  EditorComponent,
5679
- EditorLocalizationService])
5767
+ EditorLocalizationService,
5768
+ EditorToolsService])
5680
5769
  ], EditorInsertImageButtonDirective);
5681
5770
 
5682
5771
  /**
@@ -5698,8 +5787,8 @@ EditorInsertImageButtonDirective = __decorate([
5698
5787
  * ```
5699
5788
  */
5700
5789
  let EditorIndentButtonDirective = class EditorIndentButtonDirective extends EditorCommandButton {
5701
- constructor(button, editor, localization) {
5702
- super('indent', button, editor, localization);
5790
+ constructor(button, editor, localization, toolsService) {
5791
+ super('indent', button, editor, localization, toolsService);
5703
5792
  }
5704
5793
  };
5705
5794
  EditorIndentButtonDirective = __decorate([
@@ -5709,7 +5798,8 @@ EditorIndentButtonDirective = __decorate([
5709
5798
  __param(1, Host()),
5710
5799
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5711
5800
  EditorComponent,
5712
- EditorLocalizationService])
5801
+ EditorLocalizationService,
5802
+ EditorToolsService])
5713
5803
  ], EditorIndentButtonDirective);
5714
5804
 
5715
5805
  /**
@@ -5731,8 +5821,8 @@ EditorIndentButtonDirective = __decorate([
5731
5821
  * ```
5732
5822
  */
5733
5823
  let EditorOutdentButtonDirective = class EditorOutdentButtonDirective extends EditorCommandButton {
5734
- constructor(button, editor, localization) {
5735
- super('outdent', button, editor, localization);
5824
+ constructor(button, editor, localization, toolsService) {
5825
+ super('outdent', button, editor, localization, toolsService);
5736
5826
  }
5737
5827
  };
5738
5828
  EditorOutdentButtonDirective = __decorate([
@@ -5742,7 +5832,8 @@ EditorOutdentButtonDirective = __decorate([
5742
5832
  __param(1, Host()),
5743
5833
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5744
5834
  EditorComponent,
5745
- EditorLocalizationService])
5835
+ EditorLocalizationService,
5836
+ EditorToolsService])
5746
5837
  ], EditorOutdentButtonDirective);
5747
5838
 
5748
5839
  /**
@@ -5764,8 +5855,8 @@ EditorOutdentButtonDirective = __decorate([
5764
5855
  * ```
5765
5856
  */
5766
5857
  let EditorCreateLinkButtonDirective = class EditorCreateLinkButtonDirective extends EditorCommandDialog {
5767
- constructor(button, editor, localization) {
5768
- super('createLink', button, editor, localization);
5858
+ constructor(button, editor, localization, toolsService) {
5859
+ super('createLink', button, editor, localization, toolsService);
5769
5860
  }
5770
5861
  };
5771
5862
  EditorCreateLinkButtonDirective = __decorate([
@@ -5775,7 +5866,8 @@ EditorCreateLinkButtonDirective = __decorate([
5775
5866
  __param(1, Host()),
5776
5867
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5777
5868
  EditorComponent,
5778
- EditorLocalizationService])
5869
+ EditorLocalizationService,
5870
+ EditorToolsService])
5779
5871
  ], EditorCreateLinkButtonDirective);
5780
5872
 
5781
5873
  /**
@@ -5797,8 +5889,8 @@ EditorCreateLinkButtonDirective = __decorate([
5797
5889
  * ```
5798
5890
  */
5799
5891
  let EditorUnlinkButtonDirective = class EditorUnlinkButtonDirective extends EditorCommandButton {
5800
- constructor(button, editor, localization) {
5801
- super('unlink', button, editor, localization);
5892
+ constructor(button, editor, localization, toolsService) {
5893
+ super('unlink', button, editor, localization, toolsService);
5802
5894
  }
5803
5895
  };
5804
5896
  EditorUnlinkButtonDirective = __decorate([
@@ -5808,7 +5900,8 @@ EditorUnlinkButtonDirective = __decorate([
5808
5900
  __param(1, Host()),
5809
5901
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5810
5902
  EditorComponent,
5811
- EditorLocalizationService])
5903
+ EditorLocalizationService,
5904
+ EditorToolsService])
5812
5905
  ], EditorUnlinkButtonDirective);
5813
5906
 
5814
5907
  /**
@@ -5830,8 +5923,8 @@ EditorUnlinkButtonDirective = __decorate([
5830
5923
  * ```
5831
5924
  */
5832
5925
  let EditorInsertOrderedListButtonDirective = class EditorInsertOrderedListButtonDirective extends EditorCommandButton {
5833
- constructor(button, editor, localization) {
5834
- super('insertOrderedList', button, editor, localization);
5926
+ constructor(button, editor, localization, toolsService) {
5927
+ super('insertOrderedList', button, editor, localization, toolsService);
5835
5928
  }
5836
5929
  };
5837
5930
  EditorInsertOrderedListButtonDirective = __decorate([
@@ -5841,7 +5934,8 @@ EditorInsertOrderedListButtonDirective = __decorate([
5841
5934
  __param(1, Host()),
5842
5935
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5843
5936
  EditorComponent,
5844
- EditorLocalizationService])
5937
+ EditorLocalizationService,
5938
+ EditorToolsService])
5845
5939
  ], EditorInsertOrderedListButtonDirective);
5846
5940
 
5847
5941
  /**
@@ -5863,8 +5957,8 @@ EditorInsertOrderedListButtonDirective = __decorate([
5863
5957
  * ```
5864
5958
  */
5865
5959
  let EditorInsertUnorderedListButtonDirective = class EditorInsertUnorderedListButtonDirective extends EditorCommandButton {
5866
- constructor(button, editor, localization) {
5867
- super('insertUnorderedList', button, editor, localization);
5960
+ constructor(button, editor, localization, toolsService) {
5961
+ super('insertUnorderedList', button, editor, localization, toolsService);
5868
5962
  }
5869
5963
  };
5870
5964
  EditorInsertUnorderedListButtonDirective = __decorate([
@@ -5874,7 +5968,8 @@ EditorInsertUnorderedListButtonDirective = __decorate([
5874
5968
  __param(1, Host()),
5875
5969
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5876
5970
  EditorComponent,
5877
- EditorLocalizationService])
5971
+ EditorLocalizationService,
5972
+ EditorToolsService])
5878
5973
  ], EditorInsertUnorderedListButtonDirective);
5879
5974
 
5880
5975
  /**
@@ -5895,8 +5990,8 @@ EditorInsertUnorderedListButtonDirective = __decorate([
5895
5990
  * ```
5896
5991
  */
5897
5992
  let EditorViewSourceButtonDirective = class EditorViewSourceButtonDirective extends EditorCommandDialog {
5898
- constructor(button, editor, localization) {
5899
- super('viewSource', button, editor, localization);
5993
+ constructor(button, editor, localization, toolsService) {
5994
+ super('viewSource', button, editor, localization, toolsService);
5900
5995
  }
5901
5996
  };
5902
5997
  EditorViewSourceButtonDirective = __decorate([
@@ -5906,7 +6001,8 @@ EditorViewSourceButtonDirective = __decorate([
5906
6001
  __param(1, Host()),
5907
6002
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5908
6003
  EditorComponent,
5909
- EditorLocalizationService])
6004
+ EditorLocalizationService,
6005
+ EditorToolsService])
5910
6006
  ], EditorViewSourceButtonDirective);
5911
6007
 
5912
6008
  /**
@@ -5928,8 +6024,8 @@ EditorViewSourceButtonDirective = __decorate([
5928
6024
  * ```
5929
6025
  */
5930
6026
  let EditorBoldButtonDirective = class EditorBoldButtonDirective extends EditorCommandButton {
5931
- constructor(button, editor, localization) {
5932
- super('bold', button, editor, localization);
6027
+ constructor(button, editor, localization, toolsService) {
6028
+ super('bold', button, editor, localization, toolsService);
5933
6029
  }
5934
6030
  };
5935
6031
  EditorBoldButtonDirective = __decorate([
@@ -5939,7 +6035,8 @@ EditorBoldButtonDirective = __decorate([
5939
6035
  __param(1, Host()),
5940
6036
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5941
6037
  EditorComponent,
5942
- EditorLocalizationService])
6038
+ EditorLocalizationService,
6039
+ EditorToolsService])
5943
6040
  ], EditorBoldButtonDirective);
5944
6041
 
5945
6042
  /**
@@ -5961,8 +6058,8 @@ EditorBoldButtonDirective = __decorate([
5961
6058
  * ```
5962
6059
  */
5963
6060
  let EditorItalicButtonDirective = class EditorItalicButtonDirective extends EditorCommandButton {
5964
- constructor(button, editor, localization) {
5965
- super('italic', button, editor, localization);
6061
+ constructor(button, editor, localization, toolsService) {
6062
+ super('italic', button, editor, localization, toolsService);
5966
6063
  }
5967
6064
  };
5968
6065
  EditorItalicButtonDirective = __decorate([
@@ -5972,7 +6069,8 @@ EditorItalicButtonDirective = __decorate([
5972
6069
  __param(1, Host()),
5973
6070
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5974
6071
  EditorComponent,
5975
- EditorLocalizationService])
6072
+ EditorLocalizationService,
6073
+ EditorToolsService])
5976
6074
  ], EditorItalicButtonDirective);
5977
6075
 
5978
6076
  /**
@@ -5994,8 +6092,8 @@ EditorItalicButtonDirective = __decorate([
5994
6092
  * ```
5995
6093
  */
5996
6094
  let EditorUnderlineButtonDirective = class EditorUnderlineButtonDirective extends EditorCommandButton {
5997
- constructor(button, editor, localization) {
5998
- super('underline', button, editor, localization);
6095
+ constructor(button, editor, localization, toolsService) {
6096
+ super('underline', button, editor, localization, toolsService);
5999
6097
  }
6000
6098
  };
6001
6099
  EditorUnderlineButtonDirective = __decorate([
@@ -6005,7 +6103,8 @@ EditorUnderlineButtonDirective = __decorate([
6005
6103
  __param(1, Host()),
6006
6104
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6007
6105
  EditorComponent,
6008
- EditorLocalizationService])
6106
+ EditorLocalizationService,
6107
+ EditorToolsService])
6009
6108
  ], EditorUnderlineButtonDirective);
6010
6109
 
6011
6110
  /**
@@ -6027,8 +6126,8 @@ EditorUnderlineButtonDirective = __decorate([
6027
6126
  * ```
6028
6127
  */
6029
6128
  let EditorStrikethroughButtonDirective = class EditorStrikethroughButtonDirective extends EditorCommandButton {
6030
- constructor(button, editor, localization) {
6031
- super('strikethrough', button, editor, localization);
6129
+ constructor(button, editor, localization, toolsService) {
6130
+ super('strikethrough', button, editor, localization, toolsService);
6032
6131
  }
6033
6132
  };
6034
6133
  EditorStrikethroughButtonDirective = __decorate([
@@ -6038,7 +6137,8 @@ EditorStrikethroughButtonDirective = __decorate([
6038
6137
  __param(1, Host()),
6039
6138
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6040
6139
  EditorComponent,
6041
- EditorLocalizationService])
6140
+ EditorLocalizationService,
6141
+ EditorToolsService])
6042
6142
  ], EditorStrikethroughButtonDirective);
6043
6143
 
6044
6144
  /**
@@ -6060,8 +6160,8 @@ EditorStrikethroughButtonDirective = __decorate([
6060
6160
  * ```
6061
6161
  */
6062
6162
  let EditorSubscriptButtonDirective = class EditorSubscriptButtonDirective extends EditorCommandButton {
6063
- constructor(button, editor, localization) {
6064
- super('subscript', button, editor, localization);
6163
+ constructor(button, editor, localization, toolsService) {
6164
+ super('subscript', button, editor, localization, toolsService);
6065
6165
  }
6066
6166
  };
6067
6167
  EditorSubscriptButtonDirective = __decorate([
@@ -6071,7 +6171,8 @@ EditorSubscriptButtonDirective = __decorate([
6071
6171
  __param(1, Host()),
6072
6172
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6073
6173
  EditorComponent,
6074
- EditorLocalizationService])
6174
+ EditorLocalizationService,
6175
+ EditorToolsService])
6075
6176
  ], EditorSubscriptButtonDirective);
6076
6177
 
6077
6178
  /**
@@ -6093,8 +6194,8 @@ EditorSubscriptButtonDirective = __decorate([
6093
6194
  * ```
6094
6195
  */
6095
6196
  let EditorSuperscriptButtonDirective = class EditorSuperscriptButtonDirective extends EditorCommandButton {
6096
- constructor(button, editor, localization) {
6097
- super('superscript', button, editor, localization);
6197
+ constructor(button, editor, localization, toolsService) {
6198
+ super('superscript', button, editor, localization, toolsService);
6098
6199
  }
6099
6200
  };
6100
6201
  EditorSuperscriptButtonDirective = __decorate([
@@ -6104,7 +6205,8 @@ EditorSuperscriptButtonDirective = __decorate([
6104
6205
  __param(1, Host()),
6105
6206
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6106
6207
  EditorComponent,
6107
- EditorLocalizationService])
6208
+ EditorLocalizationService,
6209
+ EditorToolsService])
6108
6210
  ], EditorSuperscriptButtonDirective);
6109
6211
 
6110
6212
  /**
@@ -6118,8 +6220,8 @@ EditorSuperscriptButtonDirective = __decorate([
6118
6220
  * ```
6119
6221
  */
6120
6222
  let EditorInsertFileButtonDirective = class EditorInsertFileButtonDirective extends EditorCommandDialog {
6121
- constructor(button, editor, localization) {
6122
- super('insertFile', button, editor, localization);
6223
+ constructor(button, editor, localization, toolsService) {
6224
+ super('insertFile', button, editor, localization, toolsService);
6123
6225
  }
6124
6226
  };
6125
6227
  EditorInsertFileButtonDirective = __decorate([
@@ -6129,7 +6231,8 @@ EditorInsertFileButtonDirective = __decorate([
6129
6231
  __param(1, Host()),
6130
6232
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6131
6233
  EditorComponent,
6132
- EditorLocalizationService])
6234
+ EditorLocalizationService,
6235
+ EditorToolsService])
6133
6236
  ], EditorInsertFileButtonDirective);
6134
6237
 
6135
6238
  /**
@@ -6188,8 +6291,8 @@ EditorBackColorDirective = __decorate([
6188
6291
  * ```
6189
6292
  */
6190
6293
  let EditorCleanFormattingButtonDirective = class EditorCleanFormattingButtonDirective extends EditorCommandButton {
6191
- constructor(button, editor, localization) {
6192
- super('cleanFormatting', button, editor, localization);
6294
+ constructor(button, editor, localization, toolsService) {
6295
+ super('cleanFormatting', button, editor, localization, toolsService);
6193
6296
  }
6194
6297
  };
6195
6298
  EditorCleanFormattingButtonDirective = __decorate([
@@ -6199,7 +6302,8 @@ EditorCleanFormattingButtonDirective = __decorate([
6199
6302
  __param(1, Host()),
6200
6303
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6201
6304
  EditorComponent,
6202
- EditorLocalizationService])
6305
+ EditorLocalizationService,
6306
+ EditorToolsService])
6203
6307
  ], EditorCleanFormattingButtonDirective);
6204
6308
 
6205
6309
  /**
@@ -6214,8 +6318,8 @@ EditorCleanFormattingButtonDirective = __decorate([
6214
6318
  * ```
6215
6319
  */
6216
6320
  let EditorAddColumnBeforeButtonDirective = class EditorAddColumnBeforeButtonDirective extends EditorCommandButton {
6217
- constructor(button, editor, localization) {
6218
- super('addColumnBefore', button, editor, localization);
6321
+ constructor(button, editor, localization, toolsService) {
6322
+ super('addColumnBefore', button, editor, localization, toolsService);
6219
6323
  }
6220
6324
  };
6221
6325
  EditorAddColumnBeforeButtonDirective = __decorate([
@@ -6225,7 +6329,8 @@ EditorAddColumnBeforeButtonDirective = __decorate([
6225
6329
  __param(1, Host()),
6226
6330
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6227
6331
  EditorComponent,
6228
- EditorLocalizationService])
6332
+ EditorLocalizationService,
6333
+ EditorToolsService])
6229
6334
  ], EditorAddColumnBeforeButtonDirective);
6230
6335
 
6231
6336
  /**
@@ -6240,8 +6345,8 @@ EditorAddColumnBeforeButtonDirective = __decorate([
6240
6345
  * ```
6241
6346
  */
6242
6347
  let EditorAddColumnAfterButtonDirective = class EditorAddColumnAfterButtonDirective extends EditorCommandButton {
6243
- constructor(button, editor, localization) {
6244
- super('addColumnAfter', button, editor, localization);
6348
+ constructor(button, editor, localization, toolsService) {
6349
+ super('addColumnAfter', button, editor, localization, toolsService);
6245
6350
  }
6246
6351
  };
6247
6352
  EditorAddColumnAfterButtonDirective = __decorate([
@@ -6251,7 +6356,8 @@ EditorAddColumnAfterButtonDirective = __decorate([
6251
6356
  __param(1, Host()),
6252
6357
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6253
6358
  EditorComponent,
6254
- EditorLocalizationService])
6359
+ EditorLocalizationService,
6360
+ EditorToolsService])
6255
6361
  ], EditorAddColumnAfterButtonDirective);
6256
6362
 
6257
6363
  /**
@@ -6266,8 +6372,8 @@ EditorAddColumnAfterButtonDirective = __decorate([
6266
6372
  * ```
6267
6373
  */
6268
6374
  let EditorAddRowBeforeButtonDirective = class EditorAddRowBeforeButtonDirective extends EditorCommandButton {
6269
- constructor(button, editor, localization) {
6270
- super('addRowBefore', button, editor, localization);
6375
+ constructor(button, editor, localization, toolsService) {
6376
+ super('addRowBefore', button, editor, localization, toolsService);
6271
6377
  }
6272
6378
  };
6273
6379
  EditorAddRowBeforeButtonDirective = __decorate([
@@ -6277,7 +6383,8 @@ EditorAddRowBeforeButtonDirective = __decorate([
6277
6383
  __param(1, Host()),
6278
6384
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6279
6385
  EditorComponent,
6280
- EditorLocalizationService])
6386
+ EditorLocalizationService,
6387
+ EditorToolsService])
6281
6388
  ], EditorAddRowBeforeButtonDirective);
6282
6389
 
6283
6390
  /**
@@ -6292,8 +6399,8 @@ EditorAddRowBeforeButtonDirective = __decorate([
6292
6399
  * ```
6293
6400
  */
6294
6401
  let EditorAddRowAfterButtonDirective = class EditorAddRowAfterButtonDirective extends EditorCommandButton {
6295
- constructor(button, editor, localization) {
6296
- super('addRowAfter', button, editor, localization);
6402
+ constructor(button, editor, localization, toolsService) {
6403
+ super('addRowAfter', button, editor, localization, toolsService);
6297
6404
  }
6298
6405
  };
6299
6406
  EditorAddRowAfterButtonDirective = __decorate([
@@ -6303,7 +6410,8 @@ EditorAddRowAfterButtonDirective = __decorate([
6303
6410
  __param(1, Host()),
6304
6411
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6305
6412
  EditorComponent,
6306
- EditorLocalizationService])
6413
+ EditorLocalizationService,
6414
+ EditorToolsService])
6307
6415
  ], EditorAddRowAfterButtonDirective);
6308
6416
 
6309
6417
  /**
@@ -6318,8 +6426,8 @@ EditorAddRowAfterButtonDirective = __decorate([
6318
6426
  * ```
6319
6427
  */
6320
6428
  let EditorDeleteColumnButtonDirective = class EditorDeleteColumnButtonDirective extends EditorCommandButton {
6321
- constructor(button, editor, localization) {
6322
- super('deleteColumn', button, editor, localization);
6429
+ constructor(button, editor, localization, toolsService) {
6430
+ super('deleteColumn', button, editor, localization, toolsService);
6323
6431
  }
6324
6432
  };
6325
6433
  EditorDeleteColumnButtonDirective = __decorate([
@@ -6329,7 +6437,8 @@ EditorDeleteColumnButtonDirective = __decorate([
6329
6437
  __param(1, Host()),
6330
6438
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6331
6439
  EditorComponent,
6332
- EditorLocalizationService])
6440
+ EditorLocalizationService,
6441
+ EditorToolsService])
6333
6442
  ], EditorDeleteColumnButtonDirective);
6334
6443
 
6335
6444
  /**
@@ -6344,8 +6453,8 @@ EditorDeleteColumnButtonDirective = __decorate([
6344
6453
  * ```
6345
6454
  */
6346
6455
  let EditorDeleteRowButtonDirective = class EditorDeleteRowButtonDirective extends EditorCommandButton {
6347
- constructor(button, editor, localization) {
6348
- super('deleteRow', button, editor, localization);
6456
+ constructor(button, editor, localization, toolsService) {
6457
+ super('deleteRow', button, editor, localization, toolsService);
6349
6458
  }
6350
6459
  };
6351
6460
  EditorDeleteRowButtonDirective = __decorate([
@@ -6355,7 +6464,8 @@ EditorDeleteRowButtonDirective = __decorate([
6355
6464
  __param(1, Host()),
6356
6465
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6357
6466
  EditorComponent,
6358
- EditorLocalizationService])
6467
+ EditorLocalizationService,
6468
+ EditorToolsService])
6359
6469
  ], EditorDeleteRowButtonDirective);
6360
6470
 
6361
6471
  /**
@@ -6370,8 +6480,8 @@ EditorDeleteRowButtonDirective = __decorate([
6370
6480
  * ```
6371
6481
  */
6372
6482
  let EditorDeleteTableButtonDirective = class EditorDeleteTableButtonDirective extends EditorCommandButton {
6373
- constructor(button, editor, localization) {
6374
- super('deleteTable', button, editor, localization);
6483
+ constructor(button, editor, localization, toolsService) {
6484
+ super('deleteTable', button, editor, localization, toolsService);
6375
6485
  }
6376
6486
  };
6377
6487
  EditorDeleteTableButtonDirective = __decorate([
@@ -6381,7 +6491,8 @@ EditorDeleteTableButtonDirective = __decorate([
6381
6491
  __param(1, Host()),
6382
6492
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6383
6493
  EditorComponent,
6384
- EditorLocalizationService])
6494
+ EditorLocalizationService,
6495
+ EditorToolsService])
6385
6496
  ], EditorDeleteTableButtonDirective);
6386
6497
 
6387
6498
  /**
@@ -6398,8 +6509,8 @@ EditorDeleteTableButtonDirective = __decorate([
6398
6509
  * ```
6399
6510
  */
6400
6511
  let EditorMergeCellsButtonDirective = class EditorMergeCellsButtonDirective extends EditorCommandButton {
6401
- constructor(button, editor, localization) {
6402
- super('mergeCells', button, editor, localization);
6512
+ constructor(button, editor, localization, toolsService) {
6513
+ super('mergeCells', button, editor, localization, toolsService);
6403
6514
  }
6404
6515
  };
6405
6516
  EditorMergeCellsButtonDirective = __decorate([
@@ -6409,7 +6520,8 @@ EditorMergeCellsButtonDirective = __decorate([
6409
6520
  __param(1, Host()),
6410
6521
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6411
6522
  EditorComponent,
6412
- EditorLocalizationService])
6523
+ EditorLocalizationService,
6524
+ EditorToolsService])
6413
6525
  ], EditorMergeCellsButtonDirective);
6414
6526
 
6415
6527
  /**
@@ -6426,8 +6538,8 @@ EditorMergeCellsButtonDirective = __decorate([
6426
6538
  * ```
6427
6539
  */
6428
6540
  let EditorSplitCellButtonDirective = class EditorSplitCellButtonDirective extends EditorCommandButton {
6429
- constructor(button, editor, localization) {
6430
- super('splitCell', button, editor, localization);
6541
+ constructor(button, editor, localization, toolsService) {
6542
+ super('splitCell', button, editor, localization, toolsService);
6431
6543
  }
6432
6544
  };
6433
6545
  EditorSplitCellButtonDirective = __decorate([
@@ -6437,7 +6549,8 @@ EditorSplitCellButtonDirective = __decorate([
6437
6549
  __param(1, Host()),
6438
6550
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6439
6551
  EditorComponent,
6440
- EditorLocalizationService])
6552
+ EditorLocalizationService,
6553
+ EditorToolsService])
6441
6554
  ], EditorSplitCellButtonDirective);
6442
6555
 
6443
6556
  /**
@@ -6753,8 +6866,8 @@ DropDownToolDirective = __decorate([
6753
6866
  * ```
6754
6867
  */
6755
6868
  let EditorPrintDirective = class EditorPrintDirective extends EditorCommandButton {
6756
- constructor(button, editor, localization) {
6757
- super('print', button, editor, localization);
6869
+ constructor(button, editor, localization, toolsService) {
6870
+ super('print', button, editor, localization, toolsService);
6758
6871
  this.editor = editor;
6759
6872
  }
6760
6873
  ngAfterViewInit() {
@@ -6783,7 +6896,8 @@ EditorPrintDirective = __decorate([
6783
6896
  __param(1, Host()),
6784
6897
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6785
6898
  EditorComponent,
6786
- EditorLocalizationService])
6899
+ EditorLocalizationService,
6900
+ EditorToolsService])
6787
6901
  ], EditorPrintDirective);
6788
6902
 
6789
6903
  /**
@@ -6804,8 +6918,8 @@ EditorPrintDirective = __decorate([
6804
6918
  * ```
6805
6919
  */
6806
6920
  let EditorSelectAllButtonDirective = class EditorSelectAllButtonDirective extends EditorCommandButton {
6807
- constructor(button, editor, localization) {
6808
- super('selectAll', button, editor, localization);
6921
+ constructor(button, editor, localization, toolsService) {
6922
+ super('selectAll', button, editor, localization, toolsService);
6809
6923
  }
6810
6924
  clickHandler() {
6811
6925
  this.editor.shouldEmitFocus = true;
@@ -6819,7 +6933,8 @@ EditorSelectAllButtonDirective = __decorate([
6819
6933
  __param(1, Host()),
6820
6934
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6821
6935
  EditorComponent,
6822
- EditorLocalizationService])
6936
+ EditorLocalizationService,
6937
+ EditorToolsService])
6823
6938
  ], EditorSelectAllButtonDirective);
6824
6939
 
6825
6940
  const COMPONENT_DIRECTIVES = [
@@ -6991,4 +7106,4 @@ EditorModule = __decorate([
6991
7106
  * Generated bundle index. Do not edit.
6992
7107
  */
6993
7108
 
6994
- export { ColorPickerDialogComponent, FileLinkDialogComponent, FontFamilyDialogComponent, FontSizeDialogComponent, FormatDialogComponent, ImageDialogComponent, InsertTableDialogComponent, SourceDialogComponent, CustomMessagesComponent, EditorLocalizationService, LocalizedMessagesDirective, Messages, EditorAlignCenterButtonDirective, EditorAlignJustifyButtonDirective, EditorAlignLeftButtonDirective, EditorAlignRightButtonDirective, EditorBackColorDirective, EditorColorPickerComponent, EditorForeColorDirective, EditorCleanFormattingButtonDirective, FontFamilyDropDownListComponent, EditorFontFamilyComponent, FontSizeDropDownListComponent, EditorFontSizeComponent, FormatDropDownListComponent, EditorFormatComponent, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorInsertFileButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, EditorPrintDirective, EditorSelectAllButtonDirective, DropDownToolDirective, EditorCommandBase, EditorCommandButton, EditorCommandDialog, EditorViewSourceButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective, PopupTableGridComponent, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorUnderlineButtonDirective, EditorComponent, EditorModule, schema };
7109
+ export { ColorPickerDialogComponent, FileLinkDialogComponent, FontFamilyDialogComponent, FontSizeDialogComponent, FormatDialogComponent, ImageDialogComponent, InsertTableDialogComponent, SourceDialogComponent, CustomMessagesComponent, EditorLocalizationService, LocalizedMessagesDirective, Messages, EditorAlignCenterButtonDirective, EditorAlignJustifyButtonDirective, EditorAlignLeftButtonDirective, EditorAlignRightButtonDirective, EditorBackColorDirective, EditorColorPickerComponent, EditorForeColorDirective, EditorCleanFormattingButtonDirective, FontFamilyDropDownListComponent, EditorFontFamilyComponent, FontSizeDropDownListComponent, EditorFontSizeComponent, FormatDropDownListComponent, EditorFormatComponent, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorInsertFileButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, EditorPrintDirective, EditorSelectAllButtonDirective, DropDownToolDirective, EditorCommandBase, EditorCommandButton, EditorCommandDialog, EditorViewSourceButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective, PopupTableGridComponent, EditorToolsService, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorUnderlineButtonDirective, EditorComponent, EditorModule, schema, EditorPasteEvent };