@progress/kendo-angular-editor 2.5.0-dev.202111161123 → 2.5.0-dev.202111291334

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 (199) 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 +2 -1
  4. package/dist/es/config/command-icons.js +4 -2
  5. package/dist/es/config/commands.js +32 -31
  6. package/dist/es/editor-toolbar-state.js +20 -2
  7. package/dist/es/editor.component.js +11 -5
  8. package/dist/es/editor.module.js +7 -1
  9. package/dist/es/index.js +3 -0
  10. package/dist/es/localization/messages.js +8 -0
  11. package/dist/es/package-metadata.js +1 -1
  12. package/dist/es/tools/alignment/editor-align-center-button.directive.js +5 -3
  13. package/dist/es/tools/alignment/editor-align-justify-button.directive.js +5 -3
  14. package/dist/es/tools/alignment/editor-align-left-button.directive.js +5 -3
  15. package/dist/es/tools/alignment/editor-align-right-button.directive.js +5 -3
  16. package/dist/es/tools/editor-clean-formatting-button.directive.js +5 -3
  17. package/dist/es/tools/fontfamily/editor-fontfamily.component.js +9 -3
  18. package/dist/es/tools/fontsize/editor-fontsize.component.js +9 -3
  19. package/dist/es/tools/format/editor-format.component.js +9 -3
  20. package/dist/es/tools/history/editor-redo-button.directive.js +5 -3
  21. package/dist/es/tools/history/editor-undo-button.directive.js +5 -3
  22. package/dist/es/tools/image/editor-insert-image-button.directive.js +5 -3
  23. package/dist/es/tools/indentation/editor-indent-button.directive.js +5 -3
  24. package/dist/es/tools/indentation/editor-outdent-button.directive.js +5 -3
  25. package/dist/es/tools/link/editor-create-link-button.directive.js +5 -3
  26. package/dist/es/tools/link/editor-insert-file-button.directive.js +5 -3
  27. package/dist/es/tools/link/editor-unlink-button.directive.js +5 -3
  28. package/dist/es/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  29. package/dist/es/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  30. package/dist/es/tools/print/editor-print-button.directive.js +69 -0
  31. package/dist/es/tools/select-all/select-all-button.directive.js +50 -0
  32. package/dist/es/tools/shared/editor-command-base.js +13 -11
  33. package/dist/es/tools/shared/editor-command-button.js +3 -2
  34. package/dist/es/tools/shared/editor-command-dialog.js +3 -2
  35. package/dist/es/tools/source/editor-view-source-button.directive.js +5 -3
  36. package/dist/es/tools/tables/editor-add-column-after-button.directive.js +5 -3
  37. package/dist/es/tools/tables/editor-add-column-before-button.directive.js +5 -3
  38. package/dist/es/tools/tables/editor-add-row-after-button.directive.js +5 -3
  39. package/dist/es/tools/tables/editor-add-row-before-button.directive.js +5 -3
  40. package/dist/es/tools/tables/editor-delete-column-button.directive.js +5 -3
  41. package/dist/es/tools/tables/editor-delete-row-button.directive.js +5 -3
  42. package/dist/es/tools/tables/editor-delete-table-button.directive.js +5 -3
  43. package/dist/es/tools/tables/editor-merge-cells-button.directive.js +5 -3
  44. package/dist/es/tools/tables/editor-split-cell-button.directive.js +5 -3
  45. package/dist/es/tools/tools.service.js +20 -0
  46. package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  47. package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  48. package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  49. package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  50. package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  51. package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  52. package/dist/es2015/common/commands.d.ts +5 -1
  53. package/dist/es2015/common/error-messages.js +2 -1
  54. package/dist/es2015/config/command-icons.d.ts +2 -2
  55. package/dist/es2015/config/command-icons.js +4 -2
  56. package/dist/es2015/config/commands.js +31 -30
  57. package/dist/es2015/editor-toolbar-state.js +20 -2
  58. package/dist/es2015/editor.component.d.ts +8 -1
  59. package/dist/es2015/editor.component.js +14 -4
  60. package/dist/es2015/editor.module.js +7 -1
  61. package/dist/es2015/index.d.ts +3 -0
  62. package/dist/es2015/index.js +3 -0
  63. package/dist/es2015/index.metadata.json +1 -1
  64. package/dist/es2015/localization/messages.d.ts +8 -0
  65. package/dist/es2015/localization/messages.js +8 -0
  66. package/dist/es2015/package-metadata.js +1 -1
  67. package/dist/es2015/tools/alignment/editor-align-center-button.directive.d.ts +2 -1
  68. package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +5 -3
  69. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.d.ts +2 -1
  70. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +5 -3
  71. package/dist/es2015/tools/alignment/editor-align-left-button.directive.d.ts +2 -1
  72. package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +5 -3
  73. package/dist/es2015/tools/alignment/editor-align-right-button.directive.d.ts +2 -1
  74. package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +5 -3
  75. package/dist/es2015/tools/editor-clean-formatting-button.directive.d.ts +2 -1
  76. package/dist/es2015/tools/editor-clean-formatting-button.directive.js +5 -3
  77. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.d.ts +3 -1
  78. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.js +9 -3
  79. package/dist/es2015/tools/fontsize/editor-fontsize.component.d.ts +3 -1
  80. package/dist/es2015/tools/fontsize/editor-fontsize.component.js +9 -3
  81. package/dist/es2015/tools/format/editor-format.component.d.ts +3 -1
  82. package/dist/es2015/tools/format/editor-format.component.js +9 -3
  83. package/dist/es2015/tools/history/editor-redo-button.directive.d.ts +2 -1
  84. package/dist/es2015/tools/history/editor-redo-button.directive.js +5 -3
  85. package/dist/es2015/tools/history/editor-undo-button.directive.d.ts +2 -1
  86. package/dist/es2015/tools/history/editor-undo-button.directive.js +5 -3
  87. package/dist/es2015/tools/image/editor-insert-image-button.directive.d.ts +2 -1
  88. package/dist/es2015/tools/image/editor-insert-image-button.directive.js +5 -3
  89. package/dist/es2015/tools/indentation/editor-indent-button.directive.d.ts +2 -1
  90. package/dist/es2015/tools/indentation/editor-indent-button.directive.js +5 -3
  91. package/dist/es2015/tools/indentation/editor-outdent-button.directive.d.ts +2 -1
  92. package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +5 -3
  93. package/dist/es2015/tools/link/editor-create-link-button.directive.d.ts +2 -1
  94. package/dist/es2015/tools/link/editor-create-link-button.directive.js +5 -3
  95. package/dist/es2015/tools/link/editor-insert-file-button.directive.d.ts +2 -1
  96. package/dist/es2015/tools/link/editor-insert-file-button.directive.js +5 -3
  97. package/dist/es2015/tools/link/editor-unlink-button.directive.d.ts +2 -1
  98. package/dist/es2015/tools/link/editor-unlink-button.directive.js +5 -3
  99. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.d.ts +2 -1
  100. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  101. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.d.ts +2 -1
  102. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  103. package/dist/es2015/tools/print/editor-print-button.directive.d.ts +34 -0
  104. package/dist/es2015/tools/print/editor-print-button.directive.js +66 -0
  105. package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +30 -0
  106. package/dist/es2015/tools/select-all/select-all-button.directive.js +48 -0
  107. package/dist/es2015/tools/shared/editor-command-base.d.ts +5 -3
  108. package/dist/es2015/tools/shared/editor-command-base.js +12 -10
  109. package/dist/es2015/tools/shared/editor-command-button.d.ts +5 -3
  110. package/dist/es2015/tools/shared/editor-command-button.js +3 -2
  111. package/dist/es2015/tools/shared/editor-command-dialog.d.ts +3 -1
  112. package/dist/es2015/tools/shared/editor-command-dialog.js +3 -2
  113. package/dist/es2015/tools/source/editor-view-source-button.directive.d.ts +2 -1
  114. package/dist/es2015/tools/source/editor-view-source-button.directive.js +5 -3
  115. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.d.ts +2 -1
  116. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +5 -3
  117. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.d.ts +2 -1
  118. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +5 -3
  119. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.d.ts +2 -1
  120. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +5 -3
  121. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.d.ts +2 -1
  122. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +5 -3
  123. package/dist/es2015/tools/tables/editor-delete-column-button.directive.d.ts +2 -1
  124. package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +5 -3
  125. package/dist/es2015/tools/tables/editor-delete-row-button.directive.d.ts +2 -1
  126. package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +5 -3
  127. package/dist/es2015/tools/tables/editor-delete-table-button.directive.d.ts +2 -1
  128. package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +5 -3
  129. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.d.ts +2 -1
  130. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +5 -3
  131. package/dist/es2015/tools/tables/editor-split-cell-button.directive.d.ts +2 -1
  132. package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +5 -3
  133. package/dist/es2015/tools/tools.service.d.ts +11 -0
  134. package/dist/es2015/tools/tools.service.js +22 -0
  135. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.d.ts +2 -1
  136. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  137. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.d.ts +2 -1
  138. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  139. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +2 -1
  140. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  141. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +2 -1
  142. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  143. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +2 -1
  144. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  145. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.d.ts +2 -1
  146. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  147. package/dist/fesm2015/index.js +358 -159
  148. package/dist/fesm5/index.js +360 -162
  149. package/dist/npm/common/error-messages.js +2 -1
  150. package/dist/npm/config/command-icons.js +4 -2
  151. package/dist/npm/config/commands.js +33 -31
  152. package/dist/npm/editor-toolbar-state.js +20 -2
  153. package/dist/npm/editor.component.js +11 -5
  154. package/dist/npm/editor.module.js +7 -1
  155. package/dist/npm/index.js +6 -0
  156. package/dist/npm/localization/messages.js +8 -0
  157. package/dist/npm/package-metadata.js +1 -1
  158. package/dist/npm/tools/alignment/editor-align-center-button.directive.js +5 -3
  159. package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +5 -3
  160. package/dist/npm/tools/alignment/editor-align-left-button.directive.js +5 -3
  161. package/dist/npm/tools/alignment/editor-align-right-button.directive.js +5 -3
  162. package/dist/npm/tools/editor-clean-formatting-button.directive.js +5 -3
  163. package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +9 -3
  164. package/dist/npm/tools/fontsize/editor-fontsize.component.js +9 -3
  165. package/dist/npm/tools/format/editor-format.component.js +9 -3
  166. package/dist/npm/tools/history/editor-redo-button.directive.js +5 -3
  167. package/dist/npm/tools/history/editor-undo-button.directive.js +5 -3
  168. package/dist/npm/tools/image/editor-insert-image-button.directive.js +5 -3
  169. package/dist/npm/tools/indentation/editor-indent-button.directive.js +5 -3
  170. package/dist/npm/tools/indentation/editor-outdent-button.directive.js +5 -3
  171. package/dist/npm/tools/link/editor-create-link-button.directive.js +5 -3
  172. package/dist/npm/tools/link/editor-insert-file-button.directive.js +5 -3
  173. package/dist/npm/tools/link/editor-unlink-button.directive.js +5 -3
  174. package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  175. package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  176. package/dist/npm/tools/print/editor-print-button.directive.js +71 -0
  177. package/dist/npm/tools/select-all/select-all-button.directive.js +52 -0
  178. package/dist/npm/tools/shared/editor-command-base.js +13 -11
  179. package/dist/npm/tools/shared/editor-command-button.js +3 -2
  180. package/dist/npm/tools/shared/editor-command-dialog.js +3 -2
  181. package/dist/npm/tools/source/editor-view-source-button.directive.js +5 -3
  182. package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +5 -3
  183. package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +5 -3
  184. package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +5 -3
  185. package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +5 -3
  186. package/dist/npm/tools/tables/editor-delete-column-button.directive.js +5 -3
  187. package/dist/npm/tools/tables/editor-delete-row-button.directive.js +5 -3
  188. package/dist/npm/tools/tables/editor-delete-table-button.directive.js +5 -3
  189. package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +5 -3
  190. package/dist/npm/tools/tables/editor-split-cell-button.directive.js +5 -3
  191. package/dist/npm/tools/tools.service.js +22 -0
  192. package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  193. package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  194. package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  195. package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  196. package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  197. package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  198. package/dist/systemjs/kendo-angular-editor.js +1 -1
  199. 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 { __assign, __extends, __decorate, __param, __metadata } from 'tslib';
6
- import { Inject, Optional, Input, ViewChild, ElementRef, Component, isDevMode, Output, EventEmitter, HostBinding, ContentChild, ViewContainerRef, forwardRef, ChangeDetectorRef, NgZone, TemplateRef, Host, Directive, NgModule } from '@angular/core';
6
+ import { Inject, Optional, Input, ViewChild, ElementRef, Component, Injectable, isDevMode, Output, EventEmitter, 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 { fromEvent, merge, BehaviorSubject, Subject, zip, interval } from 'rxjs';
8
+ import { Subject, fromEvent, merge, BehaviorSubject, zip, interval } from 'rxjs';
9
9
  import { take, filter, auditTime, map, concatMap, takeUntil } from 'rxjs/operators';
10
10
  import { ToolBarComponent, ToolBarToolComponent, ToolBarButtonComponent, ToolBarModule } from '@progress/kendo-angular-toolbar';
11
11
  import { DialogRef, DialogContentBase, DialogService, DialogModule } from '@progress/kendo-angular-dialog';
12
12
  import { isDocumentAvailable, guid, KendoInput, Keys } from '@progress/kendo-angular-common';
13
- import { nodes, Schema, marks, SelectionRange, TextSelection, Fragment, Slice, Selection, NodeSelection, insertNode, expandToWordWrap, toggleInlineFormat, bold, cleanFormatting, applyLink, applyInlineStyle, insertText, italic, strikethrough, subscript, superscript, underline, removeLink, link, 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';
13
+ import { nodes, Schema, marks, SelectionRange, TextSelection, Fragment, Slice, Selection, 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';
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 { L10N_PREFIX, RTL, MessageService, LocalizationService, ComponentMessages } from '@progress/kendo-angular-l10n';
@@ -27,7 +27,7 @@ var packageMetadata = {
27
27
  name: '@progress/kendo-angular-editor',
28
28
  productName: 'Kendo UI for Angular',
29
29
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
30
- publishDate: 1637061495,
30
+ publishDate: 1638192544,
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
  };
@@ -1651,7 +1651,7 @@ var deleteTableElement = function (selector) { return function (state, dispatch)
1651
1651
  var deleteTable$1 = deleteTableElement(isTable);
1652
1652
 
1653
1653
  var alignRemove = function (state, dispatch) { return alignBlocks(alignRemoveRules)(state, dispatch); };
1654
- var ɵ1$5 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, bold, { applyToWord: applyToWord })); }, ɵ2$4 = function (options) { return cleanFormatting(options); }, ɵ3$4 = function (attrs) { return expandToWordWrap(applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ4$2 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ5$2 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'font-size', value: attrs.value + 'px', applyToWord: attrs.applyToWord }); }, ɵ6$1 = function (attrs) { return expandToWordWrap(applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }); }, ɵ7$1 = function (text) { return insertText(text); }, ɵ8$1 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, italic, { applyToWord: applyToWord })); }, ɵ9$1 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, strikethrough, { applyToWord: applyToWord })); }, ɵ10 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, subscript, { applyToWord: applyToWord })); }, ɵ11 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, superscript, { applyToWord: applyToWord })); }, ɵ12 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, underline, { applyToWord: applyToWord })); }, ɵ13 = function () { return removeLink(link); }, ɵ14 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'color', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ15 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'background-color', value: attrs.value, applyToWord: attrs.applyToWord }); };
1654
+ var ɵ1$5 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, bold, { applyToWord: applyToWord })); }, ɵ2$4 = function (options) { return cleanFormatting(options); }, ɵ3$4 = function (attrs) { return expandToWordWrap(applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ4$2 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ5$2 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'font-size', value: attrs.value + 'px', applyToWord: attrs.applyToWord }); }, ɵ6$1 = function (attrs) { return expandToWordWrap(applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }); }, ɵ7$1 = function (text) { return insertText(text); }, ɵ8$1 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, italic, { applyToWord: applyToWord })); }, ɵ9$1 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, strikethrough, { applyToWord: applyToWord })); }, ɵ10 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, subscript, { applyToWord: applyToWord })); }, ɵ11 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, superscript, { applyToWord: applyToWord })); }, ɵ12 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, underline, { applyToWord: applyToWord })); }, ɵ13 = function () { return removeLink(link); }, ɵ14 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'color', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ15 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'background-color', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ16 = function () { return function (state, dispatch) { return selectAll(state, dispatch); }; };
1655
1655
  var inlineCommand = {
1656
1656
  bold: ɵ1$5,
1657
1657
  cleanFormatting: ɵ2$4,
@@ -1667,42 +1667,43 @@ var inlineCommand = {
1667
1667
  underline: ɵ12,
1668
1668
  unlink: ɵ13,
1669
1669
  foreColor: ɵ14,
1670
- backColor: ɵ15
1670
+ backColor: ɵ15,
1671
+ selectAll: ɵ16
1671
1672
  };
1672
- var ɵ16 = function () { return function (state, dispatch) { return isAligned(state, alignCenterRules) ? alignRemove(state, dispatch) : alignBlocks(alignCenterRules)(state, dispatch); }; }, ɵ17 = function () { return function (state, dispatch) { return isAligned(state, alignJustifyRules) ? alignRemove(state, dispatch) : alignBlocks(alignJustifyRules)(state, dispatch); }; }, ɵ18 = function () { return function (state, dispatch) { return isAligned(state, alignLeftRules) ? alignRemove(state, dispatch) : alignBlocks(alignLeftRules)(state, dispatch); }; }, ɵ19 = function () { return function (state, dispatch) { return isAligned(state, alignRightRules) ? alignRemove(state, dispatch) : alignBlocks(alignRightRules)(state, dispatch); }; }, ɵ20 = function (formatAttr) { return formatBlockElements(formatAttr.tag); }, ɵ21 = function () { return getHtml; }, ɵ22 = function () { return indent; }, ɵ23 = function (attrs) { return insertImage(attrs); }, ɵ24 = function () { return toggleOrderedList; }, ɵ25 = function () { return toggleUnorderedList; }, ɵ26 = function () { return outdent; }, ɵ27 = function () { return redo; }, ɵ28 = function (_a) {
1673
+ var ɵ17 = function () { return function (state, dispatch) { return isAligned(state, alignCenterRules) ? alignRemove(state, dispatch) : alignBlocks(alignCenterRules)(state, dispatch); }; }, ɵ18 = function () { return function (state, dispatch) { return isAligned(state, alignJustifyRules) ? alignRemove(state, dispatch) : alignBlocks(alignJustifyRules)(state, dispatch); }; }, ɵ19 = function () { return function (state, dispatch) { return isAligned(state, alignLeftRules) ? alignRemove(state, dispatch) : alignBlocks(alignLeftRules)(state, dispatch); }; }, ɵ20 = function () { return function (state, dispatch) { return isAligned(state, alignRightRules) ? alignRemove(state, dispatch) : alignBlocks(alignRightRules)(state, dispatch); }; }, ɵ21 = function (formatAttr) { return formatBlockElements(formatAttr.tag); }, ɵ22 = function () { return getHtml; }, ɵ23 = function () { return indent; }, ɵ24 = function (attrs) { return insertImage(attrs); }, ɵ25 = function () { return toggleOrderedList; }, ɵ26 = function () { return toggleUnorderedList; }, ɵ27 = function () { return outdent; }, ɵ28 = function () { return redo; }, ɵ29 = function (_a) {
1673
1674
  var content = _a.content, parseOptions = _a.parseOptions;
1674
1675
  return setHtml(content, 'setHTML', parseOptions);
1675
- }, ɵ29 = function () { return undo; };
1676
+ }, ɵ30 = function () { return undo; };
1676
1677
  var blockCommand = {
1677
- alignCenter: ɵ16,
1678
- alignJustify: ɵ17,
1679
- alignLeft: ɵ18,
1680
- alignRight: ɵ19,
1681
- format: ɵ20,
1682
- getHTML: ɵ21,
1683
- indent: ɵ22,
1684
- insertImage: ɵ23,
1678
+ alignCenter: ɵ17,
1679
+ alignJustify: ɵ18,
1680
+ alignLeft: ɵ19,
1681
+ alignRight: ɵ20,
1682
+ format: ɵ21,
1683
+ getHTML: ɵ22,
1684
+ indent: ɵ23,
1685
+ insertImage: ɵ24,
1685
1686
  // think about changing the command name.
1686
- insertOrderedList: ɵ24,
1687
+ insertOrderedList: ɵ25,
1687
1688
  // think about changing the command name.
1688
- insertUnorderedList: ɵ25,
1689
- outdent: ɵ26,
1690
- redo: ɵ27,
1691
- setHTML: ɵ28,
1692
- undo: ɵ29
1689
+ insertUnorderedList: ɵ26,
1690
+ outdent: ɵ27,
1691
+ redo: ɵ28,
1692
+ setHTML: ɵ29,
1693
+ undo: ɵ30
1693
1694
  };
1694
- var ɵ30 = function (attr) { return insertTable(attr); }, ɵ31 = function () { return addColumnBefore$1; }, ɵ32 = function () { return addColumnAfter$1; }, ɵ33 = function () { return addRowBefore$1; }, ɵ34 = function () { return addRowAfter$1; }, ɵ35 = function () { return deleteRow$1; }, ɵ36 = function () { return deleteColumn$1; }, ɵ37 = function () { return mergeCells$1; }, ɵ38 = function () { return splitCell$1; }, ɵ39 = function () { return deleteTable$1; };
1695
+ var ɵ31 = function (attr) { return insertTable(attr); }, ɵ32 = function () { return addColumnBefore$1; }, ɵ33 = function () { return addColumnAfter$1; }, ɵ34 = function () { return addRowBefore$1; }, ɵ35 = function () { return addRowAfter$1; }, ɵ36 = function () { return deleteRow$1; }, ɵ37 = function () { return deleteColumn$1; }, ɵ38 = function () { return mergeCells$1; }, ɵ39 = function () { return splitCell$1; }, ɵ40 = function () { return deleteTable$1; };
1695
1696
  var tableCommand = {
1696
- insertTable: ɵ30,
1697
- addColumnBefore: ɵ31,
1698
- addColumnAfter: ɵ32,
1699
- addRowBefore: ɵ33,
1700
- addRowAfter: ɵ34,
1701
- deleteRow: ɵ35,
1702
- deleteColumn: ɵ36,
1703
- mergeCells: ɵ37,
1704
- splitCell: ɵ38,
1705
- deleteTable: ɵ39
1697
+ insertTable: ɵ31,
1698
+ addColumnBefore: ɵ32,
1699
+ addColumnAfter: ɵ33,
1700
+ addRowBefore: ɵ34,
1701
+ addRowAfter: ɵ35,
1702
+ deleteRow: ɵ36,
1703
+ deleteColumn: ɵ37,
1704
+ mergeCells: ɵ38,
1705
+ splitCell: ɵ39,
1706
+ deleteTable: ɵ40
1706
1707
  };
1707
1708
  /**
1708
1709
  * @hidden
@@ -1769,6 +1770,10 @@ var getToolbarState = function (state, options) { return ({
1769
1770
  selected: false,
1770
1771
  disabled: !redo(state)
1771
1772
  },
1773
+ selectAll: {
1774
+ selected: false,
1775
+ disabled: false
1776
+ },
1772
1777
  strikethrough: {
1773
1778
  selected: hasMark(state, strikethrough),
1774
1779
  disabled: false
@@ -1818,6 +1823,12 @@ var getToolbarState = function (state, options) { return ({
1818
1823
  selected: false,
1819
1824
  disabled: false
1820
1825
  },
1826
+ // print
1827
+ print: {
1828
+ selected: false,
1829
+ disabled: false
1830
+ },
1831
+ // table
1821
1832
  insertTable: {
1822
1833
  selected: false,
1823
1834
  disabled: false
@@ -1890,6 +1901,8 @@ var initialToolBarState = {
1890
1901
  //history
1891
1902
  redo: { selected: false, disabled: true },
1892
1903
  undo: { selected: false, disabled: true },
1904
+ // print
1905
+ print: { selected: false, disabled: false },
1893
1906
  //dialogs
1894
1907
  createLink: { selected: false, disabled: true },
1895
1908
  insertFile: { selected: false, disabled: true },
@@ -1905,7 +1918,9 @@ var initialToolBarState = {
1905
1918
  deleteColumn: { selected: false, disabled: true },
1906
1919
  mergeCells: { selected: false, disabled: true },
1907
1920
  splitCell: { selected: false, disabled: true },
1908
- deleteTable: { selected: false, disabled: true }
1921
+ deleteTable: { selected: false, disabled: true },
1922
+ // select all
1923
+ selectAll: { selected: false, disabled: false }
1909
1924
  };
1910
1925
  /**
1911
1926
  * @hidden
@@ -1938,6 +1953,8 @@ var disabledToolBarState = {
1938
1953
  //history
1939
1954
  redo: { selected: false, disabled: true },
1940
1955
  undo: { selected: false, disabled: true },
1956
+ // print
1957
+ print: { selected: false, disabled: true },
1941
1958
  //dialogs
1942
1959
  createLink: { selected: false, disabled: true },
1943
1960
  insertFile: { selected: false, disabled: true },
@@ -1953,7 +1970,9 @@ var disabledToolBarState = {
1953
1970
  deleteColumn: { selected: false, disabled: true },
1954
1971
  mergeCells: { selected: false, disabled: true },
1955
1972
  splitCell: { selected: false, disabled: true },
1956
- deleteTable: { selected: false, disabled: true }
1973
+ deleteTable: { selected: false, disabled: true },
1974
+ // select all
1975
+ selectAll: { selected: false, disabled: true }
1957
1976
  };
1958
1977
 
1959
1978
  /**
@@ -2264,9 +2283,23 @@ var EditorErrorMessages = {
2264
2283
  setSchemaOnce: 'The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/',
2265
2284
  pluginsCallbackType: ɵ0$6,
2266
2285
  setPluginsOnce: 'The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/',
2267
- setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/'
2286
+ setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/',
2287
+ 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/'
2268
2288
  };
2269
2289
 
2290
+ /**
2291
+ * @hidden
2292
+ */
2293
+ var EditorToolsService = /** @class */ (function () {
2294
+ function EditorToolsService() {
2295
+ this.needsCheck = new Subject();
2296
+ }
2297
+ EditorToolsService = __decorate([
2298
+ Injectable()
2299
+ ], EditorToolsService);
2300
+ return EditorToolsService;
2301
+ }());
2302
+
2270
2303
  var EMPTY_PARAGRAPH = '<p></p>';
2271
2304
  var defaultPasteCleanupSettings = {
2272
2305
  convertMsLists: false,
@@ -2296,16 +2329,18 @@ var getPasteCleanupAttributes = function (config) {
2296
2329
  * Represents the [Kendo UI Editor component for Angular]({% slug overview_editor %}).
2297
2330
  */
2298
2331
  var EditorComponent = /** @class */ (function () {
2299
- function EditorComponent(dialogService, localization, cdr, ngZone, element) {
2332
+ function EditorComponent(dialogService, localization, cdr, ngZone, element, toolsService) {
2300
2333
  var _this = this;
2301
2334
  this.dialogService = dialogService;
2302
2335
  this.localization = localization;
2303
2336
  this.cdr = cdr;
2304
2337
  this.ngZone = ngZone;
2305
2338
  this.element = element;
2339
+ this.toolsService = toolsService;
2306
2340
  /**
2307
2341
  * If set to `false`, the Editor will run in style non-encapsulated mode. This means
2308
2342
  * that the styles of the page will be persisted in the Editor and its content will be affected by them.
2343
+ * @default true
2309
2344
  */
2310
2345
  this.iframe = true;
2311
2346
  /**
@@ -2649,6 +2684,7 @@ var EditorComponent = /** @class */ (function () {
2649
2684
  var rtl = _a.rtl;
2650
2685
  _this.direction = rtl ? 'rtl' : 'ltr';
2651
2686
  }));
2687
+ this.subs.add(this.toolsService.needsCheck.subscribe(function () { return _this.cdr.markForCheck(); }));
2652
2688
  };
2653
2689
  EditorComponent.prototype.ngAfterViewInit = function () {
2654
2690
  this.afterViewInit.next();
@@ -2802,7 +2838,6 @@ var EditorComponent = /** @class */ (function () {
2802
2838
  * Manually focus the Editor.
2803
2839
  */
2804
2840
  EditorComponent.prototype.focus = function () {
2805
- // this.focusChangedProgrammatically = true;
2806
2841
  this.focusChangedProgrammatically = true;
2807
2842
  this._view.focus();
2808
2843
  this.focusChangedProgrammatically = false;
@@ -2974,8 +3009,9 @@ var EditorComponent = /** @class */ (function () {
2974
3009
  if (_this.readonly) {
2975
3010
  contentAreaClasslist_1.add('k-state-focused');
2976
3011
  }
2977
- if (!_this.focusChangedProgrammatically) {
3012
+ if (!_this.focusChangedProgrammatically || _this.shouldEmitFocus) {
2978
3013
  _this.ngZone.run(function () { return _this.onFocus.emit(); });
3014
+ _this.shouldEmitFocus = false;
2979
3015
  }
2980
3016
  }));
2981
3017
  this.subs.add(fromEvent(containerElement, 'focusout')
@@ -3201,6 +3237,7 @@ var EditorComponent = /** @class */ (function () {
3201
3237
  selector: 'kendo-editor',
3202
3238
  providers: [
3203
3239
  EditorLocalizationService,
3240
+ EditorToolsService,
3204
3241
  {
3205
3242
  provide: LocalizationService,
3206
3243
  useExisting: EditorLocalizationService
@@ -3220,7 +3257,7 @@ var EditorComponent = /** @class */ (function () {
3220
3257
  }
3221
3258
  ],
3222
3259
  /* tslint:disable:max-line-length */
3223
- template: "\n <ng-container\n kendoEditorLocalizedMessages\n i18n-alignCenter=\"kendo.editor.alignCenter|The title of the tool that aligns text in the center.\"\n alignCenter=\"Center text\"\n i18n-alignJustify=\"kendo.editor.alignJustify|The title of the tool that justifies text both left and right.\"\n alignJustify=\"Justify\"\n i18n-alignLeft=\"kendo.editor.alignLeft|The title of the tool that aligns text on the left.\"\n alignLeft=\"Align text left\"\n i18n-alignRight=\"kendo.editor.alignRight|The title of the tool that aligns text on the right.\"\n alignRight=\"Align text right\"\n i18n-backColor=\"kendo.editor.backColor|The title of the tool that changes the text background color.\"\n backColor=\"Background color\"\n i18n-bold=\"kendo.editor.bold|The title of the tool that makes text bold.\"\n bold=\"Bold\"\n i18n-cleanFormatting=\"kendo.editor.cleanFormatting|The title of the Clean Formatting tool.\"\n cleanFormatting=\"Clean formatting\"\n i18n-createLink=\"kendo.editor.createLink|The title of the tool that creates hyperlinks.\"\n createLink=\"Insert link\"\n i18n-dialogApply=\"kendo.editor.dialogApply|The label of the **Apply** button in all editor dialogs.\"\n dialogApply=\"Apply\"\n i18n-dialogCancel=\"kendo.editor.dialogCancel|The label of the **Cancel** button in all editor dialogs.\"\n dialogCancel=\"Cancel\"\n i18n-dialogInsert=\"kendo.editor.dialogInsert|The label of the **Insert** button in all editor dialogs.\"\n dialogInsert=\"Insert\"\n i18n-dialogUpdate=\"kendo.editor.dialogUpdate|The label of the **Update** button in all editor dialogs.\"\n dialogUpdate=\"Update\"\n i18n-fileText=\"kendo.editor.fileText|The caption for the file text in the insertFile dialog.\"\n fileText=\"Text\"\n i18n-fileTitle=\"kendo.editor.fileTitle|The caption for the file Title in the insertFile dialog.\"\n fileTitle=\"Title\"\n i18n-fileWebAddress=\"kendo.editor.fileWebAddress|The caption for the file URL in the insertFile dialog.\"\n fileWebAddress=\"Web address\"\n i18n-fontFamily=\"kendo.editor.fontFamily|The title of the tool that changes the text font.\"\n fontFamily=\"Select font family\"\n i18n-fontSize=\"kendo.editor.fontSize|The title of the tool that changes the text size.\"\n fontSize=\"Select font size\"\n i18n-foreColor=\"kendo.editor.foreColor|The title of the tool that changes the text color.\"\n foreColor=\"Color\"\n i18n-format=\"kendo.editor.format|The title of the tool that lets users choose block formats.\"\n format=\"Format\"\n i18n-imageAltText=\"kendo.editor.imageAltText|The caption for the image alternate text in the insertImage dialog.\"\n imageAltText=\"Alternate text\"\n i18n-imageHeight=\"kendo.editor.imageHeight|The caption for the image height in the insertImage dialog.\"\n imageHeight=\"Height (px)\"\n i18n-imageWebAddress=\"kendo.editor.imageWebAddress|The caption for the image URL in the insertImage dialog.\"\n imageWebAddress=\"Web address\"\n i18n-imageWidth=\"kendo.editor.imageWidth|The caption for the image width in the insertImage dialog.\"\n imageWidth=\"Width (px)\"\n i18n-indent=\"kendo.editor.indent|The title of the tool that indents the content.\"\n indent=\"Indent\"\n i18n-insertFile=\"kendo.editor.insertFile|The title of the tool that inserts links to files.\"\n insertFile=\"Insert file\"\n i18n-insertImage=\"kendo.editor.insertImage|The title of the tool that inserts images.\"\n insertImage=\"Insert image\"\n i18n-insertOrderedList=\"kendo.editor.insertOrderedList|The title of the tool that inserts an ordered list.\"\n insertOrderedList=\"Insert ordered list\"\n i18n-insertUnorderedList=\"kendo.editor.insertUnorderedList|The title of the tool that inserts an unordered list.\"\n insertUnorderedList=\"Insert unordered list\"\n i18n-italic=\"kendo.editor.italic|The title of the tool that makes text italicized.\"\n italic=\"Italic\"\n i18n-linkOpenInNewWindow=\"kendo.editor.linkOpenInNewWindow|The caption for the checkbox for opening the link in a new window in the createLink dialog.\"\n linkOpenInNewWindow=\"Open link in new window\"\n i18n-linkText=\"kendo.editor.linkText|The caption for the link text in the createLink dialog.\"\n linkText=\"Text\"\n i18n-linkTitle=\"kendo.editor.linkTitle|The caption for the link title in the createLink dialog.\"\n linkTitle=\"Title\"\n i18n-linkWebAddress=\"kendo.editor.linkWebAddress|The caption for the URL in the createLink dialog.\"\n linkWebAddress=\"Web address\"\n i18n-outdent=\"kendo.editor.outdent|The title of the tool that outdents the content.\"\n outdent=\"Outdent\"\n i18n-redo=\"kendo.editor.redo|The title of the tool that undos the last action.\"\n redo=\"Redo\"\n i18n-strikethrough=\"kendo.editor.strikethrough|The title of the tool that strikes through text.\"\n strikethrough=\"Strikethrough\"\n i18n-subscript=\"kendo.editor.subscript|The title of the tool that makes text subscript.\"\n subscript=\"Subscript\"\n i18n-superscript=\"kendo.editor.superscript|The title of the tool that makes text superscript.\"\n superscript=\"Superscript\"\n i18n-underline=\"kendo.editor.underline|The title of the tool that underlines text.\"\n underline=\"Underline\"\n i18n-unlink=\"kendo.editor.unlink|The title of the tool that removes hyperlinks.\"\n unlink=\"Remove Link\"\n i18n-undo=\"kendo.editor.undo|The title of the tool that undos the last action.\"\n undo=\"Undo\"\n i18n-viewSource=\"kendo.editor.viewSource|The title of the tool that shows the editor value as HTML.\"\n viewSource=\"View source\"\n i18n-insertTable=\"kendo.editor.insertTable|The title of the tool that inserts table.\"\n insertTable=\"Insert Table\"\n i18n-addColumnBefore=\"kendo.editor.addColumnBefore|The title of the tool that adds new column before currently selected column.\"\n addColumnBefore=\"Add column before\"\n i18n-addColumnAfter=\"kendo.editor.addColumnAfter|The title of the tool that adds new column after currently selected column.\"\n addColumnAfter=\"Add column after\"\n i18n-addRowBefore=\"kendo.editor.addRowBefore|The title of the tool that adds new row before currently selected row.\"\n addRowBefore=\"Add row before\"\n i18n-addRowAfter=\"kendo.editor.addRowAfter|The title of the tool that adds new row after currently selected row.\"\n addRowAfter=\"Add row after\"\n i18n-deleteColumn=\"kendo.editor.deleteColumn|The title of the tool that deletes a table column.\"\n deleteColumn=\"Delete column\"\n i18n-deleteRow=\"kendo.editor.deleteRow|The title of the tool that deletes a table row.\"\n deleteRow=\"Delete row\"\n i18n-deleteTable=\"kendo.editor.deleteTable|The title of the tool that deletes a table.\"\n deleteTable=\"Delete table\"\n >\n </ng-container>\n\n <ng-content select=\"kendo-toolbar\"></ng-content>\n <kendo-toolbar [overflow]=\"true\" [tabindex]=\"readonly ? -1 : 0\" *ngIf=\"!userToolBarElement\" #defaultToolbar>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorBoldButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorItalicButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnderlineButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-dropdownlist kendoEditorFormat></kendo-toolbar-dropdownlist>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorAlignLeftButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignCenterButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignRightButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignJustifyButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertUnorderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorInsertOrderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorIndentButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorOutdentButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorCreateLinkButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnlinkButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertImageButton></kendo-toolbar-button>\n </kendo-toolbar>\n\n <div *ngIf=\"!iframe\" #content [attr.dir]=\"direction\" class=\"k-editor-content\"></div>\n\n <div class=\"k-editor-content\" *ngIf=\"iframe\">\n <iframe #content frameborder=\"0\" class=\"k-iframe\" (load)=\"iframeOnLoad()\"></iframe>\n </div>\n\n <ng-container #dialogsContainer></ng-container>\n ",
3260
+ template: "\n <ng-container\n kendoEditorLocalizedMessages\n i18n-alignCenter=\"kendo.editor.alignCenter|The title of the tool that aligns text in the center.\"\n alignCenter=\"Center text\"\n i18n-alignJustify=\"kendo.editor.alignJustify|The title of the tool that justifies text both left and right.\"\n alignJustify=\"Justify\"\n i18n-alignLeft=\"kendo.editor.alignLeft|The title of the tool that aligns text on the left.\"\n alignLeft=\"Align text left\"\n i18n-alignRight=\"kendo.editor.alignRight|The title of the tool that aligns text on the right.\"\n alignRight=\"Align text right\"\n i18n-backColor=\"kendo.editor.backColor|The title of the tool that changes the text background color.\"\n backColor=\"Background color\"\n i18n-bold=\"kendo.editor.bold|The title of the tool that makes text bold.\"\n bold=\"Bold\"\n i18n-cleanFormatting=\"kendo.editor.cleanFormatting|The title of the Clean Formatting tool.\"\n cleanFormatting=\"Clean formatting\"\n i18n-createLink=\"kendo.editor.createLink|The title of the tool that creates hyperlinks.\"\n createLink=\"Insert link\"\n i18n-dialogApply=\"kendo.editor.dialogApply|The label of the **Apply** button in all editor dialogs.\"\n dialogApply=\"Apply\"\n i18n-dialogCancel=\"kendo.editor.dialogCancel|The label of the **Cancel** button in all editor dialogs.\"\n dialogCancel=\"Cancel\"\n i18n-dialogInsert=\"kendo.editor.dialogInsert|The label of the **Insert** button in all editor dialogs.\"\n dialogInsert=\"Insert\"\n i18n-dialogUpdate=\"kendo.editor.dialogUpdate|The label of the **Update** button in all editor dialogs.\"\n dialogUpdate=\"Update\"\n i18n-fileText=\"kendo.editor.fileText|The caption for the file text in the insertFile dialog.\"\n fileText=\"Text\"\n i18n-fileTitle=\"kendo.editor.fileTitle|The caption for the file Title in the insertFile dialog.\"\n fileTitle=\"Title\"\n i18n-fileWebAddress=\"kendo.editor.fileWebAddress|The caption for the file URL in the insertFile dialog.\"\n fileWebAddress=\"Web address\"\n i18n-fontFamily=\"kendo.editor.fontFamily|The title of the tool that changes the text font.\"\n fontFamily=\"Select font family\"\n i18n-fontSize=\"kendo.editor.fontSize|The title of the tool that changes the text size.\"\n fontSize=\"Select font size\"\n i18n-foreColor=\"kendo.editor.foreColor|The title of the tool that changes the text color.\"\n foreColor=\"Color\"\n i18n-format=\"kendo.editor.format|The title of the tool that lets users choose block formats.\"\n format=\"Format\"\n i18n-imageAltText=\"kendo.editor.imageAltText|The caption for the image alternate text in the insertImage dialog.\"\n imageAltText=\"Alternate text\"\n i18n-imageHeight=\"kendo.editor.imageHeight|The caption for the image height in the insertImage dialog.\"\n imageHeight=\"Height (px)\"\n i18n-imageWebAddress=\"kendo.editor.imageWebAddress|The caption for the image URL in the insertImage dialog.\"\n imageWebAddress=\"Web address\"\n i18n-imageWidth=\"kendo.editor.imageWidth|The caption for the image width in the insertImage dialog.\"\n imageWidth=\"Width (px)\"\n i18n-indent=\"kendo.editor.indent|The title of the tool that indents the content.\"\n indent=\"Indent\"\n i18n-insertFile=\"kendo.editor.insertFile|The title of the tool that inserts links to files.\"\n insertFile=\"Insert file\"\n i18n-insertImage=\"kendo.editor.insertImage|The title of the tool that inserts images.\"\n insertImage=\"Insert image\"\n i18n-insertOrderedList=\"kendo.editor.insertOrderedList|The title of the tool that inserts an ordered list.\"\n insertOrderedList=\"Insert ordered list\"\n i18n-insertUnorderedList=\"kendo.editor.insertUnorderedList|The title of the tool that inserts an unordered list.\"\n insertUnorderedList=\"Insert unordered list\"\n i18n-italic=\"kendo.editor.italic|The title of the tool that makes text italicized.\"\n italic=\"Italic\"\n i18n-linkOpenInNewWindow=\"kendo.editor.linkOpenInNewWindow|The caption for the checkbox for opening the link in a new window in the createLink dialog.\"\n linkOpenInNewWindow=\"Open link in new window\"\n i18n-linkText=\"kendo.editor.linkText|The caption for the link text in the createLink dialog.\"\n linkText=\"Text\"\n i18n-linkTitle=\"kendo.editor.linkTitle|The caption for the link title in the createLink dialog.\"\n linkTitle=\"Title\"\n i18n-linkWebAddress=\"kendo.editor.linkWebAddress|The caption for the URL in the createLink dialog.\"\n linkWebAddress=\"Web address\"\n i18n-outdent=\"kendo.editor.outdent|The title of the tool that outdents the content.\"\n outdent=\"Outdent\"\n i18n-print=\"kendo.editor.print|The title of the print tool.\"\n print=\"Print\"\n i18n-redo=\"kendo.editor.redo|The title of the tool that undos the last action.\"\n redo=\"Redo\"\n i18n-selectAll=\"kendo.editor.selectAll|The title of the tool that selects all content.\"\n selectAll=\"Select All\"\n i18n-strikethrough=\"kendo.editor.strikethrough|The title of the tool that strikes through text.\"\n strikethrough=\"Strikethrough\"\n i18n-subscript=\"kendo.editor.subscript|The title of the tool that makes text subscript.\"\n subscript=\"Subscript\"\n i18n-superscript=\"kendo.editor.superscript|The title of the tool that makes text superscript.\"\n superscript=\"Superscript\"\n i18n-underline=\"kendo.editor.underline|The title of the tool that underlines text.\"\n underline=\"Underline\"\n i18n-unlink=\"kendo.editor.unlink|The title of the tool that removes hyperlinks.\"\n unlink=\"Remove Link\"\n i18n-undo=\"kendo.editor.undo|The title of the tool that undos the last action.\"\n undo=\"Undo\"\n i18n-viewSource=\"kendo.editor.viewSource|The title of the tool that shows the editor value as HTML.\"\n viewSource=\"View source\"\n i18n-insertTable=\"kendo.editor.insertTable|The title of the tool that inserts table.\"\n insertTable=\"Insert Table\"\n i18n-addColumnBefore=\"kendo.editor.addColumnBefore|The title of the tool that adds new column before currently selected column.\"\n addColumnBefore=\"Add column before\"\n i18n-addColumnAfter=\"kendo.editor.addColumnAfter|The title of the tool that adds new column after currently selected column.\"\n addColumnAfter=\"Add column after\"\n i18n-addRowBefore=\"kendo.editor.addRowBefore|The title of the tool that adds new row before currently selected row.\"\n addRowBefore=\"Add row before\"\n i18n-addRowAfter=\"kendo.editor.addRowAfter|The title of the tool that adds new row after currently selected row.\"\n addRowAfter=\"Add row after\"\n i18n-deleteColumn=\"kendo.editor.deleteColumn|The title of the tool that deletes a table column.\"\n deleteColumn=\"Delete column\"\n i18n-deleteRow=\"kendo.editor.deleteRow|The title of the tool that deletes a table row.\"\n deleteRow=\"Delete row\"\n i18n-deleteTable=\"kendo.editor.deleteTable|The title of the tool that deletes a table.\"\n deleteTable=\"Delete table\"\n >\n </ng-container>\n\n <ng-content select=\"kendo-toolbar\"></ng-content>\n <kendo-toolbar [overflow]=\"true\" [tabindex]=\"readonly ? -1 : 0\" *ngIf=\"!userToolBarElement\" #defaultToolbar>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorBoldButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorItalicButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnderlineButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-dropdownlist kendoEditorFormat></kendo-toolbar-dropdownlist>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorAlignLeftButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignCenterButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignRightButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignJustifyButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertUnorderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorInsertOrderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorIndentButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorOutdentButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorCreateLinkButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnlinkButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertImageButton></kendo-toolbar-button>\n </kendo-toolbar>\n\n <div *ngIf=\"!iframe\" #content [attr.dir]=\"direction\" class=\"k-editor-content\"></div>\n\n <div class=\"k-editor-content\" *ngIf=\"iframe\">\n <iframe #content frameborder=\"0\" class=\"k-iframe\" (load)=\"iframeOnLoad()\"></iframe>\n </div>\n\n <ng-container #dialogsContainer></ng-container>\n ",
3224
3261
  styles: [
3225
3262
  "\n >>> .k-editor-content > .ProseMirror {\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n outline: none;\n overflow: auto;\n }\n\n .k-iframe {\n width: 100%;\n height: 100%;\n display: block;\n }\n "
3226
3263
  ]
@@ -3229,7 +3266,8 @@ var EditorComponent = /** @class */ (function () {
3229
3266
  LocalizationService,
3230
3267
  ChangeDetectorRef,
3231
3268
  NgZone,
3232
- ElementRef])
3269
+ ElementRef,
3270
+ EditorToolsService])
3233
3271
  ], EditorComponent);
3234
3272
  return EditorComponent;
3235
3273
  }());
@@ -3582,11 +3620,12 @@ var InsertTableDialogComponent = /** @class */ (function (_super) {
3582
3620
  */
3583
3621
  var EditorFormatComponent = /** @class */ (function (_super) {
3584
3622
  __extends(EditorFormatComponent, _super);
3585
- function EditorFormatComponent(editor, dialogService, localization) {
3623
+ function EditorFormatComponent(editor, dialogService, localization, toolsService) {
3586
3624
  var _this = _super.call(this) || this;
3587
3625
  _this.editor = editor;
3588
3626
  _this.dialogService = dialogService;
3589
3627
  _this.localization = localization;
3628
+ _this.toolsService = toolsService;
3590
3629
  _this.disabled = false;
3591
3630
  _this.tabindex = -1;
3592
3631
  /**
@@ -3629,7 +3668,10 @@ var EditorFormatComponent = /** @class */ (function (_super) {
3629
3668
  return itemArgs.dataItem.tag === null;
3630
3669
  }
3631
3670
  };
3632
- setTimeout(function () { return (_this.defaultItem = { text: _this.title, tag: null }); });
3671
+ setTimeout(function () {
3672
+ _this.defaultItem = { text: _this.title, tag: null };
3673
+ _this.toolsService.needsCheck.next();
3674
+ });
3633
3675
  this.subs = this.editor.stateChange.subscribe(function (_a) {
3634
3676
  var format = _a.format;
3635
3677
  var index = _this.data.findIndex(function (item) { return item.tag === format.selected.tag; });
@@ -3748,7 +3790,8 @@ var EditorFormatComponent = /** @class */ (function (_super) {
3748
3790
  __param(0, Host()),
3749
3791
  __metadata("design:paramtypes", [EditorComponent,
3750
3792
  DialogService,
3751
- EditorLocalizationService])
3793
+ EditorLocalizationService,
3794
+ EditorToolsService])
3752
3795
  ], EditorFormatComponent);
3753
3796
  return EditorFormatComponent;
3754
3797
  }(ToolBarToolComponent));
@@ -3884,11 +3927,12 @@ var FontSizeDialogComponent = /** @class */ (function (_super) {
3884
3927
  */
3885
3928
  var EditorFontSizeComponent = /** @class */ (function (_super) {
3886
3929
  __extends(EditorFontSizeComponent, _super);
3887
- function EditorFontSizeComponent(editor, dialogService, localization) {
3930
+ function EditorFontSizeComponent(editor, dialogService, localization, toolsService) {
3888
3931
  var _this = _super.call(this) || this;
3889
3932
  _this.editor = editor;
3890
3933
  _this.dialogService = dialogService;
3891
3934
  _this.localization = localization;
3935
+ _this.toolsService = toolsService;
3892
3936
  _this.disabled = false;
3893
3937
  _this.tabindex = -1;
3894
3938
  /**
@@ -3930,7 +3974,10 @@ var EditorFontSizeComponent = /** @class */ (function (_super) {
3930
3974
  return itemArgs.dataItem.size === null;
3931
3975
  }
3932
3976
  };
3933
- setTimeout(function () { return (_this.defaultItem = { text: _this.title, size: null }); });
3977
+ setTimeout(function () {
3978
+ _this.defaultItem = { text: _this.title, size: null };
3979
+ _this.toolsService.needsCheck.next();
3980
+ });
3934
3981
  this.subs = this.editor.stateChange.subscribe(function (_a) {
3935
3982
  // remove units(px, em, rem...)
3936
3983
  // string#match returns array
@@ -4053,7 +4100,8 @@ var EditorFontSizeComponent = /** @class */ (function (_super) {
4053
4100
  __param(0, Host()),
4054
4101
  __metadata("design:paramtypes", [EditorComponent,
4055
4102
  DialogService,
4056
- EditorLocalizationService])
4103
+ EditorLocalizationService,
4104
+ EditorToolsService])
4057
4105
  ], EditorFontSizeComponent);
4058
4106
  return EditorFontSizeComponent;
4059
4107
  }(ToolBarToolComponent));
@@ -4071,11 +4119,12 @@ var EditorFontSizeComponent = /** @class */ (function (_super) {
4071
4119
  */
4072
4120
  var EditorFontFamilyComponent = /** @class */ (function (_super) {
4073
4121
  __extends(EditorFontFamilyComponent, _super);
4074
- function EditorFontFamilyComponent(editor, dialogService, localization) {
4122
+ function EditorFontFamilyComponent(editor, dialogService, localization, toolsService) {
4075
4123
  var _this = _super.call(this) || this;
4076
4124
  _this.editor = editor;
4077
4125
  _this.dialogService = dialogService;
4078
4126
  _this.localization = localization;
4127
+ _this.toolsService = toolsService;
4079
4128
  _this.disabled = false;
4080
4129
  _this.tabindex = -1;
4081
4130
  /**
@@ -4124,7 +4173,10 @@ var EditorFontFamilyComponent = /** @class */ (function (_super) {
4124
4173
  return itemArgs.dataItem.fontName === null;
4125
4174
  }
4126
4175
  };
4127
- setTimeout(function () { return (_this.defaultItem = { text: _this.title, fontName: null }); });
4176
+ setTimeout(function () {
4177
+ _this.defaultItem = { text: _this.title, fontName: null };
4178
+ _this.toolsService.needsCheck.next();
4179
+ });
4128
4180
  this.subs = this.editor.stateChange.subscribe(function (_a) {
4129
4181
  var style = _a.style;
4130
4182
  _this.value = getUniqueStyleValues(style.selected, 'font-family') || null;
@@ -4245,7 +4297,8 @@ var EditorFontFamilyComponent = /** @class */ (function (_super) {
4245
4297
  __param(0, Host()),
4246
4298
  __metadata("design:paramtypes", [EditorComponent,
4247
4299
  DialogService,
4248
- EditorLocalizationService])
4300
+ EditorLocalizationService,
4301
+ EditorToolsService])
4249
4302
  ], EditorFontFamilyComponent);
4250
4303
  return EditorFontFamilyComponent;
4251
4304
  }(ToolBarToolComponent));
@@ -4704,9 +4757,11 @@ var commandIcons = {
4704
4757
  alignJustify: 'align-justify',
4705
4758
  alignLeft: 'align-left',
4706
4759
  alignRight: 'align-right',
4760
+ backColor: 'background',
4707
4761
  bold: 'bold',
4708
4762
  cleanFormatting: 'clear-css',
4709
4763
  createLink: 'link-horizontal',
4764
+ foreColor: 'foreground-color',
4710
4765
  indent: 'indent-increase',
4711
4766
  insertFile: 'file-add',
4712
4767
  insertImage: 'image',
@@ -4714,7 +4769,9 @@ var commandIcons = {
4714
4769
  insertUnorderedList: 'list-unordered',
4715
4770
  italic: 'italic',
4716
4771
  outdent: 'indent-decrease',
4772
+ print: 'print',
4717
4773
  redo: 'redo',
4774
+ selectAll: 'select-all',
4718
4775
  strikethrough: 'strikethrough',
4719
4776
  subscript: 'sub-script',
4720
4777
  superscript: 'sup-script',
@@ -4722,8 +4779,6 @@ var commandIcons = {
4722
4779
  undo: 'undo',
4723
4780
  unlink: 'unlink-horizontal',
4724
4781
  viewSource: 'html',
4725
- foreColor: 'foreground-color',
4726
- backColor: 'background',
4727
4782
  //table
4728
4783
  insertTable: 'table-insert',
4729
4784
  addColumnBefore: 'table-column-insert-left',
@@ -4742,29 +4797,31 @@ var commandIcons = {
4742
4797
  * @hidden
4743
4798
  */
4744
4799
  var EditorCommandBase = /** @class */ (function () {
4745
- function EditorCommandBase(command, button, editor, localization) {
4800
+ function EditorCommandBase(command, button, editor, localization, toolsService) {
4801
+ var _this = this;
4746
4802
  this.command = command;
4747
4803
  this.button = button;
4748
4804
  this.editor = editor;
4749
4805
  this.localization = localization;
4750
- }
4751
- EditorCommandBase.prototype.ngOnInit = function () {
4752
- var _this = this;
4753
- this.subs = this.editor.stateChange.subscribe(this.onStateChange.bind(this));
4754
- this.subs.add(this.button.click.subscribe((this.clickHandler.bind(this))));
4755
- this.subs.add(this.button.pointerdown.subscribe((this.pointerdownHandler.bind(this))));
4756
- Promise.resolve(null).then(function () {
4806
+ this.toolsService = toolsService;
4807
+ setTimeout(function () {
4757
4808
  var text = _this.localization.get(_this.command);
4758
4809
  if (text) {
4759
- _this.button.showText = "overflow";
4760
- _this.button.showIcon = "both";
4810
+ _this.button.showText = 'overflow';
4811
+ _this.button.showIcon = 'both';
4761
4812
  _this.button.text = text;
4762
4813
  }
4763
- if (!_this.button.icon) {
4814
+ if (!_this.button.toolbarOptions.icon) {
4764
4815
  _this.button.icon = commandIcons[_this.command];
4765
4816
  }
4766
4817
  _this.button.title = text;
4818
+ _this.toolsService.needsCheck.next();
4767
4819
  });
4820
+ }
4821
+ EditorCommandBase.prototype.ngOnInit = function () {
4822
+ this.subs = this.editor.stateChange.subscribe(this.onStateChange.bind(this));
4823
+ this.subs.add(this.button.click.subscribe((this.clickHandler.bind(this))));
4824
+ this.subs.add(this.button.pointerdown.subscribe((this.pointerdownHandler.bind(this))));
4768
4825
  };
4769
4826
  EditorCommandBase.prototype.ngOnDestroy = function () {
4770
4827
  if (this.subs) {
@@ -4785,12 +4842,13 @@ var EditorCommandBase = /** @class */ (function () {
4785
4842
  */
4786
4843
  var EditorCommandButton = /** @class */ (function (_super) {
4787
4844
  __extends(EditorCommandButton, _super);
4788
- function EditorCommandButton(command, button, editor, localization) {
4789
- var _this = _super.call(this, command, button, editor, localization) || this;
4845
+ function EditorCommandButton(command, button, editor, localization, toolsService) {
4846
+ var _this = _super.call(this, command, button, editor, localization, toolsService) || this;
4790
4847
  _this.command = command;
4791
4848
  _this.button = button;
4792
4849
  _this.editor = editor;
4793
4850
  _this.localization = localization;
4851
+ _this.toolsService = toolsService;
4794
4852
  return _this;
4795
4853
  }
4796
4854
  EditorCommandButton.prototype.clickHandler = function () {
@@ -4827,8 +4885,8 @@ var EditorCommandButton = /** @class */ (function (_super) {
4827
4885
  */
4828
4886
  var EditorAlignLeftButtonDirective = /** @class */ (function (_super) {
4829
4887
  __extends(EditorAlignLeftButtonDirective, _super);
4830
- function EditorAlignLeftButtonDirective(button, editor, localization) {
4831
- return _super.call(this, 'alignLeft', button, editor, localization) || this;
4888
+ function EditorAlignLeftButtonDirective(button, editor, localization, toolsService) {
4889
+ return _super.call(this, 'alignLeft', button, editor, localization, toolsService) || this;
4832
4890
  }
4833
4891
  EditorAlignLeftButtonDirective = __decorate([
4834
4892
  Directive({
@@ -4837,7 +4895,8 @@ var EditorAlignLeftButtonDirective = /** @class */ (function (_super) {
4837
4895
  __param(1, Host()),
4838
4896
  __metadata("design:paramtypes", [ToolBarButtonComponent,
4839
4897
  EditorComponent,
4840
- EditorLocalizationService])
4898
+ EditorLocalizationService,
4899
+ EditorToolsService])
4841
4900
  ], EditorAlignLeftButtonDirective);
4842
4901
  return EditorAlignLeftButtonDirective;
4843
4902
  }(EditorCommandButton));
@@ -4862,8 +4921,8 @@ var EditorAlignLeftButtonDirective = /** @class */ (function (_super) {
4862
4921
  */
4863
4922
  var EditorAlignCenterButtonDirective = /** @class */ (function (_super) {
4864
4923
  __extends(EditorAlignCenterButtonDirective, _super);
4865
- function EditorAlignCenterButtonDirective(button, editor, localization) {
4866
- return _super.call(this, 'alignCenter', button, editor, localization) || this;
4924
+ function EditorAlignCenterButtonDirective(button, editor, localization, toolsService) {
4925
+ return _super.call(this, 'alignCenter', button, editor, localization, toolsService) || this;
4867
4926
  }
4868
4927
  EditorAlignCenterButtonDirective = __decorate([
4869
4928
  Directive({
@@ -4872,7 +4931,8 @@ var EditorAlignCenterButtonDirective = /** @class */ (function (_super) {
4872
4931
  __param(1, Host()),
4873
4932
  __metadata("design:paramtypes", [ToolBarButtonComponent,
4874
4933
  EditorComponent,
4875
- EditorLocalizationService])
4934
+ EditorLocalizationService,
4935
+ EditorToolsService])
4876
4936
  ], EditorAlignCenterButtonDirective);
4877
4937
  return EditorAlignCenterButtonDirective;
4878
4938
  }(EditorCommandButton));
@@ -4897,8 +4957,8 @@ var EditorAlignCenterButtonDirective = /** @class */ (function (_super) {
4897
4957
  */
4898
4958
  var EditorAlignRightButtonDirective = /** @class */ (function (_super) {
4899
4959
  __extends(EditorAlignRightButtonDirective, _super);
4900
- function EditorAlignRightButtonDirective(button, editor, localization) {
4901
- return _super.call(this, 'alignRight', button, editor, localization) || this;
4960
+ function EditorAlignRightButtonDirective(button, editor, localization, toolsService) {
4961
+ return _super.call(this, 'alignRight', button, editor, localization, toolsService) || this;
4902
4962
  }
4903
4963
  EditorAlignRightButtonDirective = __decorate([
4904
4964
  Directive({
@@ -4907,7 +4967,8 @@ var EditorAlignRightButtonDirective = /** @class */ (function (_super) {
4907
4967
  __param(1, Host()),
4908
4968
  __metadata("design:paramtypes", [ToolBarButtonComponent,
4909
4969
  EditorComponent,
4910
- EditorLocalizationService])
4970
+ EditorLocalizationService,
4971
+ EditorToolsService])
4911
4972
  ], EditorAlignRightButtonDirective);
4912
4973
  return EditorAlignRightButtonDirective;
4913
4974
  }(EditorCommandButton));
@@ -4932,8 +4993,8 @@ var EditorAlignRightButtonDirective = /** @class */ (function (_super) {
4932
4993
  */
4933
4994
  var EditorAlignJustifyButtonDirective = /** @class */ (function (_super) {
4934
4995
  __extends(EditorAlignJustifyButtonDirective, _super);
4935
- function EditorAlignJustifyButtonDirective(button, editor, localization) {
4936
- return _super.call(this, 'alignJustify', button, editor, localization) || this;
4996
+ function EditorAlignJustifyButtonDirective(button, editor, localization, toolsService) {
4997
+ return _super.call(this, 'alignJustify', button, editor, localization, toolsService) || this;
4937
4998
  }
4938
4999
  EditorAlignJustifyButtonDirective = __decorate([
4939
5000
  Directive({
@@ -4942,7 +5003,8 @@ var EditorAlignJustifyButtonDirective = /** @class */ (function (_super) {
4942
5003
  __param(1, Host()),
4943
5004
  __metadata("design:paramtypes", [ToolBarButtonComponent,
4944
5005
  EditorComponent,
4945
- EditorLocalizationService])
5006
+ EditorLocalizationService,
5007
+ EditorToolsService])
4946
5008
  ], EditorAlignJustifyButtonDirective);
4947
5009
  return EditorAlignJustifyButtonDirective;
4948
5010
  }(EditorCommandButton));
@@ -4967,8 +5029,8 @@ var EditorAlignJustifyButtonDirective = /** @class */ (function (_super) {
4967
5029
  */
4968
5030
  var EditorRedoButtonDirective = /** @class */ (function (_super) {
4969
5031
  __extends(EditorRedoButtonDirective, _super);
4970
- function EditorRedoButtonDirective(button, editor, localization) {
4971
- return _super.call(this, 'redo', button, editor, localization) || this;
5032
+ function EditorRedoButtonDirective(button, editor, localization, toolsService) {
5033
+ return _super.call(this, 'redo', button, editor, localization, toolsService) || this;
4972
5034
  }
4973
5035
  EditorRedoButtonDirective = __decorate([
4974
5036
  Directive({
@@ -4977,7 +5039,8 @@ var EditorRedoButtonDirective = /** @class */ (function (_super) {
4977
5039
  __param(1, Host()),
4978
5040
  __metadata("design:paramtypes", [ToolBarButtonComponent,
4979
5041
  EditorComponent,
4980
- EditorLocalizationService])
5042
+ EditorLocalizationService,
5043
+ EditorToolsService])
4981
5044
  ], EditorRedoButtonDirective);
4982
5045
  return EditorRedoButtonDirective;
4983
5046
  }(EditorCommandButton));
@@ -5002,8 +5065,8 @@ var EditorRedoButtonDirective = /** @class */ (function (_super) {
5002
5065
  */
5003
5066
  var EditorUndoButtonDirective = /** @class */ (function (_super) {
5004
5067
  __extends(EditorUndoButtonDirective, _super);
5005
- function EditorUndoButtonDirective(button, editor, localization) {
5006
- return _super.call(this, 'undo', button, editor, localization) || this;
5068
+ function EditorUndoButtonDirective(button, editor, localization, toolsService) {
5069
+ return _super.call(this, 'undo', button, editor, localization, toolsService) || this;
5007
5070
  }
5008
5071
  EditorUndoButtonDirective = __decorate([
5009
5072
  Directive({
@@ -5012,7 +5075,8 @@ var EditorUndoButtonDirective = /** @class */ (function (_super) {
5012
5075
  __param(1, Host()),
5013
5076
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5014
5077
  EditorComponent,
5015
- EditorLocalizationService])
5078
+ EditorLocalizationService,
5079
+ EditorToolsService])
5016
5080
  ], EditorUndoButtonDirective);
5017
5081
  return EditorUndoButtonDirective;
5018
5082
  }(EditorCommandButton));
@@ -5022,12 +5086,13 @@ var EditorUndoButtonDirective = /** @class */ (function (_super) {
5022
5086
  */
5023
5087
  var EditorCommandDialog = /** @class */ (function (_super) {
5024
5088
  __extends(EditorCommandDialog, _super);
5025
- function EditorCommandDialog(dialog, button, editor, localization) {
5026
- var _this = _super.call(this, dialog, button, editor, localization) || this;
5089
+ function EditorCommandDialog(dialog, button, editor, localization, toolsService) {
5090
+ var _this = _super.call(this, dialog, button, editor, localization, toolsService) || this;
5027
5091
  _this.dialog = dialog;
5028
5092
  _this.button = button;
5029
5093
  _this.editor = editor;
5030
5094
  _this.localization = localization;
5095
+ _this.toolsService = toolsService;
5031
5096
  return _this;
5032
5097
  }
5033
5098
  EditorCommandDialog.prototype.clickHandler = function () {
@@ -5059,8 +5124,8 @@ var EditorCommandDialog = /** @class */ (function (_super) {
5059
5124
  */
5060
5125
  var EditorInsertImageButtonDirective = /** @class */ (function (_super) {
5061
5126
  __extends(EditorInsertImageButtonDirective, _super);
5062
- function EditorInsertImageButtonDirective(button, editor, localization) {
5063
- return _super.call(this, 'insertImage', button, editor, localization) || this;
5127
+ function EditorInsertImageButtonDirective(button, editor, localization, toolsService) {
5128
+ return _super.call(this, 'insertImage', button, editor, localization, toolsService) || this;
5064
5129
  }
5065
5130
  EditorInsertImageButtonDirective = __decorate([
5066
5131
  Directive({
@@ -5069,7 +5134,8 @@ var EditorInsertImageButtonDirective = /** @class */ (function (_super) {
5069
5134
  __param(1, Host()),
5070
5135
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5071
5136
  EditorComponent,
5072
- EditorLocalizationService])
5137
+ EditorLocalizationService,
5138
+ EditorToolsService])
5073
5139
  ], EditorInsertImageButtonDirective);
5074
5140
  return EditorInsertImageButtonDirective;
5075
5141
  }(EditorCommandDialog));
@@ -5094,8 +5160,8 @@ var EditorInsertImageButtonDirective = /** @class */ (function (_super) {
5094
5160
  */
5095
5161
  var EditorIndentButtonDirective = /** @class */ (function (_super) {
5096
5162
  __extends(EditorIndentButtonDirective, _super);
5097
- function EditorIndentButtonDirective(button, editor, localization) {
5098
- return _super.call(this, 'indent', button, editor, localization) || this;
5163
+ function EditorIndentButtonDirective(button, editor, localization, toolsService) {
5164
+ return _super.call(this, 'indent', button, editor, localization, toolsService) || this;
5099
5165
  }
5100
5166
  EditorIndentButtonDirective = __decorate([
5101
5167
  Directive({
@@ -5104,7 +5170,8 @@ var EditorIndentButtonDirective = /** @class */ (function (_super) {
5104
5170
  __param(1, Host()),
5105
5171
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5106
5172
  EditorComponent,
5107
- EditorLocalizationService])
5173
+ EditorLocalizationService,
5174
+ EditorToolsService])
5108
5175
  ], EditorIndentButtonDirective);
5109
5176
  return EditorIndentButtonDirective;
5110
5177
  }(EditorCommandButton));
@@ -5129,8 +5196,8 @@ var EditorIndentButtonDirective = /** @class */ (function (_super) {
5129
5196
  */
5130
5197
  var EditorOutdentButtonDirective = /** @class */ (function (_super) {
5131
5198
  __extends(EditorOutdentButtonDirective, _super);
5132
- function EditorOutdentButtonDirective(button, editor, localization) {
5133
- return _super.call(this, 'outdent', button, editor, localization) || this;
5199
+ function EditorOutdentButtonDirective(button, editor, localization, toolsService) {
5200
+ return _super.call(this, 'outdent', button, editor, localization, toolsService) || this;
5134
5201
  }
5135
5202
  EditorOutdentButtonDirective = __decorate([
5136
5203
  Directive({
@@ -5139,7 +5206,8 @@ var EditorOutdentButtonDirective = /** @class */ (function (_super) {
5139
5206
  __param(1, Host()),
5140
5207
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5141
5208
  EditorComponent,
5142
- EditorLocalizationService])
5209
+ EditorLocalizationService,
5210
+ EditorToolsService])
5143
5211
  ], EditorOutdentButtonDirective);
5144
5212
  return EditorOutdentButtonDirective;
5145
5213
  }(EditorCommandButton));
@@ -5164,8 +5232,8 @@ var EditorOutdentButtonDirective = /** @class */ (function (_super) {
5164
5232
  */
5165
5233
  var EditorCreateLinkButtonDirective = /** @class */ (function (_super) {
5166
5234
  __extends(EditorCreateLinkButtonDirective, _super);
5167
- function EditorCreateLinkButtonDirective(button, editor, localization) {
5168
- return _super.call(this, 'createLink', button, editor, localization) || this;
5235
+ function EditorCreateLinkButtonDirective(button, editor, localization, toolsService) {
5236
+ return _super.call(this, 'createLink', button, editor, localization, toolsService) || this;
5169
5237
  }
5170
5238
  EditorCreateLinkButtonDirective = __decorate([
5171
5239
  Directive({
@@ -5174,7 +5242,8 @@ var EditorCreateLinkButtonDirective = /** @class */ (function (_super) {
5174
5242
  __param(1, Host()),
5175
5243
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5176
5244
  EditorComponent,
5177
- EditorLocalizationService])
5245
+ EditorLocalizationService,
5246
+ EditorToolsService])
5178
5247
  ], EditorCreateLinkButtonDirective);
5179
5248
  return EditorCreateLinkButtonDirective;
5180
5249
  }(EditorCommandDialog));
@@ -5199,8 +5268,8 @@ var EditorCreateLinkButtonDirective = /** @class */ (function (_super) {
5199
5268
  */
5200
5269
  var EditorUnlinkButtonDirective = /** @class */ (function (_super) {
5201
5270
  __extends(EditorUnlinkButtonDirective, _super);
5202
- function EditorUnlinkButtonDirective(button, editor, localization) {
5203
- return _super.call(this, 'unlink', button, editor, localization) || this;
5271
+ function EditorUnlinkButtonDirective(button, editor, localization, toolsService) {
5272
+ return _super.call(this, 'unlink', button, editor, localization, toolsService) || this;
5204
5273
  }
5205
5274
  EditorUnlinkButtonDirective = __decorate([
5206
5275
  Directive({
@@ -5209,7 +5278,8 @@ var EditorUnlinkButtonDirective = /** @class */ (function (_super) {
5209
5278
  __param(1, Host()),
5210
5279
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5211
5280
  EditorComponent,
5212
- EditorLocalizationService])
5281
+ EditorLocalizationService,
5282
+ EditorToolsService])
5213
5283
  ], EditorUnlinkButtonDirective);
5214
5284
  return EditorUnlinkButtonDirective;
5215
5285
  }(EditorCommandButton));
@@ -5234,8 +5304,8 @@ var EditorUnlinkButtonDirective = /** @class */ (function (_super) {
5234
5304
  */
5235
5305
  var EditorInsertOrderedListButtonDirective = /** @class */ (function (_super) {
5236
5306
  __extends(EditorInsertOrderedListButtonDirective, _super);
5237
- function EditorInsertOrderedListButtonDirective(button, editor, localization) {
5238
- return _super.call(this, 'insertOrderedList', button, editor, localization) || this;
5307
+ function EditorInsertOrderedListButtonDirective(button, editor, localization, toolsService) {
5308
+ return _super.call(this, 'insertOrderedList', button, editor, localization, toolsService) || this;
5239
5309
  }
5240
5310
  EditorInsertOrderedListButtonDirective = __decorate([
5241
5311
  Directive({
@@ -5244,7 +5314,8 @@ var EditorInsertOrderedListButtonDirective = /** @class */ (function (_super) {
5244
5314
  __param(1, Host()),
5245
5315
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5246
5316
  EditorComponent,
5247
- EditorLocalizationService])
5317
+ EditorLocalizationService,
5318
+ EditorToolsService])
5248
5319
  ], EditorInsertOrderedListButtonDirective);
5249
5320
  return EditorInsertOrderedListButtonDirective;
5250
5321
  }(EditorCommandButton));
@@ -5269,8 +5340,8 @@ var EditorInsertOrderedListButtonDirective = /** @class */ (function (_super) {
5269
5340
  */
5270
5341
  var EditorInsertUnorderedListButtonDirective = /** @class */ (function (_super) {
5271
5342
  __extends(EditorInsertUnorderedListButtonDirective, _super);
5272
- function EditorInsertUnorderedListButtonDirective(button, editor, localization) {
5273
- return _super.call(this, 'insertUnorderedList', button, editor, localization) || this;
5343
+ function EditorInsertUnorderedListButtonDirective(button, editor, localization, toolsService) {
5344
+ return _super.call(this, 'insertUnorderedList', button, editor, localization, toolsService) || this;
5274
5345
  }
5275
5346
  EditorInsertUnorderedListButtonDirective = __decorate([
5276
5347
  Directive({
@@ -5279,7 +5350,8 @@ var EditorInsertUnorderedListButtonDirective = /** @class */ (function (_super)
5279
5350
  __param(1, Host()),
5280
5351
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5281
5352
  EditorComponent,
5282
- EditorLocalizationService])
5353
+ EditorLocalizationService,
5354
+ EditorToolsService])
5283
5355
  ], EditorInsertUnorderedListButtonDirective);
5284
5356
  return EditorInsertUnorderedListButtonDirective;
5285
5357
  }(EditorCommandButton));
@@ -5303,8 +5375,8 @@ var EditorInsertUnorderedListButtonDirective = /** @class */ (function (_super)
5303
5375
  */
5304
5376
  var EditorViewSourceButtonDirective = /** @class */ (function (_super) {
5305
5377
  __extends(EditorViewSourceButtonDirective, _super);
5306
- function EditorViewSourceButtonDirective(button, editor, localization) {
5307
- return _super.call(this, 'viewSource', button, editor, localization) || this;
5378
+ function EditorViewSourceButtonDirective(button, editor, localization, toolsService) {
5379
+ return _super.call(this, 'viewSource', button, editor, localization, toolsService) || this;
5308
5380
  }
5309
5381
  EditorViewSourceButtonDirective = __decorate([
5310
5382
  Directive({
@@ -5313,7 +5385,8 @@ var EditorViewSourceButtonDirective = /** @class */ (function (_super) {
5313
5385
  __param(1, Host()),
5314
5386
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5315
5387
  EditorComponent,
5316
- EditorLocalizationService])
5388
+ EditorLocalizationService,
5389
+ EditorToolsService])
5317
5390
  ], EditorViewSourceButtonDirective);
5318
5391
  return EditorViewSourceButtonDirective;
5319
5392
  }(EditorCommandDialog));
@@ -5338,8 +5411,8 @@ var EditorViewSourceButtonDirective = /** @class */ (function (_super) {
5338
5411
  */
5339
5412
  var EditorBoldButtonDirective = /** @class */ (function (_super) {
5340
5413
  __extends(EditorBoldButtonDirective, _super);
5341
- function EditorBoldButtonDirective(button, editor, localization) {
5342
- return _super.call(this, 'bold', button, editor, localization) || this;
5414
+ function EditorBoldButtonDirective(button, editor, localization, toolsService) {
5415
+ return _super.call(this, 'bold', button, editor, localization, toolsService) || this;
5343
5416
  }
5344
5417
  EditorBoldButtonDirective = __decorate([
5345
5418
  Directive({
@@ -5348,7 +5421,8 @@ var EditorBoldButtonDirective = /** @class */ (function (_super) {
5348
5421
  __param(1, Host()),
5349
5422
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5350
5423
  EditorComponent,
5351
- EditorLocalizationService])
5424
+ EditorLocalizationService,
5425
+ EditorToolsService])
5352
5426
  ], EditorBoldButtonDirective);
5353
5427
  return EditorBoldButtonDirective;
5354
5428
  }(EditorCommandButton));
@@ -5373,8 +5447,8 @@ var EditorBoldButtonDirective = /** @class */ (function (_super) {
5373
5447
  */
5374
5448
  var EditorItalicButtonDirective = /** @class */ (function (_super) {
5375
5449
  __extends(EditorItalicButtonDirective, _super);
5376
- function EditorItalicButtonDirective(button, editor, localization) {
5377
- return _super.call(this, 'italic', button, editor, localization) || this;
5450
+ function EditorItalicButtonDirective(button, editor, localization, toolsService) {
5451
+ return _super.call(this, 'italic', button, editor, localization, toolsService) || this;
5378
5452
  }
5379
5453
  EditorItalicButtonDirective = __decorate([
5380
5454
  Directive({
@@ -5383,7 +5457,8 @@ var EditorItalicButtonDirective = /** @class */ (function (_super) {
5383
5457
  __param(1, Host()),
5384
5458
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5385
5459
  EditorComponent,
5386
- EditorLocalizationService])
5460
+ EditorLocalizationService,
5461
+ EditorToolsService])
5387
5462
  ], EditorItalicButtonDirective);
5388
5463
  return EditorItalicButtonDirective;
5389
5464
  }(EditorCommandButton));
@@ -5408,8 +5483,8 @@ var EditorItalicButtonDirective = /** @class */ (function (_super) {
5408
5483
  */
5409
5484
  var EditorUnderlineButtonDirective = /** @class */ (function (_super) {
5410
5485
  __extends(EditorUnderlineButtonDirective, _super);
5411
- function EditorUnderlineButtonDirective(button, editor, localization) {
5412
- return _super.call(this, 'underline', button, editor, localization) || this;
5486
+ function EditorUnderlineButtonDirective(button, editor, localization, toolsService) {
5487
+ return _super.call(this, 'underline', button, editor, localization, toolsService) || this;
5413
5488
  }
5414
5489
  EditorUnderlineButtonDirective = __decorate([
5415
5490
  Directive({
@@ -5418,7 +5493,8 @@ var EditorUnderlineButtonDirective = /** @class */ (function (_super) {
5418
5493
  __param(1, Host()),
5419
5494
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5420
5495
  EditorComponent,
5421
- EditorLocalizationService])
5496
+ EditorLocalizationService,
5497
+ EditorToolsService])
5422
5498
  ], EditorUnderlineButtonDirective);
5423
5499
  return EditorUnderlineButtonDirective;
5424
5500
  }(EditorCommandButton));
@@ -5443,8 +5519,8 @@ var EditorUnderlineButtonDirective = /** @class */ (function (_super) {
5443
5519
  */
5444
5520
  var EditorStrikethroughButtonDirective = /** @class */ (function (_super) {
5445
5521
  __extends(EditorStrikethroughButtonDirective, _super);
5446
- function EditorStrikethroughButtonDirective(button, editor, localization) {
5447
- return _super.call(this, 'strikethrough', button, editor, localization) || this;
5522
+ function EditorStrikethroughButtonDirective(button, editor, localization, toolsService) {
5523
+ return _super.call(this, 'strikethrough', button, editor, localization, toolsService) || this;
5448
5524
  }
5449
5525
  EditorStrikethroughButtonDirective = __decorate([
5450
5526
  Directive({
@@ -5453,7 +5529,8 @@ var EditorStrikethroughButtonDirective = /** @class */ (function (_super) {
5453
5529
  __param(1, Host()),
5454
5530
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5455
5531
  EditorComponent,
5456
- EditorLocalizationService])
5532
+ EditorLocalizationService,
5533
+ EditorToolsService])
5457
5534
  ], EditorStrikethroughButtonDirective);
5458
5535
  return EditorStrikethroughButtonDirective;
5459
5536
  }(EditorCommandButton));
@@ -5478,8 +5555,8 @@ var EditorStrikethroughButtonDirective = /** @class */ (function (_super) {
5478
5555
  */
5479
5556
  var EditorSubscriptButtonDirective = /** @class */ (function (_super) {
5480
5557
  __extends(EditorSubscriptButtonDirective, _super);
5481
- function EditorSubscriptButtonDirective(button, editor, localization) {
5482
- return _super.call(this, 'subscript', button, editor, localization) || this;
5558
+ function EditorSubscriptButtonDirective(button, editor, localization, toolsService) {
5559
+ return _super.call(this, 'subscript', button, editor, localization, toolsService) || this;
5483
5560
  }
5484
5561
  EditorSubscriptButtonDirective = __decorate([
5485
5562
  Directive({
@@ -5488,7 +5565,8 @@ var EditorSubscriptButtonDirective = /** @class */ (function (_super) {
5488
5565
  __param(1, Host()),
5489
5566
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5490
5567
  EditorComponent,
5491
- EditorLocalizationService])
5568
+ EditorLocalizationService,
5569
+ EditorToolsService])
5492
5570
  ], EditorSubscriptButtonDirective);
5493
5571
  return EditorSubscriptButtonDirective;
5494
5572
  }(EditorCommandButton));
@@ -5513,8 +5591,8 @@ var EditorSubscriptButtonDirective = /** @class */ (function (_super) {
5513
5591
  */
5514
5592
  var EditorSuperscriptButtonDirective = /** @class */ (function (_super) {
5515
5593
  __extends(EditorSuperscriptButtonDirective, _super);
5516
- function EditorSuperscriptButtonDirective(button, editor, localization) {
5517
- return _super.call(this, 'superscript', button, editor, localization) || this;
5594
+ function EditorSuperscriptButtonDirective(button, editor, localization, toolsService) {
5595
+ return _super.call(this, 'superscript', button, editor, localization, toolsService) || this;
5518
5596
  }
5519
5597
  EditorSuperscriptButtonDirective = __decorate([
5520
5598
  Directive({
@@ -5523,7 +5601,8 @@ var EditorSuperscriptButtonDirective = /** @class */ (function (_super) {
5523
5601
  __param(1, Host()),
5524
5602
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5525
5603
  EditorComponent,
5526
- EditorLocalizationService])
5604
+ EditorLocalizationService,
5605
+ EditorToolsService])
5527
5606
  ], EditorSuperscriptButtonDirective);
5528
5607
  return EditorSuperscriptButtonDirective;
5529
5608
  }(EditorCommandButton));
@@ -5540,8 +5619,8 @@ var EditorSuperscriptButtonDirective = /** @class */ (function (_super) {
5540
5619
  */
5541
5620
  var EditorInsertFileButtonDirective = /** @class */ (function (_super) {
5542
5621
  __extends(EditorInsertFileButtonDirective, _super);
5543
- function EditorInsertFileButtonDirective(button, editor, localization) {
5544
- return _super.call(this, 'insertFile', button, editor, localization) || this;
5622
+ function EditorInsertFileButtonDirective(button, editor, localization, toolsService) {
5623
+ return _super.call(this, 'insertFile', button, editor, localization, toolsService) || this;
5545
5624
  }
5546
5625
  EditorInsertFileButtonDirective = __decorate([
5547
5626
  Directive({
@@ -5550,7 +5629,8 @@ var EditorInsertFileButtonDirective = /** @class */ (function (_super) {
5550
5629
  __param(1, Host()),
5551
5630
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5552
5631
  EditorComponent,
5553
- EditorLocalizationService])
5632
+ EditorLocalizationService,
5633
+ EditorToolsService])
5554
5634
  ], EditorInsertFileButtonDirective);
5555
5635
  return EditorInsertFileButtonDirective;
5556
5636
  }(EditorCommandDialog));
@@ -5614,8 +5694,8 @@ var EditorBackColorDirective = /** @class */ (function () {
5614
5694
  */
5615
5695
  var EditorCleanFormattingButtonDirective = /** @class */ (function (_super) {
5616
5696
  __extends(EditorCleanFormattingButtonDirective, _super);
5617
- function EditorCleanFormattingButtonDirective(button, editor, localization) {
5618
- return _super.call(this, 'cleanFormatting', button, editor, localization) || this;
5697
+ function EditorCleanFormattingButtonDirective(button, editor, localization, toolsService) {
5698
+ return _super.call(this, 'cleanFormatting', button, editor, localization, toolsService) || this;
5619
5699
  }
5620
5700
  EditorCleanFormattingButtonDirective = __decorate([
5621
5701
  Directive({
@@ -5624,7 +5704,8 @@ var EditorCleanFormattingButtonDirective = /** @class */ (function (_super) {
5624
5704
  __param(1, Host()),
5625
5705
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5626
5706
  EditorComponent,
5627
- EditorLocalizationService])
5707
+ EditorLocalizationService,
5708
+ EditorToolsService])
5628
5709
  ], EditorCleanFormattingButtonDirective);
5629
5710
  return EditorCleanFormattingButtonDirective;
5630
5711
  }(EditorCommandButton));
@@ -5642,8 +5723,8 @@ var EditorCleanFormattingButtonDirective = /** @class */ (function (_super) {
5642
5723
  */
5643
5724
  var EditorAddColumnBeforeButtonDirective = /** @class */ (function (_super) {
5644
5725
  __extends(EditorAddColumnBeforeButtonDirective, _super);
5645
- function EditorAddColumnBeforeButtonDirective(button, editor, localization) {
5646
- return _super.call(this, 'addColumnBefore', button, editor, localization) || this;
5726
+ function EditorAddColumnBeforeButtonDirective(button, editor, localization, toolsService) {
5727
+ return _super.call(this, 'addColumnBefore', button, editor, localization, toolsService) || this;
5647
5728
  }
5648
5729
  EditorAddColumnBeforeButtonDirective = __decorate([
5649
5730
  Directive({
@@ -5652,7 +5733,8 @@ var EditorAddColumnBeforeButtonDirective = /** @class */ (function (_super) {
5652
5733
  __param(1, Host()),
5653
5734
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5654
5735
  EditorComponent,
5655
- EditorLocalizationService])
5736
+ EditorLocalizationService,
5737
+ EditorToolsService])
5656
5738
  ], EditorAddColumnBeforeButtonDirective);
5657
5739
  return EditorAddColumnBeforeButtonDirective;
5658
5740
  }(EditorCommandButton));
@@ -5670,8 +5752,8 @@ var EditorAddColumnBeforeButtonDirective = /** @class */ (function (_super) {
5670
5752
  */
5671
5753
  var EditorAddColumnAfterButtonDirective = /** @class */ (function (_super) {
5672
5754
  __extends(EditorAddColumnAfterButtonDirective, _super);
5673
- function EditorAddColumnAfterButtonDirective(button, editor, localization) {
5674
- return _super.call(this, 'addColumnAfter', button, editor, localization) || this;
5755
+ function EditorAddColumnAfterButtonDirective(button, editor, localization, toolsService) {
5756
+ return _super.call(this, 'addColumnAfter', button, editor, localization, toolsService) || this;
5675
5757
  }
5676
5758
  EditorAddColumnAfterButtonDirective = __decorate([
5677
5759
  Directive({
@@ -5680,7 +5762,8 @@ var EditorAddColumnAfterButtonDirective = /** @class */ (function (_super) {
5680
5762
  __param(1, Host()),
5681
5763
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5682
5764
  EditorComponent,
5683
- EditorLocalizationService])
5765
+ EditorLocalizationService,
5766
+ EditorToolsService])
5684
5767
  ], EditorAddColumnAfterButtonDirective);
5685
5768
  return EditorAddColumnAfterButtonDirective;
5686
5769
  }(EditorCommandButton));
@@ -5698,8 +5781,8 @@ var EditorAddColumnAfterButtonDirective = /** @class */ (function (_super) {
5698
5781
  */
5699
5782
  var EditorAddRowBeforeButtonDirective = /** @class */ (function (_super) {
5700
5783
  __extends(EditorAddRowBeforeButtonDirective, _super);
5701
- function EditorAddRowBeforeButtonDirective(button, editor, localization) {
5702
- return _super.call(this, 'addRowBefore', button, editor, localization) || this;
5784
+ function EditorAddRowBeforeButtonDirective(button, editor, localization, toolsService) {
5785
+ return _super.call(this, 'addRowBefore', button, editor, localization, toolsService) || this;
5703
5786
  }
5704
5787
  EditorAddRowBeforeButtonDirective = __decorate([
5705
5788
  Directive({
@@ -5708,7 +5791,8 @@ var EditorAddRowBeforeButtonDirective = /** @class */ (function (_super) {
5708
5791
  __param(1, Host()),
5709
5792
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5710
5793
  EditorComponent,
5711
- EditorLocalizationService])
5794
+ EditorLocalizationService,
5795
+ EditorToolsService])
5712
5796
  ], EditorAddRowBeforeButtonDirective);
5713
5797
  return EditorAddRowBeforeButtonDirective;
5714
5798
  }(EditorCommandButton));
@@ -5726,8 +5810,8 @@ var EditorAddRowBeforeButtonDirective = /** @class */ (function (_super) {
5726
5810
  */
5727
5811
  var EditorAddRowAfterButtonDirective = /** @class */ (function (_super) {
5728
5812
  __extends(EditorAddRowAfterButtonDirective, _super);
5729
- function EditorAddRowAfterButtonDirective(button, editor, localization) {
5730
- return _super.call(this, 'addRowAfter', button, editor, localization) || this;
5813
+ function EditorAddRowAfterButtonDirective(button, editor, localization, toolsService) {
5814
+ return _super.call(this, 'addRowAfter', button, editor, localization, toolsService) || this;
5731
5815
  }
5732
5816
  EditorAddRowAfterButtonDirective = __decorate([
5733
5817
  Directive({
@@ -5736,7 +5820,8 @@ var EditorAddRowAfterButtonDirective = /** @class */ (function (_super) {
5736
5820
  __param(1, Host()),
5737
5821
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5738
5822
  EditorComponent,
5739
- EditorLocalizationService])
5823
+ EditorLocalizationService,
5824
+ EditorToolsService])
5740
5825
  ], EditorAddRowAfterButtonDirective);
5741
5826
  return EditorAddRowAfterButtonDirective;
5742
5827
  }(EditorCommandButton));
@@ -5754,8 +5839,8 @@ var EditorAddRowAfterButtonDirective = /** @class */ (function (_super) {
5754
5839
  */
5755
5840
  var EditorDeleteColumnButtonDirective = /** @class */ (function (_super) {
5756
5841
  __extends(EditorDeleteColumnButtonDirective, _super);
5757
- function EditorDeleteColumnButtonDirective(button, editor, localization) {
5758
- return _super.call(this, 'deleteColumn', button, editor, localization) || this;
5842
+ function EditorDeleteColumnButtonDirective(button, editor, localization, toolsService) {
5843
+ return _super.call(this, 'deleteColumn', button, editor, localization, toolsService) || this;
5759
5844
  }
5760
5845
  EditorDeleteColumnButtonDirective = __decorate([
5761
5846
  Directive({
@@ -5764,7 +5849,8 @@ var EditorDeleteColumnButtonDirective = /** @class */ (function (_super) {
5764
5849
  __param(1, Host()),
5765
5850
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5766
5851
  EditorComponent,
5767
- EditorLocalizationService])
5852
+ EditorLocalizationService,
5853
+ EditorToolsService])
5768
5854
  ], EditorDeleteColumnButtonDirective);
5769
5855
  return EditorDeleteColumnButtonDirective;
5770
5856
  }(EditorCommandButton));
@@ -5782,8 +5868,8 @@ var EditorDeleteColumnButtonDirective = /** @class */ (function (_super) {
5782
5868
  */
5783
5869
  var EditorDeleteRowButtonDirective = /** @class */ (function (_super) {
5784
5870
  __extends(EditorDeleteRowButtonDirective, _super);
5785
- function EditorDeleteRowButtonDirective(button, editor, localization) {
5786
- return _super.call(this, 'deleteRow', button, editor, localization) || this;
5871
+ function EditorDeleteRowButtonDirective(button, editor, localization, toolsService) {
5872
+ return _super.call(this, 'deleteRow', button, editor, localization, toolsService) || this;
5787
5873
  }
5788
5874
  EditorDeleteRowButtonDirective = __decorate([
5789
5875
  Directive({
@@ -5792,7 +5878,8 @@ var EditorDeleteRowButtonDirective = /** @class */ (function (_super) {
5792
5878
  __param(1, Host()),
5793
5879
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5794
5880
  EditorComponent,
5795
- EditorLocalizationService])
5881
+ EditorLocalizationService,
5882
+ EditorToolsService])
5796
5883
  ], EditorDeleteRowButtonDirective);
5797
5884
  return EditorDeleteRowButtonDirective;
5798
5885
  }(EditorCommandButton));
@@ -5810,8 +5897,8 @@ var EditorDeleteRowButtonDirective = /** @class */ (function (_super) {
5810
5897
  */
5811
5898
  var EditorDeleteTableButtonDirective = /** @class */ (function (_super) {
5812
5899
  __extends(EditorDeleteTableButtonDirective, _super);
5813
- function EditorDeleteTableButtonDirective(button, editor, localization) {
5814
- return _super.call(this, 'deleteTable', button, editor, localization) || this;
5900
+ function EditorDeleteTableButtonDirective(button, editor, localization, toolsService) {
5901
+ return _super.call(this, 'deleteTable', button, editor, localization, toolsService) || this;
5815
5902
  }
5816
5903
  EditorDeleteTableButtonDirective = __decorate([
5817
5904
  Directive({
@@ -5820,7 +5907,8 @@ var EditorDeleteTableButtonDirective = /** @class */ (function (_super) {
5820
5907
  __param(1, Host()),
5821
5908
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5822
5909
  EditorComponent,
5823
- EditorLocalizationService])
5910
+ EditorLocalizationService,
5911
+ EditorToolsService])
5824
5912
  ], EditorDeleteTableButtonDirective);
5825
5913
  return EditorDeleteTableButtonDirective;
5826
5914
  }(EditorCommandButton));
@@ -5840,8 +5928,8 @@ var EditorDeleteTableButtonDirective = /** @class */ (function (_super) {
5840
5928
  */
5841
5929
  var EditorMergeCellsButtonDirective = /** @class */ (function (_super) {
5842
5930
  __extends(EditorMergeCellsButtonDirective, _super);
5843
- function EditorMergeCellsButtonDirective(button, editor, localization) {
5844
- return _super.call(this, 'mergeCells', button, editor, localization) || this;
5931
+ function EditorMergeCellsButtonDirective(button, editor, localization, toolsService) {
5932
+ return _super.call(this, 'mergeCells', button, editor, localization, toolsService) || this;
5845
5933
  }
5846
5934
  EditorMergeCellsButtonDirective = __decorate([
5847
5935
  Directive({
@@ -5850,7 +5938,8 @@ var EditorMergeCellsButtonDirective = /** @class */ (function (_super) {
5850
5938
  __param(1, Host()),
5851
5939
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5852
5940
  EditorComponent,
5853
- EditorLocalizationService])
5941
+ EditorLocalizationService,
5942
+ EditorToolsService])
5854
5943
  ], EditorMergeCellsButtonDirective);
5855
5944
  return EditorMergeCellsButtonDirective;
5856
5945
  }(EditorCommandButton));
@@ -5870,8 +5959,8 @@ var EditorMergeCellsButtonDirective = /** @class */ (function (_super) {
5870
5959
  */
5871
5960
  var EditorSplitCellButtonDirective = /** @class */ (function (_super) {
5872
5961
  __extends(EditorSplitCellButtonDirective, _super);
5873
- function EditorSplitCellButtonDirective(button, editor, localization) {
5874
- return _super.call(this, 'splitCell', button, editor, localization) || this;
5962
+ function EditorSplitCellButtonDirective(button, editor, localization, toolsService) {
5963
+ return _super.call(this, 'splitCell', button, editor, localization, toolsService) || this;
5875
5964
  }
5876
5965
  EditorSplitCellButtonDirective = __decorate([
5877
5966
  Directive({
@@ -5880,7 +5969,8 @@ var EditorSplitCellButtonDirective = /** @class */ (function (_super) {
5880
5969
  __param(1, Host()),
5881
5970
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5882
5971
  EditorComponent,
5883
- EditorLocalizationService])
5972
+ EditorLocalizationService,
5973
+ EditorToolsService])
5884
5974
  ], EditorSplitCellButtonDirective);
5885
5975
  return EditorSplitCellButtonDirective;
5886
5976
  }(EditorCommandButton));
@@ -5969,10 +6059,18 @@ var Messages = /** @class */ (function (_super) {
5969
6059
  Input(),
5970
6060
  __metadata("design:type", String)
5971
6061
  ], Messages.prototype, "outdent", void 0);
6062
+ __decorate([
6063
+ Input(),
6064
+ __metadata("design:type", String)
6065
+ ], Messages.prototype, "print", void 0);
5972
6066
  __decorate([
5973
6067
  Input(),
5974
6068
  __metadata("design:type", String)
5975
6069
  ], Messages.prototype, "redo", void 0);
6070
+ __decorate([
6071
+ Input(),
6072
+ __metadata("design:type", String)
6073
+ ], Messages.prototype, "selectAll", void 0);
5976
6074
  __decorate([
5977
6075
  Input(),
5978
6076
  __metadata("design:type", String)
@@ -6189,6 +6287,102 @@ var DropDownToolDirective = /** @class */ (function () {
6189
6287
  return DropDownToolDirective;
6190
6288
  }());
6191
6289
 
6290
+ /**
6291
+ * A directive which configures an existing `ToolBarButtonComponent` as an Editor Print tool
6292
+ * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
6293
+ * The directive will predefine the `icon` and `click` event handlers of the button.
6294
+ *
6295
+ * > The Editor Print tool is supported in the default [`iframe`](https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorComponent/#toc-iframe) mode only.
6296
+ *
6297
+ * @example
6298
+ * ```ts-no-run
6299
+ * <kendo-toolbar-button kendoEditorPrintButton></kendo-toolbar-button>
6300
+ * ```
6301
+ *
6302
+ * The following example demonstrates how to change the default icon that is applied by the directive.
6303
+ *
6304
+ * @example
6305
+ * ```ts-no-run
6306
+ * <kendo-toolbar-button kendoEditorPrintButton icon="blogger"></kendo-toolbar-button>
6307
+ * ```
6308
+ */
6309
+ var EditorPrintDirective = /** @class */ (function (_super) {
6310
+ __extends(EditorPrintDirective, _super);
6311
+ function EditorPrintDirective(button, editor, localization, toolsService) {
6312
+ var _this = _super.call(this, 'print', button, editor, localization, toolsService) || this;
6313
+ _this.editor = editor;
6314
+ return _this;
6315
+ }
6316
+ EditorPrintDirective.prototype.ngAfterViewInit = function () {
6317
+ if (isDevMode) {
6318
+ if (!this.editor.iframe) {
6319
+ throw new Error(EditorErrorMessages.printTool);
6320
+ }
6321
+ }
6322
+ };
6323
+ EditorPrintDirective.prototype.clickHandler = function () {
6324
+ if (this.editor.iframe) {
6325
+ var view = this.editor.view;
6326
+ var dom = view && view.dom;
6327
+ var doc = dom && dom.ownerDocument;
6328
+ var editorWindow = doc && doc.defaultView;
6329
+ if (editorWindow) {
6330
+ editorWindow.print();
6331
+ }
6332
+ }
6333
+ };
6334
+ EditorPrintDirective = __decorate([
6335
+ Directive({
6336
+ selector: 'kendo-toolbar-button[kendoEditorPrintButton]'
6337
+ }),
6338
+ __param(1, Host()),
6339
+ __metadata("design:paramtypes", [ToolBarButtonComponent,
6340
+ EditorComponent,
6341
+ EditorLocalizationService,
6342
+ EditorToolsService])
6343
+ ], EditorPrintDirective);
6344
+ return EditorPrintDirective;
6345
+ }(EditorCommandButton));
6346
+
6347
+ /**
6348
+ * A directive which configures an existing `ToolBarButtonComponent` as an Editor SelectAll tool
6349
+ * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
6350
+ * The directive will predefine the `icon` and `click` event handlers of the button.
6351
+ *
6352
+ * @example
6353
+ * ```ts-no-run
6354
+ * <kendo-toolbar-button kendoEditorSelectAllButton></kendo-toolbar-button>
6355
+ * ```
6356
+ *
6357
+ * The following example demonstrates how to change the default icon that is applied by the directive.
6358
+ *
6359
+ * @example
6360
+ * ```ts-no-run
6361
+ * <kendo-toolbar-button kendoEditorSelectAllButton icon="blogger"></kendo-toolbar-button>
6362
+ * ```
6363
+ */
6364
+ var EditorSelectAllButtonDirective = /** @class */ (function (_super) {
6365
+ __extends(EditorSelectAllButtonDirective, _super);
6366
+ function EditorSelectAllButtonDirective(button, editor, localization, toolsService) {
6367
+ return _super.call(this, 'selectAll', button, editor, localization, toolsService) || this;
6368
+ }
6369
+ EditorSelectAllButtonDirective.prototype.clickHandler = function () {
6370
+ this.editor.shouldEmitFocus = true;
6371
+ _super.prototype.clickHandler.call(this);
6372
+ };
6373
+ EditorSelectAllButtonDirective = __decorate([
6374
+ Directive({
6375
+ selector: 'kendo-toolbar-button[kendoEditorSelectAllButton]'
6376
+ }),
6377
+ __param(1, Host()),
6378
+ __metadata("design:paramtypes", [ToolBarButtonComponent,
6379
+ EditorComponent,
6380
+ EditorLocalizationService,
6381
+ EditorToolsService])
6382
+ ], EditorSelectAllButtonDirective);
6383
+ return EditorSelectAllButtonDirective;
6384
+ }(EditorCommandButton));
6385
+
6192
6386
  var COMPONENT_DIRECTIVES = [
6193
6387
  //alignment
6194
6388
  EditorAlignLeftButtonDirective,
@@ -6240,7 +6434,11 @@ var COMPONENT_DIRECTIVES = [
6240
6434
  CustomMessagesComponent,
6241
6435
  LocalizedMessagesDirective,
6242
6436
  // dropdown tools
6243
- DropDownToolDirective
6437
+ DropDownToolDirective,
6438
+ // print
6439
+ EditorPrintDirective,
6440
+ // select all
6441
+ EditorSelectAllButtonDirective
6244
6442
  ];
6245
6443
  var TOOLBAR_TOOLS = [
6246
6444
  EditorFontSizeComponent,
@@ -6357,4 +6555,4 @@ var EditorModule = /** @class */ (function () {
6357
6555
  * Generated bundle index. Do not edit.
6358
6556
  */
6359
6557
 
6360
- 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, 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 };
6558
+ 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 };