@syncfusion/ej2-richtexteditor 20.2.50 → 20.3.47

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 (150) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/ej2-richtexteditor.min.js +10 -0
  3. package/dist/ej2-richtexteditor.umd.min.js +2 -2
  4. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-richtexteditor.es2015.js +3799 -402
  6. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es5.js +3759 -333
  8. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  9. package/dist/global/ej2-richtexteditor.min.js +2 -2
  10. package/dist/global/ej2-richtexteditor.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +13 -13
  13. package/src/common/config.js +2 -0
  14. package/src/common/types.d.ts +4 -0
  15. package/src/editor-manager/base/classes.d.ts +16 -0
  16. package/src/editor-manager/base/classes.js +16 -0
  17. package/src/editor-manager/base/constant.d.ts +2 -0
  18. package/src/editor-manager/base/constant.js +2 -0
  19. package/src/editor-manager/base/editor-manager.d.ts +4 -0
  20. package/src/editor-manager/base/editor-manager.js +14 -0
  21. package/src/editor-manager/base/interface.d.ts +2 -0
  22. package/src/editor-manager/plugin/audio.d.ts +32 -0
  23. package/src/editor-manager/plugin/audio.js +133 -0
  24. package/src/editor-manager/plugin/dom-node.js +1 -1
  25. package/src/editor-manager/plugin/image.js +1 -1
  26. package/src/editor-manager/plugin/inserthtml.js +1 -1
  27. package/src/editor-manager/plugin/lists.js +10 -8
  28. package/src/editor-manager/plugin/ms-word-clean-up.js +18 -18
  29. package/src/editor-manager/plugin/nodecutter.d.ts +1 -1
  30. package/src/editor-manager/plugin/nodecutter.js +7 -5
  31. package/src/editor-manager/plugin/selection-commands.js +3 -2
  32. package/src/editor-manager/plugin/table.js +3 -2
  33. package/src/editor-manager/plugin/undo.js +2 -1
  34. package/src/editor-manager/plugin/video.d.ts +34 -0
  35. package/src/editor-manager/plugin/video.js +249 -0
  36. package/src/editor-manager/plugin.d.ts +2 -0
  37. package/src/editor-manager/plugin.js +2 -0
  38. package/src/global.js +1 -1
  39. package/src/rich-text-editor/actions/base-quick-toolbar.js +3 -1
  40. package/src/rich-text-editor/actions/base-toolbar.js +1 -1
  41. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  42. package/src/rich-text-editor/actions/dropdown-buttons.js +14 -11
  43. package/src/rich-text-editor/actions/enter-key.d.ts +1 -0
  44. package/src/rich-text-editor/actions/enter-key.js +157 -103
  45. package/src/rich-text-editor/actions/html-editor.d.ts +1 -1
  46. package/src/rich-text-editor/actions/html-editor.js +57 -9
  47. package/src/rich-text-editor/actions/paste-clean-up.js +2 -1
  48. package/src/rich-text-editor/actions/quick-toolbar.d.ts +2 -0
  49. package/src/rich-text-editor/actions/quick-toolbar.js +52 -6
  50. package/src/rich-text-editor/actions/resize.js +11 -1
  51. package/src/rich-text-editor/actions/toolbar-action.js +2 -1
  52. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  53. package/src/rich-text-editor/audio.d.ts +4 -0
  54. package/src/rich-text-editor/audio.js +4 -0
  55. package/src/rich-text-editor/base/classes.d.ts +50 -0
  56. package/src/rich-text-editor/base/classes.js +50 -0
  57. package/src/rich-text-editor/base/constant.d.ts +69 -14
  58. package/src/rich-text-editor/base/constant.js +71 -16
  59. package/src/rich-text-editor/base/enum.d.ts +10 -2
  60. package/src/rich-text-editor/base/enum.js +10 -2
  61. package/src/rich-text-editor/base/interface.d.ts +86 -2
  62. package/src/rich-text-editor/base/interface.js +8 -0
  63. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +130 -29
  64. package/src/rich-text-editor/base/rich-text-editor.d.ts +150 -30
  65. package/src/rich-text-editor/base/rich-text-editor.js +196 -6
  66. package/src/rich-text-editor/formatter/formatter.js +7 -2
  67. package/src/rich-text-editor/models/default-locale.js +46 -4
  68. package/src/rich-text-editor/models/items.d.ts +3 -0
  69. package/src/rich-text-editor/models/items.js +100 -3
  70. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +169 -1
  71. package/src/rich-text-editor/models/toolbar-settings.d.ts +143 -1
  72. package/src/rich-text-editor/models/toolbar-settings.js +88 -0
  73. package/src/rich-text-editor/renderer/audio-module.d.ts +76 -0
  74. package/src/rich-text-editor/renderer/audio-module.js +875 -0
  75. package/src/rich-text-editor/renderer/iframe-content-renderer.js +1 -1
  76. package/src/rich-text-editor/renderer/image-module.js +9 -6
  77. package/src/rich-text-editor/renderer/link-module.js +2 -1
  78. package/src/rich-text-editor/renderer/table-module.d.ts +2 -0
  79. package/src/rich-text-editor/renderer/table-module.js +32 -7
  80. package/src/rich-text-editor/renderer/video-module.d.ts +105 -0
  81. package/src/rich-text-editor/renderer/video-module.js +1422 -0
  82. package/src/rich-text-editor/renderer/view-source.js +1 -0
  83. package/src/rich-text-editor/renderer.d.ts +2 -0
  84. package/src/rich-text-editor/renderer.js +2 -0
  85. package/src/rich-text-editor/video.d.ts +4 -0
  86. package/src/rich-text-editor/video.js +4 -0
  87. package/styles/_all.scss +1 -2
  88. package/styles/bootstrap-dark.css +220 -70
  89. package/styles/bootstrap.css +220 -70
  90. package/styles/bootstrap4.css +220 -70
  91. package/styles/bootstrap5-dark.css +220 -70
  92. package/styles/bootstrap5.css +220 -70
  93. package/styles/fabric-dark.css +220 -70
  94. package/styles/fabric.css +222 -72
  95. package/styles/fluent-dark.css +222 -72
  96. package/styles/fluent.css +222 -72
  97. package/styles/highcontrast-light.css +222 -72
  98. package/styles/highcontrast.css +222 -72
  99. package/styles/material-dark.css +220 -70
  100. package/styles/material.css +220 -70
  101. package/styles/rich-text-editor/_all.scss +1 -1
  102. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +3 -0
  103. package/styles/rich-text-editor/_bootstrap-definition.scss +2 -1
  104. package/styles/rich-text-editor/_bootstrap4-definition.scss +5 -3
  105. package/styles/rich-text-editor/_bootstrap5-definition.scss +8 -3
  106. package/styles/rich-text-editor/_fabric-dark-definition.scss +3 -0
  107. package/styles/rich-text-editor/_fabric-definition.scss +2 -0
  108. package/styles/rich-text-editor/_fluent-definition.scss +8 -3
  109. package/styles/rich-text-editor/_fusionnew-definition.scss +8 -3
  110. package/styles/rich-text-editor/_highcontrast-definition.scss +2 -0
  111. package/styles/rich-text-editor/_highcontrast-light-definition.scss +2 -0
  112. package/styles/rich-text-editor/_layout.scss +116 -74
  113. package/styles/rich-text-editor/_material-dark-definition.scss +3 -0
  114. package/styles/rich-text-editor/_material-definition.scss +2 -0
  115. package/styles/rich-text-editor/_material3-definition.scss +8 -3
  116. package/styles/rich-text-editor/_tailwind-definition.scss +7 -2
  117. package/styles/rich-text-editor/_theme.scss +74 -15
  118. package/styles/rich-text-editor/bootstrap-dark.css +220 -70
  119. package/styles/rich-text-editor/bootstrap.css +220 -70
  120. package/styles/rich-text-editor/bootstrap4.css +220 -70
  121. package/styles/rich-text-editor/bootstrap5-dark.css +220 -70
  122. package/styles/rich-text-editor/bootstrap5.css +220 -70
  123. package/styles/rich-text-editor/fabric-dark.css +220 -70
  124. package/styles/rich-text-editor/fabric.css +222 -72
  125. package/styles/rich-text-editor/fluent-dark.css +222 -72
  126. package/styles/rich-text-editor/fluent.css +222 -72
  127. package/styles/rich-text-editor/highcontrast-light.css +222 -72
  128. package/styles/rich-text-editor/highcontrast.css +222 -72
  129. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +20 -4
  130. package/styles/rich-text-editor/icons/_bootstrap.scss +20 -4
  131. package/styles/rich-text-editor/icons/_bootstrap4.scss +20 -4
  132. package/styles/rich-text-editor/icons/_bootstrap5.scss +20 -4
  133. package/styles/rich-text-editor/icons/_fabric-dark.scss +20 -4
  134. package/styles/rich-text-editor/icons/_fabric.scss +20 -4
  135. package/styles/rich-text-editor/icons/_fluent.scss +20 -4
  136. package/styles/rich-text-editor/icons/_fusionnew.scss +20 -4
  137. package/styles/rich-text-editor/icons/_highcontrast-light.scss +20 -4
  138. package/styles/rich-text-editor/icons/_highcontrast.scss +20 -4
  139. package/styles/rich-text-editor/icons/_material-dark.scss +20 -4
  140. package/styles/rich-text-editor/icons/_material.scss +20 -4
  141. package/styles/rich-text-editor/icons/_material3.scss +20 -4
  142. package/styles/rich-text-editor/icons/_tailwind.scss +20 -4
  143. package/styles/rich-text-editor/material-dark.css +220 -70
  144. package/styles/rich-text-editor/material.css +220 -70
  145. package/styles/rich-text-editor/tailwind-dark.css +220 -70
  146. package/styles/rich-text-editor/tailwind.css +220 -70
  147. package/styles/tailwind-dark.css +220 -70
  148. package/styles/tailwind.css +220 -70
  149. package/.eslintrc.json +0 -244
  150. package/tslint.json +0 -111
@@ -82,12 +82,12 @@ var QuickToolbar = /** @class */ (function () {
82
82
  this.parent.isRTE = true;
83
83
  };
84
84
  QuickToolbar.prototype.keyUpQT = function (e) {
85
- if (e.which == 27) {
85
+ if (e.which === 27) {
86
86
  this.hideQuickToolbars();
87
87
  }
88
88
  };
89
89
  QuickToolbar.prototype.renderQuickToolbars = function () {
90
- if (this.linkQTBar || this.imageQTBar || this.textQTBar || this.tableQTBar) {
90
+ if (this.linkQTBar || this.imageQTBar || this.audioQTBar || this.videoQTBar || this.textQTBar || this.tableQTBar) {
91
91
  return;
92
92
  }
93
93
  this.linkQTBar = this.createQTBar('Link', 'Scrollable', this.parent.quickToolbarSettings.link, RenderType.LinkToolbar);
@@ -96,6 +96,10 @@ var QuickToolbar = /** @class */ (function () {
96
96
  this.renderFactory.addRenderer(RenderType.TextToolbar, this.textQTBar);
97
97
  this.imageQTBar = this.createQTBar('Image', 'MultiRow', this.parent.quickToolbarSettings.image, RenderType.ImageToolbar);
98
98
  this.renderFactory.addRenderer(RenderType.ImageToolbar, this.imageQTBar);
99
+ this.audioQTBar = this.createQTBar('Audio', 'MultiRow', this.parent.quickToolbarSettings.audio, RenderType.AudioToolbar);
100
+ this.renderFactory.addRenderer(RenderType.AudioToolbar, this.audioQTBar);
101
+ this.videoQTBar = this.createQTBar('Video', 'MultiRow', this.parent.quickToolbarSettings.video, RenderType.VideoToolbar);
102
+ this.renderFactory.addRenderer(RenderType.VideoToolbar, this.videoQTBar);
99
103
  this.tableQTBar = this.createQTBar('Table', 'MultiRow', this.parent.quickToolbarSettings.table, RenderType.TableToolbar);
100
104
  this.renderFactory.addRenderer(RenderType.TableToolbar, this.tableQTBar);
101
105
  if (this.linkQTBar) {
@@ -106,6 +110,14 @@ var QuickToolbar = /** @class */ (function () {
106
110
  EventHandler.add(this.imageQTBar.element, 'mousedown', this.onMouseDown, this);
107
111
  EventHandler.add(this.imageQTBar.element, 'keyup', this.keyUpQT, this);
108
112
  }
113
+ if (this.audioQTBar) {
114
+ EventHandler.add(this.audioQTBar.element, 'mousedown', this.onMouseDown, this);
115
+ EventHandler.add(this.audioQTBar.element, 'keyup', this.keyUpQT, this);
116
+ }
117
+ if (this.videoQTBar) {
118
+ EventHandler.add(this.videoQTBar.element, 'mousedown', this.onMouseDown, this);
119
+ EventHandler.add(this.videoQTBar.element, 'keyup', this.keyUpQT, this);
120
+ }
109
121
  if (this.textQTBar) {
110
122
  EventHandler.add(this.textQTBar.element, 'mousedown', this.onMouseDown, this);
111
123
  EventHandler.add(this.textQTBar.element, 'keyup', this.keyUpQT, this);
@@ -135,7 +147,7 @@ var QuickToolbar = /** @class */ (function () {
135
147
 
136
148
  */
137
149
  QuickToolbar.prototype.showInlineQTBar = function (x, y, target) {
138
- if (this.parent.readonly || target.tagName.toLowerCase() === "img") {
150
+ if (this.parent.readonly || target.tagName.toLowerCase() === 'img') {
139
151
  return;
140
152
  }
141
153
  this.inlineQTBar.showPopup(x, y, target);
@@ -169,10 +181,16 @@ var QuickToolbar = /** @class */ (function () {
169
181
  if (this.imageQTBar && !hasClass(this.imageQTBar.element, 'e-popup-close') && document.body.contains(this.imageQTBar.element)) {
170
182
  this.imageQTBar.hidePopup();
171
183
  }
184
+ if (this.audioQTBar && !hasClass(this.audioQTBar.element, 'e-popup-close') && document.body.contains(this.audioQTBar.element)) {
185
+ this.audioQTBar.hidePopup();
186
+ }
187
+ if (this.videoQTBar && !hasClass(this.videoQTBar.element, 'e-popup-close') && document.body.contains(this.videoQTBar.element)) {
188
+ this.videoQTBar.hidePopup();
189
+ }
172
190
  if (this.tableQTBar && !hasClass(this.tableQTBar.element, 'e-popup-close') && document.body.contains(this.tableQTBar.element)) {
173
191
  this.tableQTBar.hidePopup();
174
192
  }
175
- if (this.parent.inlineMode.enable && (!Browser.isDevice || isIDevice())) {
193
+ if (!isNOU(this.parent) && this.parent.inlineMode.enable && (!Browser.isDevice || isIDevice())) {
176
194
  this.hideInlineQTBar();
177
195
  }
178
196
  };
@@ -289,6 +307,16 @@ var QuickToolbar = /** @class */ (function () {
289
307
  EventHandler.remove(this.imageQTBar.element, 'keyup', this.keyUpQT);
290
308
  this.imageQTBar.destroy();
291
309
  }
310
+ if (this.audioQTBar) {
311
+ EventHandler.remove(this.audioQTBar.element, 'mousedown', this.onMouseDown);
312
+ EventHandler.remove(this.audioQTBar.element, 'keyup', this.keyUpQT);
313
+ this.audioQTBar.destroy();
314
+ }
315
+ if (this.videoQTBar) {
316
+ EventHandler.remove(this.videoQTBar.element, 'mousedown', this.onMouseDown);
317
+ EventHandler.remove(this.videoQTBar.element, 'keyup', this.keyUpQT);
318
+ this.videoQTBar.destroy();
319
+ }
292
320
  if (this.tableQTBar) {
293
321
  EventHandler.remove(this.tableQTBar.element, 'mousedown', this.onMouseDown);
294
322
  EventHandler.remove(this.tableQTBar.element, 'keyup', this.keyUpQT);
@@ -314,6 +342,7 @@ var QuickToolbar = /** @class */ (function () {
314
342
  this.parent.on(events.keyUp, this.keyUpHandler, this);
315
343
  this.parent.on(events.sourceCodeMouseDown, this.mouseUpHandler, this);
316
344
  this.parent.on(events.renderInlineToolbar, this.renderInlineQuickToolbar, this);
345
+ this.parent.on(events.moduleDestroy, this.moduleDestroy, this);
317
346
  };
318
347
  QuickToolbar.prototype.unWireInlineQTBarEvents = function () {
319
348
  this.parent.off(events.mouseUp, this.mouseUpHandler);
@@ -322,6 +351,7 @@ var QuickToolbar = /** @class */ (function () {
322
351
  this.parent.off(events.keyUp, this.keyUpHandler);
323
352
  this.parent.off(events.sourceCodeMouseDown, this.mouseUpHandler);
324
353
  this.parent.off(events.renderInlineToolbar, this.renderInlineQuickToolbar);
354
+ this.parent.off(events.moduleDestroy, this.moduleDestroy);
325
355
  };
326
356
  // eslint-disable-next-line
327
357
  QuickToolbar.prototype.toolbarUpdated = function (args) {
@@ -331,6 +361,12 @@ var QuickToolbar = /** @class */ (function () {
331
361
  if (this.imageQTBar && !hasClass(this.imageQTBar.element, 'e-popup-close')) {
332
362
  this.imageQTBar.hidePopup();
333
363
  }
364
+ if (this.audioQTBar && !hasClass(this.audioQTBar.element, 'e-popup-close')) {
365
+ this.audioQTBar.hidePopup();
366
+ }
367
+ if (this.videoQTBar && !hasClass(this.videoQTBar.element, 'e-popup-close')) {
368
+ this.videoQTBar.hidePopup();
369
+ }
334
370
  if (this.tableQTBar && !hasClass(this.tableQTBar.element, 'e-popup-close')) {
335
371
  this.tableQTBar.hidePopup();
336
372
  }
@@ -362,7 +398,6 @@ var QuickToolbar = /** @class */ (function () {
362
398
  this.parent.on(events.keyDown, this.onKeyDown, this);
363
399
  this.parent.on(events.rtlMode, this.setRtl, this);
364
400
  this.parent.on(events.bindCssClass, this.setCssClass, this);
365
- this.parent.on(events.moduleDestroy, this.moduleDestroy, this);
366
401
  };
367
402
  QuickToolbar.prototype.onKeyDown = function (e) {
368
403
  var args = e.args;
@@ -370,6 +405,12 @@ var QuickToolbar = /** @class */ (function () {
370
405
  if (this.imageQTBar && !hasClass(this.imageQTBar.element, 'e-popup-close')) {
371
406
  this.imageQTBar.hidePopup();
372
407
  }
408
+ if (this.audioQTBar && !hasClass(this.audioQTBar.element, 'e-popup-close')) {
409
+ this.audioQTBar.hidePopup();
410
+ }
411
+ if (this.videoQTBar && !hasClass(this.videoQTBar.element, 'e-popup-close')) {
412
+ this.videoQTBar.hidePopup();
413
+ }
373
414
  }
374
415
  };
375
416
  QuickToolbar.prototype.onIframeMouseDown = function () {
@@ -401,6 +442,12 @@ var QuickToolbar = /** @class */ (function () {
401
442
  if (this.imageQTBar) {
402
443
  this.imageQTBar.quickTBarObj.toolbarObj.setProperties({ enableRtl: args.enableRtl });
403
444
  }
445
+ if (this.audioQTBar) {
446
+ this.audioQTBar.quickTBarObj.toolbarObj.setProperties({ enableRtl: args.enableRtl });
447
+ }
448
+ if (this.videoQTBar) {
449
+ this.videoQTBar.quickTBarObj.toolbarObj.setProperties({ enableRtl: args.enableRtl });
450
+ }
404
451
  if (this.linkQTBar) {
405
452
  this.linkQTBar.quickTBarObj.toolbarObj.setProperties({ enableRtl: args.enableRtl });
406
453
  }
@@ -432,7 +479,6 @@ var QuickToolbar = /** @class */ (function () {
432
479
  this.parent.off(events.keyDown, this.onKeyDown);
433
480
  this.parent.off(events.rtlMode, this.setRtl);
434
481
  this.parent.off(events.bindCssClass, this.setCssClass);
435
- this.parent.off(events.moduleDestroy, this.moduleDestroy);
436
482
  };
437
483
  /**
438
484
  * Called internally if any of the property value changed.
@@ -53,7 +53,17 @@ var Resize = /** @class */ (function () {
53
53
  var boundRect = this.parent.element.getBoundingClientRect();
54
54
  if (this.isMouseEvent(e)) {
55
55
  this.parent.element.style.height = e.clientY - boundRect.top + 'px';
56
- this.parent.element.style.width = (!this.parent.enableRtl) ? e.clientX - boundRect.left + 'px' : boundRect.right - e.clientX + 'px';
56
+ this.parent.element.style.width = (!this.parent.enableRtl) ? e.clientX - boundRect.left + 'px' :
57
+ boundRect.right - e.clientX + 'px';
58
+ var toolBarEle = this.parent.toolbarModule.getToolbarElement();
59
+ if (toolBarEle !== null) {
60
+ if (toolBarEle.classList.contains(classes.CLS_TB_FLOAT) && this.parent.toolbarSettings.enableFloating &&
61
+ this.parent.getToolbar() && !this.parent.inlineMode.enable) {
62
+ var contentPanel = this.parent.contentModule.getPanel();
63
+ var contentPanelWidth = contentPanel.getBoundingClientRect().width;
64
+ toolBarEle.style.width = contentPanelWidth + 'px';
65
+ }
66
+ }
57
67
  }
58
68
  else {
59
69
  var eventType = Browser.info.name !== 'msie' ? e.touches[0] : e;
@@ -48,7 +48,8 @@ var ToolbarAction = /** @class */ (function () {
48
48
  ToolbarAction.prototype.dropDownSelect = function (e) {
49
49
  this.parent.notify(events.selectionRestore, {});
50
50
  if (!(document.body.contains(document.body.querySelector('.e-rte-quick-toolbar'))
51
- && e.item && (e.item.command === 'Images' || e.item.command === 'Display' || e.item.command === 'Table'))) {
51
+ && e.item && (e.item.command === 'Images' || e.item.command === 'Audios' || e.item.command === 'Videos' ||
52
+ e.item.command === 'VideoLayoutOption' || e.item.command === 'Display' || e.item.command === 'Table'))) {
52
53
  var value = e.item.controlParent && this.parent.quickToolbarModule && this.parent.quickToolbarModule.tableQTBar
53
54
  && this.parent.quickToolbarModule.tableQTBar.element.contains(e.item.controlParent.element) ? 'Table' : null;
54
55
  if (e.item.command === 'Lists') {
@@ -29,7 +29,7 @@ var XhtmlValidation = /** @class */ (function () {
29
29
  this.ImageTags();
30
30
  this.removeTags();
31
31
  this.RemoveUnsupported();
32
- this.currentElement.innerHTML = this.selfEncloseValidation(this.currentElement.innerHTML, this.currentElement.innerText === "\n" ?
32
+ this.currentElement.innerHTML = this.selfEncloseValidation(this.currentElement.innerHTML, this.currentElement.innerText === '\n' ?
33
33
  this.currentElement.innerText.length : this.currentElement.innerText.trim().length);
34
34
  this.parent.setProperties({ value: this.currentElement.innerHTML }, true);
35
35
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Audio
3
+ */
4
+ export * from './renderer/audio-module';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Audio
3
+ */
4
+ export * from './renderer/audio-module';
@@ -224,6 +224,36 @@ export declare const CLS_IMGBREAK: string;
224
224
  /**
225
225
  * @hidden
226
226
 
227
+ */
228
+ export declare const CLS_AUDIOBREAK: string;
229
+ /**
230
+ * @hidden
231
+
232
+ */
233
+ export declare const CLS_CLICKELEM: string;
234
+ /**
235
+ * @hidden
236
+
237
+ */
238
+ export declare const CLS_VID_CLICK_ELEM: string;
239
+ /**
240
+ * @hidden
241
+
242
+ */
243
+ export declare const CLS_AUDIOWRAP: string;
244
+ /**
245
+ * @hidden
246
+
247
+ */
248
+ export declare const CLS_VIDEOWRAP: string;
249
+ /**
250
+ * @hidden
251
+
252
+ */
253
+ export declare const CLS_VIDEOBREAK: string;
254
+ /**
255
+ * @hidden
256
+
227
257
  */
228
258
  export declare const CLS_CAPTION: string;
229
259
  /**
@@ -244,6 +274,16 @@ export declare const CLS_IMGINLINE: string;
244
274
  /**
245
275
  * @hidden
246
276
 
277
+ */
278
+ export declare const CLS_AUDIOINLINE: string;
279
+ /**
280
+ * @hidden
281
+
282
+ */
283
+ export declare const CLS_VIDEOINLINE: string;
284
+ /**
285
+ * @hidden
286
+
247
287
  */
248
288
  export declare const CLS_COUNT: string;
249
289
  /**
@@ -464,6 +504,16 @@ export declare const CLS_IMG_FOCUS: string;
464
504
  /**
465
505
  * @hidden
466
506
 
507
+ */
508
+ export declare const CLS_AUD_FOCUS: string;
509
+ /**
510
+ * @hidden
511
+
512
+ */
513
+ export declare const CLS_VID_FOCUS: string;
514
+ /**
515
+ * @hidden
516
+
467
517
  */
468
518
  export declare const CLS_RTE_DRAG_IMAGE: string;
469
519
  /**
@@ -224,6 +224,36 @@ export var CLS_IMGBREAK = 'e-imgbreak';
224
224
  /**
225
225
  * @hidden
226
226
 
227
+ */
228
+ export var CLS_AUDIOBREAK = 'e-audio-break';
229
+ /**
230
+ * @hidden
231
+
232
+ */
233
+ export var CLS_CLICKELEM = 'e-clickelem';
234
+ /**
235
+ * @hidden
236
+
237
+ */
238
+ export var CLS_VID_CLICK_ELEM = 'e-video-clickelem';
239
+ /**
240
+ * @hidden
241
+
242
+ */
243
+ export var CLS_AUDIOWRAP = 'e-audio-wrap';
244
+ /**
245
+ * @hidden
246
+
247
+ */
248
+ export var CLS_VIDEOWRAP = 'e-video-wrap';
249
+ /**
250
+ * @hidden
251
+
252
+ */
253
+ export var CLS_VIDEOBREAK = 'e-video-break';
254
+ /**
255
+ * @hidden
256
+
227
257
  */
228
258
  export var CLS_CAPTION = 'e-img-caption';
229
259
  /**
@@ -244,6 +274,16 @@ export var CLS_IMGINLINE = 'e-imginline';
244
274
  /**
245
275
  * @hidden
246
276
 
277
+ */
278
+ export var CLS_AUDIOINLINE = 'e-audio-inline';
279
+ /**
280
+ * @hidden
281
+
282
+ */
283
+ export var CLS_VIDEOINLINE = 'e-video-inline';
284
+ /**
285
+ * @hidden
286
+
247
287
  */
248
288
  export var CLS_COUNT = 'e-rte-character-count';
249
289
  /**
@@ -464,6 +504,16 @@ export var CLS_IMG_FOCUS = 'e-img-focus';
464
504
  /**
465
505
  * @hidden
466
506
 
507
+ */
508
+ export var CLS_AUD_FOCUS = 'e-audio-focus';
509
+ /**
510
+ * @hidden
511
+
512
+ */
513
+ export var CLS_VID_FOCUS = 'e-video-focus';
514
+ /**
515
+ * @hidden
516
+
467
517
  */
468
518
  export var CLS_RTE_DRAG_IMAGE = 'e-rte-drag-image';
469
519
  /**
@@ -99,6 +99,11 @@ export declare const modelChanged: string;
99
99
  /**
100
100
  * @hidden
101
101
 
102
+ */
103
+ export declare const tableModulekeyUp: string;
104
+ /**
105
+ * @hidden
106
+
102
107
  */
103
108
  export declare const keyUp: string;
104
109
  /**
@@ -154,6 +159,16 @@ export declare const imageToolbarAction: string;
154
159
  /**
155
160
  * @hidden
156
161
 
162
+ */
163
+ export declare const audioToolbarAction: string;
164
+ /**
165
+ * @hidden
166
+
167
+ */
168
+ export declare const videoToolbarAction: string;
169
+ /**
170
+ * @hidden
171
+
157
172
  */
158
173
  export declare const linkToolbarAction: string;
159
174
  /**
@@ -239,6 +254,16 @@ export declare const insertImage: string;
239
254
  /**
240
255
  * @hidden
241
256
 
257
+ */
258
+ export declare const insertAudio: string;
259
+ /**
260
+ * @hidden
261
+
262
+ */
263
+ export declare const insertVideo: string;
264
+ /**
265
+ * @hidden
266
+
242
267
  */
243
268
  export declare const insertCompleted: string;
244
269
  /**
@@ -284,6 +309,16 @@ export declare const imageDelete: string;
284
309
  /**
285
310
  * @hidden
286
311
 
312
+ */
313
+ export declare const audioDelete: string;
314
+ /**
315
+ * @hidden
316
+
317
+ */
318
+ export declare const videoDelete: string;
319
+ /**
320
+ * @hidden
321
+
287
322
  */
288
323
  export declare const imageCaption: string;
289
324
  /**
@@ -294,6 +329,11 @@ export declare const imageSize: string;
294
329
  /**
295
330
  * @hidden
296
331
 
332
+ */
333
+ export declare const videoSize: string;
334
+ /**
335
+ * @hidden
336
+
297
337
  */
298
338
  export declare const sourceCode: string;
299
339
  /**
@@ -530,27 +570,27 @@ export declare const imageRemoving: string;
530
570
  * @hidden
531
571
 
532
572
  */
533
- export declare const mediaSelected: string;
573
+ export declare const fileSelected: string;
534
574
  /**
535
- * @hidden
575
+ * @hidden
536
576
 
537
- */
538
- export declare const mediaUploading: string;
577
+ */
578
+ export declare const fileUploading: string;
539
579
  /**
540
- * @hidden
580
+ * @hidden
541
581
 
542
- */
543
- export declare const mediaUploadSuccess: string;
582
+ */
583
+ export declare const fileUploadSuccess: string;
544
584
  /**
545
- * @hidden
585
+ * @hidden
546
586
 
547
- */
548
- export declare const mediaUploadFailed: string;
587
+ */
588
+ export declare const fileUploadFailed: string;
549
589
  /**
550
- * @hidden
590
+ * @hidden
551
591
 
552
- */
553
- export declare const mediaRemoving: string;
592
+ */
593
+ export declare const fileRemoving: string;
554
594
  /**
555
595
  * @hidden
556
596
 
@@ -580,7 +620,7 @@ export declare const beforeImageUpload: string;
580
620
  * @hidden
581
621
 
582
622
  */
583
- export declare const beforeMediaUpload: string;
623
+ export declare const beforeFileUpload: string;
584
624
  /**
585
625
  * @hidden
586
626
 
@@ -634,6 +674,16 @@ export declare const showImageDialog: string;
634
674
  /**
635
675
  * @hidden
636
676
 
677
+ */
678
+ export declare const showAudioDialog: string;
679
+ /**
680
+ * @hidden
681
+
682
+ */
683
+ export declare const showVideoDialog: string;
684
+ /**
685
+ * @hidden
686
+
637
687
  */
638
688
  export declare const closeImageDialog: string;
639
689
  /**
@@ -644,6 +694,11 @@ export declare const closeAudioDialog: string;
644
694
  /**
645
695
  * @hidden
646
696
 
697
+ */
698
+ export declare const closeVideoDialog: string;
699
+ /**
700
+ * @hidden
701
+
647
702
  */
648
703
  export declare const showTableDialog: string;
649
704
  /**
@@ -99,6 +99,11 @@ export var modelChanged = 'model-changed';
99
99
  /**
100
100
  * @hidden
101
101
 
102
+ */
103
+ export var tableModulekeyUp = 'tableModulekeyUp';
104
+ /**
105
+ * @hidden
106
+
102
107
  */
103
108
  export var keyUp = 'keyUp';
104
109
  /**
@@ -154,6 +159,16 @@ export var imageToolbarAction = 'image-toolbar-action';
154
159
  /**
155
160
  * @hidden
156
161
 
162
+ */
163
+ export var audioToolbarAction = 'audio-toolbar-action';
164
+ /**
165
+ * @hidden
166
+
167
+ */
168
+ export var videoToolbarAction = 'video-toolbar-action';
169
+ /**
170
+ * @hidden
171
+
157
172
  */
158
173
  export var linkToolbarAction = 'link-toolbar-action';
159
174
  /**
@@ -239,6 +254,16 @@ export var insertImage = 'insertImage';
239
254
  /**
240
255
  * @hidden
241
256
 
257
+ */
258
+ export var insertAudio = 'insertAudio';
259
+ /**
260
+ * @hidden
261
+
262
+ */
263
+ export var insertVideo = 'insertVideo';
264
+ /**
265
+ * @hidden
266
+
242
267
  */
243
268
  export var insertCompleted = 'insertCompleted';
244
269
  /**
@@ -284,6 +309,16 @@ export var imageDelete = 'delete';
284
309
  /**
285
310
  * @hidden
286
311
 
312
+ */
313
+ export var audioDelete = 'delete';
314
+ /**
315
+ * @hidden
316
+
317
+ */
318
+ export var videoDelete = 'delete';
319
+ /**
320
+ * @hidden
321
+
287
322
  */
288
323
  export var imageCaption = 'caption';
289
324
  /**
@@ -294,6 +329,11 @@ export var imageSize = 'imageSize';
294
329
  /**
295
330
  * @hidden
296
331
 
332
+ */
333
+ export var videoSize = 'videoSize';
334
+ /**
335
+ * @hidden
336
+
297
337
  */
298
338
  export var sourceCode = 'sourceCode';
299
339
  /**
@@ -530,27 +570,27 @@ export var imageRemoving = 'imageRemoving';
530
570
  * @hidden
531
571
 
532
572
  */
533
- export var mediaSelected = 'mediaSelected';
573
+ export var fileSelected = 'fileSelected';
534
574
  /**
535
- * @hidden
575
+ * @hidden
536
576
 
537
- */
538
- export var mediaUploading = 'mediaUploading';
577
+ */
578
+ export var fileUploading = 'fileUploading';
539
579
  /**
540
- * @hidden
580
+ * @hidden
541
581
 
542
- */
543
- export var mediaUploadSuccess = 'mediaUploadSuccess';
582
+ */
583
+ export var fileUploadSuccess = 'fileUploadSuccess';
544
584
  /**
545
- * @hidden
585
+ * @hidden
546
586
 
547
- */
548
- export var mediaUploadFailed = 'mediaUploadFailed';
587
+ */
588
+ export var fileUploadFailed = 'fileUploadFailed';
549
589
  /**
550
- * @hidden
590
+ * @hidden
551
591
 
552
- */
553
- export var mediaRemoving = 'mediaRemoving';
592
+ */
593
+ export var fileRemoving = 'fileRemoving';
554
594
  /**
555
595
  * @hidden
556
596
 
@@ -560,7 +600,7 @@ export var afterImageDelete = 'afterImageDelete';
560
600
  * @hidden
561
601
 
562
602
  */
563
- export var afterMediaDelete = 'afterMediaaDelete';
603
+ export var afterMediaDelete = 'afterMediaDelete';
564
604
  /**
565
605
  * @hidden
566
606
 
@@ -580,7 +620,7 @@ export var beforeImageUpload = 'beforeImageUpload';
580
620
  * @hidden
581
621
 
582
622
  */
583
- export var beforeMediaUpload = 'beforeMediaUpload';
623
+ export var beforeFileUpload = 'beforeFileUpload';
584
624
  /**
585
625
  * @hidden
586
626
 
@@ -634,6 +674,16 @@ export var showImageDialog = 'showImageDialog';
634
674
  /**
635
675
  * @hidden
636
676
 
677
+ */
678
+ export var showAudioDialog = 'showAudioDialog';
679
+ /**
680
+ * @hidden
681
+
682
+ */
683
+ export var showVideoDialog = 'showVideoDialog';
684
+ /**
685
+ * @hidden
686
+
637
687
  */
638
688
  export var closeImageDialog = 'closeImageDialog';
639
689
  /**
@@ -644,6 +694,11 @@ export var closeAudioDialog = 'closeAudioDialog';
644
694
  /**
645
695
  * @hidden
646
696
 
697
+ */
698
+ export var closeVideoDialog = 'closeVideoDialog';
699
+ /**
700
+ * @hidden
701
+
647
702
  */
648
703
  export var showTableDialog = 'showTableDialog';
649
704
  /**
@@ -665,4 +720,4 @@ export var blockEmptyNodes = "address:empty, article:empty, aside:empty, blockqu
665
720
  * @hidden
666
721
 
667
722
  */
668
- export var inlineEmptyNodes = "a:empty, abbr:empty, acronym:empty, b:empty, bdi:empty, bdo:empty, big:empty, button:empty,\n canvas:empty, cite:empty, code:empty, data:empty, datalist:empty, del:empty, dfn:empty, em:empty, font:empty, i:empty, iframe:empty,\n ins:empty, kbd:empty, label:empty, map:empty, mark:empty, meter:empty, noscript:empty, object:empty, output:empty, picture:empty, progress:empty,\n q:empty, ruby:empty, s:empty, samp:empty, script:empty, select:empty, slot:empty, small:empty, span:empty, strong:empty, strike:empty, sub:empty, sup:empty, svg:empty,\n template:empty, textarea:empty, time:empty, u:empty, tt:empty, var:empty, wbr:empty";
723
+ export var inlineEmptyNodes = "a:empty, abbr:empty, acronym:empty, b:empty, bdi:empty, bdo:empty, big:empty, button:empty,\ncanvas:empty, cite:empty, code:empty, data:empty, datalist:empty, del:empty, dfn:empty, em:empty, font:empty, i:empty, iframe:empty,\nins:empty, kbd:empty, label:empty, map:empty, mark:empty, meter:empty, noscript:empty, object:empty, output:empty, picture:empty, progress:empty,\nq:empty, ruby:empty, s:empty, samp:empty, script:empty, select:empty, slot:empty, small:empty, span:empty, strong:empty, strike:empty, sub:empty, sup:empty, svg:empty,\ntemplate:empty, textarea:empty, time:empty, u:empty, tt:empty, var:empty, wbr:empty";
@@ -17,10 +17,14 @@ export declare enum RenderType {
17
17
  TextToolbar = 4,
18
18
  /** Defines RenderType as ImageToolbar */
19
19
  ImageToolbar = 5,
20
+ /** Defines RenderType as AudioToolbar */
21
+ AudioToolbar = 6,
22
+ /** Defines RenderType as AudioToolbar */
23
+ VideoToolbar = 7,
20
24
  /** Defines RenderType as InlineToolbar */
21
- InlineToolbar = 6,
25
+ InlineToolbar = 8,
22
26
  /** Defines RenderType as TableToolbar */
23
- TableToolbar = 7
27
+ TableToolbar = 9
24
28
  }
25
29
  /**
26
30
  * Defines types of action to be done on a quick toolbar scroll.
@@ -45,6 +49,10 @@ export declare enum DialogType {
45
49
  InsertLink = "InsertLink",
46
50
  /** Defines ToolbarType as MultiRow */
47
51
  InsertImage = "InsertImage",
52
+ /** Defines DialogType as Audio*/
53
+ InsertAudio = "InsertAudio",
54
+ /** Defines DialogType as Video*/
55
+ InsertVideo = "InsertVideo",
48
56
  /** Defines ToolbarType as Scrollable */
49
57
  InsertTable = "InsertTable"
50
58
  }