@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
@@ -15,5 +15,6 @@ exports.EditorErrorMessages = {
15
15
  setSchemaOnce: 'The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/',
16
16
  pluginsCallbackType: ɵ0,
17
17
  setPluginsOnce: 'The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/',
18
- setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/'
18
+ setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/',
19
+ 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/'
19
20
  };
@@ -12,9 +12,11 @@ exports.commandIcons = {
12
12
  alignJustify: 'align-justify',
13
13
  alignLeft: 'align-left',
14
14
  alignRight: 'align-right',
15
+ backColor: 'background',
15
16
  bold: 'bold',
16
17
  cleanFormatting: 'clear-css',
17
18
  createLink: 'link-horizontal',
19
+ foreColor: 'foreground-color',
18
20
  indent: 'indent-increase',
19
21
  insertFile: 'file-add',
20
22
  insertImage: 'image',
@@ -22,7 +24,9 @@ exports.commandIcons = {
22
24
  insertUnorderedList: 'list-unordered',
23
25
  italic: 'italic',
24
26
  outdent: 'indent-decrease',
27
+ print: 'print',
25
28
  redo: 'redo',
29
+ selectAll: 'select-all',
26
30
  strikethrough: 'strikethrough',
27
31
  subscript: 'sub-script',
28
32
  superscript: 'sup-script',
@@ -30,8 +34,6 @@ exports.commandIcons = {
30
34
  undo: 'undo',
31
35
  unlink: 'unlink-horizontal',
32
36
  viewSource: 'html',
33
- foreColor: 'foreground-color',
34
- backColor: 'background',
35
37
  //table
36
38
  insertTable: 'table-insert',
37
39
  addColumnBefore: 'table-column-insert-left',
@@ -10,7 +10,7 @@ var table_commands_1 = require("./table-commands");
10
10
  var alignRemove = function (state, dispatch) { return kendo_editor_common_1.alignBlocks(kendo_editor_common_1.alignRemoveRules)(state, dispatch); };
11
11
  var ɵ0 = alignRemove;
12
12
  exports.ɵ0 = ɵ0;
13
- var ɵ1 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.bold, { applyToWord: applyToWord })); }, ɵ2 = function (options) { return kendo_editor_common_1.cleanFormatting(options); }, ɵ3 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ4 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ5 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'font-size', value: attrs.value + 'px', applyToWord: attrs.applyToWord }); }, ɵ6 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }); }, ɵ7 = function (text) { return kendo_editor_common_1.insertText(text); }, ɵ8 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.italic, { applyToWord: applyToWord })); }, ɵ9 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.strikethrough, { applyToWord: applyToWord })); }, ɵ10 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.subscript, { applyToWord: applyToWord })); }, ɵ11 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.superscript, { applyToWord: applyToWord })); }, ɵ12 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.underline, { applyToWord: applyToWord })); }, ɵ13 = function () { return kendo_editor_common_1.removeLink(kendo_editor_common_1.link); }, ɵ14 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'color', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ15 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'background-color', value: attrs.value, applyToWord: attrs.applyToWord }); };
13
+ var ɵ1 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.bold, { applyToWord: applyToWord })); }, ɵ2 = function (options) { return kendo_editor_common_1.cleanFormatting(options); }, ɵ3 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ4 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ5 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'font-size', value: attrs.value + 'px', applyToWord: attrs.applyToWord }); }, ɵ6 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }); }, ɵ7 = function (text) { return kendo_editor_common_1.insertText(text); }, ɵ8 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.italic, { applyToWord: applyToWord })); }, ɵ9 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.strikethrough, { applyToWord: applyToWord })); }, ɵ10 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.subscript, { applyToWord: applyToWord })); }, ɵ11 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.superscript, { applyToWord: applyToWord })); }, ɵ12 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.underline, { applyToWord: applyToWord })); }, ɵ13 = function () { return kendo_editor_common_1.removeLink(kendo_editor_common_1.link); }, ɵ14 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'color', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ15 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'background-color', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ16 = function () { return function (state, dispatch) { return kendo_editor_common_1.selectAll(state, dispatch); }; };
14
14
  exports.ɵ1 = ɵ1;
15
15
  exports.ɵ2 = ɵ2;
16
16
  exports.ɵ3 = ɵ3;
@@ -26,6 +26,7 @@ exports.ɵ12 = ɵ12;
26
26
  exports.ɵ13 = ɵ13;
27
27
  exports.ɵ14 = ɵ14;
28
28
  exports.ɵ15 = ɵ15;
29
+ exports.ɵ16 = ɵ16;
29
30
  var inlineCommand = {
30
31
  bold: ɵ1,
31
32
  cleanFormatting: ɵ2,
@@ -41,13 +42,13 @@ var inlineCommand = {
41
42
  underline: ɵ12,
42
43
  unlink: ɵ13,
43
44
  foreColor: ɵ14,
44
- backColor: ɵ15
45
+ backColor: ɵ15,
46
+ selectAll: ɵ16
45
47
  };
46
- var ɵ16 = function () { return function (state, dispatch) { return kendo_editor_common_1.isAligned(state, kendo_editor_common_1.alignCenterRules) ? alignRemove(state, dispatch) : kendo_editor_common_1.alignBlocks(kendo_editor_common_1.alignCenterRules)(state, dispatch); }; }, ɵ17 = function () { return function (state, dispatch) { return kendo_editor_common_1.isAligned(state, kendo_editor_common_1.alignJustifyRules) ? alignRemove(state, dispatch) : kendo_editor_common_1.alignBlocks(kendo_editor_common_1.alignJustifyRules)(state, dispatch); }; }, ɵ18 = function () { return function (state, dispatch) { return kendo_editor_common_1.isAligned(state, kendo_editor_common_1.alignLeftRules) ? alignRemove(state, dispatch) : kendo_editor_common_1.alignBlocks(kendo_editor_common_1.alignLeftRules)(state, dispatch); }; }, ɵ19 = function () { return function (state, dispatch) { return kendo_editor_common_1.isAligned(state, kendo_editor_common_1.alignRightRules) ? alignRemove(state, dispatch) : kendo_editor_common_1.alignBlocks(kendo_editor_common_1.alignRightRules)(state, dispatch); }; }, ɵ20 = function (formatAttr) { return kendo_editor_common_1.formatBlockElements(formatAttr.tag); }, ɵ21 = function () { return kendo_editor_common_1.getHtml; }, ɵ22 = function () { return kendo_editor_common_1.indent; }, ɵ23 = function (attrs) { return kendo_editor_common_1.insertImage(attrs); }, ɵ24 = function () { return kendo_editor_common_1.toggleOrderedList; }, ɵ25 = function () { return kendo_editor_common_1.toggleUnorderedList; }, ɵ26 = function () { return kendo_editor_common_1.outdent; }, ɵ27 = function () { return kendo_editor_common_1.redo; }, ɵ28 = function (_a) {
48
+ var ɵ17 = function () { return function (state, dispatch) { return kendo_editor_common_1.isAligned(state, kendo_editor_common_1.alignCenterRules) ? alignRemove(state, dispatch) : kendo_editor_common_1.alignBlocks(kendo_editor_common_1.alignCenterRules)(state, dispatch); }; }, ɵ18 = function () { return function (state, dispatch) { return kendo_editor_common_1.isAligned(state, kendo_editor_common_1.alignJustifyRules) ? alignRemove(state, dispatch) : kendo_editor_common_1.alignBlocks(kendo_editor_common_1.alignJustifyRules)(state, dispatch); }; }, ɵ19 = function () { return function (state, dispatch) { return kendo_editor_common_1.isAligned(state, kendo_editor_common_1.alignLeftRules) ? alignRemove(state, dispatch) : kendo_editor_common_1.alignBlocks(kendo_editor_common_1.alignLeftRules)(state, dispatch); }; }, ɵ20 = function () { return function (state, dispatch) { return kendo_editor_common_1.isAligned(state, kendo_editor_common_1.alignRightRules) ? alignRemove(state, dispatch) : kendo_editor_common_1.alignBlocks(kendo_editor_common_1.alignRightRules)(state, dispatch); }; }, ɵ21 = function (formatAttr) { return kendo_editor_common_1.formatBlockElements(formatAttr.tag); }, ɵ22 = function () { return kendo_editor_common_1.getHtml; }, ɵ23 = function () { return kendo_editor_common_1.indent; }, ɵ24 = function (attrs) { return kendo_editor_common_1.insertImage(attrs); }, ɵ25 = function () { return kendo_editor_common_1.toggleOrderedList; }, ɵ26 = function () { return kendo_editor_common_1.toggleUnorderedList; }, ɵ27 = function () { return kendo_editor_common_1.outdent; }, ɵ28 = function () { return kendo_editor_common_1.redo; }, ɵ29 = function (_a) {
47
49
  var content = _a.content, parseOptions = _a.parseOptions;
48
50
  return kendo_editor_common_1.setHtml(content, 'setHTML', parseOptions);
49
- }, ɵ29 = function () { return kendo_editor_common_1.undo; };
50
- exports.ɵ16 = ɵ16;
51
+ }, ɵ30 = function () { return kendo_editor_common_1.undo; };
51
52
  exports.ɵ17 = ɵ17;
52
53
  exports.ɵ18 = ɵ18;
53
54
  exports.ɵ19 = ɵ19;
@@ -61,26 +62,26 @@ exports.ɵ26 = ɵ26;
61
62
  exports.ɵ27 = ɵ27;
62
63
  exports.ɵ28 = ɵ28;
63
64
  exports.ɵ29 = ɵ29;
65
+ exports.ɵ30 = ɵ30;
64
66
  var blockCommand = {
65
- alignCenter: ɵ16,
66
- alignJustify: ɵ17,
67
- alignLeft: ɵ18,
68
- alignRight: ɵ19,
69
- format: ɵ20,
70
- getHTML: ɵ21,
71
- indent: ɵ22,
72
- insertImage: ɵ23,
67
+ alignCenter: ɵ17,
68
+ alignJustify: ɵ18,
69
+ alignLeft: ɵ19,
70
+ alignRight: ɵ20,
71
+ format: ɵ21,
72
+ getHTML: ɵ22,
73
+ indent: ɵ23,
74
+ insertImage: ɵ24,
73
75
  // think about changing the command name.
74
- insertOrderedList: ɵ24,
76
+ insertOrderedList: ɵ25,
75
77
  // think about changing the command name.
76
- insertUnorderedList: ɵ25,
77
- outdent: ɵ26,
78
- redo: ɵ27,
79
- setHTML: ɵ28,
80
- undo: ɵ29
78
+ insertUnorderedList: ɵ26,
79
+ outdent: ɵ27,
80
+ redo: ɵ28,
81
+ setHTML: ɵ29,
82
+ undo: ɵ30
81
83
  };
82
- var ɵ30 = function (attr) { return table_commands_1.insertTable(attr); }, ɵ31 = function () { return table_commands_1.addColumnBefore; }, ɵ32 = function () { return table_commands_1.addColumnAfter; }, ɵ33 = function () { return table_commands_1.addRowBefore; }, ɵ34 = function () { return table_commands_1.addRowAfter; }, ɵ35 = function () { return table_commands_1.deleteRow; }, ɵ36 = function () { return table_commands_1.deleteColumn; }, ɵ37 = function () { return table_commands_1.mergeCells; }, ɵ38 = function () { return table_commands_1.splitCell; }, ɵ39 = function () { return table_commands_1.deleteTable; };
83
- exports.ɵ30 = ɵ30;
84
+ var ɵ31 = function (attr) { return table_commands_1.insertTable(attr); }, ɵ32 = function () { return table_commands_1.addColumnBefore; }, ɵ33 = function () { return table_commands_1.addColumnAfter; }, ɵ34 = function () { return table_commands_1.addRowBefore; }, ɵ35 = function () { return table_commands_1.addRowAfter; }, ɵ36 = function () { return table_commands_1.deleteRow; }, ɵ37 = function () { return table_commands_1.deleteColumn; }, ɵ38 = function () { return table_commands_1.mergeCells; }, ɵ39 = function () { return table_commands_1.splitCell; }, ɵ40 = function () { return table_commands_1.deleteTable; };
84
85
  exports.ɵ31 = ɵ31;
85
86
  exports.ɵ32 = ɵ32;
86
87
  exports.ɵ33 = ɵ33;
@@ -90,17 +91,18 @@ exports.ɵ36 = ɵ36;
90
91
  exports.ɵ37 = ɵ37;
91
92
  exports.ɵ38 = ɵ38;
92
93
  exports.ɵ39 = ɵ39;
94
+ exports.ɵ40 = ɵ40;
93
95
  var tableCommand = {
94
- insertTable: ɵ30,
95
- addColumnBefore: ɵ31,
96
- addColumnAfter: ɵ32,
97
- addRowBefore: ɵ33,
98
- addRowAfter: ɵ34,
99
- deleteRow: ɵ35,
100
- deleteColumn: ɵ36,
101
- mergeCells: ɵ37,
102
- splitCell: ɵ38,
103
- deleteTable: ɵ39
96
+ insertTable: ɵ31,
97
+ addColumnBefore: ɵ32,
98
+ addColumnAfter: ɵ33,
99
+ addRowBefore: ɵ34,
100
+ addRowAfter: ɵ35,
101
+ deleteRow: ɵ36,
102
+ deleteColumn: ɵ37,
103
+ mergeCells: ɵ38,
104
+ splitCell: ɵ39,
105
+ deleteTable: ɵ40
104
106
  };
105
107
  /**
106
108
  * @hidden
@@ -66,6 +66,10 @@ exports.getToolbarState = function (state, options) { return ({
66
66
  selected: false,
67
67
  disabled: !kendo_editor_common_2.redo(state)
68
68
  },
69
+ selectAll: {
70
+ selected: false,
71
+ disabled: false
72
+ },
69
73
  strikethrough: {
70
74
  selected: kendo_editor_common_2.hasMark(state, kendo_editor_common_2.strikethrough),
71
75
  disabled: false
@@ -115,6 +119,12 @@ exports.getToolbarState = function (state, options) { return ({
115
119
  selected: false,
116
120
  disabled: false
117
121
  },
122
+ // print
123
+ print: {
124
+ selected: false,
125
+ disabled: false
126
+ },
127
+ // table
118
128
  insertTable: {
119
129
  selected: false,
120
130
  disabled: false
@@ -187,6 +197,8 @@ exports.initialToolBarState = {
187
197
  //history
188
198
  redo: { selected: false, disabled: true },
189
199
  undo: { selected: false, disabled: true },
200
+ // print
201
+ print: { selected: false, disabled: false },
190
202
  //dialogs
191
203
  createLink: { selected: false, disabled: true },
192
204
  insertFile: { selected: false, disabled: true },
@@ -202,7 +214,9 @@ exports.initialToolBarState = {
202
214
  deleteColumn: { selected: false, disabled: true },
203
215
  mergeCells: { selected: false, disabled: true },
204
216
  splitCell: { selected: false, disabled: true },
205
- deleteTable: { selected: false, disabled: true }
217
+ deleteTable: { selected: false, disabled: true },
218
+ // select all
219
+ selectAll: { selected: false, disabled: false }
206
220
  };
207
221
  /**
208
222
  * @hidden
@@ -235,6 +249,8 @@ exports.disabledToolBarState = {
235
249
  //history
236
250
  redo: { selected: false, disabled: true },
237
251
  undo: { selected: false, disabled: true },
252
+ // print
253
+ print: { selected: false, disabled: true },
238
254
  //dialogs
239
255
  createLink: { selected: false, disabled: true },
240
256
  insertFile: { selected: false, disabled: true },
@@ -250,5 +266,7 @@ exports.disabledToolBarState = {
250
266
  deleteColumn: { selected: false, disabled: true },
251
267
  mergeCells: { selected: false, disabled: true },
252
268
  splitCell: { selected: false, disabled: true },
253
- deleteTable: { selected: false, disabled: true }
269
+ deleteTable: { selected: false, disabled: true },
270
+ // select all
271
+ selectAll: { selected: false, disabled: true }
254
272
  };
@@ -26,6 +26,7 @@ var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
26
26
  var editor_localization_service_1 = require("./localization/editor-localization.service");
27
27
  var styles_1 = require("./common/styles");
28
28
  var error_messages_1 = require("./common/error-messages");
29
+ var tools_service_1 = require("./tools/tools.service");
29
30
  var EMPTY_PARAGRAPH = '<p></p>';
30
31
  var defaultPasteCleanupSettings = {
31
32
  convertMsLists: false,
@@ -57,16 +58,18 @@ exports.ɵ0 = ɵ0;
57
58
  * Represents the [Kendo UI Editor component for Angular]({% slug overview_editor %}).
58
59
  */
59
60
  var EditorComponent = /** @class */ (function () {
60
- function EditorComponent(dialogService, localization, cdr, ngZone, element) {
61
+ function EditorComponent(dialogService, localization, cdr, ngZone, element, toolsService) {
61
62
  var _this = this;
62
63
  this.dialogService = dialogService;
63
64
  this.localization = localization;
64
65
  this.cdr = cdr;
65
66
  this.ngZone = ngZone;
66
67
  this.element = element;
68
+ this.toolsService = toolsService;
67
69
  /**
68
70
  * If set to `false`, the Editor will run in style non-encapsulated mode. This means
69
71
  * that the styles of the page will be persisted in the Editor and its content will be affected by them.
72
+ * @default true
70
73
  */
71
74
  this.iframe = true;
72
75
  /**
@@ -410,6 +413,7 @@ var EditorComponent = /** @class */ (function () {
410
413
  var rtl = _a.rtl;
411
414
  _this.direction = rtl ? 'rtl' : 'ltr';
412
415
  }));
416
+ this.subs.add(this.toolsService.needsCheck.subscribe(function () { return _this.cdr.markForCheck(); }));
413
417
  };
414
418
  EditorComponent.prototype.ngAfterViewInit = function () {
415
419
  this.afterViewInit.next();
@@ -563,7 +567,6 @@ var EditorComponent = /** @class */ (function () {
563
567
  * Manually focus the Editor.
564
568
  */
565
569
  EditorComponent.prototype.focus = function () {
566
- // this.focusChangedProgrammatically = true;
567
570
  this.focusChangedProgrammatically = true;
568
571
  this._view.focus();
569
572
  this.focusChangedProgrammatically = false;
@@ -735,8 +738,9 @@ var EditorComponent = /** @class */ (function () {
735
738
  if (_this.readonly) {
736
739
  contentAreaClasslist_1.add('k-state-focused');
737
740
  }
738
- if (!_this.focusChangedProgrammatically) {
741
+ if (!_this.focusChangedProgrammatically || _this.shouldEmitFocus) {
739
742
  _this.ngZone.run(function () { return _this.onFocus.emit(); });
743
+ _this.shouldEmitFocus = false;
740
744
  }
741
745
  }));
742
746
  this.subs.add(rxjs_1.fromEvent(containerElement, 'focusout')
@@ -962,6 +966,7 @@ var EditorComponent = /** @class */ (function () {
962
966
  selector: 'kendo-editor',
963
967
  providers: [
964
968
  editor_localization_service_1.EditorLocalizationService,
969
+ tools_service_1.EditorToolsService,
965
970
  {
966
971
  provide: kendo_angular_l10n_1.LocalizationService,
967
972
  useExisting: editor_localization_service_1.EditorLocalizationService
@@ -981,7 +986,7 @@ var EditorComponent = /** @class */ (function () {
981
986
  }
982
987
  ],
983
988
  /* tslint:disable:max-line-length */
984
- 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 ",
989
+ 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 ",
985
990
  styles: [
986
991
  "\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 "
987
992
  ]
@@ -990,7 +995,8 @@ var EditorComponent = /** @class */ (function () {
990
995
  kendo_angular_l10n_1.LocalizationService,
991
996
  core_1.ChangeDetectorRef,
992
997
  core_1.NgZone,
993
- core_1.ElementRef])
998
+ core_1.ElementRef,
999
+ tools_service_1.EditorToolsService])
994
1000
  ], EditorComponent);
995
1001
  return EditorComponent;
996
1002
  }());
@@ -68,6 +68,8 @@ var editor_fontfamily_dropdownlist_component_1 = require("./tools/fontfamily/edi
68
68
  var editor_fontsize_dropdownlist_component_1 = require("./tools/fontsize/editor-fontsize-dropdownlist.component");
69
69
  var font_size_dialog_component_1 = require("./dialogs/font-size-dialog.component");
70
70
  var dropdown_tool_directive_1 = require("./tools/shared/dropdown-tool.directive");
71
+ var editor_print_button_directive_1 = require("./tools/print/editor-print-button.directive");
72
+ var select_all_button_directive_1 = require("./tools/select-all/select-all-button.directive");
71
73
  var COMPONENT_DIRECTIVES = [
72
74
  //alignment
73
75
  editor_align_left_button_directive_1.EditorAlignLeftButtonDirective,
@@ -119,7 +121,11 @@ var COMPONENT_DIRECTIVES = [
119
121
  custom_messages_component_1.CustomMessagesComponent,
120
122
  localized_messages_directive_1.LocalizedMessagesDirective,
121
123
  // dropdown tools
122
- dropdown_tool_directive_1.DropDownToolDirective
124
+ dropdown_tool_directive_1.DropDownToolDirective,
125
+ // print
126
+ editor_print_button_directive_1.EditorPrintDirective,
127
+ // select all
128
+ select_all_button_directive_1.EditorSelectAllButtonDirective
123
129
  ];
124
130
  var TOOLBAR_TOOLS = [
125
131
  editor_fontsize_component_1.EditorFontSizeComponent,
package/dist/npm/index.js CHANGED
@@ -81,6 +81,10 @@ var editor_insert_ordered_list_button_directive_1 = require("./tools/list/editor
81
81
  exports.EditorInsertOrderedListButtonDirective = editor_insert_ordered_list_button_directive_1.EditorInsertOrderedListButtonDirective
82
82
  var editor_insert_unordered_list_button_directive_1 = require("./tools/list/editor-insert-unordered-list-button.directive");
83
83
  exports.EditorInsertUnorderedListButtonDirective = editor_insert_unordered_list_button_directive_1.EditorInsertUnorderedListButtonDirective
84
+ var editor_print_button_directive_1 = require("./tools/print/editor-print-button.directive");
85
+ exports.EditorPrintDirective = editor_print_button_directive_1.EditorPrintDirective
86
+ var select_all_button_directive_1 = require("./tools/select-all/select-all-button.directive");
87
+ exports.EditorSelectAllButtonDirective = select_all_button_directive_1.EditorSelectAllButtonDirective
84
88
  var dropdown_tool_directive_1 = require("./tools/shared/dropdown-tool.directive");
85
89
  exports.DropDownToolDirective = dropdown_tool_directive_1.DropDownToolDirective
86
90
  var editor_command_base_1 = require("./tools/shared/editor-command-base");
@@ -113,6 +117,8 @@ var editor_split_cell_button_directive_1 = require("./tools/tables/editor-split-
113
117
  exports.EditorSplitCellButtonDirective = editor_split_cell_button_directive_1.EditorSplitCellButtonDirective
114
118
  var popup_table_grid_component_1 = require("./tools/tables/popup-table-grid.component");
115
119
  exports.PopupTableGridComponent = popup_table_grid_component_1.PopupTableGridComponent
120
+ var tools_service_1 = require("./tools/tools.service");
121
+ exports.EditorToolsService = tools_service_1.EditorToolsService
116
122
  var editor_bold_button_directive_1 = require("./tools/typographical-emphasis/editor-bold-button.directive");
117
123
  exports.EditorBoldButtonDirective = editor_bold_button_directive_1.EditorBoldButtonDirective
118
124
  var editor_italic_button_directive_1 = require("./tools/typographical-emphasis/editor-italic-button.directive");
@@ -91,10 +91,18 @@ var Messages = /** @class */ (function (_super) {
91
91
  core_1.Input(),
92
92
  tslib_1.__metadata("design:type", String)
93
93
  ], Messages.prototype, "outdent", void 0);
94
+ tslib_1.__decorate([
95
+ core_1.Input(),
96
+ tslib_1.__metadata("design:type", String)
97
+ ], Messages.prototype, "print", void 0);
94
98
  tslib_1.__decorate([
95
99
  core_1.Input(),
96
100
  tslib_1.__metadata("design:type", String)
97
101
  ], Messages.prototype, "redo", void 0);
102
+ tslib_1.__decorate([
103
+ core_1.Input(),
104
+ tslib_1.__metadata("design:type", String)
105
+ ], Messages.prototype, "selectAll", void 0);
98
106
  tslib_1.__decorate([
99
107
  core_1.Input(),
100
108
  tslib_1.__metadata("design:type", String)
@@ -11,7 +11,7 @@ exports.packageMetadata = {
11
11
  name: '@progress/kendo-angular-editor',
12
12
  productName: 'Kendo UI for Angular',
13
13
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
14
- publishDate: 1637061495,
14
+ publishDate: 1638192544,
15
15
  version: '',
16
16
  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'
17
17
  };
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
10
10
  var editor_component_1 = require("../../editor.component");
11
11
  var editor_command_button_1 = require("../shared/editor-command-button");
12
12
  var editor_localization_service_1 = require("../../localization/editor-localization.service");
13
+ var tools_service_1 = require("../tools.service");
13
14
  /**
14
15
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignCenter tool
15
16
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -30,8 +31,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
30
31
  */
31
32
  var EditorAlignCenterButtonDirective = /** @class */ (function (_super) {
32
33
  tslib_1.__extends(EditorAlignCenterButtonDirective, _super);
33
- function EditorAlignCenterButtonDirective(button, editor, localization) {
34
- return _super.call(this, 'alignCenter', button, editor, localization) || this;
34
+ function EditorAlignCenterButtonDirective(button, editor, localization, toolsService) {
35
+ return _super.call(this, 'alignCenter', button, editor, localization, toolsService) || this;
35
36
  }
36
37
  EditorAlignCenterButtonDirective = tslib_1.__decorate([
37
38
  core_1.Directive({
@@ -40,7 +41,8 @@ var EditorAlignCenterButtonDirective = /** @class */ (function (_super) {
40
41
  tslib_1.__param(1, core_1.Host()),
41
42
  tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
42
43
  editor_component_1.EditorComponent,
43
- editor_localization_service_1.EditorLocalizationService])
44
+ editor_localization_service_1.EditorLocalizationService,
45
+ tools_service_1.EditorToolsService])
44
46
  ], EditorAlignCenterButtonDirective);
45
47
  return EditorAlignCenterButtonDirective;
46
48
  }(editor_command_button_1.EditorCommandButton));
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
10
10
  var editor_component_1 = require("../../editor.component");
11
11
  var editor_command_button_1 = require("../shared/editor-command-button");
12
12
  var editor_localization_service_1 = require("../../localization/editor-localization.service");
13
+ var tools_service_1 = require("../tools.service");
13
14
  /**
14
15
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignJustify tool
15
16
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -30,8 +31,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
30
31
  */
31
32
  var EditorAlignJustifyButtonDirective = /** @class */ (function (_super) {
32
33
  tslib_1.__extends(EditorAlignJustifyButtonDirective, _super);
33
- function EditorAlignJustifyButtonDirective(button, editor, localization) {
34
- return _super.call(this, 'alignJustify', button, editor, localization) || this;
34
+ function EditorAlignJustifyButtonDirective(button, editor, localization, toolsService) {
35
+ return _super.call(this, 'alignJustify', button, editor, localization, toolsService) || this;
35
36
  }
36
37
  EditorAlignJustifyButtonDirective = tslib_1.__decorate([
37
38
  core_1.Directive({
@@ -40,7 +41,8 @@ var EditorAlignJustifyButtonDirective = /** @class */ (function (_super) {
40
41
  tslib_1.__param(1, core_1.Host()),
41
42
  tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
42
43
  editor_component_1.EditorComponent,
43
- editor_localization_service_1.EditorLocalizationService])
44
+ editor_localization_service_1.EditorLocalizationService,
45
+ tools_service_1.EditorToolsService])
44
46
  ], EditorAlignJustifyButtonDirective);
45
47
  return EditorAlignJustifyButtonDirective;
46
48
  }(editor_command_button_1.EditorCommandButton));
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
10
10
  var editor_component_1 = require("../../editor.component");
11
11
  var editor_command_button_1 = require("../shared/editor-command-button");
12
12
  var editor_localization_service_1 = require("../../localization/editor-localization.service");
13
+ var tools_service_1 = require("../tools.service");
13
14
  /**
14
15
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignLeft tool
15
16
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -30,8 +31,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
30
31
  */
31
32
  var EditorAlignLeftButtonDirective = /** @class */ (function (_super) {
32
33
  tslib_1.__extends(EditorAlignLeftButtonDirective, _super);
33
- function EditorAlignLeftButtonDirective(button, editor, localization) {
34
- return _super.call(this, 'alignLeft', button, editor, localization) || this;
34
+ function EditorAlignLeftButtonDirective(button, editor, localization, toolsService) {
35
+ return _super.call(this, 'alignLeft', button, editor, localization, toolsService) || this;
35
36
  }
36
37
  EditorAlignLeftButtonDirective = tslib_1.__decorate([
37
38
  core_1.Directive({
@@ -40,7 +41,8 @@ var EditorAlignLeftButtonDirective = /** @class */ (function (_super) {
40
41
  tslib_1.__param(1, core_1.Host()),
41
42
  tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
42
43
  editor_component_1.EditorComponent,
43
- editor_localization_service_1.EditorLocalizationService])
44
+ editor_localization_service_1.EditorLocalizationService,
45
+ tools_service_1.EditorToolsService])
44
46
  ], EditorAlignLeftButtonDirective);
45
47
  return EditorAlignLeftButtonDirective;
46
48
  }(editor_command_button_1.EditorCommandButton));
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
10
10
  var editor_component_1 = require("../../editor.component");
11
11
  var editor_command_button_1 = require("../shared/editor-command-button");
12
12
  var editor_localization_service_1 = require("../../localization/editor-localization.service");
13
+ var tools_service_1 = require("../tools.service");
13
14
  /**
14
15
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignRight tool
15
16
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -30,8 +31,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
30
31
  */
31
32
  var EditorAlignRightButtonDirective = /** @class */ (function (_super) {
32
33
  tslib_1.__extends(EditorAlignRightButtonDirective, _super);
33
- function EditorAlignRightButtonDirective(button, editor, localization) {
34
- return _super.call(this, 'alignRight', button, editor, localization) || this;
34
+ function EditorAlignRightButtonDirective(button, editor, localization, toolsService) {
35
+ return _super.call(this, 'alignRight', button, editor, localization, toolsService) || this;
35
36
  }
36
37
  EditorAlignRightButtonDirective = tslib_1.__decorate([
37
38
  core_1.Directive({
@@ -40,7 +41,8 @@ var EditorAlignRightButtonDirective = /** @class */ (function (_super) {
40
41
  tslib_1.__param(1, core_1.Host()),
41
42
  tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
42
43
  editor_component_1.EditorComponent,
43
- editor_localization_service_1.EditorLocalizationService])
44
+ editor_localization_service_1.EditorLocalizationService,
45
+ tools_service_1.EditorToolsService])
44
46
  ], EditorAlignRightButtonDirective);
45
47
  return EditorAlignRightButtonDirective;
46
48
  }(editor_command_button_1.EditorCommandButton));
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
10
10
  var editor_component_1 = require("../editor.component");
11
11
  var editor_command_button_1 = require("./shared/editor-command-button");
12
12
  var editor_localization_service_1 = require("../localization/editor-localization.service");
13
+ var tools_service_1 = require("./tools.service");
13
14
  /**
14
15
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Clean Formatting tool
15
16
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -29,8 +30,8 @@ var editor_localization_service_1 = require("../localization/editor-localization
29
30
  */
30
31
  var EditorCleanFormattingButtonDirective = /** @class */ (function (_super) {
31
32
  tslib_1.__extends(EditorCleanFormattingButtonDirective, _super);
32
- function EditorCleanFormattingButtonDirective(button, editor, localization) {
33
- return _super.call(this, 'cleanFormatting', button, editor, localization) || this;
33
+ function EditorCleanFormattingButtonDirective(button, editor, localization, toolsService) {
34
+ return _super.call(this, 'cleanFormatting', button, editor, localization, toolsService) || this;
34
35
  }
35
36
  EditorCleanFormattingButtonDirective = tslib_1.__decorate([
36
37
  core_1.Directive({
@@ -39,7 +40,8 @@ var EditorCleanFormattingButtonDirective = /** @class */ (function (_super) {
39
40
  tslib_1.__param(1, core_1.Host()),
40
41
  tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
41
42
  editor_component_1.EditorComponent,
42
- editor_localization_service_1.EditorLocalizationService])
43
+ editor_localization_service_1.EditorLocalizationService,
44
+ tools_service_1.EditorToolsService])
43
45
  ], EditorCleanFormattingButtonDirective);
44
46
  return EditorCleanFormattingButtonDirective;
45
47
  }(editor_command_button_1.EditorCommandButton));
@@ -13,6 +13,7 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
13
13
  var kendo_angular_dialog_1 = require("@progress/kendo-angular-dialog");
14
14
  var font_family_dialog_component_1 = require("../../dialogs/font-family-dialog.component");
15
15
  var editor_fontfamily_dropdownlist_component_1 = require("./editor-fontfamily-dropdownlist.component");
16
+ var tools_service_1 = require("../tools.service");
16
17
  /**
17
18
  * A component which configures an existing `DropDownListComponent` as an Editor tool
18
19
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -26,11 +27,12 @@ var editor_fontfamily_dropdownlist_component_1 = require("./editor-fontfamily-dr
26
27
  */
27
28
  var EditorFontFamilyComponent = /** @class */ (function (_super) {
28
29
  tslib_1.__extends(EditorFontFamilyComponent, _super);
29
- function EditorFontFamilyComponent(editor, dialogService, localization) {
30
+ function EditorFontFamilyComponent(editor, dialogService, localization, toolsService) {
30
31
  var _this = _super.call(this) || this;
31
32
  _this.editor = editor;
32
33
  _this.dialogService = dialogService;
33
34
  _this.localization = localization;
35
+ _this.toolsService = toolsService;
34
36
  _this.disabled = false;
35
37
  _this.tabindex = -1;
36
38
  /**
@@ -79,7 +81,10 @@ var EditorFontFamilyComponent = /** @class */ (function (_super) {
79
81
  return itemArgs.dataItem.fontName === null;
80
82
  }
81
83
  };
82
- setTimeout(function () { return (_this.defaultItem = { text: _this.title, fontName: null }); });
84
+ setTimeout(function () {
85
+ _this.defaultItem = { text: _this.title, fontName: null };
86
+ _this.toolsService.needsCheck.next();
87
+ });
83
88
  this.subs = this.editor.stateChange.subscribe(function (_a) {
84
89
  var style = _a.style;
85
90
  _this.value = util_1.getUniqueStyleValues(style.selected, 'font-family') || null;
@@ -200,7 +205,8 @@ var EditorFontFamilyComponent = /** @class */ (function (_super) {
200
205
  tslib_1.__param(0, core_1.Host()),
201
206
  tslib_1.__metadata("design:paramtypes", [editor_component_1.EditorComponent,
202
207
  kendo_angular_dialog_1.DialogService,
203
- editor_localization_service_1.EditorLocalizationService])
208
+ editor_localization_service_1.EditorLocalizationService,
209
+ tools_service_1.EditorToolsService])
204
210
  ], EditorFontFamilyComponent);
205
211
  return EditorFontFamilyComponent;
206
212
  }(kendo_angular_toolbar_1.ToolBarToolComponent));