@progress/kendo-angular-editor 2.5.0-dev.202111111129 → 2.5.0-dev.202111261548

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 (203) 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-insert-table-button.component.js +5 -8
  44. package/dist/es/tools/tables/editor-merge-cells-button.directive.js +5 -3
  45. package/dist/es/tools/tables/editor-split-cell-button.directive.js +5 -3
  46. package/dist/es/tools/tools.service.js +20 -0
  47. package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  48. package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  49. package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  50. package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  51. package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  52. package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  53. package/dist/es2015/common/commands.d.ts +5 -1
  54. package/dist/es2015/common/error-messages.js +2 -1
  55. package/dist/es2015/config/command-icons.d.ts +2 -2
  56. package/dist/es2015/config/command-icons.js +4 -2
  57. package/dist/es2015/config/commands.js +31 -30
  58. package/dist/es2015/editor-toolbar-state.js +20 -2
  59. package/dist/es2015/editor.component.d.ts +8 -1
  60. package/dist/es2015/editor.component.js +14 -4
  61. package/dist/es2015/editor.module.js +7 -1
  62. package/dist/es2015/index.d.ts +3 -0
  63. package/dist/es2015/index.js +3 -0
  64. package/dist/es2015/index.metadata.json +1 -1
  65. package/dist/es2015/localization/messages.d.ts +8 -0
  66. package/dist/es2015/localization/messages.js +8 -0
  67. package/dist/es2015/package-metadata.js +1 -1
  68. package/dist/es2015/tools/alignment/editor-align-center-button.directive.d.ts +2 -1
  69. package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +5 -3
  70. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.d.ts +2 -1
  71. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +5 -3
  72. package/dist/es2015/tools/alignment/editor-align-left-button.directive.d.ts +2 -1
  73. package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +5 -3
  74. package/dist/es2015/tools/alignment/editor-align-right-button.directive.d.ts +2 -1
  75. package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +5 -3
  76. package/dist/es2015/tools/editor-clean-formatting-button.directive.d.ts +2 -1
  77. package/dist/es2015/tools/editor-clean-formatting-button.directive.js +5 -3
  78. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.d.ts +3 -1
  79. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.js +9 -3
  80. package/dist/es2015/tools/fontsize/editor-fontsize.component.d.ts +3 -1
  81. package/dist/es2015/tools/fontsize/editor-fontsize.component.js +9 -3
  82. package/dist/es2015/tools/format/editor-format.component.d.ts +3 -1
  83. package/dist/es2015/tools/format/editor-format.component.js +9 -3
  84. package/dist/es2015/tools/history/editor-redo-button.directive.d.ts +2 -1
  85. package/dist/es2015/tools/history/editor-redo-button.directive.js +5 -3
  86. package/dist/es2015/tools/history/editor-undo-button.directive.d.ts +2 -1
  87. package/dist/es2015/tools/history/editor-undo-button.directive.js +5 -3
  88. package/dist/es2015/tools/image/editor-insert-image-button.directive.d.ts +2 -1
  89. package/dist/es2015/tools/image/editor-insert-image-button.directive.js +5 -3
  90. package/dist/es2015/tools/indentation/editor-indent-button.directive.d.ts +2 -1
  91. package/dist/es2015/tools/indentation/editor-indent-button.directive.js +5 -3
  92. package/dist/es2015/tools/indentation/editor-outdent-button.directive.d.ts +2 -1
  93. package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +5 -3
  94. package/dist/es2015/tools/link/editor-create-link-button.directive.d.ts +2 -1
  95. package/dist/es2015/tools/link/editor-create-link-button.directive.js +5 -3
  96. package/dist/es2015/tools/link/editor-insert-file-button.directive.d.ts +2 -1
  97. package/dist/es2015/tools/link/editor-insert-file-button.directive.js +5 -3
  98. package/dist/es2015/tools/link/editor-unlink-button.directive.d.ts +2 -1
  99. package/dist/es2015/tools/link/editor-unlink-button.directive.js +5 -3
  100. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.d.ts +2 -1
  101. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  102. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.d.ts +2 -1
  103. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  104. package/dist/es2015/tools/print/editor-print-button.directive.d.ts +34 -0
  105. package/dist/es2015/tools/print/editor-print-button.directive.js +66 -0
  106. package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +30 -0
  107. package/dist/es2015/tools/select-all/select-all-button.directive.js +48 -0
  108. package/dist/es2015/tools/shared/editor-command-base.d.ts +5 -3
  109. package/dist/es2015/tools/shared/editor-command-base.js +12 -10
  110. package/dist/es2015/tools/shared/editor-command-button.d.ts +5 -3
  111. package/dist/es2015/tools/shared/editor-command-button.js +3 -2
  112. package/dist/es2015/tools/shared/editor-command-dialog.d.ts +3 -1
  113. package/dist/es2015/tools/shared/editor-command-dialog.js +3 -2
  114. package/dist/es2015/tools/source/editor-view-source-button.directive.d.ts +2 -1
  115. package/dist/es2015/tools/source/editor-view-source-button.directive.js +5 -3
  116. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.d.ts +2 -1
  117. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +5 -3
  118. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.d.ts +2 -1
  119. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +5 -3
  120. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.d.ts +2 -1
  121. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +5 -3
  122. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.d.ts +2 -1
  123. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +5 -3
  124. package/dist/es2015/tools/tables/editor-delete-column-button.directive.d.ts +2 -1
  125. package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +5 -3
  126. package/dist/es2015/tools/tables/editor-delete-row-button.directive.d.ts +2 -1
  127. package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +5 -3
  128. package/dist/es2015/tools/tables/editor-delete-table-button.directive.d.ts +2 -1
  129. package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +5 -3
  130. package/dist/es2015/tools/tables/editor-insert-table-button.component.d.ts +2 -3
  131. package/dist/es2015/tools/tables/editor-insert-table-button.component.js +13 -8
  132. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.d.ts +2 -1
  133. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +5 -3
  134. package/dist/es2015/tools/tables/editor-split-cell-button.directive.d.ts +2 -1
  135. package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +5 -3
  136. package/dist/es2015/tools/tools.service.d.ts +11 -0
  137. package/dist/es2015/tools/tools.service.js +22 -0
  138. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.d.ts +2 -1
  139. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  140. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.d.ts +2 -1
  141. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  142. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +2 -1
  143. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  144. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +2 -1
  145. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  146. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +2 -1
  147. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  148. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.d.ts +2 -1
  149. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  150. package/dist/fesm2015/index.js +371 -167
  151. package/dist/fesm5/index.js +365 -170
  152. package/dist/npm/common/error-messages.js +2 -1
  153. package/dist/npm/config/command-icons.js +4 -2
  154. package/dist/npm/config/commands.js +33 -31
  155. package/dist/npm/editor-toolbar-state.js +20 -2
  156. package/dist/npm/editor.component.js +11 -5
  157. package/dist/npm/editor.module.js +7 -1
  158. package/dist/npm/index.js +6 -0
  159. package/dist/npm/localization/messages.js +8 -0
  160. package/dist/npm/package-metadata.js +1 -1
  161. package/dist/npm/tools/alignment/editor-align-center-button.directive.js +5 -3
  162. package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +5 -3
  163. package/dist/npm/tools/alignment/editor-align-left-button.directive.js +5 -3
  164. package/dist/npm/tools/alignment/editor-align-right-button.directive.js +5 -3
  165. package/dist/npm/tools/editor-clean-formatting-button.directive.js +5 -3
  166. package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +9 -3
  167. package/dist/npm/tools/fontsize/editor-fontsize.component.js +9 -3
  168. package/dist/npm/tools/format/editor-format.component.js +9 -3
  169. package/dist/npm/tools/history/editor-redo-button.directive.js +5 -3
  170. package/dist/npm/tools/history/editor-undo-button.directive.js +5 -3
  171. package/dist/npm/tools/image/editor-insert-image-button.directive.js +5 -3
  172. package/dist/npm/tools/indentation/editor-indent-button.directive.js +5 -3
  173. package/dist/npm/tools/indentation/editor-outdent-button.directive.js +5 -3
  174. package/dist/npm/tools/link/editor-create-link-button.directive.js +5 -3
  175. package/dist/npm/tools/link/editor-insert-file-button.directive.js +5 -3
  176. package/dist/npm/tools/link/editor-unlink-button.directive.js +5 -3
  177. package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  178. package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  179. package/dist/npm/tools/print/editor-print-button.directive.js +71 -0
  180. package/dist/npm/tools/select-all/select-all-button.directive.js +52 -0
  181. package/dist/npm/tools/shared/editor-command-base.js +13 -11
  182. package/dist/npm/tools/shared/editor-command-button.js +3 -2
  183. package/dist/npm/tools/shared/editor-command-dialog.js +3 -2
  184. package/dist/npm/tools/source/editor-view-source-button.directive.js +5 -3
  185. package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +5 -3
  186. package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +5 -3
  187. package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +5 -3
  188. package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +5 -3
  189. package/dist/npm/tools/tables/editor-delete-column-button.directive.js +5 -3
  190. package/dist/npm/tools/tables/editor-delete-row-button.directive.js +5 -3
  191. package/dist/npm/tools/tables/editor-delete-table-button.directive.js +5 -3
  192. package/dist/npm/tools/tables/editor-insert-table-button.component.js +5 -8
  193. package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +5 -3
  194. package/dist/npm/tools/tables/editor-split-cell-button.directive.js +5 -3
  195. package/dist/npm/tools/tools.service.js +22 -0
  196. package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  197. package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  198. package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  199. package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  200. package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  201. package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  202. package/dist/systemjs/kendo-angular-editor.js +1 -1
  203. package/package.json +1 -1
@@ -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: 1636629848,
30
+ publishDate: 1637941374,
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));
@@ -4478,9 +4531,6 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
4478
4531
  return _this;
4479
4532
  }
4480
4533
  EditorInsertTableButtonComponent_1 = EditorInsertTableButtonComponent;
4481
- EditorInsertTableButtonComponent.prototype.ngAfterViewInit = function () {
4482
- this.getButton().tabIndex = -1;
4483
- };
4484
4534
  EditorInsertTableButtonComponent.prototype.ngOnDestroy = function () {
4485
4535
  this.destroyPopup();
4486
4536
  if (this.subs) {
@@ -4531,7 +4581,7 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
4531
4581
  * @hidden
4532
4582
  */
4533
4583
  EditorInsertTableButtonComponent.prototype.onBlur = function () {
4534
- this.getButton().tabIndex = -1;
4584
+ this.tabIndex = -1;
4535
4585
  this.buttonBlurred.emit();
4536
4586
  };
4537
4587
  /**
@@ -4552,8 +4602,8 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
4552
4602
  * @hidden
4553
4603
  */
4554
4604
  EditorInsertTableButtonComponent.prototype.focus = function () {
4605
+ this.tabIndex = 0;
4555
4606
  this.getButton().focus();
4556
- this.getButton().tabIndex = 0;
4557
4607
  };
4558
4608
  /**
4559
4609
  * @hidden
@@ -4562,7 +4612,7 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
4562
4612
  if (ev.keyCode === Keys.Space || ev.keyCode === Keys.Enter) {
4563
4613
  return true;
4564
4614
  }
4565
- this.getButton().tabIndex = -1;
4615
+ this.tabIndex = -1;
4566
4616
  return false;
4567
4617
  };
4568
4618
  /**
@@ -4605,7 +4655,7 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
4605
4655
  __metadata("design:type", TemplateRef)
4606
4656
  ], EditorInsertTableButtonComponent.prototype, "toolbarTemplate", void 0);
4607
4657
  __decorate([
4608
- ViewChild('popupTemplate', { static: true }),
4658
+ ViewChild('popupTemplate', { static: false }),
4609
4659
  __metadata("design:type", TemplateRef)
4610
4660
  ], EditorInsertTableButtonComponent.prototype, "popupTemplate", void 0);
4611
4661
  __decorate([
@@ -4625,7 +4675,7 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
4625
4675
  // tslint:disable-next-line:no-forward-ref
4626
4676
  providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(function () { return EditorInsertTableButtonComponent_1; }) }],
4627
4677
  selector: 'kendo-editor-insert-table-button',
4628
- template: "\n <ng-template #toolbarTemplate>\n <button\n type=\"button\"\n kendoButton\n #element\n [attr.title]=\"title\"\n [icon]=\"'table-insert'\"\n [disabled]=\"disabled\"\n (click)=\"toggle()\"\n (blur)=\"onBlur()\"\n ></button>\n </ng-template>\n <ng-template #popupTemplate>\n <button kendoButton #overflowElement [attr.title]=\"title\" [icon]=\"'table-insert'\" [disabled]=\"disabled\" (click)=\"openDialog()\">\n {{ title }}\n </button>\n </ng-template>\n <ng-template #popupGridTemplate>\n <kendo-popup-table-grid (cellClick)=\"onCellClick($event)\" (tableWizardClick)=\"onTableWizardClick()\"></kendo-popup-table-grid>\n </ng-template>\n "
4678
+ template: "\n <ng-template #toolbarTemplate>\n <button\n type=\"button\"\n kendoButton\n #element\n [attr.title]=\"title\"\n [attr.tabindex]=\"tabIndex\"\n [icon]=\"'table-insert'\"\n [disabled]=\"disabled\"\n (click)=\"toggle()\"\n (blur)=\"onBlur()\"\n ></button>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n kendoButton\n #overflowElement\n [attr.title]=\"title\"\n [attr.tabindex]=\"tabIndex\"\n [icon]=\"'table-insert'\"\n [disabled]=\"disabled\"\n (click)=\"openDialog()\">\n {{ title }}\n </button>\n </ng-template>\n <ng-template #popupGridTemplate>\n <kendo-popup-table-grid (cellClick)=\"onCellClick($event)\" (tableWizardClick)=\"onTableWizardClick()\"></kendo-popup-table-grid>\n </ng-template>\n "
4629
4679
  }),
4630
4680
  __param(0, Host()),
4631
4681
  __metadata("design:paramtypes", [EditorComponent,
@@ -4707,9 +4757,11 @@ var commandIcons = {
4707
4757
  alignJustify: 'align-justify',
4708
4758
  alignLeft: 'align-left',
4709
4759
  alignRight: 'align-right',
4760
+ backColor: 'background',
4710
4761
  bold: 'bold',
4711
4762
  cleanFormatting: 'clear-css',
4712
4763
  createLink: 'link-horizontal',
4764
+ foreColor: 'foreground-color',
4713
4765
  indent: 'indent-increase',
4714
4766
  insertFile: 'file-add',
4715
4767
  insertImage: 'image',
@@ -4717,7 +4769,9 @@ var commandIcons = {
4717
4769
  insertUnorderedList: 'list-unordered',
4718
4770
  italic: 'italic',
4719
4771
  outdent: 'indent-decrease',
4772
+ print: 'print',
4720
4773
  redo: 'redo',
4774
+ selectAll: 'select-all',
4721
4775
  strikethrough: 'strikethrough',
4722
4776
  subscript: 'sub-script',
4723
4777
  superscript: 'sup-script',
@@ -4725,8 +4779,6 @@ var commandIcons = {
4725
4779
  undo: 'undo',
4726
4780
  unlink: 'unlink-horizontal',
4727
4781
  viewSource: 'html',
4728
- foreColor: 'foreground-color',
4729
- backColor: 'background',
4730
4782
  //table
4731
4783
  insertTable: 'table-insert',
4732
4784
  addColumnBefore: 'table-column-insert-left',
@@ -4745,29 +4797,31 @@ var commandIcons = {
4745
4797
  * @hidden
4746
4798
  */
4747
4799
  var EditorCommandBase = /** @class */ (function () {
4748
- function EditorCommandBase(command, button, editor, localization) {
4800
+ function EditorCommandBase(command, button, editor, localization, toolsService) {
4801
+ var _this = this;
4749
4802
  this.command = command;
4750
4803
  this.button = button;
4751
4804
  this.editor = editor;
4752
4805
  this.localization = localization;
4753
- }
4754
- EditorCommandBase.prototype.ngOnInit = function () {
4755
- var _this = this;
4756
- this.subs = this.editor.stateChange.subscribe(this.onStateChange.bind(this));
4757
- this.subs.add(this.button.click.subscribe((this.clickHandler.bind(this))));
4758
- this.subs.add(this.button.pointerdown.subscribe((this.pointerdownHandler.bind(this))));
4759
- Promise.resolve(null).then(function () {
4806
+ this.toolsService = toolsService;
4807
+ setTimeout(function () {
4760
4808
  var text = _this.localization.get(_this.command);
4761
4809
  if (text) {
4762
- _this.button.showText = "overflow";
4763
- _this.button.showIcon = "both";
4810
+ _this.button.showText = 'overflow';
4811
+ _this.button.showIcon = 'both';
4764
4812
  _this.button.text = text;
4765
4813
  }
4766
- if (!_this.button.icon) {
4814
+ if (!_this.button.toolbarOptions.icon) {
4767
4815
  _this.button.icon = commandIcons[_this.command];
4768
4816
  }
4769
4817
  _this.button.title = text;
4818
+ _this.toolsService.needsCheck.next();
4770
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))));
4771
4825
  };
4772
4826
  EditorCommandBase.prototype.ngOnDestroy = function () {
4773
4827
  if (this.subs) {
@@ -4788,12 +4842,13 @@ var EditorCommandBase = /** @class */ (function () {
4788
4842
  */
4789
4843
  var EditorCommandButton = /** @class */ (function (_super) {
4790
4844
  __extends(EditorCommandButton, _super);
4791
- function EditorCommandButton(command, button, editor, localization) {
4792
- 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;
4793
4847
  _this.command = command;
4794
4848
  _this.button = button;
4795
4849
  _this.editor = editor;
4796
4850
  _this.localization = localization;
4851
+ _this.toolsService = toolsService;
4797
4852
  return _this;
4798
4853
  }
4799
4854
  EditorCommandButton.prototype.clickHandler = function () {
@@ -4830,8 +4885,8 @@ var EditorCommandButton = /** @class */ (function (_super) {
4830
4885
  */
4831
4886
  var EditorAlignLeftButtonDirective = /** @class */ (function (_super) {
4832
4887
  __extends(EditorAlignLeftButtonDirective, _super);
4833
- function EditorAlignLeftButtonDirective(button, editor, localization) {
4834
- 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;
4835
4890
  }
4836
4891
  EditorAlignLeftButtonDirective = __decorate([
4837
4892
  Directive({
@@ -4840,7 +4895,8 @@ var EditorAlignLeftButtonDirective = /** @class */ (function (_super) {
4840
4895
  __param(1, Host()),
4841
4896
  __metadata("design:paramtypes", [ToolBarButtonComponent,
4842
4897
  EditorComponent,
4843
- EditorLocalizationService])
4898
+ EditorLocalizationService,
4899
+ EditorToolsService])
4844
4900
  ], EditorAlignLeftButtonDirective);
4845
4901
  return EditorAlignLeftButtonDirective;
4846
4902
  }(EditorCommandButton));
@@ -4865,8 +4921,8 @@ var EditorAlignLeftButtonDirective = /** @class */ (function (_super) {
4865
4921
  */
4866
4922
  var EditorAlignCenterButtonDirective = /** @class */ (function (_super) {
4867
4923
  __extends(EditorAlignCenterButtonDirective, _super);
4868
- function EditorAlignCenterButtonDirective(button, editor, localization) {
4869
- 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;
4870
4926
  }
4871
4927
  EditorAlignCenterButtonDirective = __decorate([
4872
4928
  Directive({
@@ -4875,7 +4931,8 @@ var EditorAlignCenterButtonDirective = /** @class */ (function (_super) {
4875
4931
  __param(1, Host()),
4876
4932
  __metadata("design:paramtypes", [ToolBarButtonComponent,
4877
4933
  EditorComponent,
4878
- EditorLocalizationService])
4934
+ EditorLocalizationService,
4935
+ EditorToolsService])
4879
4936
  ], EditorAlignCenterButtonDirective);
4880
4937
  return EditorAlignCenterButtonDirective;
4881
4938
  }(EditorCommandButton));
@@ -4900,8 +4957,8 @@ var EditorAlignCenterButtonDirective = /** @class */ (function (_super) {
4900
4957
  */
4901
4958
  var EditorAlignRightButtonDirective = /** @class */ (function (_super) {
4902
4959
  __extends(EditorAlignRightButtonDirective, _super);
4903
- function EditorAlignRightButtonDirective(button, editor, localization) {
4904
- 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;
4905
4962
  }
4906
4963
  EditorAlignRightButtonDirective = __decorate([
4907
4964
  Directive({
@@ -4910,7 +4967,8 @@ var EditorAlignRightButtonDirective = /** @class */ (function (_super) {
4910
4967
  __param(1, Host()),
4911
4968
  __metadata("design:paramtypes", [ToolBarButtonComponent,
4912
4969
  EditorComponent,
4913
- EditorLocalizationService])
4970
+ EditorLocalizationService,
4971
+ EditorToolsService])
4914
4972
  ], EditorAlignRightButtonDirective);
4915
4973
  return EditorAlignRightButtonDirective;
4916
4974
  }(EditorCommandButton));
@@ -4935,8 +4993,8 @@ var EditorAlignRightButtonDirective = /** @class */ (function (_super) {
4935
4993
  */
4936
4994
  var EditorAlignJustifyButtonDirective = /** @class */ (function (_super) {
4937
4995
  __extends(EditorAlignJustifyButtonDirective, _super);
4938
- function EditorAlignJustifyButtonDirective(button, editor, localization) {
4939
- 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;
4940
4998
  }
4941
4999
  EditorAlignJustifyButtonDirective = __decorate([
4942
5000
  Directive({
@@ -4945,7 +5003,8 @@ var EditorAlignJustifyButtonDirective = /** @class */ (function (_super) {
4945
5003
  __param(1, Host()),
4946
5004
  __metadata("design:paramtypes", [ToolBarButtonComponent,
4947
5005
  EditorComponent,
4948
- EditorLocalizationService])
5006
+ EditorLocalizationService,
5007
+ EditorToolsService])
4949
5008
  ], EditorAlignJustifyButtonDirective);
4950
5009
  return EditorAlignJustifyButtonDirective;
4951
5010
  }(EditorCommandButton));
@@ -4970,8 +5029,8 @@ var EditorAlignJustifyButtonDirective = /** @class */ (function (_super) {
4970
5029
  */
4971
5030
  var EditorRedoButtonDirective = /** @class */ (function (_super) {
4972
5031
  __extends(EditorRedoButtonDirective, _super);
4973
- function EditorRedoButtonDirective(button, editor, localization) {
4974
- 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;
4975
5034
  }
4976
5035
  EditorRedoButtonDirective = __decorate([
4977
5036
  Directive({
@@ -4980,7 +5039,8 @@ var EditorRedoButtonDirective = /** @class */ (function (_super) {
4980
5039
  __param(1, Host()),
4981
5040
  __metadata("design:paramtypes", [ToolBarButtonComponent,
4982
5041
  EditorComponent,
4983
- EditorLocalizationService])
5042
+ EditorLocalizationService,
5043
+ EditorToolsService])
4984
5044
  ], EditorRedoButtonDirective);
4985
5045
  return EditorRedoButtonDirective;
4986
5046
  }(EditorCommandButton));
@@ -5005,8 +5065,8 @@ var EditorRedoButtonDirective = /** @class */ (function (_super) {
5005
5065
  */
5006
5066
  var EditorUndoButtonDirective = /** @class */ (function (_super) {
5007
5067
  __extends(EditorUndoButtonDirective, _super);
5008
- function EditorUndoButtonDirective(button, editor, localization) {
5009
- 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;
5010
5070
  }
5011
5071
  EditorUndoButtonDirective = __decorate([
5012
5072
  Directive({
@@ -5015,7 +5075,8 @@ var EditorUndoButtonDirective = /** @class */ (function (_super) {
5015
5075
  __param(1, Host()),
5016
5076
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5017
5077
  EditorComponent,
5018
- EditorLocalizationService])
5078
+ EditorLocalizationService,
5079
+ EditorToolsService])
5019
5080
  ], EditorUndoButtonDirective);
5020
5081
  return EditorUndoButtonDirective;
5021
5082
  }(EditorCommandButton));
@@ -5025,12 +5086,13 @@ var EditorUndoButtonDirective = /** @class */ (function (_super) {
5025
5086
  */
5026
5087
  var EditorCommandDialog = /** @class */ (function (_super) {
5027
5088
  __extends(EditorCommandDialog, _super);
5028
- function EditorCommandDialog(dialog, button, editor, localization) {
5029
- 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;
5030
5091
  _this.dialog = dialog;
5031
5092
  _this.button = button;
5032
5093
  _this.editor = editor;
5033
5094
  _this.localization = localization;
5095
+ _this.toolsService = toolsService;
5034
5096
  return _this;
5035
5097
  }
5036
5098
  EditorCommandDialog.prototype.clickHandler = function () {
@@ -5062,8 +5124,8 @@ var EditorCommandDialog = /** @class */ (function (_super) {
5062
5124
  */
5063
5125
  var EditorInsertImageButtonDirective = /** @class */ (function (_super) {
5064
5126
  __extends(EditorInsertImageButtonDirective, _super);
5065
- function EditorInsertImageButtonDirective(button, editor, localization) {
5066
- 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;
5067
5129
  }
5068
5130
  EditorInsertImageButtonDirective = __decorate([
5069
5131
  Directive({
@@ -5072,7 +5134,8 @@ var EditorInsertImageButtonDirective = /** @class */ (function (_super) {
5072
5134
  __param(1, Host()),
5073
5135
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5074
5136
  EditorComponent,
5075
- EditorLocalizationService])
5137
+ EditorLocalizationService,
5138
+ EditorToolsService])
5076
5139
  ], EditorInsertImageButtonDirective);
5077
5140
  return EditorInsertImageButtonDirective;
5078
5141
  }(EditorCommandDialog));
@@ -5097,8 +5160,8 @@ var EditorInsertImageButtonDirective = /** @class */ (function (_super) {
5097
5160
  */
5098
5161
  var EditorIndentButtonDirective = /** @class */ (function (_super) {
5099
5162
  __extends(EditorIndentButtonDirective, _super);
5100
- function EditorIndentButtonDirective(button, editor, localization) {
5101
- 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;
5102
5165
  }
5103
5166
  EditorIndentButtonDirective = __decorate([
5104
5167
  Directive({
@@ -5107,7 +5170,8 @@ var EditorIndentButtonDirective = /** @class */ (function (_super) {
5107
5170
  __param(1, Host()),
5108
5171
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5109
5172
  EditorComponent,
5110
- EditorLocalizationService])
5173
+ EditorLocalizationService,
5174
+ EditorToolsService])
5111
5175
  ], EditorIndentButtonDirective);
5112
5176
  return EditorIndentButtonDirective;
5113
5177
  }(EditorCommandButton));
@@ -5132,8 +5196,8 @@ var EditorIndentButtonDirective = /** @class */ (function (_super) {
5132
5196
  */
5133
5197
  var EditorOutdentButtonDirective = /** @class */ (function (_super) {
5134
5198
  __extends(EditorOutdentButtonDirective, _super);
5135
- function EditorOutdentButtonDirective(button, editor, localization) {
5136
- 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;
5137
5201
  }
5138
5202
  EditorOutdentButtonDirective = __decorate([
5139
5203
  Directive({
@@ -5142,7 +5206,8 @@ var EditorOutdentButtonDirective = /** @class */ (function (_super) {
5142
5206
  __param(1, Host()),
5143
5207
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5144
5208
  EditorComponent,
5145
- EditorLocalizationService])
5209
+ EditorLocalizationService,
5210
+ EditorToolsService])
5146
5211
  ], EditorOutdentButtonDirective);
5147
5212
  return EditorOutdentButtonDirective;
5148
5213
  }(EditorCommandButton));
@@ -5167,8 +5232,8 @@ var EditorOutdentButtonDirective = /** @class */ (function (_super) {
5167
5232
  */
5168
5233
  var EditorCreateLinkButtonDirective = /** @class */ (function (_super) {
5169
5234
  __extends(EditorCreateLinkButtonDirective, _super);
5170
- function EditorCreateLinkButtonDirective(button, editor, localization) {
5171
- 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;
5172
5237
  }
5173
5238
  EditorCreateLinkButtonDirective = __decorate([
5174
5239
  Directive({
@@ -5177,7 +5242,8 @@ var EditorCreateLinkButtonDirective = /** @class */ (function (_super) {
5177
5242
  __param(1, Host()),
5178
5243
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5179
5244
  EditorComponent,
5180
- EditorLocalizationService])
5245
+ EditorLocalizationService,
5246
+ EditorToolsService])
5181
5247
  ], EditorCreateLinkButtonDirective);
5182
5248
  return EditorCreateLinkButtonDirective;
5183
5249
  }(EditorCommandDialog));
@@ -5202,8 +5268,8 @@ var EditorCreateLinkButtonDirective = /** @class */ (function (_super) {
5202
5268
  */
5203
5269
  var EditorUnlinkButtonDirective = /** @class */ (function (_super) {
5204
5270
  __extends(EditorUnlinkButtonDirective, _super);
5205
- function EditorUnlinkButtonDirective(button, editor, localization) {
5206
- 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;
5207
5273
  }
5208
5274
  EditorUnlinkButtonDirective = __decorate([
5209
5275
  Directive({
@@ -5212,7 +5278,8 @@ var EditorUnlinkButtonDirective = /** @class */ (function (_super) {
5212
5278
  __param(1, Host()),
5213
5279
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5214
5280
  EditorComponent,
5215
- EditorLocalizationService])
5281
+ EditorLocalizationService,
5282
+ EditorToolsService])
5216
5283
  ], EditorUnlinkButtonDirective);
5217
5284
  return EditorUnlinkButtonDirective;
5218
5285
  }(EditorCommandButton));
@@ -5237,8 +5304,8 @@ var EditorUnlinkButtonDirective = /** @class */ (function (_super) {
5237
5304
  */
5238
5305
  var EditorInsertOrderedListButtonDirective = /** @class */ (function (_super) {
5239
5306
  __extends(EditorInsertOrderedListButtonDirective, _super);
5240
- function EditorInsertOrderedListButtonDirective(button, editor, localization) {
5241
- 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;
5242
5309
  }
5243
5310
  EditorInsertOrderedListButtonDirective = __decorate([
5244
5311
  Directive({
@@ -5247,7 +5314,8 @@ var EditorInsertOrderedListButtonDirective = /** @class */ (function (_super) {
5247
5314
  __param(1, Host()),
5248
5315
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5249
5316
  EditorComponent,
5250
- EditorLocalizationService])
5317
+ EditorLocalizationService,
5318
+ EditorToolsService])
5251
5319
  ], EditorInsertOrderedListButtonDirective);
5252
5320
  return EditorInsertOrderedListButtonDirective;
5253
5321
  }(EditorCommandButton));
@@ -5272,8 +5340,8 @@ var EditorInsertOrderedListButtonDirective = /** @class */ (function (_super) {
5272
5340
  */
5273
5341
  var EditorInsertUnorderedListButtonDirective = /** @class */ (function (_super) {
5274
5342
  __extends(EditorInsertUnorderedListButtonDirective, _super);
5275
- function EditorInsertUnorderedListButtonDirective(button, editor, localization) {
5276
- 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;
5277
5345
  }
5278
5346
  EditorInsertUnorderedListButtonDirective = __decorate([
5279
5347
  Directive({
@@ -5282,7 +5350,8 @@ var EditorInsertUnorderedListButtonDirective = /** @class */ (function (_super)
5282
5350
  __param(1, Host()),
5283
5351
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5284
5352
  EditorComponent,
5285
- EditorLocalizationService])
5353
+ EditorLocalizationService,
5354
+ EditorToolsService])
5286
5355
  ], EditorInsertUnorderedListButtonDirective);
5287
5356
  return EditorInsertUnorderedListButtonDirective;
5288
5357
  }(EditorCommandButton));
@@ -5306,8 +5375,8 @@ var EditorInsertUnorderedListButtonDirective = /** @class */ (function (_super)
5306
5375
  */
5307
5376
  var EditorViewSourceButtonDirective = /** @class */ (function (_super) {
5308
5377
  __extends(EditorViewSourceButtonDirective, _super);
5309
- function EditorViewSourceButtonDirective(button, editor, localization) {
5310
- 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;
5311
5380
  }
5312
5381
  EditorViewSourceButtonDirective = __decorate([
5313
5382
  Directive({
@@ -5316,7 +5385,8 @@ var EditorViewSourceButtonDirective = /** @class */ (function (_super) {
5316
5385
  __param(1, Host()),
5317
5386
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5318
5387
  EditorComponent,
5319
- EditorLocalizationService])
5388
+ EditorLocalizationService,
5389
+ EditorToolsService])
5320
5390
  ], EditorViewSourceButtonDirective);
5321
5391
  return EditorViewSourceButtonDirective;
5322
5392
  }(EditorCommandDialog));
@@ -5341,8 +5411,8 @@ var EditorViewSourceButtonDirective = /** @class */ (function (_super) {
5341
5411
  */
5342
5412
  var EditorBoldButtonDirective = /** @class */ (function (_super) {
5343
5413
  __extends(EditorBoldButtonDirective, _super);
5344
- function EditorBoldButtonDirective(button, editor, localization) {
5345
- 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;
5346
5416
  }
5347
5417
  EditorBoldButtonDirective = __decorate([
5348
5418
  Directive({
@@ -5351,7 +5421,8 @@ var EditorBoldButtonDirective = /** @class */ (function (_super) {
5351
5421
  __param(1, Host()),
5352
5422
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5353
5423
  EditorComponent,
5354
- EditorLocalizationService])
5424
+ EditorLocalizationService,
5425
+ EditorToolsService])
5355
5426
  ], EditorBoldButtonDirective);
5356
5427
  return EditorBoldButtonDirective;
5357
5428
  }(EditorCommandButton));
@@ -5376,8 +5447,8 @@ var EditorBoldButtonDirective = /** @class */ (function (_super) {
5376
5447
  */
5377
5448
  var EditorItalicButtonDirective = /** @class */ (function (_super) {
5378
5449
  __extends(EditorItalicButtonDirective, _super);
5379
- function EditorItalicButtonDirective(button, editor, localization) {
5380
- 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;
5381
5452
  }
5382
5453
  EditorItalicButtonDirective = __decorate([
5383
5454
  Directive({
@@ -5386,7 +5457,8 @@ var EditorItalicButtonDirective = /** @class */ (function (_super) {
5386
5457
  __param(1, Host()),
5387
5458
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5388
5459
  EditorComponent,
5389
- EditorLocalizationService])
5460
+ EditorLocalizationService,
5461
+ EditorToolsService])
5390
5462
  ], EditorItalicButtonDirective);
5391
5463
  return EditorItalicButtonDirective;
5392
5464
  }(EditorCommandButton));
@@ -5411,8 +5483,8 @@ var EditorItalicButtonDirective = /** @class */ (function (_super) {
5411
5483
  */
5412
5484
  var EditorUnderlineButtonDirective = /** @class */ (function (_super) {
5413
5485
  __extends(EditorUnderlineButtonDirective, _super);
5414
- function EditorUnderlineButtonDirective(button, editor, localization) {
5415
- 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;
5416
5488
  }
5417
5489
  EditorUnderlineButtonDirective = __decorate([
5418
5490
  Directive({
@@ -5421,7 +5493,8 @@ var EditorUnderlineButtonDirective = /** @class */ (function (_super) {
5421
5493
  __param(1, Host()),
5422
5494
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5423
5495
  EditorComponent,
5424
- EditorLocalizationService])
5496
+ EditorLocalizationService,
5497
+ EditorToolsService])
5425
5498
  ], EditorUnderlineButtonDirective);
5426
5499
  return EditorUnderlineButtonDirective;
5427
5500
  }(EditorCommandButton));
@@ -5446,8 +5519,8 @@ var EditorUnderlineButtonDirective = /** @class */ (function (_super) {
5446
5519
  */
5447
5520
  var EditorStrikethroughButtonDirective = /** @class */ (function (_super) {
5448
5521
  __extends(EditorStrikethroughButtonDirective, _super);
5449
- function EditorStrikethroughButtonDirective(button, editor, localization) {
5450
- 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;
5451
5524
  }
5452
5525
  EditorStrikethroughButtonDirective = __decorate([
5453
5526
  Directive({
@@ -5456,7 +5529,8 @@ var EditorStrikethroughButtonDirective = /** @class */ (function (_super) {
5456
5529
  __param(1, Host()),
5457
5530
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5458
5531
  EditorComponent,
5459
- EditorLocalizationService])
5532
+ EditorLocalizationService,
5533
+ EditorToolsService])
5460
5534
  ], EditorStrikethroughButtonDirective);
5461
5535
  return EditorStrikethroughButtonDirective;
5462
5536
  }(EditorCommandButton));
@@ -5481,8 +5555,8 @@ var EditorStrikethroughButtonDirective = /** @class */ (function (_super) {
5481
5555
  */
5482
5556
  var EditorSubscriptButtonDirective = /** @class */ (function (_super) {
5483
5557
  __extends(EditorSubscriptButtonDirective, _super);
5484
- function EditorSubscriptButtonDirective(button, editor, localization) {
5485
- 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;
5486
5560
  }
5487
5561
  EditorSubscriptButtonDirective = __decorate([
5488
5562
  Directive({
@@ -5491,7 +5565,8 @@ var EditorSubscriptButtonDirective = /** @class */ (function (_super) {
5491
5565
  __param(1, Host()),
5492
5566
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5493
5567
  EditorComponent,
5494
- EditorLocalizationService])
5568
+ EditorLocalizationService,
5569
+ EditorToolsService])
5495
5570
  ], EditorSubscriptButtonDirective);
5496
5571
  return EditorSubscriptButtonDirective;
5497
5572
  }(EditorCommandButton));
@@ -5516,8 +5591,8 @@ var EditorSubscriptButtonDirective = /** @class */ (function (_super) {
5516
5591
  */
5517
5592
  var EditorSuperscriptButtonDirective = /** @class */ (function (_super) {
5518
5593
  __extends(EditorSuperscriptButtonDirective, _super);
5519
- function EditorSuperscriptButtonDirective(button, editor, localization) {
5520
- 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;
5521
5596
  }
5522
5597
  EditorSuperscriptButtonDirective = __decorate([
5523
5598
  Directive({
@@ -5526,7 +5601,8 @@ var EditorSuperscriptButtonDirective = /** @class */ (function (_super) {
5526
5601
  __param(1, Host()),
5527
5602
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5528
5603
  EditorComponent,
5529
- EditorLocalizationService])
5604
+ EditorLocalizationService,
5605
+ EditorToolsService])
5530
5606
  ], EditorSuperscriptButtonDirective);
5531
5607
  return EditorSuperscriptButtonDirective;
5532
5608
  }(EditorCommandButton));
@@ -5543,8 +5619,8 @@ var EditorSuperscriptButtonDirective = /** @class */ (function (_super) {
5543
5619
  */
5544
5620
  var EditorInsertFileButtonDirective = /** @class */ (function (_super) {
5545
5621
  __extends(EditorInsertFileButtonDirective, _super);
5546
- function EditorInsertFileButtonDirective(button, editor, localization) {
5547
- 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;
5548
5624
  }
5549
5625
  EditorInsertFileButtonDirective = __decorate([
5550
5626
  Directive({
@@ -5553,7 +5629,8 @@ var EditorInsertFileButtonDirective = /** @class */ (function (_super) {
5553
5629
  __param(1, Host()),
5554
5630
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5555
5631
  EditorComponent,
5556
- EditorLocalizationService])
5632
+ EditorLocalizationService,
5633
+ EditorToolsService])
5557
5634
  ], EditorInsertFileButtonDirective);
5558
5635
  return EditorInsertFileButtonDirective;
5559
5636
  }(EditorCommandDialog));
@@ -5617,8 +5694,8 @@ var EditorBackColorDirective = /** @class */ (function () {
5617
5694
  */
5618
5695
  var EditorCleanFormattingButtonDirective = /** @class */ (function (_super) {
5619
5696
  __extends(EditorCleanFormattingButtonDirective, _super);
5620
- function EditorCleanFormattingButtonDirective(button, editor, localization) {
5621
- 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;
5622
5699
  }
5623
5700
  EditorCleanFormattingButtonDirective = __decorate([
5624
5701
  Directive({
@@ -5627,7 +5704,8 @@ var EditorCleanFormattingButtonDirective = /** @class */ (function (_super) {
5627
5704
  __param(1, Host()),
5628
5705
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5629
5706
  EditorComponent,
5630
- EditorLocalizationService])
5707
+ EditorLocalizationService,
5708
+ EditorToolsService])
5631
5709
  ], EditorCleanFormattingButtonDirective);
5632
5710
  return EditorCleanFormattingButtonDirective;
5633
5711
  }(EditorCommandButton));
@@ -5645,8 +5723,8 @@ var EditorCleanFormattingButtonDirective = /** @class */ (function (_super) {
5645
5723
  */
5646
5724
  var EditorAddColumnBeforeButtonDirective = /** @class */ (function (_super) {
5647
5725
  __extends(EditorAddColumnBeforeButtonDirective, _super);
5648
- function EditorAddColumnBeforeButtonDirective(button, editor, localization) {
5649
- 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;
5650
5728
  }
5651
5729
  EditorAddColumnBeforeButtonDirective = __decorate([
5652
5730
  Directive({
@@ -5655,7 +5733,8 @@ var EditorAddColumnBeforeButtonDirective = /** @class */ (function (_super) {
5655
5733
  __param(1, Host()),
5656
5734
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5657
5735
  EditorComponent,
5658
- EditorLocalizationService])
5736
+ EditorLocalizationService,
5737
+ EditorToolsService])
5659
5738
  ], EditorAddColumnBeforeButtonDirective);
5660
5739
  return EditorAddColumnBeforeButtonDirective;
5661
5740
  }(EditorCommandButton));
@@ -5673,8 +5752,8 @@ var EditorAddColumnBeforeButtonDirective = /** @class */ (function (_super) {
5673
5752
  */
5674
5753
  var EditorAddColumnAfterButtonDirective = /** @class */ (function (_super) {
5675
5754
  __extends(EditorAddColumnAfterButtonDirective, _super);
5676
- function EditorAddColumnAfterButtonDirective(button, editor, localization) {
5677
- 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;
5678
5757
  }
5679
5758
  EditorAddColumnAfterButtonDirective = __decorate([
5680
5759
  Directive({
@@ -5683,7 +5762,8 @@ var EditorAddColumnAfterButtonDirective = /** @class */ (function (_super) {
5683
5762
  __param(1, Host()),
5684
5763
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5685
5764
  EditorComponent,
5686
- EditorLocalizationService])
5765
+ EditorLocalizationService,
5766
+ EditorToolsService])
5687
5767
  ], EditorAddColumnAfterButtonDirective);
5688
5768
  return EditorAddColumnAfterButtonDirective;
5689
5769
  }(EditorCommandButton));
@@ -5701,8 +5781,8 @@ var EditorAddColumnAfterButtonDirective = /** @class */ (function (_super) {
5701
5781
  */
5702
5782
  var EditorAddRowBeforeButtonDirective = /** @class */ (function (_super) {
5703
5783
  __extends(EditorAddRowBeforeButtonDirective, _super);
5704
- function EditorAddRowBeforeButtonDirective(button, editor, localization) {
5705
- 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;
5706
5786
  }
5707
5787
  EditorAddRowBeforeButtonDirective = __decorate([
5708
5788
  Directive({
@@ -5711,7 +5791,8 @@ var EditorAddRowBeforeButtonDirective = /** @class */ (function (_super) {
5711
5791
  __param(1, Host()),
5712
5792
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5713
5793
  EditorComponent,
5714
- EditorLocalizationService])
5794
+ EditorLocalizationService,
5795
+ EditorToolsService])
5715
5796
  ], EditorAddRowBeforeButtonDirective);
5716
5797
  return EditorAddRowBeforeButtonDirective;
5717
5798
  }(EditorCommandButton));
@@ -5729,8 +5810,8 @@ var EditorAddRowBeforeButtonDirective = /** @class */ (function (_super) {
5729
5810
  */
5730
5811
  var EditorAddRowAfterButtonDirective = /** @class */ (function (_super) {
5731
5812
  __extends(EditorAddRowAfterButtonDirective, _super);
5732
- function EditorAddRowAfterButtonDirective(button, editor, localization) {
5733
- 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;
5734
5815
  }
5735
5816
  EditorAddRowAfterButtonDirective = __decorate([
5736
5817
  Directive({
@@ -5739,7 +5820,8 @@ var EditorAddRowAfterButtonDirective = /** @class */ (function (_super) {
5739
5820
  __param(1, Host()),
5740
5821
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5741
5822
  EditorComponent,
5742
- EditorLocalizationService])
5823
+ EditorLocalizationService,
5824
+ EditorToolsService])
5743
5825
  ], EditorAddRowAfterButtonDirective);
5744
5826
  return EditorAddRowAfterButtonDirective;
5745
5827
  }(EditorCommandButton));
@@ -5757,8 +5839,8 @@ var EditorAddRowAfterButtonDirective = /** @class */ (function (_super) {
5757
5839
  */
5758
5840
  var EditorDeleteColumnButtonDirective = /** @class */ (function (_super) {
5759
5841
  __extends(EditorDeleteColumnButtonDirective, _super);
5760
- function EditorDeleteColumnButtonDirective(button, editor, localization) {
5761
- 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;
5762
5844
  }
5763
5845
  EditorDeleteColumnButtonDirective = __decorate([
5764
5846
  Directive({
@@ -5767,7 +5849,8 @@ var EditorDeleteColumnButtonDirective = /** @class */ (function (_super) {
5767
5849
  __param(1, Host()),
5768
5850
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5769
5851
  EditorComponent,
5770
- EditorLocalizationService])
5852
+ EditorLocalizationService,
5853
+ EditorToolsService])
5771
5854
  ], EditorDeleteColumnButtonDirective);
5772
5855
  return EditorDeleteColumnButtonDirective;
5773
5856
  }(EditorCommandButton));
@@ -5785,8 +5868,8 @@ var EditorDeleteColumnButtonDirective = /** @class */ (function (_super) {
5785
5868
  */
5786
5869
  var EditorDeleteRowButtonDirective = /** @class */ (function (_super) {
5787
5870
  __extends(EditorDeleteRowButtonDirective, _super);
5788
- function EditorDeleteRowButtonDirective(button, editor, localization) {
5789
- 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;
5790
5873
  }
5791
5874
  EditorDeleteRowButtonDirective = __decorate([
5792
5875
  Directive({
@@ -5795,7 +5878,8 @@ var EditorDeleteRowButtonDirective = /** @class */ (function (_super) {
5795
5878
  __param(1, Host()),
5796
5879
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5797
5880
  EditorComponent,
5798
- EditorLocalizationService])
5881
+ EditorLocalizationService,
5882
+ EditorToolsService])
5799
5883
  ], EditorDeleteRowButtonDirective);
5800
5884
  return EditorDeleteRowButtonDirective;
5801
5885
  }(EditorCommandButton));
@@ -5813,8 +5897,8 @@ var EditorDeleteRowButtonDirective = /** @class */ (function (_super) {
5813
5897
  */
5814
5898
  var EditorDeleteTableButtonDirective = /** @class */ (function (_super) {
5815
5899
  __extends(EditorDeleteTableButtonDirective, _super);
5816
- function EditorDeleteTableButtonDirective(button, editor, localization) {
5817
- 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;
5818
5902
  }
5819
5903
  EditorDeleteTableButtonDirective = __decorate([
5820
5904
  Directive({
@@ -5823,7 +5907,8 @@ var EditorDeleteTableButtonDirective = /** @class */ (function (_super) {
5823
5907
  __param(1, Host()),
5824
5908
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5825
5909
  EditorComponent,
5826
- EditorLocalizationService])
5910
+ EditorLocalizationService,
5911
+ EditorToolsService])
5827
5912
  ], EditorDeleteTableButtonDirective);
5828
5913
  return EditorDeleteTableButtonDirective;
5829
5914
  }(EditorCommandButton));
@@ -5843,8 +5928,8 @@ var EditorDeleteTableButtonDirective = /** @class */ (function (_super) {
5843
5928
  */
5844
5929
  var EditorMergeCellsButtonDirective = /** @class */ (function (_super) {
5845
5930
  __extends(EditorMergeCellsButtonDirective, _super);
5846
- function EditorMergeCellsButtonDirective(button, editor, localization) {
5847
- 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;
5848
5933
  }
5849
5934
  EditorMergeCellsButtonDirective = __decorate([
5850
5935
  Directive({
@@ -5853,7 +5938,8 @@ var EditorMergeCellsButtonDirective = /** @class */ (function (_super) {
5853
5938
  __param(1, Host()),
5854
5939
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5855
5940
  EditorComponent,
5856
- EditorLocalizationService])
5941
+ EditorLocalizationService,
5942
+ EditorToolsService])
5857
5943
  ], EditorMergeCellsButtonDirective);
5858
5944
  return EditorMergeCellsButtonDirective;
5859
5945
  }(EditorCommandButton));
@@ -5873,8 +5959,8 @@ var EditorMergeCellsButtonDirective = /** @class */ (function (_super) {
5873
5959
  */
5874
5960
  var EditorSplitCellButtonDirective = /** @class */ (function (_super) {
5875
5961
  __extends(EditorSplitCellButtonDirective, _super);
5876
- function EditorSplitCellButtonDirective(button, editor, localization) {
5877
- 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;
5878
5964
  }
5879
5965
  EditorSplitCellButtonDirective = __decorate([
5880
5966
  Directive({
@@ -5883,7 +5969,8 @@ var EditorSplitCellButtonDirective = /** @class */ (function (_super) {
5883
5969
  __param(1, Host()),
5884
5970
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5885
5971
  EditorComponent,
5886
- EditorLocalizationService])
5972
+ EditorLocalizationService,
5973
+ EditorToolsService])
5887
5974
  ], EditorSplitCellButtonDirective);
5888
5975
  return EditorSplitCellButtonDirective;
5889
5976
  }(EditorCommandButton));
@@ -5972,10 +6059,18 @@ var Messages = /** @class */ (function (_super) {
5972
6059
  Input(),
5973
6060
  __metadata("design:type", String)
5974
6061
  ], Messages.prototype, "outdent", void 0);
6062
+ __decorate([
6063
+ Input(),
6064
+ __metadata("design:type", String)
6065
+ ], Messages.prototype, "print", void 0);
5975
6066
  __decorate([
5976
6067
  Input(),
5977
6068
  __metadata("design:type", String)
5978
6069
  ], Messages.prototype, "redo", void 0);
6070
+ __decorate([
6071
+ Input(),
6072
+ __metadata("design:type", String)
6073
+ ], Messages.prototype, "selectAll", void 0);
5979
6074
  __decorate([
5980
6075
  Input(),
5981
6076
  __metadata("design:type", String)
@@ -6192,6 +6287,102 @@ var DropDownToolDirective = /** @class */ (function () {
6192
6287
  return DropDownToolDirective;
6193
6288
  }());
6194
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
+
6195
6386
  var COMPONENT_DIRECTIVES = [
6196
6387
  //alignment
6197
6388
  EditorAlignLeftButtonDirective,
@@ -6243,7 +6434,11 @@ var COMPONENT_DIRECTIVES = [
6243
6434
  CustomMessagesComponent,
6244
6435
  LocalizedMessagesDirective,
6245
6436
  // dropdown tools
6246
- DropDownToolDirective
6437
+ DropDownToolDirective,
6438
+ // print
6439
+ EditorPrintDirective,
6440
+ // select all
6441
+ EditorSelectAllButtonDirective
6247
6442
  ];
6248
6443
  var TOOLBAR_TOOLS = [
6249
6444
  EditorFontSizeComponent,
@@ -6360,4 +6555,4 @@ var EditorModule = /** @class */ (function () {
6360
6555
  * Generated bundle index. Do not edit.
6361
6556
  */
6362
6557
 
6363
- 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 };