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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/dist/cdn/js/kendo-angular-editor.js +2 -2
  2. package/dist/cdn/main.js +1 -1
  3. package/dist/es/common/error-messages.js +2 -1
  4. package/dist/es/config/command-icons.js +4 -2
  5. package/dist/es/config/commands.js +32 -31
  6. package/dist/es/editor-toolbar-state.js +20 -2
  7. package/dist/es/editor.component.js +11 -5
  8. package/dist/es/editor.module.js +7 -1
  9. package/dist/es/index.js +3 -0
  10. package/dist/es/localization/messages.js +8 -0
  11. package/dist/es/package-metadata.js +1 -1
  12. package/dist/es/tools/alignment/editor-align-center-button.directive.js +5 -3
  13. package/dist/es/tools/alignment/editor-align-justify-button.directive.js +5 -3
  14. package/dist/es/tools/alignment/editor-align-left-button.directive.js +5 -3
  15. package/dist/es/tools/alignment/editor-align-right-button.directive.js +5 -3
  16. package/dist/es/tools/editor-clean-formatting-button.directive.js +5 -3
  17. package/dist/es/tools/fontfamily/editor-fontfamily.component.js +9 -3
  18. package/dist/es/tools/fontsize/editor-fontsize.component.js +9 -3
  19. package/dist/es/tools/format/editor-format.component.js +9 -3
  20. package/dist/es/tools/history/editor-redo-button.directive.js +5 -3
  21. package/dist/es/tools/history/editor-undo-button.directive.js +5 -3
  22. package/dist/es/tools/image/editor-insert-image-button.directive.js +5 -3
  23. package/dist/es/tools/indentation/editor-indent-button.directive.js +5 -3
  24. package/dist/es/tools/indentation/editor-outdent-button.directive.js +5 -3
  25. package/dist/es/tools/link/editor-create-link-button.directive.js +5 -3
  26. package/dist/es/tools/link/editor-insert-file-button.directive.js +5 -3
  27. package/dist/es/tools/link/editor-unlink-button.directive.js +5 -3
  28. package/dist/es/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  29. package/dist/es/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  30. package/dist/es/tools/print/editor-print-button.directive.js +69 -0
  31. package/dist/es/tools/select-all/select-all-button.directive.js +50 -0
  32. package/dist/es/tools/shared/editor-command-base.js +13 -11
  33. package/dist/es/tools/shared/editor-command-button.js +3 -2
  34. package/dist/es/tools/shared/editor-command-dialog.js +3 -2
  35. package/dist/es/tools/source/editor-view-source-button.directive.js +5 -3
  36. package/dist/es/tools/tables/editor-add-column-after-button.directive.js +5 -3
  37. package/dist/es/tools/tables/editor-add-column-before-button.directive.js +5 -3
  38. package/dist/es/tools/tables/editor-add-row-after-button.directive.js +5 -3
  39. package/dist/es/tools/tables/editor-add-row-before-button.directive.js +5 -3
  40. package/dist/es/tools/tables/editor-delete-column-button.directive.js +5 -3
  41. package/dist/es/tools/tables/editor-delete-row-button.directive.js +5 -3
  42. package/dist/es/tools/tables/editor-delete-table-button.directive.js +5 -3
  43. package/dist/es/tools/tables/editor-merge-cells-button.directive.js +5 -3
  44. package/dist/es/tools/tables/editor-split-cell-button.directive.js +5 -3
  45. package/dist/es/tools/tools.service.js +20 -0
  46. package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  47. package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  48. package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  49. package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  50. package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  51. package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  52. package/dist/es2015/common/commands.d.ts +5 -1
  53. package/dist/es2015/common/error-messages.js +2 -1
  54. package/dist/es2015/config/command-icons.d.ts +2 -2
  55. package/dist/es2015/config/command-icons.js +4 -2
  56. package/dist/es2015/config/commands.js +31 -30
  57. package/dist/es2015/editor-toolbar-state.js +20 -2
  58. package/dist/es2015/editor.component.d.ts +8 -1
  59. package/dist/es2015/editor.component.js +14 -4
  60. package/dist/es2015/editor.module.js +7 -1
  61. package/dist/es2015/index.d.ts +3 -0
  62. package/dist/es2015/index.js +3 -0
  63. package/dist/es2015/index.metadata.json +1 -1
  64. package/dist/es2015/localization/messages.d.ts +8 -0
  65. package/dist/es2015/localization/messages.js +8 -0
  66. package/dist/es2015/package-metadata.js +1 -1
  67. package/dist/es2015/tools/alignment/editor-align-center-button.directive.d.ts +2 -1
  68. package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +5 -3
  69. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.d.ts +2 -1
  70. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +5 -3
  71. package/dist/es2015/tools/alignment/editor-align-left-button.directive.d.ts +2 -1
  72. package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +5 -3
  73. package/dist/es2015/tools/alignment/editor-align-right-button.directive.d.ts +2 -1
  74. package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +5 -3
  75. package/dist/es2015/tools/editor-clean-formatting-button.directive.d.ts +2 -1
  76. package/dist/es2015/tools/editor-clean-formatting-button.directive.js +5 -3
  77. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.d.ts +3 -1
  78. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.js +9 -3
  79. package/dist/es2015/tools/fontsize/editor-fontsize.component.d.ts +3 -1
  80. package/dist/es2015/tools/fontsize/editor-fontsize.component.js +9 -3
  81. package/dist/es2015/tools/format/editor-format.component.d.ts +3 -1
  82. package/dist/es2015/tools/format/editor-format.component.js +9 -3
  83. package/dist/es2015/tools/history/editor-redo-button.directive.d.ts +2 -1
  84. package/dist/es2015/tools/history/editor-redo-button.directive.js +5 -3
  85. package/dist/es2015/tools/history/editor-undo-button.directive.d.ts +2 -1
  86. package/dist/es2015/tools/history/editor-undo-button.directive.js +5 -3
  87. package/dist/es2015/tools/image/editor-insert-image-button.directive.d.ts +2 -1
  88. package/dist/es2015/tools/image/editor-insert-image-button.directive.js +5 -3
  89. package/dist/es2015/tools/indentation/editor-indent-button.directive.d.ts +2 -1
  90. package/dist/es2015/tools/indentation/editor-indent-button.directive.js +5 -3
  91. package/dist/es2015/tools/indentation/editor-outdent-button.directive.d.ts +2 -1
  92. package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +5 -3
  93. package/dist/es2015/tools/link/editor-create-link-button.directive.d.ts +2 -1
  94. package/dist/es2015/tools/link/editor-create-link-button.directive.js +5 -3
  95. package/dist/es2015/tools/link/editor-insert-file-button.directive.d.ts +2 -1
  96. package/dist/es2015/tools/link/editor-insert-file-button.directive.js +5 -3
  97. package/dist/es2015/tools/link/editor-unlink-button.directive.d.ts +2 -1
  98. package/dist/es2015/tools/link/editor-unlink-button.directive.js +5 -3
  99. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.d.ts +2 -1
  100. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  101. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.d.ts +2 -1
  102. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  103. package/dist/es2015/tools/print/editor-print-button.directive.d.ts +34 -0
  104. package/dist/es2015/tools/print/editor-print-button.directive.js +66 -0
  105. package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +30 -0
  106. package/dist/es2015/tools/select-all/select-all-button.directive.js +48 -0
  107. package/dist/es2015/tools/shared/editor-command-base.d.ts +5 -3
  108. package/dist/es2015/tools/shared/editor-command-base.js +12 -10
  109. package/dist/es2015/tools/shared/editor-command-button.d.ts +5 -3
  110. package/dist/es2015/tools/shared/editor-command-button.js +3 -2
  111. package/dist/es2015/tools/shared/editor-command-dialog.d.ts +3 -1
  112. package/dist/es2015/tools/shared/editor-command-dialog.js +3 -2
  113. package/dist/es2015/tools/source/editor-view-source-button.directive.d.ts +2 -1
  114. package/dist/es2015/tools/source/editor-view-source-button.directive.js +5 -3
  115. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.d.ts +2 -1
  116. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +5 -3
  117. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.d.ts +2 -1
  118. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +5 -3
  119. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.d.ts +2 -1
  120. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +5 -3
  121. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.d.ts +2 -1
  122. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +5 -3
  123. package/dist/es2015/tools/tables/editor-delete-column-button.directive.d.ts +2 -1
  124. package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +5 -3
  125. package/dist/es2015/tools/tables/editor-delete-row-button.directive.d.ts +2 -1
  126. package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +5 -3
  127. package/dist/es2015/tools/tables/editor-delete-table-button.directive.d.ts +2 -1
  128. package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +5 -3
  129. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.d.ts +2 -1
  130. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +5 -3
  131. package/dist/es2015/tools/tables/editor-split-cell-button.directive.d.ts +2 -1
  132. package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +5 -3
  133. package/dist/es2015/tools/tools.service.d.ts +11 -0
  134. package/dist/es2015/tools/tools.service.js +22 -0
  135. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.d.ts +2 -1
  136. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  137. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.d.ts +2 -1
  138. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  139. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +2 -1
  140. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  141. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +2 -1
  142. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  143. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +2 -1
  144. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  145. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.d.ts +2 -1
  146. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  147. package/dist/fesm2015/index.js +358 -159
  148. package/dist/fesm5/index.js +360 -162
  149. package/dist/npm/common/error-messages.js +2 -1
  150. package/dist/npm/config/command-icons.js +4 -2
  151. package/dist/npm/config/commands.js +33 -31
  152. package/dist/npm/editor-toolbar-state.js +20 -2
  153. package/dist/npm/editor.component.js +11 -5
  154. package/dist/npm/editor.module.js +7 -1
  155. package/dist/npm/index.js +6 -0
  156. package/dist/npm/localization/messages.js +8 -0
  157. package/dist/npm/package-metadata.js +1 -1
  158. package/dist/npm/tools/alignment/editor-align-center-button.directive.js +5 -3
  159. package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +5 -3
  160. package/dist/npm/tools/alignment/editor-align-left-button.directive.js +5 -3
  161. package/dist/npm/tools/alignment/editor-align-right-button.directive.js +5 -3
  162. package/dist/npm/tools/editor-clean-formatting-button.directive.js +5 -3
  163. package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +9 -3
  164. package/dist/npm/tools/fontsize/editor-fontsize.component.js +9 -3
  165. package/dist/npm/tools/format/editor-format.component.js +9 -3
  166. package/dist/npm/tools/history/editor-redo-button.directive.js +5 -3
  167. package/dist/npm/tools/history/editor-undo-button.directive.js +5 -3
  168. package/dist/npm/tools/image/editor-insert-image-button.directive.js +5 -3
  169. package/dist/npm/tools/indentation/editor-indent-button.directive.js +5 -3
  170. package/dist/npm/tools/indentation/editor-outdent-button.directive.js +5 -3
  171. package/dist/npm/tools/link/editor-create-link-button.directive.js +5 -3
  172. package/dist/npm/tools/link/editor-insert-file-button.directive.js +5 -3
  173. package/dist/npm/tools/link/editor-unlink-button.directive.js +5 -3
  174. package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  175. package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  176. package/dist/npm/tools/print/editor-print-button.directive.js +71 -0
  177. package/dist/npm/tools/select-all/select-all-button.directive.js +52 -0
  178. package/dist/npm/tools/shared/editor-command-base.js +13 -11
  179. package/dist/npm/tools/shared/editor-command-button.js +3 -2
  180. package/dist/npm/tools/shared/editor-command-dialog.js +3 -2
  181. package/dist/npm/tools/source/editor-view-source-button.directive.js +5 -3
  182. package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +5 -3
  183. package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +5 -3
  184. package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +5 -3
  185. package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +5 -3
  186. package/dist/npm/tools/tables/editor-delete-column-button.directive.js +5 -3
  187. package/dist/npm/tools/tables/editor-delete-row-button.directive.js +5 -3
  188. package/dist/npm/tools/tables/editor-delete-table-button.directive.js +5 -3
  189. package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +5 -3
  190. package/dist/npm/tools/tables/editor-split-cell-button.directive.js +5 -3
  191. package/dist/npm/tools/tools.service.js +22 -0
  192. package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  193. package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  194. package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  195. package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  196. package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  197. package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  198. package/dist/systemjs/kendo-angular-editor.js +1 -1
  199. package/package.json +4 -4
@@ -12,6 +12,7 @@ export var EditorErrorMessages = {
12
12
  setSchemaOnce: 'The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/',
13
13
  pluginsCallbackType: ɵ0,
14
14
  setPluginsOnce: 'The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/',
15
- setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/'
15
+ setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/',
16
+ 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/'
16
17
  };
17
18
  export { ɵ0 };
@@ -10,9 +10,11 @@ export var commandIcons = {
10
10
  alignJustify: 'align-justify',
11
11
  alignLeft: 'align-left',
12
12
  alignRight: 'align-right',
13
+ backColor: 'background',
13
14
  bold: 'bold',
14
15
  cleanFormatting: 'clear-css',
15
16
  createLink: 'link-horizontal',
17
+ foreColor: 'foreground-color',
16
18
  indent: 'indent-increase',
17
19
  insertFile: 'file-add',
18
20
  insertImage: 'image',
@@ -20,7 +22,9 @@ export var commandIcons = {
20
22
  insertUnorderedList: 'list-unordered',
21
23
  italic: 'italic',
22
24
  outdent: 'indent-decrease',
25
+ print: 'print',
23
26
  redo: 'redo',
27
+ selectAll: 'select-all',
24
28
  strikethrough: 'strikethrough',
25
29
  subscript: 'sub-script',
26
30
  superscript: 'sup-script',
@@ -28,8 +32,6 @@ export var commandIcons = {
28
32
  undo: 'undo',
29
33
  unlink: 'unlink-horizontal',
30
34
  viewSource: 'html',
31
- foreColor: 'foreground-color',
32
- backColor: 'background',
33
35
  //table
34
36
  insertTable: 'table-insert',
35
37
  addColumnBefore: 'table-column-insert-left',
@@ -5,11 +5,11 @@
5
5
  import * as tslib_1 from "tslib";
6
6
  import { alignBlocks, alignLeftRules, alignCenterRules, alignRightRules, alignJustifyRules, alignRemoveRules, indent, outdent, setHtml, getHtml, insertImage, insertText, applyLink, removeLink, expandToWordWrap,
7
7
  //marks
8
- bold, italic, underline, strikethrough, subscript, superscript, link, toggleInlineFormat, applyInlineStyle, formatBlockElements, toggleOrderedList, toggleUnorderedList, isAligned, undo, redo, cleanFormatting } from '@progress/kendo-editor-common';
8
+ bold, italic, underline, strikethrough, subscript, superscript, link, toggleInlineFormat, applyInlineStyle, formatBlockElements, toggleOrderedList, toggleUnorderedList, isAligned, undo, redo, cleanFormatting, selectAll } from '@progress/kendo-editor-common';
9
9
  import { insertTable, deleteTable, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell } from './table-commands';
10
10
  var alignRemove = function (state, dispatch) { return alignBlocks(alignRemoveRules)(state, dispatch); };
11
11
  var ɵ0 = alignRemove;
12
- var ɵ1 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, tslib_1.__assign({}, bold, { applyToWord: applyToWord })); }, ɵ2 = function (options) { return cleanFormatting(options); }, ɵ3 = function (attrs) { return expandToWordWrap(applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ4 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ5 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'font-size', value: attrs.value + 'px', applyToWord: attrs.applyToWord }); }, ɵ6 = function (attrs) { return expandToWordWrap(applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }); }, ɵ7 = function (text) { return insertText(text); }, ɵ8 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, tslib_1.__assign({}, italic, { applyToWord: applyToWord })); }, ɵ9 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, tslib_1.__assign({}, strikethrough, { applyToWord: applyToWord })); }, ɵ10 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, tslib_1.__assign({}, subscript, { applyToWord: applyToWord })); }, ɵ11 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, tslib_1.__assign({}, superscript, { applyToWord: applyToWord })); }, ɵ12 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, tslib_1.__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 }); };
12
+ var ɵ1 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, tslib_1.__assign({}, bold, { applyToWord: applyToWord })); }, ɵ2 = function (options) { return cleanFormatting(options); }, ɵ3 = function (attrs) { return expandToWordWrap(applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ4 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ5 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'font-size', value: attrs.value + 'px', applyToWord: attrs.applyToWord }); }, ɵ6 = function (attrs) { return expandToWordWrap(applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }); }, ɵ7 = function (text) { return insertText(text); }, ɵ8 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, tslib_1.__assign({}, italic, { applyToWord: applyToWord })); }, ɵ9 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, tslib_1.__assign({}, strikethrough, { applyToWord: applyToWord })); }, ɵ10 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, tslib_1.__assign({}, subscript, { applyToWord: applyToWord })); }, ɵ11 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, tslib_1.__assign({}, superscript, { applyToWord: applyToWord })); }, ɵ12 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, tslib_1.__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); }; };
13
13
  var inlineCommand = {
14
14
  bold: ɵ1,
15
15
  cleanFormatting: ɵ2,
@@ -25,45 +25,46 @@ var inlineCommand = {
25
25
  underline: ɵ12,
26
26
  unlink: ɵ13,
27
27
  foreColor: ɵ14,
28
- backColor: ɵ15
28
+ backColor: ɵ15,
29
+ selectAll: ɵ16
29
30
  };
30
- 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) {
31
+ 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) {
31
32
  var content = _a.content, parseOptions = _a.parseOptions;
32
33
  return setHtml(content, 'setHTML', parseOptions);
33
- }, ɵ29 = function () { return undo; };
34
+ }, ɵ30 = function () { return undo; };
34
35
  var blockCommand = {
35
- alignCenter: ɵ16,
36
- alignJustify: ɵ17,
37
- alignLeft: ɵ18,
38
- alignRight: ɵ19,
39
- format: ɵ20,
40
- getHTML: ɵ21,
41
- indent: ɵ22,
42
- insertImage: ɵ23,
36
+ alignCenter: ɵ17,
37
+ alignJustify: ɵ18,
38
+ alignLeft: ɵ19,
39
+ alignRight: ɵ20,
40
+ format: ɵ21,
41
+ getHTML: ɵ22,
42
+ indent: ɵ23,
43
+ insertImage: ɵ24,
43
44
  // think about changing the command name.
44
- insertOrderedList: ɵ24,
45
+ insertOrderedList: ɵ25,
45
46
  // think about changing the command name.
46
- insertUnorderedList: ɵ25,
47
- outdent: ɵ26,
48
- redo: ɵ27,
49
- setHTML: ɵ28,
50
- undo: ɵ29
47
+ insertUnorderedList: ɵ26,
48
+ outdent: ɵ27,
49
+ redo: ɵ28,
50
+ setHTML: ɵ29,
51
+ undo: ɵ30
51
52
  };
52
- var ɵ30 = function (attr) { return insertTable(attr); }, ɵ31 = function () { return addColumnBefore; }, ɵ32 = function () { return addColumnAfter; }, ɵ33 = function () { return addRowBefore; }, ɵ34 = function () { return addRowAfter; }, ɵ35 = function () { return deleteRow; }, ɵ36 = function () { return deleteColumn; }, ɵ37 = function () { return mergeCells; }, ɵ38 = function () { return splitCell; }, ɵ39 = function () { return deleteTable; };
53
+ var ɵ31 = function (attr) { return insertTable(attr); }, ɵ32 = function () { return addColumnBefore; }, ɵ33 = function () { return addColumnAfter; }, ɵ34 = function () { return addRowBefore; }, ɵ35 = function () { return addRowAfter; }, ɵ36 = function () { return deleteRow; }, ɵ37 = function () { return deleteColumn; }, ɵ38 = function () { return mergeCells; }, ɵ39 = function () { return splitCell; }, ɵ40 = function () { return deleteTable; };
53
54
  var tableCommand = {
54
- insertTable: ɵ30,
55
- addColumnBefore: ɵ31,
56
- addColumnAfter: ɵ32,
57
- addRowBefore: ɵ33,
58
- addRowAfter: ɵ34,
59
- deleteRow: ɵ35,
60
- deleteColumn: ɵ36,
61
- mergeCells: ɵ37,
62
- splitCell: ɵ38,
63
- deleteTable: ɵ39
55
+ insertTable: ɵ31,
56
+ addColumnBefore: ɵ32,
57
+ addColumnAfter: ɵ33,
58
+ addRowBefore: ɵ34,
59
+ addRowAfter: ɵ35,
60
+ deleteRow: ɵ36,
61
+ deleteColumn: ɵ37,
62
+ mergeCells: ɵ38,
63
+ splitCell: ɵ39,
64
+ deleteTable: ɵ40
64
65
  };
65
66
  /**
66
67
  * @hidden
67
68
  */
68
69
  export var editorCommands = Object.assign({}, inlineCommand, blockCommand, tableCommand);
69
- export { ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, ɵ9, ɵ10, ɵ11, ɵ12, ɵ13, ɵ14, ɵ15, ɵ16, ɵ17, ɵ18, ɵ19, ɵ20, ɵ21, ɵ22, ɵ23, ɵ24, ɵ25, ɵ26, ɵ27, ɵ28, ɵ29, ɵ30, ɵ31, ɵ32, ɵ33, ɵ34, ɵ35, ɵ36, ɵ37, ɵ38, ɵ39 };
70
+ export { ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, ɵ9, ɵ10, ɵ11, ɵ12, ɵ13, ɵ14, ɵ15, ɵ16, ɵ17, ɵ18, ɵ19, ɵ20, ɵ21, ɵ22, ɵ23, ɵ24, ɵ25, ɵ26, ɵ27, ɵ28, ɵ29, ɵ30, ɵ31, ɵ32, ɵ33, ɵ34, ɵ35, ɵ36, ɵ37, ɵ38, ɵ39, ɵ40 };
@@ -64,6 +64,10 @@ export var getToolbarState = function (state, options) { return ({
64
64
  selected: false,
65
65
  disabled: !redo(state)
66
66
  },
67
+ selectAll: {
68
+ selected: false,
69
+ disabled: false
70
+ },
67
71
  strikethrough: {
68
72
  selected: hasMark(state, strikethrough),
69
73
  disabled: false
@@ -113,6 +117,12 @@ export var getToolbarState = function (state, options) { return ({
113
117
  selected: false,
114
118
  disabled: false
115
119
  },
120
+ // print
121
+ print: {
122
+ selected: false,
123
+ disabled: false
124
+ },
125
+ // table
116
126
  insertTable: {
117
127
  selected: false,
118
128
  disabled: false
@@ -185,6 +195,8 @@ export var initialToolBarState = {
185
195
  //history
186
196
  redo: { selected: false, disabled: true },
187
197
  undo: { selected: false, disabled: true },
198
+ // print
199
+ print: { selected: false, disabled: false },
188
200
  //dialogs
189
201
  createLink: { selected: false, disabled: true },
190
202
  insertFile: { selected: false, disabled: true },
@@ -200,7 +212,9 @@ export var initialToolBarState = {
200
212
  deleteColumn: { selected: false, disabled: true },
201
213
  mergeCells: { selected: false, disabled: true },
202
214
  splitCell: { selected: false, disabled: true },
203
- deleteTable: { selected: false, disabled: true }
215
+ deleteTable: { selected: false, disabled: true },
216
+ // select all
217
+ selectAll: { selected: false, disabled: false }
204
218
  };
205
219
  /**
206
220
  * @hidden
@@ -233,6 +247,8 @@ export var disabledToolBarState = {
233
247
  //history
234
248
  redo: { selected: false, disabled: true },
235
249
  undo: { selected: false, disabled: true },
250
+ // print
251
+ print: { selected: false, disabled: true },
236
252
  //dialogs
237
253
  createLink: { selected: false, disabled: true },
238
254
  insertFile: { selected: false, disabled: true },
@@ -248,5 +264,7 @@ export var disabledToolBarState = {
248
264
  deleteColumn: { selected: false, disabled: true },
249
265
  mergeCells: { selected: false, disabled: true },
250
266
  splitCell: { selected: false, disabled: true },
251
- deleteTable: { selected: false, disabled: true }
267
+ deleteTable: { selected: false, disabled: true },
268
+ // select all
269
+ selectAll: { selected: false, disabled: true }
252
270
  };
@@ -24,6 +24,7 @@ import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
24
24
  import { EditorLocalizationService } from './localization/editor-localization.service';
25
25
  import { defaultStyle, tablesStyles, rtlStyles } from './common/styles';
26
26
  import { EditorErrorMessages } from './common/error-messages';
27
+ import { EditorToolsService } from './tools/tools.service';
27
28
  var EMPTY_PARAGRAPH = '<p></p>';
28
29
  var defaultPasteCleanupSettings = {
29
30
  convertMsLists: false,
@@ -54,16 +55,18 @@ var ɵ0 = getPasteCleanupAttributes;
54
55
  * Represents the [Kendo UI Editor component for Angular]({% slug overview_editor %}).
55
56
  */
56
57
  var EditorComponent = /** @class */ (function () {
57
- function EditorComponent(dialogService, localization, cdr, ngZone, element) {
58
+ function EditorComponent(dialogService, localization, cdr, ngZone, element, toolsService) {
58
59
  var _this = this;
59
60
  this.dialogService = dialogService;
60
61
  this.localization = localization;
61
62
  this.cdr = cdr;
62
63
  this.ngZone = ngZone;
63
64
  this.element = element;
65
+ this.toolsService = toolsService;
64
66
  /**
65
67
  * If set to `false`, the Editor will run in style non-encapsulated mode. This means
66
68
  * that the styles of the page will be persisted in the Editor and its content will be affected by them.
69
+ * @default true
67
70
  */
68
71
  this.iframe = true;
69
72
  /**
@@ -407,6 +410,7 @@ var EditorComponent = /** @class */ (function () {
407
410
  var rtl = _a.rtl;
408
411
  _this.direction = rtl ? 'rtl' : 'ltr';
409
412
  }));
413
+ this.subs.add(this.toolsService.needsCheck.subscribe(function () { return _this.cdr.markForCheck(); }));
410
414
  };
411
415
  EditorComponent.prototype.ngAfterViewInit = function () {
412
416
  this.afterViewInit.next();
@@ -560,7 +564,6 @@ var EditorComponent = /** @class */ (function () {
560
564
  * Manually focus the Editor.
561
565
  */
562
566
  EditorComponent.prototype.focus = function () {
563
- // this.focusChangedProgrammatically = true;
564
567
  this.focusChangedProgrammatically = true;
565
568
  this._view.focus();
566
569
  this.focusChangedProgrammatically = false;
@@ -732,8 +735,9 @@ var EditorComponent = /** @class */ (function () {
732
735
  if (_this.readonly) {
733
736
  contentAreaClasslist_1.add('k-state-focused');
734
737
  }
735
- if (!_this.focusChangedProgrammatically) {
738
+ if (!_this.focusChangedProgrammatically || _this.shouldEmitFocus) {
736
739
  _this.ngZone.run(function () { return _this.onFocus.emit(); });
740
+ _this.shouldEmitFocus = false;
737
741
  }
738
742
  }));
739
743
  this.subs.add(fromEvent(containerElement, 'focusout')
@@ -959,6 +963,7 @@ var EditorComponent = /** @class */ (function () {
959
963
  selector: 'kendo-editor',
960
964
  providers: [
961
965
  EditorLocalizationService,
966
+ EditorToolsService,
962
967
  {
963
968
  provide: LocalizationService,
964
969
  useExisting: EditorLocalizationService
@@ -978,7 +983,7 @@ var EditorComponent = /** @class */ (function () {
978
983
  }
979
984
  ],
980
985
  /* tslint:disable:max-line-length */
981
- 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 ",
986
+ 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 ",
982
987
  styles: [
983
988
  "\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 "
984
989
  ]
@@ -987,7 +992,8 @@ var EditorComponent = /** @class */ (function () {
987
992
  LocalizationService,
988
993
  ChangeDetectorRef,
989
994
  NgZone,
990
- ElementRef])
995
+ ElementRef,
996
+ EditorToolsService])
991
997
  ], EditorComponent);
992
998
  return EditorComponent;
993
999
  }());
@@ -66,6 +66,8 @@ import { FontFamilyDropDownListComponent } from './tools/fontfamily/editor-fontf
66
66
  import { FontSizeDropDownListComponent } from './tools/fontsize/editor-fontsize-dropdownlist.component';
67
67
  import { FontSizeDialogComponent } from './dialogs/font-size-dialog.component';
68
68
  import { DropDownToolDirective } from './tools/shared/dropdown-tool.directive';
69
+ import { EditorPrintDirective } from './tools/print/editor-print-button.directive';
70
+ import { EditorSelectAllButtonDirective } from './tools/select-all/select-all-button.directive';
69
71
  var COMPONENT_DIRECTIVES = [
70
72
  //alignment
71
73
  EditorAlignLeftButtonDirective,
@@ -117,7 +119,11 @@ var COMPONENT_DIRECTIVES = [
117
119
  CustomMessagesComponent,
118
120
  LocalizedMessagesDirective,
119
121
  // dropdown tools
120
- DropDownToolDirective
122
+ DropDownToolDirective,
123
+ // print
124
+ EditorPrintDirective,
125
+ // select all
126
+ EditorSelectAllButtonDirective
121
127
  ];
122
128
  var TOOLBAR_TOOLS = [
123
129
  EditorFontSizeComponent,
package/dist/es/index.js CHANGED
@@ -42,6 +42,8 @@ export { EditorInsertFileButtonDirective } from './tools/link/editor-insert-file
42
42
  export { EditorUnlinkButtonDirective } from './tools/link/editor-unlink-button.directive';
43
43
  export { EditorInsertOrderedListButtonDirective } from './tools/list/editor-insert-ordered-list-button.directive';
44
44
  export { EditorInsertUnorderedListButtonDirective } from './tools/list/editor-insert-unordered-list-button.directive';
45
+ export { EditorPrintDirective } from './tools/print/editor-print-button.directive';
46
+ export { EditorSelectAllButtonDirective } from './tools/select-all/select-all-button.directive';
45
47
  export { DropDownToolDirective } from './tools/shared/dropdown-tool.directive';
46
48
  export { EditorCommandBase } from './tools/shared/editor-command-base';
47
49
  export { EditorCommandButton } from './tools/shared/editor-command-button';
@@ -58,6 +60,7 @@ export { EditorInsertTableButtonComponent } from './tools/tables/editor-insert-t
58
60
  export { EditorMergeCellsButtonDirective } from './tools/tables/editor-merge-cells-button.directive';
59
61
  export { EditorSplitCellButtonDirective } from './tools/tables/editor-split-cell-button.directive';
60
62
  export { PopupTableGridComponent } from './tools/tables/popup-table-grid.component';
63
+ export { EditorToolsService } from './tools/tools.service';
61
64
  export { EditorBoldButtonDirective } from './tools/typographical-emphasis/editor-bold-button.directive';
62
65
  export { EditorItalicButtonDirective } from './tools/typographical-emphasis/editor-italic-button.directive';
63
66
  export { EditorStrikethroughButtonDirective } from './tools/typographical-emphasis/editor-strikethrough-button.directive';
@@ -89,10 +89,18 @@ var Messages = /** @class */ (function (_super) {
89
89
  Input(),
90
90
  tslib_1.__metadata("design:type", String)
91
91
  ], Messages.prototype, "outdent", void 0);
92
+ tslib_1.__decorate([
93
+ Input(),
94
+ tslib_1.__metadata("design:type", String)
95
+ ], Messages.prototype, "print", void 0);
92
96
  tslib_1.__decorate([
93
97
  Input(),
94
98
  tslib_1.__metadata("design:type", String)
95
99
  ], Messages.prototype, "redo", void 0);
100
+ tslib_1.__decorate([
101
+ Input(),
102
+ tslib_1.__metadata("design:type", String)
103
+ ], Messages.prototype, "selectAll", void 0);
96
104
  tslib_1.__decorate([
97
105
  Input(),
98
106
  tslib_1.__metadata("design:type", String)
@@ -9,7 +9,7 @@ export var packageMetadata = {
9
9
  name: '@progress/kendo-angular-editor',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1637061495,
12
+ publishDate: 1638192544,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignCenter tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorAlignCenterButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorAlignCenterButtonDirective, _super);
31
- function EditorAlignCenterButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'alignCenter', button, editor, localization) || this;
32
+ function EditorAlignCenterButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'alignCenter', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorAlignCenterButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorAlignCenterButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorAlignCenterButtonDirective);
43
45
  return EditorAlignCenterButtonDirective;
44
46
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignJustify tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorAlignJustifyButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorAlignJustifyButtonDirective, _super);
31
- function EditorAlignJustifyButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'alignJustify', button, editor, localization) || this;
32
+ function EditorAlignJustifyButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'alignJustify', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorAlignJustifyButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorAlignJustifyButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorAlignJustifyButtonDirective);
43
45
  return EditorAlignJustifyButtonDirective;
44
46
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignLeft tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorAlignLeftButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorAlignLeftButtonDirective, _super);
31
- function EditorAlignLeftButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'alignLeft', button, editor, localization) || this;
32
+ function EditorAlignLeftButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'alignLeft', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorAlignLeftButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorAlignLeftButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorAlignLeftButtonDirective);
43
45
  return EditorAlignLeftButtonDirective;
44
46
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignRight tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorAlignRightButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorAlignRightButtonDirective, _super);
31
- function EditorAlignRightButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'alignRight', button, editor, localization) || this;
32
+ function EditorAlignRightButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'alignRight', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorAlignRightButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorAlignRightButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorAlignRightButtonDirective);
43
45
  return EditorAlignRightButtonDirective;
44
46
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../editor.component';
9
9
  import { EditorCommandButton } from './shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../localization/editor-localization.service';
11
+ import { EditorToolsService } from './tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Clean Formatting tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../localization/editor-localization.s
27
28
  */
28
29
  var EditorCleanFormattingButtonDirective = /** @class */ (function (_super) {
29
30
  tslib_1.__extends(EditorCleanFormattingButtonDirective, _super);
30
- function EditorCleanFormattingButtonDirective(button, editor, localization) {
31
- return _super.call(this, 'cleanFormatting', button, editor, localization) || this;
31
+ function EditorCleanFormattingButtonDirective(button, editor, localization, toolsService) {
32
+ return _super.call(this, 'cleanFormatting', button, editor, localization, toolsService) || this;
32
33
  }
33
34
  EditorCleanFormattingButtonDirective = tslib_1.__decorate([
34
35
  Directive({
@@ -37,7 +38,8 @@ var EditorCleanFormattingButtonDirective = /** @class */ (function (_super) {
37
38
  tslib_1.__param(1, Host()),
38
39
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
39
40
  EditorComponent,
40
- EditorLocalizationService])
41
+ EditorLocalizationService,
42
+ EditorToolsService])
41
43
  ], EditorCleanFormattingButtonDirective);
42
44
  return EditorCleanFormattingButtonDirective;
43
45
  }(EditorCommandButton));
@@ -11,6 +11,7 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
11
11
  import { DialogService } from '@progress/kendo-angular-dialog';
12
12
  import { FontFamilyDialogComponent } from '../../dialogs/font-family-dialog.component';
13
13
  import { FontFamilyDropDownListComponent } from './editor-fontfamily-dropdownlist.component';
14
+ import { EditorToolsService } from '../tools.service';
14
15
  /**
15
16
  * A component which configures an existing `DropDownListComponent` as an Editor tool
16
17
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -24,11 +25,12 @@ import { FontFamilyDropDownListComponent } from './editor-fontfamily-dropdownlis
24
25
  */
25
26
  var EditorFontFamilyComponent = /** @class */ (function (_super) {
26
27
  tslib_1.__extends(EditorFontFamilyComponent, _super);
27
- function EditorFontFamilyComponent(editor, dialogService, localization) {
28
+ function EditorFontFamilyComponent(editor, dialogService, localization, toolsService) {
28
29
  var _this = _super.call(this) || this;
29
30
  _this.editor = editor;
30
31
  _this.dialogService = dialogService;
31
32
  _this.localization = localization;
33
+ _this.toolsService = toolsService;
32
34
  _this.disabled = false;
33
35
  _this.tabindex = -1;
34
36
  /**
@@ -77,7 +79,10 @@ var EditorFontFamilyComponent = /** @class */ (function (_super) {
77
79
  return itemArgs.dataItem.fontName === null;
78
80
  }
79
81
  };
80
- setTimeout(function () { return (_this.defaultItem = { text: _this.title, fontName: null }); });
82
+ setTimeout(function () {
83
+ _this.defaultItem = { text: _this.title, fontName: null };
84
+ _this.toolsService.needsCheck.next();
85
+ });
81
86
  this.subs = this.editor.stateChange.subscribe(function (_a) {
82
87
  var style = _a.style;
83
88
  _this.value = getUniqueStyleValues(style.selected, 'font-family') || null;
@@ -198,7 +203,8 @@ var EditorFontFamilyComponent = /** @class */ (function (_super) {
198
203
  tslib_1.__param(0, Host()),
199
204
  tslib_1.__metadata("design:paramtypes", [EditorComponent,
200
205
  DialogService,
201
- EditorLocalizationService])
206
+ EditorLocalizationService,
207
+ EditorToolsService])
202
208
  ], EditorFontFamilyComponent);
203
209
  return EditorFontFamilyComponent;
204
210
  }(ToolBarToolComponent));