@syncfusion/ej2-richtexteditor 18.1.57 → 18.2.44-4568

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 (177) hide show
  1. package/CHANGELOG.md +614 -600
  2. package/README.md +67 -67
  3. package/dist/ej2-richtexteditor.umd.min.js +1 -10
  4. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-richtexteditor.es2015.js +231 -106
  6. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es5.js +236 -111
  8. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  9. package/license +9 -9
  10. package/package.json +50 -73
  11. package/src/common/interface.d.ts +6 -6
  12. package/src/editor-manager/base/classes.d.ts +1 -1
  13. package/src/editor-manager/base/classes.js +1 -1
  14. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  15. package/src/editor-manager/base/editor-manager.js +3 -3
  16. package/src/editor-manager/base/interface.d.ts +7 -7
  17. package/src/editor-manager/base/types.d.ts +1 -1
  18. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  19. package/src/editor-manager/plugin/alignments.js +2 -2
  20. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  21. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  22. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  23. package/src/editor-manager/plugin/clearformat.js +1 -1
  24. package/src/editor-manager/plugin/dom-node.d.ts +34 -34
  25. package/src/editor-manager/plugin/dom-node.js +34 -34
  26. package/src/editor-manager/plugin/formats.d.ts +2 -2
  27. package/src/editor-manager/plugin/formats.js +2 -2
  28. package/src/editor-manager/plugin/image.d.ts +3 -3
  29. package/src/editor-manager/plugin/image.js +3 -3
  30. package/src/editor-manager/plugin/indents.d.ts +2 -2
  31. package/src/editor-manager/plugin/indents.js +2 -2
  32. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  33. package/src/editor-manager/plugin/insert-methods.js +4 -4
  34. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  35. package/src/editor-manager/plugin/insert-text.js +2 -2
  36. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  37. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  38. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  39. package/src/editor-manager/plugin/inserthtml.js +2 -2
  40. package/src/editor-manager/plugin/isformatted.d.ts +8 -8
  41. package/src/editor-manager/plugin/isformatted.js +8 -8
  42. package/src/editor-manager/plugin/link.d.ts +2 -2
  43. package/src/editor-manager/plugin/link.js +2 -2
  44. package/src/editor-manager/plugin/lists.d.ts +2 -2
  45. package/src/editor-manager/plugin/lists.js +4 -14
  46. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  47. package/src/editor-manager/plugin/ms-word-clean-up.js +1 -1
  48. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  49. package/src/editor-manager/plugin/nodecutter.js +6 -6
  50. package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
  51. package/src/editor-manager/plugin/selection-commands.js +1 -1
  52. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  53. package/src/editor-manager/plugin/selection-exec.js +2 -2
  54. package/src/editor-manager/plugin/table.d.ts +2 -2
  55. package/src/editor-manager/plugin/table.js +2 -2
  56. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  57. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  58. package/src/editor-manager/plugin/undo.d.ts +6 -6
  59. package/src/editor-manager/plugin/undo.js +6 -6
  60. package/src/markdown-parser/base/interface.d.ts +10 -10
  61. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  62. package/src/markdown-parser/base/markdown-parser.js +3 -3
  63. package/src/markdown-parser/base/types.d.ts +1 -1
  64. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  65. package/src/markdown-parser/plugin/clearformat.js +2 -2
  66. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  67. package/src/markdown-parser/plugin/formats.js +2 -2
  68. package/src/markdown-parser/plugin/link.d.ts +2 -2
  69. package/src/markdown-parser/plugin/link.js +2 -2
  70. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  71. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  72. package/src/markdown-parser/plugin/md-selection-formats.d.ts +2 -2
  73. package/src/markdown-parser/plugin/md-selection-formats.js +2 -2
  74. package/src/markdown-parser/plugin/table.d.ts +3 -3
  75. package/src/markdown-parser/plugin/table.js +3 -3
  76. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  77. package/src/markdown-parser/plugin/undo.js +6 -6
  78. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  79. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  80. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  81. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  82. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  83. package/src/rich-text-editor/actions/color-picker.js +2 -2
  84. package/src/rich-text-editor/actions/count.d.ts +3 -3
  85. package/src/rich-text-editor/actions/count.js +3 -3
  86. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  87. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
  88. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  89. package/src/rich-text-editor/actions/full-screen.js +3 -3
  90. package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
  91. package/src/rich-text-editor/actions/html-editor.js +3 -3
  92. package/src/rich-text-editor/actions/keyboard-model.d.ts +13 -13
  93. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  94. package/src/rich-text-editor/actions/keyboard.js +1 -1
  95. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  96. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  97. package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
  98. package/src/rich-text-editor/actions/paste-clean-up.js +24 -3
  99. package/src/rich-text-editor/actions/quick-toolbar.d.ts +19 -9
  100. package/src/rich-text-editor/actions/quick-toolbar.js +17 -7
  101. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  102. package/src/rich-text-editor/actions/toolbar.js +13 -13
  103. package/src/rich-text-editor/base/classes.d.ts +102 -102
  104. package/src/rich-text-editor/base/classes.js +102 -102
  105. package/src/rich-text-editor/base/constant.d.ts +107 -102
  106. package/src/rich-text-editor/base/constant.js +107 -102
  107. package/src/rich-text-editor/base/enum.d.ts +1 -1
  108. package/src/rich-text-editor/base/enum.js +1 -1
  109. package/src/rich-text-editor/base/interface.d.ts +41 -40
  110. package/src/rich-text-editor/base/interface.js +1 -1
  111. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +659 -651
  112. package/src/rich-text-editor/base/rich-text-editor.d.ts +71 -48
  113. package/src/rich-text-editor/base/rich-text-editor.js +90 -35
  114. package/src/rich-text-editor/base/util.d.ts +1 -1
  115. package/src/rich-text-editor/base/util.js +1 -1
  116. package/src/rich-text-editor/formatter/formatter.d.ts +9 -8
  117. package/src/rich-text-editor/formatter/formatter.js +10 -8
  118. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  119. package/src/rich-text-editor/formatter/html-formatter.js +2 -2
  120. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  121. package/src/rich-text-editor/formatter/markdown-formatter.js +2 -2
  122. package/src/rich-text-editor/models/iframe-settings-model.d.ts +21 -21
  123. package/src/rich-text-editor/models/inline-mode-model.d.ts +9 -9
  124. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +228 -228
  125. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  126. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  127. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  128. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  129. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  130. package/src/rich-text-editor/renderer/iframe-content-renderer.js +4 -4
  131. package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
  132. package/src/rich-text-editor/renderer/image-module.js +56 -14
  133. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  134. package/src/rich-text-editor/renderer/link-module.js +1 -1
  135. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  136. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  137. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  138. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  139. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  140. package/src/rich-text-editor/renderer/render.js +2 -2
  141. package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
  142. package/src/rich-text-editor/renderer/table-module.js +1 -1
  143. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +8 -8
  144. package/src/rich-text-editor/renderer/toolbar-renderer.js +8 -8
  145. package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
  146. package/src/rich-text-editor/renderer/view-source.js +6 -6
  147. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  148. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  149. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  150. package/src/rich-text-editor/services/service-locator.js +3 -3
  151. package/src/selection/selection.d.ts +22 -22
  152. package/src/selection/selection.js +22 -22
  153. package/styles/_all.scss +2 -2
  154. package/styles/rich-text-editor/_all.scss +2 -2
  155. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +151 -151
  156. package/styles/rich-text-editor/_bootstrap-definition.scss +184 -184
  157. package/styles/rich-text-editor/_bootstrap4-definition.scss +307 -307
  158. package/styles/rich-text-editor/_fabric-dark-definition.scss +150 -150
  159. package/styles/rich-text-editor/_fabric-definition.scss +148 -148
  160. package/styles/rich-text-editor/_highcontrast-definition.scss +148 -148
  161. package/styles/rich-text-editor/_highcontrast-light-definition.scss +148 -148
  162. package/styles/rich-text-editor/_layout.scss +1332 -1332
  163. package/styles/rich-text-editor/_material-dark-definition.scss +151 -151
  164. package/styles/rich-text-editor/_material-definition.scss +150 -150
  165. package/styles/rich-text-editor/_theme.scss +484 -484
  166. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +285 -285
  167. package/styles/rich-text-editor/icons/_bootstrap.scss +284 -284
  168. package/styles/rich-text-editor/icons/_bootstrap4.scss +284 -284
  169. package/styles/rich-text-editor/icons/_fabric-dark.scss +284 -284
  170. package/styles/rich-text-editor/icons/_fabric.scss +284 -284
  171. package/styles/rich-text-editor/icons/_highcontrast-light.scss +284 -284
  172. package/styles/rich-text-editor/icons/_highcontrast.scss +284 -284
  173. package/styles/rich-text-editor/icons/_material-dark.scss +284 -284
  174. package/styles/rich-text-editor/icons/_material.scss +284 -284
  175. package/dist/global/ej2-richtexteditor.min.js +0 -11
  176. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  177. package/dist/global/index.d.ts +0 -14
@@ -28,6 +28,11 @@ var load = 'load';
28
28
  * @deprecated
29
29
  */
30
30
  var initialLoad = 'initial-load';
31
+ /**
32
+ * @hidden
33
+ * @deprecated
34
+ */
35
+ var contentChanged = 'content-changed';
31
36
  /**
32
37
  * @hidden
33
38
  * @deprecated
@@ -2198,7 +2203,7 @@ function convertToBlob(dataUrl) {
2198
2203
  * @hidden
2199
2204
  * @deprecated
2200
2205
  */
2201
- var ToolbarRenderer = /** @__PURE__ @class */ (function () {
2206
+ var ToolbarRenderer = /** @class */ (function () {
2202
2207
  /**
2203
2208
  * Constructor for toolbar renderer module
2204
2209
  */
@@ -2634,7 +2639,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
2634
2639
  /**
2635
2640
  * `Toolbar` module is used to handle Toolbar actions.
2636
2641
  */
2637
- var BaseToolbar = /** @__PURE__ @class */ (function () {
2642
+ var BaseToolbar = /** @class */ (function () {
2638
2643
  function BaseToolbar(parent, serviceLocator) {
2639
2644
  this.tools = {};
2640
2645
  this.parent = parent;
@@ -2777,7 +2782,7 @@ var BaseToolbar = /** @__PURE__ @class */ (function () {
2777
2782
  /**
2778
2783
  * `Toolbar` module is used to handle Toolbar actions.
2779
2784
  */
2780
- var DropDownButtons = /** @__PURE__ @class */ (function () {
2785
+ var DropDownButtons = /** @class */ (function () {
2781
2786
  function DropDownButtons(parent, serviceLocator) {
2782
2787
  this.parent = parent;
2783
2788
  this.locator = serviceLocator;
@@ -3198,7 +3203,7 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
3198
3203
  * @hidden
3199
3204
  * @deprecated
3200
3205
  */
3201
- var ServiceLocator = /** @__PURE__ @class */ (function () {
3206
+ var ServiceLocator = /** @class */ (function () {
3202
3207
  function ServiceLocator() {
3203
3208
  this.services = {};
3204
3209
  }
@@ -3231,7 +3236,7 @@ var ServiceLocator = /** @__PURE__ @class */ (function () {
3231
3236
  * @hidden
3232
3237
  * @deprecated
3233
3238
  */
3234
- var RendererFactory = /** @__PURE__ @class */ (function () {
3239
+ var RendererFactory = /** @class */ (function () {
3235
3240
  function RendererFactory() {
3236
3241
  this.rendererMap = {};
3237
3242
  }
@@ -3266,7 +3271,7 @@ var RendererFactory = /** @__PURE__ @class */ (function () {
3266
3271
  /**
3267
3272
  * `ToolbarAction` module is used to toolbar click action
3268
3273
  */
3269
- var ToolbarAction = /** @__PURE__ @class */ (function () {
3274
+ var ToolbarAction = /** @class */ (function () {
3270
3275
  function ToolbarAction(parent) {
3271
3276
  this.parent = parent;
3272
3277
  this.addEventListener();
@@ -3320,7 +3325,7 @@ var ToolbarAction = /** @__PURE__ @class */ (function () {
3320
3325
  /**
3321
3326
  * `Toolbar` module is used to handle Toolbar actions.
3322
3327
  */
3323
- var Toolbar$1 = /** @__PURE__ @class */ (function () {
3328
+ var Toolbar$1 = /** @class */ (function () {
3324
3329
  function Toolbar$$1(parent, serviceLocator) {
3325
3330
  this.parent = parent;
3326
3331
  this.isToolbar = false;
@@ -4021,7 +4026,7 @@ var keyCode = {
4021
4026
  * @hidden
4022
4027
  * @deprecated
4023
4028
  */
4024
- var KeyboardEvents$1 = /** @__PURE__ @class */ (function (_super) {
4029
+ var KeyboardEvents$1 = /** @class */ (function (_super) {
4025
4030
  __extends(KeyboardEvents$$1, _super);
4026
4031
  /**
4027
4032
  * Initializes the KeyboardEvents
@@ -4149,7 +4154,7 @@ var KeyboardEvents$1 = /** @__PURE__ @class */ (function (_super) {
4149
4154
  /**
4150
4155
  * `Color Picker` module is used to handle ColorPicker actions.
4151
4156
  */
4152
- var ColorPickerInput = /** @__PURE__ @class */ (function () {
4157
+ var ColorPickerInput = /** @class */ (function () {
4153
4158
  function ColorPickerInput(parent, serviceLocator) {
4154
4159
  this.tools = {};
4155
4160
  this.parent = parent;
@@ -4345,7 +4350,7 @@ var ColorPickerInput = /** @__PURE__ @class */ (function () {
4345
4350
  /**
4346
4351
  * `Quick toolbar` module is used to handle Quick toolbar actions.
4347
4352
  */
4348
- var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
4353
+ var BaseQuickToolbar = /** @class */ (function () {
4349
4354
  function BaseQuickToolbar(parent, locator) {
4350
4355
  this.parent = parent;
4351
4356
  this.locator = locator;
@@ -4716,7 +4721,7 @@ var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
4716
4721
  * @hidden
4717
4722
  * @deprecated
4718
4723
  */
4719
- var PopupRenderer = /** @__PURE__ @class */ (function () {
4724
+ var PopupRenderer = /** @class */ (function () {
4720
4725
  /**
4721
4726
  * Constructor for popup renderer module
4722
4727
  */
@@ -4775,7 +4780,7 @@ var PopupRenderer = /** @__PURE__ @class */ (function () {
4775
4780
  /**
4776
4781
  * `Quick toolbar` module is used to handle Quick toolbar actions.
4777
4782
  */
4778
- var QuickToolbar = /** @__PURE__ @class */ (function () {
4783
+ var QuickToolbar = /** @class */ (function () {
4779
4784
  function QuickToolbar(parent, locator) {
4780
4785
  this.parent = parent;
4781
4786
  this.locator = locator;
@@ -4873,12 +4878,22 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
4873
4878
  EventHandler.add(this.inlineQTBar.element, 'mousedown', this.onMouseDown, this);
4874
4879
  }
4875
4880
  };
4881
+ /**
4882
+ * Method for showing the inline quick toolbar
4883
+ * @hidden
4884
+ * @deprecated
4885
+ */
4876
4886
  QuickToolbar.prototype.showInlineQTBar = function (x, y, target) {
4877
4887
  if (this.parent.readonly) {
4878
4888
  return;
4879
4889
  }
4880
4890
  this.inlineQTBar.showPopup(x, y, target);
4881
4891
  };
4892
+ /**
4893
+ * Method for hidding the inline quick toolbar
4894
+ * @hidden
4895
+ * @deprecated
4896
+ */
4882
4897
  QuickToolbar.prototype.hideInlineQTBar = function () {
4883
4898
  if (this.inlineQTBar && !hasClass(this.inlineQTBar.element, 'e-popup-close')) {
4884
4899
  this.inlineQTBar.hidePopup();
@@ -5165,7 +5180,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
5165
5180
  /**
5166
5181
  * `Count` module is used to handle Count actions.
5167
5182
  */
5168
- var Count = /** @__PURE__ @class */ (function () {
5183
+ var Count = /** @class */ (function () {
5169
5184
  function Count(parent, serviceLocator) {
5170
5185
  this.parent = parent;
5171
5186
  this.locator = serviceLocator;
@@ -5281,7 +5296,7 @@ var Count = /** @__PURE__ @class */ (function () {
5281
5296
  * @hidden
5282
5297
  * @deprecated
5283
5298
  */
5284
- var MarkdownSelection = /** @__PURE__ @class */ (function () {
5299
+ var MarkdownSelection = /** @class */ (function () {
5285
5300
  function MarkdownSelection() {
5286
5301
  }
5287
5302
  /**
@@ -5447,7 +5462,7 @@ var MarkdownSelection = /** @__PURE__ @class */ (function () {
5447
5462
  /**
5448
5463
  * MarkdownToolbarStatus module for refresh the toolbar status
5449
5464
  */
5450
- var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
5465
+ var MarkdownToolbarStatus = /** @class */ (function () {
5451
5466
  function MarkdownToolbarStatus(parent) {
5452
5467
  this.toolbarStatus = {
5453
5468
  bold: false,
@@ -5581,7 +5596,7 @@ var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
5581
5596
  /**
5582
5597
  * `ExecCommandCallBack` module is used to run the editor manager command
5583
5598
  */
5584
- var ExecCommandCallBack = /** @__PURE__ @class */ (function () {
5599
+ var ExecCommandCallBack = /** @class */ (function () {
5585
5600
  function ExecCommandCallBack(parent) {
5586
5601
  this.parent = parent;
5587
5602
  this.addEventListener();
@@ -5668,7 +5683,7 @@ var MS_WORD_CLEANUP = 'ms_word_cleanup';
5668
5683
  * @hidden
5669
5684
  * @deprecated
5670
5685
  */
5671
- var Formatter = /** @__PURE__ @class */ (function () {
5686
+ var Formatter = /** @class */ (function () {
5672
5687
  function Formatter() {
5673
5688
  }
5674
5689
  /**
@@ -5784,6 +5799,7 @@ var Formatter = /** @__PURE__ @class */ (function () {
5784
5799
  var _this = this;
5785
5800
  this.editorManager.observer.notify(KEY_UP, {
5786
5801
  event: e, callBack: function () {
5802
+ self.notify(contentChanged, {});
5787
5803
  _this.enableUndo(self);
5788
5804
  }
5789
5805
  });
@@ -5794,6 +5810,7 @@ var Formatter = /** @__PURE__ @class */ (function () {
5794
5810
  * @deprecated
5795
5811
  */
5796
5812
  Formatter.prototype.onSuccess = function (self, events) {
5813
+ self.notify(contentChanged, {});
5797
5814
  if (isNullOrUndefined(events.event) || (events && events.event.action !== 'copy')) {
5798
5815
  this.enableUndo(self);
5799
5816
  self.notify(execCommandCallBack, events);
@@ -5893,7 +5910,7 @@ var MD_TABLE = 'insert-table';
5893
5910
  * Lists internal component
5894
5911
  * @hidden
5895
5912
  */
5896
- var MDLists = /** @__PURE__ @class */ (function () {
5913
+ var MDLists = /** @class */ (function () {
5897
5914
  /**
5898
5915
  * Constructor for creating the Lists plugin
5899
5916
  * @hidden
@@ -6349,7 +6366,7 @@ var MDLists = /** @__PURE__ @class */ (function () {
6349
6366
  * @hidden
6350
6367
  * @deprecated
6351
6368
  */
6352
- var MDFormats = /** @__PURE__ @class */ (function () {
6369
+ var MDFormats = /** @class */ (function () {
6353
6370
  /**
6354
6371
  * Constructor for creating the Formats plugin
6355
6372
  * @hidden
@@ -6564,7 +6581,7 @@ var MDFormats = /** @__PURE__ @class */ (function () {
6564
6581
  * @hidden
6565
6582
  * @deprecated
6566
6583
  */
6567
- var MDSelectionFormats = /** @__PURE__ @class */ (function () {
6584
+ var MDSelectionFormats = /** @class */ (function () {
6568
6585
  function MDSelectionFormats(parent) {
6569
6586
  extend(this, this, parent, true);
6570
6587
  this.selection = this.parent.markdownSelection;
@@ -7014,7 +7031,7 @@ var selfClosingTags = [
7014
7031
  /**
7015
7032
  * `Undo` module is used to handle undo actions.
7016
7033
  */
7017
- var UndoRedoCommands = /** @__PURE__ @class */ (function () {
7034
+ var UndoRedoCommands = /** @class */ (function () {
7018
7035
  function UndoRedoCommands(parent, options) {
7019
7036
  this.undoRedoStack = [];
7020
7037
  this.parent = parent;
@@ -7195,7 +7212,7 @@ var UndoRedoCommands = /** @__PURE__ @class */ (function () {
7195
7212
  * @hidden
7196
7213
  * @deprecated
7197
7214
  */
7198
- var MDLink = /** @__PURE__ @class */ (function () {
7215
+ var MDLink = /** @class */ (function () {
7199
7216
  /**
7200
7217
  * Constructor for creating the Formats plugin
7201
7218
  * @hidden
@@ -7243,7 +7260,7 @@ var MDLink = /** @__PURE__ @class */ (function () {
7243
7260
  * @hidden
7244
7261
  * @deprecated
7245
7262
  */
7246
- var MDTable = /** @__PURE__ @class */ (function () {
7263
+ var MDTable = /** @class */ (function () {
7247
7264
  /**
7248
7265
  * Constructor for creating the Formats plugin
7249
7266
  * @hidden
@@ -7465,7 +7482,7 @@ var MDTable = /** @__PURE__ @class */ (function () {
7465
7482
  * @hidden
7466
7483
  * @deprecated
7467
7484
  */
7468
- var ClearFormat = /** @__PURE__ @class */ (function () {
7485
+ var ClearFormat = /** @class */ (function () {
7469
7486
  /**
7470
7487
  * Constructor for creating the clear format plugin
7471
7488
  * @hidden
@@ -7574,7 +7591,7 @@ var ClearFormat = /** @__PURE__ @class */ (function () {
7574
7591
  * @hidden
7575
7592
  * @deprecated
7576
7593
  */
7577
- var MarkdownParser = /** @__PURE__ @class */ (function () {
7594
+ var MarkdownParser = /** @class */ (function () {
7578
7595
  /**
7579
7596
  * Constructor for creating the component
7580
7597
  * @hidden
@@ -7671,7 +7688,7 @@ var __extends$1 = (undefined && undefined.__extends) || (function () {
7671
7688
  * @hidden
7672
7689
  * @deprecated
7673
7690
  */
7674
- var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
7691
+ var MarkdownFormatter = /** @class */ (function (_super) {
7675
7692
  __extends$1(MarkdownFormatter, _super);
7676
7693
  function MarkdownFormatter(options) {
7677
7694
  var _this = _super.call(this) || this;
@@ -7714,7 +7731,7 @@ var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
7714
7731
  * @hidden
7715
7732
  * @deprecated
7716
7733
  */
7717
- var MarkdownRender = /** @__PURE__ @class */ (function () {
7734
+ var MarkdownRender = /** @class */ (function () {
7718
7735
  /**
7719
7736
  * Constructor for content renderer module
7720
7737
  */
@@ -7786,7 +7803,7 @@ var MarkdownRender = /** @__PURE__ @class */ (function () {
7786
7803
  /**
7787
7804
  * `MarkdownEditor` module is used to markdown editor
7788
7805
  */
7789
- var MarkdownEditor = /** @__PURE__ @class */ (function () {
7806
+ var MarkdownEditor = /** @class */ (function () {
7790
7807
  function MarkdownEditor(parent, serviceLocator) {
7791
7808
  this.parent = parent;
7792
7809
  this.locator = serviceLocator;
@@ -8017,7 +8034,7 @@ var CLEAR_TYPE = 'clear-type';
8017
8034
  /**
8018
8035
  * `Selection` module is used to handle RTE Selections.
8019
8036
  */
8020
- var NodeSelection = /** @__PURE__ @class */ (function () {
8037
+ var NodeSelection = /** @class */ (function () {
8021
8038
  function NodeSelection() {
8022
8039
  this.startNodeName = [];
8023
8040
  this.endNodeName = [];
@@ -8374,7 +8391,7 @@ var markerClassName = {
8374
8391
  * @hidden
8375
8392
  * @deprecated
8376
8393
  */
8377
- var DOMNode = /** @__PURE__ @class */ (function () {
8394
+ var DOMNode = /** @class */ (function () {
8378
8395
  /**
8379
8396
  * Constructor for creating the DOMNode plugin
8380
8397
  * @hidden
@@ -9113,7 +9130,7 @@ function updateTextNode$1(value) {
9113
9130
  * @hidden
9114
9131
  * @deprecated
9115
9132
  */
9116
- var Lists = /** @__PURE__ @class */ (function () {
9133
+ var Lists = /** @class */ (function () {
9117
9134
  /**
9118
9135
  * Constructor for creating the Lists plugin
9119
9136
  * @hidden
@@ -9184,8 +9201,8 @@ var Lists = /** @__PURE__ @class */ (function () {
9184
9201
  var range = this.parent.nodeSelection.getRange(this.parent.currentDocument);
9185
9202
  var startNode = this.parent.domNode.getSelectedNode(range.startContainer, range.startOffset);
9186
9203
  var endNode = this.parent.domNode.getSelectedNode(range.endContainer, range.endOffset);
9187
- if (startNode === endNode && !isNullOrUndefined(closest(startNode, 'li')) &&
9188
- startNode.textContent.trim() === '' && startNode.textContent.charCodeAt(0) === 65279) {
9204
+ if (startNode === endNode && startNode.tagName === 'LI' && startNode.textContent.trim() === '' &&
9205
+ startNode.textContent.charCodeAt(0) === 65279) {
9189
9206
  startNode.textContent = '';
9190
9207
  }
9191
9208
  };
@@ -9526,16 +9543,6 @@ var Lists = /** @__PURE__ @class */ (function () {
9526
9543
  nodesTemp.push(node);
9527
9544
  }
9528
9545
  }
9529
- var parentList = [];
9530
- for (var k = 0; k < nodesTemp.length; k++) {
9531
- var nodesTempListParent = nodesTemp[k].closest('LI');
9532
- if (!isNullOrUndefined(nodesTempListParent) && (nodesTemp.indexOf(nodesTempListParent.parentElement) < 0)) {
9533
- if (nodesTempListParent.parentElement.innerText === nodesTemp[k].innerText) {
9534
- parentList.push(nodesTempListParent.parentElement);
9535
- }
9536
- }
9537
- }
9538
- nodesTemp = parentList.concat(nodesTemp);
9539
9546
  for (var j = nodesTemp.length - 1; j >= 0; j--) {
9540
9547
  var h = nodesTemp[j];
9541
9548
  var replace = '<' + tagName.toLowerCase() + ' '
@@ -9706,7 +9713,7 @@ var Lists = /** @__PURE__ @class */ (function () {
9706
9713
  * Node appending methods.
9707
9714
  * @hidden
9708
9715
  */
9709
- var InsertMethods = /** @__PURE__ @class */ (function () {
9716
+ var InsertMethods = /** @class */ (function () {
9710
9717
  function InsertMethods() {
9711
9718
  }
9712
9719
  /**
@@ -9764,7 +9771,7 @@ var InsertMethods = /** @__PURE__ @class */ (function () {
9764
9771
  * @hidden
9765
9772
  * @deprecated
9766
9773
  */
9767
- var NodeCutter = /** @__PURE__ @class */ (function () {
9774
+ var NodeCutter = /** @class */ (function () {
9768
9775
  function NodeCutter() {
9769
9776
  this.position = -1;
9770
9777
  this.nodeSelection = new NodeSelection();
@@ -9946,7 +9953,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
9946
9953
  * @hidden
9947
9954
  * @deprecated
9948
9955
  */
9949
- var Formats = /** @__PURE__ @class */ (function () {
9956
+ var Formats = /** @class */ (function () {
9950
9957
  /**
9951
9958
  * Constructor for creating the Formats plugin
9952
9959
  * @hidden
@@ -10209,7 +10216,7 @@ var Formats = /** @__PURE__ @class */ (function () {
10209
10216
  * @hidden
10210
10217
  * @deprecated
10211
10218
  */
10212
- var InsertHtml = /** @__PURE__ @class */ (function () {
10219
+ var InsertHtml = /** @class */ (function () {
10213
10220
  function InsertHtml() {
10214
10221
  }
10215
10222
  InsertHtml.Insert = function (docElement, insertNode, editNode, isExternal) {
@@ -10596,7 +10603,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
10596
10603
  * @hidden
10597
10604
  * @deprecated
10598
10605
  */
10599
- var LinkCommand = /** @__PURE__ @class */ (function () {
10606
+ var LinkCommand = /** @class */ (function () {
10600
10607
  /**
10601
10608
  * Constructor for creating the Formats plugin
10602
10609
  * @hidden
@@ -10882,7 +10889,7 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
10882
10889
  * @hidden
10883
10890
  * @deprecated
10884
10891
  */
10885
- var Alignments = /** @__PURE__ @class */ (function () {
10892
+ var Alignments = /** @class */ (function () {
10886
10893
  /**
10887
10894
  * Constructor for creating the Formats plugin
10888
10895
  * @hidden
@@ -10980,7 +10987,7 @@ var Alignments = /** @__PURE__ @class */ (function () {
10980
10987
  * @hidden
10981
10988
  * @deprecated
10982
10989
  */
10983
- var Indents = /** @__PURE__ @class */ (function () {
10990
+ var Indents = /** @class */ (function () {
10984
10991
  /**
10985
10992
  * Constructor for creating the Formats plugin
10986
10993
  * @hidden
@@ -11089,7 +11096,7 @@ var CLASS_IMAGE_INLINE = 'e-imginline';
11089
11096
  * @hidden
11090
11097
  * @deprecated
11091
11098
  */
11092
- var ImageCommand = /** @__PURE__ @class */ (function () {
11099
+ var ImageCommand = /** @class */ (function () {
11093
11100
  /**
11094
11101
  * Constructor for creating the Formats plugin
11095
11102
  * @hidden
@@ -11415,7 +11422,7 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
11415
11422
  * @hidden
11416
11423
  * @deprecated
11417
11424
  */
11418
- var TableCommand = /** @__PURE__ @class */ (function () {
11425
+ var TableCommand = /** @class */ (function () {
11419
11426
  /**
11420
11427
  * Constructor for creating the Formats plugin
11421
11428
  * @hidden
@@ -11726,7 +11733,7 @@ var TableCommand = /** @__PURE__ @class */ (function () {
11726
11733
  * @hidden
11727
11734
  * @deprecated
11728
11735
  */
11729
- var IsFormatted = /** @__PURE__ @class */ (function () {
11736
+ var IsFormatted = /** @class */ (function () {
11730
11737
  function IsFormatted() {
11731
11738
  }
11732
11739
  /**
@@ -11945,7 +11952,7 @@ var IsFormatted = /** @__PURE__ @class */ (function () {
11945
11952
  /**
11946
11953
  * `Selection` module is used to handle RTE Selections.
11947
11954
  */
11948
- var SelectionCommands = /** @__PURE__ @class */ (function () {
11955
+ var SelectionCommands = /** @class */ (function () {
11949
11956
  function SelectionCommands() {
11950
11957
  }
11951
11958
  /**
@@ -12255,7 +12262,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
12255
12262
  * @hidden
12256
12263
  * @deprecated
12257
12264
  */
12258
- var SelectionBasedExec = /** @__PURE__ @class */ (function () {
12265
+ var SelectionBasedExec = /** @class */ (function () {
12259
12266
  /**
12260
12267
  * Constructor for creating the Formats plugin
12261
12268
  * @hidden
@@ -12301,7 +12308,7 @@ var SelectionBasedExec = /** @__PURE__ @class */ (function () {
12301
12308
  * @hidden
12302
12309
  * @deprecated
12303
12310
  */
12304
- var InsertHtmlExec = /** @__PURE__ @class */ (function () {
12311
+ var InsertHtmlExec = /** @class */ (function () {
12305
12312
  /**
12306
12313
  * Constructor for creating the Formats plugin
12307
12314
  * @hidden
@@ -12341,7 +12348,7 @@ var InsertHtmlExec = /** @__PURE__ @class */ (function () {
12341
12348
  /**
12342
12349
  * `Clear Format` module is used to handle Clear Format.
12343
12350
  */
12344
- var ClearFormat$1 = /** @__PURE__ @class */ (function () {
12351
+ var ClearFormat$1 = /** @class */ (function () {
12345
12352
  function ClearFormat() {
12346
12353
  }
12347
12354
  /**
@@ -12560,7 +12567,7 @@ var ClearFormat$1 = /** @__PURE__ @class */ (function () {
12560
12567
  * @hidden
12561
12568
  * @deprecated
12562
12569
  */
12563
- var ClearFormatExec = /** @__PURE__ @class */ (function () {
12570
+ var ClearFormatExec = /** @class */ (function () {
12564
12571
  /**
12565
12572
  * Constructor for creating the Formats plugin
12566
12573
  * @hidden
@@ -12602,7 +12609,7 @@ var ClearFormatExec = /** @__PURE__ @class */ (function () {
12602
12609
  /**
12603
12610
  * `Undo` module is used to handle undo actions.
12604
12611
  */
12605
- var UndoRedoManager = /** @__PURE__ @class */ (function () {
12612
+ var UndoRedoManager = /** @class */ (function () {
12606
12613
  function UndoRedoManager(parent, options) {
12607
12614
  this.undoRedoStack = [];
12608
12615
  this.parent = parent;
@@ -12789,7 +12796,7 @@ var UndoRedoManager = /** @__PURE__ @class */ (function () {
12789
12796
  * @hidden
12790
12797
  * @deprecated
12791
12798
  */
12792
- var MsWordPaste = /** @__PURE__ @class */ (function () {
12799
+ var MsWordPaste = /** @class */ (function () {
12793
12800
  function MsWordPaste(parent) {
12794
12801
  this.olData = [
12795
12802
  'decimal',
@@ -13342,7 +13349,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
13342
13349
  * @hidden
13343
13350
  * @deprecated
13344
13351
  */
13345
- var InsertTextExec = /** @__PURE__ @class */ (function () {
13352
+ var InsertTextExec = /** @class */ (function () {
13346
13353
  /**
13347
13354
  * Constructor for creating the InsertText plugin
13348
13355
  * @hidden
@@ -13376,7 +13383,7 @@ var InsertTextExec = /** @__PURE__ @class */ (function () {
13376
13383
  * @hidden
13377
13384
  * @deprecated
13378
13385
  */
13379
- var EditorManager = /** @__PURE__ @class */ (function () {
13386
+ var EditorManager = /** @class */ (function () {
13380
13387
  /**
13381
13388
  * Constructor for creating the component
13382
13389
  * @hidden
@@ -13528,7 +13535,7 @@ var __extends$2 = (undefined && undefined.__extends) || (function () {
13528
13535
  * @hidden
13529
13536
  * @deprecated
13530
13537
  */
13531
- var HTMLFormatter = /** @__PURE__ @class */ (function (_super) {
13538
+ var HTMLFormatter = /** @class */ (function (_super) {
13532
13539
  __extends$2(HTMLFormatter, _super);
13533
13540
  function HTMLFormatter(options) {
13534
13541
  var _this = _super.call(this) || this;
@@ -13584,7 +13591,7 @@ var statusCollection = {
13584
13591
  createlink: false,
13585
13592
  insertcode: false
13586
13593
  };
13587
- var ToolbarStatus = /** @__PURE__ @class */ (function () {
13594
+ var ToolbarStatus = /** @class */ (function () {
13588
13595
  function ToolbarStatus() {
13589
13596
  }
13590
13597
  /**
@@ -13833,7 +13840,7 @@ var ToolbarStatus = /** @__PURE__ @class */ (function () {
13833
13840
  /**
13834
13841
  * HtmlToolbarStatus module for refresh the toolbar status
13835
13842
  */
13836
- var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
13843
+ var HtmlToolbarStatus = /** @class */ (function () {
13837
13844
  function HtmlToolbarStatus(parent) {
13838
13845
  this.parent = parent;
13839
13846
  this.addEventListener();
@@ -13868,7 +13875,7 @@ var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
13868
13875
  * @hidden
13869
13876
  * @deprecated
13870
13877
  */
13871
- var ContentRender = /** @__PURE__ @class */ (function () {
13878
+ var ContentRender = /** @class */ (function () {
13872
13879
  /**
13873
13880
  * Constructor for content renderer module
13874
13881
  */
@@ -13964,7 +13971,7 @@ var IFRAMEHEADER = "\n<!DOCTYPE html> \n <html>\n <head>\n
13964
13971
  * @hidden
13965
13972
  * @deprecated
13966
13973
  */
13967
- var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
13974
+ var IframeContentRender = /** @class */ (function (_super) {
13968
13975
  __extends$3(IframeContentRender, _super);
13969
13976
  function IframeContentRender() {
13970
13977
  return _super !== null && _super.apply(this, arguments) || this;
@@ -14033,7 +14040,7 @@ var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
14033
14040
  /**
14034
14041
  * XhtmlValidation module called when set enableXhtml as true
14035
14042
  */
14036
- var XhtmlValidation = /** @__PURE__ @class */ (function () {
14043
+ var XhtmlValidation = /** @class */ (function () {
14037
14044
  function XhtmlValidation(parent) {
14038
14045
  this.parent = parent;
14039
14046
  this.addEventListener();
@@ -14168,7 +14175,7 @@ var XhtmlValidation = /** @__PURE__ @class */ (function () {
14168
14175
  /**
14169
14176
  * `HtmlEditor` module is used to HTML editor
14170
14177
  */
14171
- var HtmlEditor = /** @__PURE__ @class */ (function () {
14178
+ var HtmlEditor = /** @class */ (function () {
14172
14179
  function HtmlEditor(parent, serviceLocator) {
14173
14180
  this.rangeCollection = [];
14174
14181
  this.parent = parent;
@@ -14533,7 +14540,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
14533
14540
  /**
14534
14541
  * PasteCleanup module called when pasting content in RichTextEditor
14535
14542
  */
14536
- var PasteCleanup = /** @__PURE__ @class */ (function () {
14543
+ var PasteCleanup = /** @class */ (function () {
14537
14544
  function PasteCleanup(parent, serviceLocator) {
14538
14545
  this.inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
14539
14546
  'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
@@ -14758,6 +14765,8 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
14758
14765
  addClass([popupObj.element], [CLS_POPUP_OPEN, CLS_RTE_UPLOAD_POPUP]);
14759
14766
  var timeOut = fileList.size > 1000000 ? 300 : 100;
14760
14767
  setTimeout(function () { _this.refreshPopup(imgElem, popupObj); }, timeOut);
14768
+ var rawFile;
14769
+ var beforeUploadArgs;
14761
14770
  var uploadObj = new Uploader({
14762
14771
  asyncSettings: {
14763
14772
  saveUrl: this.parent.insertImageSettings.saveUrl
@@ -14769,8 +14778,24 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
14769
14778
  setTimeout(function () { _this.popupClose(popupObj, uploadObj, imgElem, e); }, 900);
14770
14779
  },
14771
14780
  uploading: function (e) {
14772
- _this.parent.trigger(imageUploading, e);
14773
- _this.parent.inputElement.contentEditable = 'false';
14781
+ if (!_this.parent.isServerRendered) {
14782
+ _this.parent.trigger(imageUploading, e);
14783
+ _this.parent.inputElement.contentEditable = 'false';
14784
+ }
14785
+ },
14786
+ beforeUpload: function (args) {
14787
+ if (_this.parent.isServerRendered) {
14788
+ args.cancel = true;
14789
+ beforeUploadArgs = JSON.parse(JSON.stringify(args));
14790
+ _this.parent.trigger(imageUploading, beforeUploadArgs, function (beforeUploadArgs) {
14791
+ if (beforeUploadArgs.cancel) {
14792
+ return;
14793
+ }
14794
+ /* tslint:disable */
14795
+ _this.uploadObj.uploadFiles(rawFile, null);
14796
+ /* tslint:enable */
14797
+ });
14798
+ }
14774
14799
  },
14775
14800
  failure: function (e) {
14776
14801
  setTimeout(function () { _this.uploadFailure(imgElem, uploadObj, popupObj, e); }, 900);
@@ -14785,6 +14810,9 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
14785
14810
  },
14786
14811
  selected: function (e) {
14787
14812
  e.cancel = true;
14813
+ if (_this.parent.isServerRendered) {
14814
+ rawFile = e.filesData;
14815
+ }
14788
14816
  },
14789
14817
  removing: function () {
14790
14818
  _this.parent.inputElement.contentEditable = 'true';
@@ -15284,7 +15312,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
15284
15312
  /**
15285
15313
  * `Resize` module is used to resize the editor
15286
15314
  */
15287
- var Resize = /** @__PURE__ @class */ (function () {
15315
+ var Resize = /** @class */ (function () {
15288
15316
  function Resize(parent) {
15289
15317
  this.parent = parent;
15290
15318
  this.addEventListener();
@@ -15399,7 +15427,7 @@ var Resize = /** @__PURE__ @class */ (function () {
15399
15427
  /**
15400
15428
  * `FullScreen` module is used to maximize and minimize screen
15401
15429
  */
15402
- var FullScreen = /** @__PURE__ @class */ (function () {
15430
+ var FullScreen = /** @class */ (function () {
15403
15431
  function FullScreen(parent) {
15404
15432
  this.parent = parent;
15405
15433
  this.addEventListener();
@@ -15586,7 +15614,7 @@ function setAttributes(htmlAttributes, rte, isFrame, initial) {
15586
15614
  * @hidden
15587
15615
  * @deprecated
15588
15616
  */
15589
- var Render = /** @__PURE__ @class */ (function () {
15617
+ var Render = /** @class */ (function () {
15590
15618
  /**
15591
15619
  * Constructor for render module
15592
15620
  */
@@ -15659,7 +15687,7 @@ var Render = /** @__PURE__ @class */ (function () {
15659
15687
  /**
15660
15688
  * `Link` module is used to handle undo actions.
15661
15689
  */
15662
- var Link = /** @__PURE__ @class */ (function () {
15690
+ var Link = /** @class */ (function () {
15663
15691
  function Link(parent, serviceLocator) {
15664
15692
  this.parent = parent;
15665
15693
  this.rteID = parent.element.id;
@@ -16110,7 +16138,7 @@ var Link = /** @__PURE__ @class */ (function () {
16110
16138
  /**
16111
16139
  * `Image` module is used to handle image actions.
16112
16140
  */
16113
- var Image = /** @__PURE__ @class */ (function () {
16141
+ var Image = /** @class */ (function () {
16114
16142
  function Image(parent, serviceLocator) {
16115
16143
  this.isImgUploaded = false;
16116
16144
  this.pageX = null;
@@ -17463,19 +17491,23 @@ var Image = /** @__PURE__ @class */ (function () {
17463
17491
  uploadParentEle.appendChild(uploadEle);
17464
17492
  var altText;
17465
17493
  var rawFile;
17494
+ var selectArgs;
17495
+ var beforeUploadArgs;
17466
17496
  this.uploadObj = new Uploader({
17467
17497
  asyncSettings: { saveUrl: this.parent.insertImageSettings.saveUrl, },
17468
17498
  dropArea: span, multiple: false, enableRtl: this.parent.enableRtl,
17469
17499
  allowedExtensions: this.parent.insertImageSettings.allowedTypes.toString(),
17470
17500
  selected: function (e) {
17471
- if (isBlazor()) {
17501
+ proxy.isImgUploaded = true;
17502
+ selectArgs = e;
17503
+ if (_this.parent.isServerRendered) {
17504
+ selectArgs = JSON.parse(JSON.stringify(e));
17472
17505
  e.cancel = true;
17473
17506
  rawFile = e.filesData;
17474
17507
  }
17475
- proxy.isImgUploaded = true;
17476
- _this.parent.trigger(imageSelected, e, function (e) {
17477
- _this.checkExtension(e.filesData[0]);
17478
- altText = e.filesData[0].name;
17508
+ _this.parent.trigger(imageSelected, selectArgs, function (selectArgs) {
17509
+ _this.checkExtension(selectArgs.filesData[0]);
17510
+ altText = selectArgs.filesData[0].name;
17479
17511
  if (_this.parent.editorMode === 'HTML' && isNullOrUndefined(_this.parent.insertImageSettings.path)) {
17480
17512
  var reader_1 = new FileReader();
17481
17513
  reader_1.addEventListener('load', function (e) {
@@ -17494,18 +17526,33 @@ var Image = /** @__PURE__ @class */ (function () {
17494
17526
  };
17495
17527
  proxy.inputUrl.setAttribute('disabled', 'true');
17496
17528
  });
17497
- reader_1.readAsDataURL(e.filesData[0].rawFile);
17529
+ reader_1.readAsDataURL(selectArgs.filesData[0].rawFile);
17498
17530
  }
17499
- if (isBlazor()) {
17500
- e.cancel = false;
17531
+ if (_this.parent.isServerRendered) {
17501
17532
  /* tslint:disable */
17502
- _this.uploadObj._internalRenderSelect(e, rawFile);
17533
+ _this.uploadObj._internalRenderSelect(selectArgs, rawFile);
17503
17534
  /* tslint:enable */
17504
17535
  }
17505
17536
  });
17506
17537
  },
17538
+ beforeUpload: function (args) {
17539
+ if (_this.parent.isServerRendered) {
17540
+ beforeUploadArgs = JSON.parse(JSON.stringify(args));
17541
+ args.cancel = true;
17542
+ _this.parent.trigger(imageUploading, beforeUploadArgs, function (beforeUploadArgs) {
17543
+ if (beforeUploadArgs.cancel) {
17544
+ return;
17545
+ }
17546
+ /* tslint:disable */
17547
+ _this.uploadObj.uploadFiles(rawFile, null);
17548
+ /* tslint:enable */
17549
+ });
17550
+ }
17551
+ },
17507
17552
  uploading: function (e) {
17508
- _this.parent.trigger(imageUploading, e);
17553
+ if (!_this.parent.isServerRendered) {
17554
+ _this.parent.trigger(imageUploading, e);
17555
+ }
17509
17556
  },
17510
17557
  success: function (e) {
17511
17558
  _this.parent.trigger(imageUploadSuccess, e, function (e) {
@@ -17777,6 +17824,8 @@ var Image = /** @__PURE__ @class */ (function () {
17777
17824
  var timeOut = dragEvent.dataTransfer.files[0].size > 1000000 ? 300 : 100;
17778
17825
  setTimeout(function () { proxy.refreshPopup(imageElement); }, timeOut);
17779
17826
  var range = this.parent.formatter.editorManager.nodeSelection.getRange(this.parent.contentModule.getDocument());
17827
+ var rawFile;
17828
+ var beforeUploadArgs;
17780
17829
  this.uploadObj = new Uploader({
17781
17830
  asyncSettings: {
17782
17831
  saveUrl: this.parent.insertImageSettings.saveUrl,
@@ -17796,15 +17845,36 @@ var Image = /** @__PURE__ @class */ (function () {
17796
17845
  detach(imageElement);
17797
17846
  _this.popupObj.close();
17798
17847
  },
17848
+ beforeUpload: function (args) {
17849
+ if (_this.parent.isServerRendered) {
17850
+ beforeUploadArgs = JSON.parse(JSON.stringify(args));
17851
+ args.cancel = true;
17852
+ isUploading = true;
17853
+ _this.parent.trigger(imageUploading, beforeUploadArgs, function (beforeUploadArgs) {
17854
+ if (beforeUploadArgs.cancel) {
17855
+ return;
17856
+ }
17857
+ /* tslint:disable */
17858
+ _this.uploadObj.uploadFiles(rawFile, null);
17859
+ _this.parent.inputElement.contentEditable = 'false';
17860
+ /* tslint:enable */
17861
+ });
17862
+ }
17863
+ },
17799
17864
  uploading: function (e) {
17800
- isUploading = true;
17801
- _this.parent.trigger(imageUploading, e);
17802
- _this.parent.inputElement.contentEditable = 'false';
17865
+ if (!_this.parent.isServerRendered) {
17866
+ isUploading = true;
17867
+ _this.parent.trigger(imageUploading, e);
17868
+ _this.parent.inputElement.contentEditable = 'false';
17869
+ }
17803
17870
  },
17804
17871
  selected: function (e) {
17805
17872
  if (isUploading) {
17806
17873
  e.cancel = true;
17807
17874
  }
17875
+ if (_this.parent.isServerRendered) {
17876
+ rawFile = e.filesData;
17877
+ }
17808
17878
  },
17809
17879
  failure: function (e) {
17810
17880
  isUploading = false;
@@ -17951,7 +18021,7 @@ var Image = /** @__PURE__ @class */ (function () {
17951
18021
  * @hidden
17952
18022
  * @deprecated
17953
18023
  */
17954
- var ViewSource = /** @__PURE__ @class */ (function () {
18024
+ var ViewSource = /** @class */ (function () {
17955
18025
  /**
17956
18026
  * Constructor for view source module
17957
18027
  */
@@ -18177,7 +18247,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
18177
18247
  /**
18178
18248
  * `Table` module is used to handle table actions.
18179
18249
  */
18180
- var Table = /** @__PURE__ @class */ (function () {
18250
+ var Table = /** @class */ (function () {
18181
18251
  function Table(parent, serviceLocator) {
18182
18252
  this.ensureInsideTableList = true;
18183
18253
  this.pageX = null;
@@ -19276,7 +19346,7 @@ var Table = /** @__PURE__ @class */ (function () {
19276
19346
  /**
19277
19347
  * Dialog Renderer
19278
19348
  */
19279
- var DialogRenderer = /** @__PURE__ @class */ (function () {
19349
+ var DialogRenderer = /** @class */ (function () {
19280
19350
  function DialogRenderer(parent) {
19281
19351
  this.parent = parent;
19282
19352
  }
@@ -19562,7 +19632,7 @@ var backgroundColor = {
19562
19632
  /**
19563
19633
  * Configures the toolbar settings of the RichTextEditor.
19564
19634
  */
19565
- var ToolbarSettings = /** @__PURE__ @class */ (function (_super) {
19635
+ var ToolbarSettings = /** @class */ (function (_super) {
19566
19636
  __extends$5(ToolbarSettings, _super);
19567
19637
  function ToolbarSettings() {
19568
19638
  return _super !== null && _super.apply(this, arguments) || this;
@@ -19587,7 +19657,7 @@ var ToolbarSettings = /** @__PURE__ @class */ (function (_super) {
19587
19657
  /**
19588
19658
  * Configures the image settings of the RichTextEditor.
19589
19659
  */
19590
- var ImageSettings = /** @__PURE__ @class */ (function (_super) {
19660
+ var ImageSettings = /** @class */ (function (_super) {
19591
19661
  __extends$5(ImageSettings, _super);
19592
19662
  function ImageSettings() {
19593
19663
  return _super !== null && _super.apply(this, arguments) || this;
@@ -19633,7 +19703,7 @@ var ImageSettings = /** @__PURE__ @class */ (function (_super) {
19633
19703
  ], ImageSettings.prototype, "resizeByPercent", void 0);
19634
19704
  return ImageSettings;
19635
19705
  }(ChildProperty));
19636
- var TableSettings = /** @__PURE__ @class */ (function (_super) {
19706
+ var TableSettings = /** @class */ (function (_super) {
19637
19707
  __extends$5(TableSettings, _super);
19638
19708
  function TableSettings() {
19639
19709
  return _super !== null && _super.apply(this, arguments) || this;
@@ -19658,7 +19728,7 @@ var TableSettings = /** @__PURE__ @class */ (function (_super) {
19658
19728
  /**
19659
19729
  * Configures the quick toolbar settings of the RichTextEditor.
19660
19730
  */
19661
- var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
19731
+ var QuickToolbarSettings = /** @class */ (function (_super) {
19662
19732
  __extends$5(QuickToolbarSettings, _super);
19663
19733
  function QuickToolbarSettings() {
19664
19734
  return _super !== null && _super.apply(this, arguments) || this;
@@ -19689,7 +19759,7 @@ var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
19689
19759
  /**
19690
19760
  * Configures the Paste Cleanup settings of the RichTextEditor.
19691
19761
  */
19692
- var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
19762
+ var PasteCleanupSettings = /** @class */ (function (_super) {
19693
19763
  __extends$5(PasteCleanupSettings, _super);
19694
19764
  function PasteCleanupSettings() {
19695
19765
  return _super !== null && _super.apply(this, arguments) || this;
@@ -19717,7 +19787,7 @@ var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
19717
19787
  /**
19718
19788
  * Configures the font family settings of the RichTextEditor.
19719
19789
  */
19720
- var FontFamily = /** @__PURE__ @class */ (function (_super) {
19790
+ var FontFamily = /** @class */ (function (_super) {
19721
19791
  __extends$5(FontFamily, _super);
19722
19792
  function FontFamily() {
19723
19793
  return _super !== null && _super.apply(this, arguments) || this;
@@ -19736,7 +19806,7 @@ var FontFamily = /** @__PURE__ @class */ (function (_super) {
19736
19806
  /**
19737
19807
  * Configures the font size settings of the RichTextEditor.
19738
19808
  */
19739
- var FontSize = /** @__PURE__ @class */ (function (_super) {
19809
+ var FontSize = /** @class */ (function (_super) {
19740
19810
  __extends$5(FontSize, _super);
19741
19811
  function FontSize() {
19742
19812
  return _super !== null && _super.apply(this, arguments) || this;
@@ -19755,7 +19825,7 @@ var FontSize = /** @__PURE__ @class */ (function (_super) {
19755
19825
  /**
19756
19826
  * Configures the format settings of the RichTextEditor.
19757
19827
  */
19758
- var Format = /** @__PURE__ @class */ (function (_super) {
19828
+ var Format = /** @class */ (function (_super) {
19759
19829
  __extends$5(Format, _super);
19760
19830
  function Format() {
19761
19831
  return _super !== null && _super.apply(this, arguments) || this;
@@ -19774,7 +19844,7 @@ var Format = /** @__PURE__ @class */ (function (_super) {
19774
19844
  /**
19775
19845
  * Configures the font Color settings of the RichTextEditor.
19776
19846
  */
19777
- var FontColor = /** @__PURE__ @class */ (function (_super) {
19847
+ var FontColor = /** @class */ (function (_super) {
19778
19848
  __extends$5(FontColor, _super);
19779
19849
  function FontColor() {
19780
19850
  return _super !== null && _super.apply(this, arguments) || this;
@@ -19799,7 +19869,7 @@ var FontColor = /** @__PURE__ @class */ (function (_super) {
19799
19869
  /**
19800
19870
  * Configures the background Color settings of the RichTextEditor.
19801
19871
  */
19802
- var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
19872
+ var BackgroundColor = /** @class */ (function (_super) {
19803
19873
  __extends$5(BackgroundColor, _super);
19804
19874
  function BackgroundColor() {
19805
19875
  return _super !== null && _super.apply(this, arguments) || this;
@@ -19844,7 +19914,7 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
19844
19914
  /**
19845
19915
  * Objects used for configuring the iframe resources properties.
19846
19916
  */
19847
- var Resources = /** @__PURE__ @class */ (function (_super) {
19917
+ var Resources = /** @class */ (function (_super) {
19848
19918
  __extends$6(Resources, _super);
19849
19919
  function Resources() {
19850
19920
  return _super !== null && _super.apply(this, arguments) || this;
@@ -19860,7 +19930,7 @@ var Resources = /** @__PURE__ @class */ (function (_super) {
19860
19930
  /**
19861
19931
  * Configures the iframe settings of the RTE.
19862
19932
  */
19863
- var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
19933
+ var IFrameSettings = /** @class */ (function (_super) {
19864
19934
  __extends$6(IFrameSettings, _super);
19865
19935
  function IFrameSettings() {
19866
19936
  return _super !== null && _super.apply(this, arguments) || this;
@@ -19899,7 +19969,7 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
19899
19969
  /**
19900
19970
  * Configures the inlineMode property of the RTE.
19901
19971
  */
19902
- var InlineMode = /** @__PURE__ @class */ (function (_super) {
19972
+ var InlineMode = /** @class */ (function (_super) {
19903
19973
  __extends$7(InlineMode, _super);
19904
19974
  function InlineMode() {
19905
19975
  return _super !== null && _super.apply(this, arguments) || this;
@@ -19953,7 +20023,7 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
19953
20023
  * </script>
19954
20024
  * ```
19955
20025
  */
19956
- var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
20026
+ var RichTextEditor = /** @class */ (function (_super) {
19957
20027
  __extends$4(RichTextEditor, _super);
19958
20028
  function RichTextEditor(options, element) {
19959
20029
  var _this = _super.call(this, options, element) || this;
@@ -20220,6 +20290,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
20220
20290
  this.formatter.enableUndo(this);
20221
20291
  }
20222
20292
  this.setPlaceHolder();
20293
+ this.notify(contentChanged, {});
20223
20294
  };
20224
20295
  RichTextEditor.prototype.htmlPurifier = function (command, value) {
20225
20296
  if (this.editorMode === 'HTML') {
@@ -20530,6 +20601,12 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
20530
20601
  var pastedContentLength = (isNullOrUndefined(e) || isNullOrUndefined(e.clipboardData))
20531
20602
  ? 0 : e.clipboardData.getData('text/plain').length;
20532
20603
  var totalLength = (currentLength - selectionLength) + pastedContentLength;
20604
+ if (_this.editorMode === 'Markdown') {
20605
+ if (!(_this.maxLength === -1 || totalLength < _this.maxLength)) {
20606
+ e.preventDefault();
20607
+ }
20608
+ return;
20609
+ }
20533
20610
  if (!pasteArgs.cancel && _this.inputElement.contentEditable === 'true' &&
20534
20611
  (_this.maxLength === -1 || totalLength < _this.maxLength)) {
20535
20612
  if (!isNullOrUndefined(_this.pasteCleanupModule)) {
@@ -20718,6 +20795,25 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
20718
20795
  }
20719
20796
  return wrapperElm.innerHTML;
20720
20797
  };
20798
+ /**
20799
+ * It shows the inline quick toolbar
20800
+ */
20801
+ RichTextEditor.prototype.showInlineToolbar = function () {
20802
+ if (this.inlineMode.enable) {
20803
+ var currentRange = this.getRange();
20804
+ var targetElm = currentRange.endContainer.nodeName === '#text' ?
20805
+ currentRange.endContainer.parentElement : currentRange.endContainer;
20806
+ var x = currentRange.getClientRects()[0].left;
20807
+ var y = currentRange.getClientRects()[0].top;
20808
+ this.quickToolbarModule.showInlineQTBar(x, y, targetElm);
20809
+ }
20810
+ };
20811
+ /**
20812
+ * It hides the inline quick toolbar
20813
+ */
20814
+ RichTextEditor.prototype.hideInlineToolbar = function () {
20815
+ this.quickToolbarModule.hideInlineQTBar();
20816
+ };
20721
20817
  /**
20722
20818
  * For internal use only - Get the module name.
20723
20819
  * @private
@@ -20877,7 +20973,11 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
20877
20973
  RichTextEditor.prototype.updatePanelValue = function () {
20878
20974
  var value = this.value;
20879
20975
  value = (this.enableHtmlEncode && this.value) ? decode(value) : value;
20976
+ var getTextArea = this.element.querySelector('.e-rte-srctextarea');
20880
20977
  if (value) {
20978
+ if (getTextArea && getTextArea.style.display === 'block') {
20979
+ getTextArea.value = this.value;
20980
+ }
20881
20981
  if (this.valueContainer) {
20882
20982
  this.valueContainer.value = (this.enableHtmlEncode) ? this.value : value;
20883
20983
  }
@@ -20890,6 +20990,9 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
20890
20990
  }
20891
20991
  }
20892
20992
  else {
20993
+ if (getTextArea && getTextArea.style.display === 'block') {
20994
+ getTextArea.value = '';
20995
+ }
20893
20996
  if (this.editorMode === 'HTML') {
20894
20997
  this.inputElement.innerHTML = '<p><br/></p>';
20895
20998
  }
@@ -21369,8 +21472,8 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
21369
21472
  }
21370
21473
  this.preventDefaultResize(e);
21371
21474
  this.trigger('focus', { event: e, isInteracted: Object.keys(e).length === 0 ? false : true });
21372
- if (!isNullOrUndefined(this.saveInterval) && this.saveInterval > 0) {
21373
- this.timeInterval = setInterval(this.updateIntervalValue.bind(this), this.saveInterval);
21475
+ if (!isNullOrUndefined(this.saveInterval) && this.saveInterval > 0 && !this.autoSaveOnIdle) {
21476
+ this.timeInterval = setInterval(this.updateValueOnIdle.bind(this), this.saveInterval);
21374
21477
  }
21375
21478
  EventHandler.add(document, 'mousedown', this.onDocumentClick, this);
21376
21479
  }
@@ -21398,11 +21501,15 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
21398
21501
  }
21399
21502
  return value;
21400
21503
  };
21401
- RichTextEditor.prototype.updateIntervalValue = function () {
21504
+ RichTextEditor.prototype.updateValueOnIdle = function () {
21402
21505
  this.setProperties({ value: this.getUpdatedValue() }, true);
21403
21506
  this.valueContainer.value = this.value;
21404
21507
  this.invokeChangeEvent();
21405
21508
  };
21509
+ RichTextEditor.prototype.updateIntervalValue = function () {
21510
+ clearTimeout(this.idleInterval);
21511
+ this.idleInterval = setTimeout(this.updateValueOnIdle.bind(this), 0);
21512
+ };
21406
21513
  RichTextEditor.prototype.onDocumentClick = function (e) {
21407
21514
  var target = e.target;
21408
21515
  var rteElement = closest(target, '.' + CLS_RTE);
@@ -21453,6 +21560,19 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
21453
21560
  this.isRTE = true;
21454
21561
  }
21455
21562
  };
21563
+ /**
21564
+ * invokeChangeEvent method
21565
+ * @hidden
21566
+ * @deprecated
21567
+ */
21568
+ RichTextEditor.prototype.contentChanged = function () {
21569
+ if (this.autoSaveOnIdle) {
21570
+ if (!isNullOrUndefined(this.saveInterval)) {
21571
+ clearTimeout(this.timeInterval);
21572
+ this.timeInterval = setTimeout(this.updateIntervalValue.bind(this), this.saveInterval);
21573
+ }
21574
+ }
21575
+ };
21456
21576
  /**
21457
21577
  * invokeChangeEvent method
21458
21578
  * @hidden
@@ -21554,6 +21674,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
21554
21674
  RichTextEditor.prototype.wireEvents = function () {
21555
21675
  this.element.addEventListener('focusin', this.onFocusHandler, true);
21556
21676
  this.element.addEventListener('focusout', this.onBlurHandler, true);
21677
+ this.on(contentChanged, this.contentChanged, this);
21557
21678
  if (this.readonly && this.enabled) {
21558
21679
  return;
21559
21680
  }
@@ -21628,6 +21749,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
21628
21749
  RichTextEditor.prototype.unWireEvents = function () {
21629
21750
  this.element.removeEventListener('focusin', this.onFocusHandler, true);
21630
21751
  this.element.removeEventListener('focusout', this.onBlurHandler, true);
21752
+ this.off(contentChanged, this.contentChanged);
21631
21753
  if (this.readonly && this.enabled) {
21632
21754
  return;
21633
21755
  }
@@ -21697,6 +21819,9 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
21697
21819
  __decorate$1([
21698
21820
  Property(null)
21699
21821
  ], RichTextEditor.prototype, "placeholder", void 0);
21822
+ __decorate$1([
21823
+ Property(false)
21824
+ ], RichTextEditor.prototype, "autoSaveOnIdle", void 0);
21700
21825
  __decorate$1([
21701
21826
  Property(false)
21702
21827
  ], RichTextEditor.prototype, "readonly", void 0);
@@ -21897,5 +22022,5 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
21897
22022
  * Rich Text Editor component exported items
21898
22023
  */
21899
22024
 
21900
- export { Toolbar$1 as Toolbar, KeyboardEvents$1 as KeyboardEvents, BaseToolbar, BaseQuickToolbar, QuickToolbar, Count, ColorPickerInput, MarkdownToolbarStatus, ExecCommandCallBack, ToolbarAction, MarkdownEditor, HtmlEditor, PasteCleanup, Resize, DropDownButtons, FullScreen, setAttributes, HtmlToolbarStatus, XhtmlValidation, HTMLFormatter, Formatter, MarkdownFormatter, ContentRender, Render, ToolbarRenderer, Link, Image, ViewSource, Table, DialogRenderer, IframeContentRender, MarkdownRender, PopupRenderer, RichTextEditor, RenderType, ToolbarType, executeGroup, created, destroyed, load, initialLoad, initialEnd, iframeMouseDown, destroy, toolbarClick, toolbarRefresh, refreshBegin, toolbarUpdated, bindOnEnd, renderColorPicker, htmlToolbarClick, markdownToolbarClick, destroyColorPicker, modelChanged, keyUp, keyDown, mouseUp, toolbarCreated, toolbarRenderComplete, enableFullScreen, disableFullScreen, dropDownSelect, beforeDropDownItemRender, execCommandCallBack, imageToolbarAction, linkToolbarAction, resizeStart, onResize, resizeStop, undo, redo, insertLink, unLink, editLink, openLink, actionBegin, actionComplete, toolbarStatusUpdate, actionSuccess, updateToolbarItem, insertImage, insertCompleted, imageLeft, imageRight, imageCenter, imageBreak, imageInline, imageLink, imageAlt, imageDelete, imageCaption, imageSize, sourceCode, updateSource, toolbarOpen, beforeDropDownOpen, selectionSave, selectionRestore, expandPopupClick, count, contentFocus, contentBlur, mouseDown, sourceCodeMouseDown, editAreaClick, scroll, contentscroll, colorPickerChanged, tableColorPickerChanged, focusChange, selectAll$1 as selectAll, selectRange, getSelectedHtml, renderInlineToolbar, paste, imgModule, rtlMode, createTable, docClick, tableToolbarAction, checkUndo, readOnlyMode, pasteClean, beforeDialogOpen, dialogOpen, beforeDialogClose, dialogClose, beforeQuickToolbarOpen, quickToolbarOpen, quickToolbarClose, popupHide, imageSelected, imageUploading, imageUploadSuccess, imageUploadFailed, imageRemoving, afterImageDelete, drop, xhtmlValidation, CLS_RTE, CLS_RTL, CLS_CONTENT, CLS_DISABLED, CLS_SCRIPT_SHEET, CLS_STYLE_SHEET, CLS_TOOLBAR, CLS_TB_FIXED, CLS_TB_FLOAT, CLS_TB_ABS_FLOAT, CLS_INLINE, CLS_TB_INLINE, CLS_RTE_EXPAND_TB, CLS_FULL_SCREEN, CLS_QUICK_TB, CLS_POP, CLS_QUICK_POP, CLS_QUICK_DROPDOWN, CLS_IMAGE_POP, CLS_INLINE_POP, CLS_INLINE_DROPDOWN, CLS_DROPDOWN_POPUP, CLS_DROPDOWN_ICONS, CLS_DROPDOWN_ITEMS, CLS_DROPDOWN_BTN, CLS_RTE_CONTENT, CLS_TB_ITEM, CLS_TB_EXTENDED, CLS_TB_WRAP, CLS_POPUP, CLS_SEPARATOR, CLS_MINIMIZE, CLS_MAXIMIZE, CLS_BACK, CLS_SHOW, CLS_HIDE, CLS_VISIBLE, CLS_FOCUS, CLS_RM_WHITE_SPACE, CLS_IMGRIGHT, CLS_IMGLEFT, CLS_IMGCENTER, CLS_IMGBREAK, CLS_CAPTION, CLS_RTE_CAPTION, CLS_CAPINLINE, CLS_IMGINLINE, CLS_COUNT, CLS_WARNING, CLS_ERROR, CLS_ICONS, CLS_ACTIVE, CLS_EXPAND_OPEN, CLS_RTE_ELEMENTS, CLS_TB_BTN, CLS_HR_SEPARATOR, CLS_TB_IOS_FIX, CLS_TB_STATIC, CLS_FORMATS_TB_BTN, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_FONT_COLOR_TARGET, CLS_BACKGROUND_COLOR_TARGET, CLS_COLOR_CONTENT, CLS_FONT_COLOR_DROPDOWN, CLS_BACKGROUND_COLOR_DROPDOWN, CLS_COLOR_PALETTE, CLS_FONT_COLOR_PICKER, CLS_BACKGROUND_COLOR_PICKER, CLS_RTE_READONLY, CLS_TABLE_SEL, CLS_TB_DASH_BOR, CLS_TB_ALT_BOR, CLS_TB_COL_RES, CLS_TB_ROW_RES, CLS_TB_BOX_RES, CLS_RTE_HIDDEN, CLS_RTE_PASTE_KEEP_FORMAT, CLS_RTE_PASTE_REMOVE_FORMAT, CLS_RTE_PASTE_PLAIN_FORMAT, CLS_RTE_PASTE_OK, CLS_RTE_PASTE_CANCEL, CLS_RTE_DIALOG_MIN_HEIGHT, CLS_RTE_RES_HANDLE, CLS_RTE_RES_EAST, CLS_RTE_IMAGE, CLS_RESIZE, CLS_IMG_FOCUS, CLS_RTE_DRAG_IMAGE, CLS_RTE_UPLOAD_POPUP, CLS_POPUP_OPEN, CLS_IMG_RESIZE, CLS_DROPAREA, CLS_IMG_INNER, CLS_UPLOAD_FILES, CLS_RTE_DIALOG_UPLOAD, CLS_RTE_RES_CNT, CLS_CUSTOM_TILE, CLS_NOCOLOR_ITEM, CLS_TABLE, CLS_TABLE_BORDER, CLS_RTE_TABLE_RESIZE, getIndex, hasClass, getDropDownValue, isIDevice, getFormattedFontSize, pageYOffset, getTooltipText, setToolbarStatus, getCollection, getTBarItemsIndex, updateUndoRedoStatus, dispatchEvent, parseHtml, getTextNodesUnder, toObjectLowerCase, getEditValue, updateTextNode, isEditableValueEmpty, decode, sanitizeHelper, convertToBlob, ServiceLocator, RendererFactory, EditorManager, IMAGE, TABLE, LINK, INSERT_ROW, INSERT_COLUMN, DELETEROW, DELETECOLUMN, REMOVETABLE, TABLEHEADER, TABLE_VERTICAL_ALIGN, ALIGNMENT_TYPE, INDENT_TYPE, DEFAULT_TAG, BLOCK_TAGS, IGNORE_BLOCK_TAGS, TABLE_BLOCK_TAGS, SELECTION_TYPE, INSERTHTML_TYPE, INSERT_TEXT_TYPE, CLEAR_TYPE, CLASS_IMAGE_RIGHT, CLASS_IMAGE_LEFT, CLASS_IMAGE_CENTER, CLASS_IMAGE_BREAK, CLASS_CAPTION, CLASS_RTE_CAPTION, CLASS_CAPTION_INLINE, CLASS_IMAGE_INLINE, Lists, markerClassName, DOMNode, Alignments, Indents, Formats, LinkCommand, InsertMethods, InsertTextExec, InsertHtmlExec, InsertHtml, IsFormatted, MsWordPaste, NodeCutter, ImageCommand, SelectionCommands, SelectionBasedExec, ClearFormatExec, UndoRedoManager, TableCommand, statusCollection, ToolbarStatus, NodeSelection, MarkdownParser, LISTS_COMMAND, selectionCommand, LINK_COMMAND, CLEAR_COMMAND, MD_TABLE, ClearFormat, MDLists, MDFormats, MarkdownSelection, UndoRedoCommands, MDSelectionFormats, MDLink, MDTable, markdownFormatTags, markdownSelectionTags, markdownListsTags, htmlKeyConfig, markdownKeyConfig, pasteCleanupGroupingTags, listConversionFilters, selfClosingTags, KEY_DOWN, ACTION, FORMAT_TYPE, KEY_DOWN_HANDLER, LIST_TYPE, KEY_UP_HANDLER, KEY_UP, MODEL_CHANGED_PLUGIN, MODEL_CHANGED, MS_WORD_CLEANUP_PLUGIN, MS_WORD_CLEANUP };
22025
+ export { Toolbar$1 as Toolbar, KeyboardEvents$1 as KeyboardEvents, BaseToolbar, BaseQuickToolbar, QuickToolbar, Count, ColorPickerInput, MarkdownToolbarStatus, ExecCommandCallBack, ToolbarAction, MarkdownEditor, HtmlEditor, PasteCleanup, Resize, DropDownButtons, FullScreen, setAttributes, HtmlToolbarStatus, XhtmlValidation, HTMLFormatter, Formatter, MarkdownFormatter, ContentRender, Render, ToolbarRenderer, Link, Image, ViewSource, Table, DialogRenderer, IframeContentRender, MarkdownRender, PopupRenderer, RichTextEditor, RenderType, ToolbarType, executeGroup, created, destroyed, load, initialLoad, contentChanged, initialEnd, iframeMouseDown, destroy, toolbarClick, toolbarRefresh, refreshBegin, toolbarUpdated, bindOnEnd, renderColorPicker, htmlToolbarClick, markdownToolbarClick, destroyColorPicker, modelChanged, keyUp, keyDown, mouseUp, toolbarCreated, toolbarRenderComplete, enableFullScreen, disableFullScreen, dropDownSelect, beforeDropDownItemRender, execCommandCallBack, imageToolbarAction, linkToolbarAction, resizeStart, onResize, resizeStop, undo, redo, insertLink, unLink, editLink, openLink, actionBegin, actionComplete, toolbarStatusUpdate, actionSuccess, updateToolbarItem, insertImage, insertCompleted, imageLeft, imageRight, imageCenter, imageBreak, imageInline, imageLink, imageAlt, imageDelete, imageCaption, imageSize, sourceCode, updateSource, toolbarOpen, beforeDropDownOpen, selectionSave, selectionRestore, expandPopupClick, count, contentFocus, contentBlur, mouseDown, sourceCodeMouseDown, editAreaClick, scroll, contentscroll, colorPickerChanged, tableColorPickerChanged, focusChange, selectAll$1 as selectAll, selectRange, getSelectedHtml, renderInlineToolbar, paste, imgModule, rtlMode, createTable, docClick, tableToolbarAction, checkUndo, readOnlyMode, pasteClean, beforeDialogOpen, dialogOpen, beforeDialogClose, dialogClose, beforeQuickToolbarOpen, quickToolbarOpen, quickToolbarClose, popupHide, imageSelected, imageUploading, imageUploadSuccess, imageUploadFailed, imageRemoving, afterImageDelete, drop, xhtmlValidation, CLS_RTE, CLS_RTL, CLS_CONTENT, CLS_DISABLED, CLS_SCRIPT_SHEET, CLS_STYLE_SHEET, CLS_TOOLBAR, CLS_TB_FIXED, CLS_TB_FLOAT, CLS_TB_ABS_FLOAT, CLS_INLINE, CLS_TB_INLINE, CLS_RTE_EXPAND_TB, CLS_FULL_SCREEN, CLS_QUICK_TB, CLS_POP, CLS_QUICK_POP, CLS_QUICK_DROPDOWN, CLS_IMAGE_POP, CLS_INLINE_POP, CLS_INLINE_DROPDOWN, CLS_DROPDOWN_POPUP, CLS_DROPDOWN_ICONS, CLS_DROPDOWN_ITEMS, CLS_DROPDOWN_BTN, CLS_RTE_CONTENT, CLS_TB_ITEM, CLS_TB_EXTENDED, CLS_TB_WRAP, CLS_POPUP, CLS_SEPARATOR, CLS_MINIMIZE, CLS_MAXIMIZE, CLS_BACK, CLS_SHOW, CLS_HIDE, CLS_VISIBLE, CLS_FOCUS, CLS_RM_WHITE_SPACE, CLS_IMGRIGHT, CLS_IMGLEFT, CLS_IMGCENTER, CLS_IMGBREAK, CLS_CAPTION, CLS_RTE_CAPTION, CLS_CAPINLINE, CLS_IMGINLINE, CLS_COUNT, CLS_WARNING, CLS_ERROR, CLS_ICONS, CLS_ACTIVE, CLS_EXPAND_OPEN, CLS_RTE_ELEMENTS, CLS_TB_BTN, CLS_HR_SEPARATOR, CLS_TB_IOS_FIX, CLS_TB_STATIC, CLS_FORMATS_TB_BTN, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_FONT_COLOR_TARGET, CLS_BACKGROUND_COLOR_TARGET, CLS_COLOR_CONTENT, CLS_FONT_COLOR_DROPDOWN, CLS_BACKGROUND_COLOR_DROPDOWN, CLS_COLOR_PALETTE, CLS_FONT_COLOR_PICKER, CLS_BACKGROUND_COLOR_PICKER, CLS_RTE_READONLY, CLS_TABLE_SEL, CLS_TB_DASH_BOR, CLS_TB_ALT_BOR, CLS_TB_COL_RES, CLS_TB_ROW_RES, CLS_TB_BOX_RES, CLS_RTE_HIDDEN, CLS_RTE_PASTE_KEEP_FORMAT, CLS_RTE_PASTE_REMOVE_FORMAT, CLS_RTE_PASTE_PLAIN_FORMAT, CLS_RTE_PASTE_OK, CLS_RTE_PASTE_CANCEL, CLS_RTE_DIALOG_MIN_HEIGHT, CLS_RTE_RES_HANDLE, CLS_RTE_RES_EAST, CLS_RTE_IMAGE, CLS_RESIZE, CLS_IMG_FOCUS, CLS_RTE_DRAG_IMAGE, CLS_RTE_UPLOAD_POPUP, CLS_POPUP_OPEN, CLS_IMG_RESIZE, CLS_DROPAREA, CLS_IMG_INNER, CLS_UPLOAD_FILES, CLS_RTE_DIALOG_UPLOAD, CLS_RTE_RES_CNT, CLS_CUSTOM_TILE, CLS_NOCOLOR_ITEM, CLS_TABLE, CLS_TABLE_BORDER, CLS_RTE_TABLE_RESIZE, getIndex, hasClass, getDropDownValue, isIDevice, getFormattedFontSize, pageYOffset, getTooltipText, setToolbarStatus, getCollection, getTBarItemsIndex, updateUndoRedoStatus, dispatchEvent, parseHtml, getTextNodesUnder, toObjectLowerCase, getEditValue, updateTextNode, isEditableValueEmpty, decode, sanitizeHelper, convertToBlob, ServiceLocator, RendererFactory, EditorManager, IMAGE, TABLE, LINK, INSERT_ROW, INSERT_COLUMN, DELETEROW, DELETECOLUMN, REMOVETABLE, TABLEHEADER, TABLE_VERTICAL_ALIGN, ALIGNMENT_TYPE, INDENT_TYPE, DEFAULT_TAG, BLOCK_TAGS, IGNORE_BLOCK_TAGS, TABLE_BLOCK_TAGS, SELECTION_TYPE, INSERTHTML_TYPE, INSERT_TEXT_TYPE, CLEAR_TYPE, CLASS_IMAGE_RIGHT, CLASS_IMAGE_LEFT, CLASS_IMAGE_CENTER, CLASS_IMAGE_BREAK, CLASS_CAPTION, CLASS_RTE_CAPTION, CLASS_CAPTION_INLINE, CLASS_IMAGE_INLINE, Lists, markerClassName, DOMNode, Alignments, Indents, Formats, LinkCommand, InsertMethods, InsertTextExec, InsertHtmlExec, InsertHtml, IsFormatted, MsWordPaste, NodeCutter, ImageCommand, SelectionCommands, SelectionBasedExec, ClearFormatExec, UndoRedoManager, TableCommand, statusCollection, ToolbarStatus, NodeSelection, MarkdownParser, LISTS_COMMAND, selectionCommand, LINK_COMMAND, CLEAR_COMMAND, MD_TABLE, ClearFormat, MDLists, MDFormats, MarkdownSelection, UndoRedoCommands, MDSelectionFormats, MDLink, MDTable, markdownFormatTags, markdownSelectionTags, markdownListsTags, htmlKeyConfig, markdownKeyConfig, pasteCleanupGroupingTags, listConversionFilters, selfClosingTags, KEY_DOWN, ACTION, FORMAT_TYPE, KEY_DOWN_HANDLER, LIST_TYPE, KEY_UP_HANDLER, KEY_UP, MODEL_CHANGED_PLUGIN, MODEL_CHANGED, MS_WORD_CLEANUP_PLUGIN, MS_WORD_CLEANUP };
21901
22026
  //# sourceMappingURL=ej2-richtexteditor.es5.js.map