@syncfusion/ej2-richtexteditor 20.2.49 → 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 +22 -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 +3790 -358
  6. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es5.js +3780 -319
  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 -0
  46. package/src/rich-text-editor/actions/html-editor.js +59 -1
  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 +74 -14
  58. package/src/rich-text-editor/base/constant.js +76 -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 +200 -6
  66. package/src/rich-text-editor/formatter/formatter.js +7 -2
  67. package/src/rich-text-editor/models/default-locale.js +46 -0
  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 +43 -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 +2 -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
@@ -1,4 +1,4 @@
1
- import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';import { AjaxSettings, AjaxSettingsModel, ContextMenuSettings, ContextMenuSettingsModel } from '@syncfusion/ej2-filemanager';import { DetailsViewSettings, DetailsViewSettingsModel, NavigationPaneSettings } from '@syncfusion/ej2-filemanager';import { NavigationPaneSettingsModel, SearchSettings, SearchSettingsModel, SortOrder } from '@syncfusion/ej2-filemanager';import { ToolbarSettingsModel as FileToolbarSettingsModel, ToolbarSettings as FileToolbarSettings } from '@syncfusion/ej2-filemanager';import { UploadSettings, UploadSettingsModel, ViewType } from '@syncfusion/ej2-filemanager';import { SaveFormat } from '../../common';import { ToolbarType, ActionOnScroll, ToolbarItems } from '../base/enum';import { IToolbarItems, IDropDownItemModel, ColorModeType, IToolsItemConfigs, IListDropDownModel } from '../base/interface';import { backgroundColor, fontColor, fontFamily, fontSize, formatItems, predefinedItems, TableStyleItems, numberFormatList, bulletFormatList } from './items';
1
+ import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';import { AjaxSettings, AjaxSettingsModel, ContextMenuSettings, ContextMenuSettingsModel } from '@syncfusion/ej2-filemanager';import { DetailsViewSettings, DetailsViewSettingsModel, NavigationPaneSettings } from '@syncfusion/ej2-filemanager';import { NavigationPaneSettingsModel, SearchSettings, SearchSettingsModel, SortOrder } from '@syncfusion/ej2-filemanager';import { ToolbarSettingsModel as FileToolbarSettingsModel, ToolbarSettings as FileToolbarSettings } from '@syncfusion/ej2-filemanager';import { UploadSettings, UploadSettingsModel, ViewType } from '@syncfusion/ej2-filemanager';import { SaveFormat, DisplayLayoutOptions } from '../../common';import { ToolbarType, ActionOnScroll, ToolbarItems } from '../base/enum';import { IToolbarItems, IDropDownItemModel, ColorModeType, IToolsItemConfigs, IListDropDownModel } from '../base/interface';import { backgroundColor, fontColor, fontFamily, fontSize, formatItems, predefinedItems, TableStyleItems, numberFormatList, bulletFormatList } from './items';
2
2
 
3
3
  /**
4
4
  * Interface for a class ToolbarSettings
@@ -152,6 +152,160 @@ export interface ImageSettingsModel {
152
152
 
153
153
  }
154
154
 
155
+ /**
156
+ * Interface for a class AudioSettings
157
+ */
158
+ export interface AudioSettingsModel {
159
+
160
+ /**
161
+ * Specifies whether to allowType based file select.
162
+ *
163
+ * @default ['.wav', '.mp3', '.m4a','.wma']
164
+ */
165
+ allowedTypes?: string[];
166
+
167
+ /**
168
+ * Specifies whether insert audio inline or break.
169
+ *
170
+ * @default 'Inline'
171
+ */
172
+ layoutOption?: DisplayLayoutOptions;
173
+
174
+ /**
175
+ * Specifies whether the inserted audio is saved as blob or base64.
176
+ *
177
+ * @default 'Blob'
178
+ */
179
+ saveFormat?: SaveFormat;
180
+
181
+ /**
182
+ * Specifies the URL of save action that will receive the upload files and save in the server.
183
+ *
184
+ * @default 'null'
185
+ */
186
+ saveUrl?: string;
187
+
188
+ /**
189
+ * Specifies the URL of remove action that receives the file information and handle the remove operation in server.
190
+ *
191
+ * @default 'null'
192
+ */
193
+ removeUrl?: string;
194
+
195
+ /**
196
+ * Specifies the path of the location to store the audio and refer it to display the audio.
197
+ *
198
+ * @default 'null'
199
+ */
200
+ path?: string;
201
+
202
+ }
203
+
204
+ /**
205
+ * Interface for a class VideoSettings
206
+ */
207
+ export interface VideoSettingsModel {
208
+
209
+ /**
210
+ * Specifies whether to allowType based file select.
211
+ *
212
+ * @default ['.mp4', '.mov', '.wmv','.avi']
213
+ */
214
+ allowedTypes?: string[];
215
+
216
+ /**
217
+ * Specifies whether insert video inline or break.
218
+ *
219
+ * @default 'Inline'
220
+ */
221
+ layoutOption?: DisplayLayoutOptions;
222
+
223
+ /**
224
+ * Specifies whether the inserted video is saved as blob or base64.
225
+ *
226
+ * @default 'Blob'
227
+ */
228
+ saveFormat?: SaveFormat;
229
+
230
+ /**
231
+ * Specifies whether video width.
232
+ *
233
+ * @default 'auto'
234
+ */
235
+ width?: string;
236
+
237
+ /**
238
+ * Specifies whether video height.
239
+ *
240
+ * @default 'auto'
241
+ */
242
+ height?: string;
243
+
244
+ /**
245
+ * Specifies the URL of save action that will receive the upload files and save in the server.
246
+ *
247
+ * @default 'null'
248
+ */
249
+ saveUrl?: string;
250
+
251
+ /**
252
+ * Specifies the path of the location to store the images and refer it to display the images.
253
+ *
254
+ * @default 'null'
255
+ */
256
+ path?: string;
257
+
258
+ /**
259
+ * To enable resizing for video element.
260
+ *
261
+ * @default 'true'
262
+ */
263
+ resize?: boolean;
264
+
265
+ /**
266
+ * Specifies the URL of remove action that receives the file information and handle the remove operation in server.
267
+ *
268
+ * @default 'null'
269
+ */
270
+ removeUrl?: string;
271
+
272
+ /**
273
+ * Defines the minimum Width of the video.
274
+ *
275
+ * @default '0'
276
+ */
277
+ minWidth?: string | number;
278
+
279
+ /**
280
+ * Defines the maximum Width of the video.
281
+ *
282
+ * @default null
283
+ */
284
+ maxWidth?: string | number;
285
+
286
+ /**
287
+ * Defines the minimum Height of the video.
288
+ *
289
+ * @default '0'
290
+ */
291
+ minHeight?: string | number;
292
+
293
+ /**
294
+ * Defines the maximum Height of the video.
295
+ *
296
+ * @default null
297
+ */
298
+ maxHeight?: string | number;
299
+
300
+ /**
301
+ * Video resizing should be done by percentage calculation.
302
+ *
303
+ * @default false
304
+ */
305
+ resizeByPercent?: boolean;
306
+
307
+ }
308
+
155
309
  /**
156
310
  * Interface for a class FileManagerSettings
157
311
  */
@@ -390,6 +544,20 @@ export interface QuickToolbarSettingsModel {
390
544
  */
391
545
  image?: (string | IToolbarItems)[];
392
546
 
547
+ /**
548
+ * Specifies the items to render in quick toolbar, when audio selected.
549
+ *
550
+ * @default ['AudioReplace', 'Remove', 'AudioLayoutOption']
551
+ */
552
+ audio?: (string | IToolbarItems)[];
553
+
554
+ /**
555
+ * Specifies the items to render in quick toolbar, when video selected.
556
+ *
557
+ * @default ['VideoReplace', 'VideoAlign', 'VideoRemove', 'VideoLayoutOption', 'VideoDimension']
558
+ */
559
+ video?: (string | IToolbarItems)[];
560
+
393
561
  /**
394
562
  * Specifies the items to render in quick toolbar, when text selected.
395
563
  *
@@ -4,7 +4,7 @@ import { DetailsViewSettingsModel } from '@syncfusion/ej2-filemanager';
4
4
  import { NavigationPaneSettingsModel, SearchSettingsModel, SortOrder } from '@syncfusion/ej2-filemanager';
5
5
  import { ToolbarSettingsModel as FileToolbarSettingsModel } from '@syncfusion/ej2-filemanager';
6
6
  import { UploadSettingsModel, ViewType } from '@syncfusion/ej2-filemanager';
7
- import { SaveFormat } from '../../common';
7
+ import { SaveFormat, DisplayLayoutOptions } from '../../common';
8
8
  import { ToolbarType, ActionOnScroll, ToolbarItems } from '../base/enum';
9
9
  import { IToolbarItems, IDropDownItemModel, ColorModeType, IToolsItemConfigs, IListDropDownModel } from '../base/interface';
10
10
  /**
@@ -138,6 +138,136 @@ export declare class ImageSettings extends ChildProperty<ImageSettings> {
138
138
  */
139
139
  resizeByPercent: boolean;
140
140
  }
141
+ /**
142
+ * Configures the audio settings of the RichTextEditor.
143
+ */
144
+ export declare class AudioSettings extends ChildProperty<AudioSettings> {
145
+ /**
146
+ * Specifies whether to allowType based file select.
147
+ *
148
+ * @default ['.wav', '.mp3', '.m4a','.wma']
149
+ */
150
+ allowedTypes: string[];
151
+ /**
152
+ * Specifies whether insert audio inline or break.
153
+ *
154
+ * @default 'Inline'
155
+ */
156
+ layoutOption: DisplayLayoutOptions;
157
+ /**
158
+ * Specifies whether the inserted audio is saved as blob or base64.
159
+ *
160
+ * @default 'Blob'
161
+ */
162
+ saveFormat: SaveFormat;
163
+ /**
164
+ * Specifies the URL of save action that will receive the upload files and save in the server.
165
+ *
166
+ * @default 'null'
167
+ */
168
+ saveUrl: string;
169
+ /**
170
+ * Specifies the URL of remove action that receives the file information and handle the remove operation in server.
171
+ *
172
+ * @default 'null'
173
+ */
174
+ removeUrl: string;
175
+ /**
176
+ * Specifies the path of the location to store the audio and refer it to display the audio.
177
+ *
178
+ * @default 'null'
179
+ */
180
+ path: string;
181
+ }
182
+ /**
183
+ * Configures the video settings of the RichTextEditor.
184
+ */
185
+ export declare class VideoSettings extends ChildProperty<VideoSettings> {
186
+ /**
187
+ * Specifies whether to allowType based file select.
188
+ *
189
+ * @default ['.mp4', '.mov', '.wmv','.avi']
190
+ */
191
+ allowedTypes: string[];
192
+ /**
193
+ * Specifies whether insert video inline or break.
194
+ *
195
+ * @default 'Inline'
196
+ */
197
+ layoutOption: DisplayLayoutOptions;
198
+ /**
199
+ * Specifies whether the inserted video is saved as blob or base64.
200
+ *
201
+ * @default 'Blob'
202
+ */
203
+ saveFormat: SaveFormat;
204
+ /**
205
+ * Specifies whether video width.
206
+ *
207
+ * @default 'auto'
208
+ */
209
+ width: string;
210
+ /**
211
+ * Specifies whether video height.
212
+ *
213
+ * @default 'auto'
214
+ */
215
+ height: string;
216
+ /**
217
+ * Specifies the URL of save action that will receive the upload files and save in the server.
218
+ *
219
+ * @default 'null'
220
+ */
221
+ saveUrl: string;
222
+ /**
223
+ * Specifies the path of the location to store the images and refer it to display the images.
224
+ *
225
+ * @default 'null'
226
+ */
227
+ path: string;
228
+ /**
229
+ * To enable resizing for video element.
230
+ *
231
+ * @default 'true'
232
+ */
233
+ resize: boolean;
234
+ /**
235
+ * Specifies the URL of remove action that receives the file information and handle the remove operation in server.
236
+ *
237
+ * @default 'null'
238
+ */
239
+ removeUrl: string;
240
+ /**
241
+ * Defines the minimum Width of the video.
242
+ *
243
+ * @default '0'
244
+ */
245
+ minWidth: string | number;
246
+ /**
247
+ * Defines the maximum Width of the video.
248
+ *
249
+ * @default null
250
+ */
251
+ maxWidth: string | number;
252
+ /**
253
+ * Defines the minimum Height of the video.
254
+ *
255
+ * @default '0'
256
+ */
257
+ minHeight: string | number;
258
+ /**
259
+ * Defines the maximum Height of the video.
260
+ *
261
+ * @default null
262
+ */
263
+ maxHeight: string | number;
264
+ /**
265
+ * Video resizing should be done by percentage calculation.
266
+ *
267
+ * @default false
268
+ */
269
+ resizeByPercent: boolean;
270
+ }
141
271
  /**
142
272
  * Configures the file manager settings of the RichTextEditor.
143
273
  */
@@ -341,6 +471,18 @@ export declare class QuickToolbarSettings extends ChildProperty<QuickToolbarSett
341
471
  * @default ['Replace', 'Align', 'Caption', 'Remove', '-', 'InsertLink','OpenImageLink', 'EditImageLink', 'RemoveImageLink', 'Display', 'AltText', 'Dimension']
342
472
  */
343
473
  image: (string | IToolbarItems)[];
474
+ /**
475
+ * Specifies the items to render in quick toolbar, when audio selected.
476
+ *
477
+ * @default ['AudioReplace', 'Remove', 'AudioLayoutOption']
478
+ */
479
+ audio: (string | IToolbarItems)[];
480
+ /**
481
+ * Specifies the items to render in quick toolbar, when video selected.
482
+ *
483
+ * @default ['VideoReplace', 'VideoAlign', 'VideoRemove', 'VideoLayoutOption', 'VideoDimension']
484
+ */
485
+ video: (string | IToolbarItems)[];
344
486
  /**
345
487
  * Specifies the items to render in quick toolbar, when text selected.
346
488
  *
@@ -104,6 +104,88 @@ var ImageSettings = /** @class */ (function (_super) {
104
104
  return ImageSettings;
105
105
  }(ChildProperty));
106
106
  export { ImageSettings };
107
+ /**
108
+ * Configures the audio settings of the RichTextEditor.
109
+ */
110
+ var AudioSettings = /** @class */ (function (_super) {
111
+ __extends(AudioSettings, _super);
112
+ function AudioSettings() {
113
+ return _super !== null && _super.apply(this, arguments) || this;
114
+ }
115
+ __decorate([
116
+ Property(['.wav', '.mp3', '.m4a', '.wma'])
117
+ ], AudioSettings.prototype, "allowedTypes", void 0);
118
+ __decorate([
119
+ Property('Inline')
120
+ ], AudioSettings.prototype, "layoutOption", void 0);
121
+ __decorate([
122
+ Property('Blob')
123
+ ], AudioSettings.prototype, "saveFormat", void 0);
124
+ __decorate([
125
+ Property(null)
126
+ ], AudioSettings.prototype, "saveUrl", void 0);
127
+ __decorate([
128
+ Property(null)
129
+ ], AudioSettings.prototype, "removeUrl", void 0);
130
+ __decorate([
131
+ Property(null)
132
+ ], AudioSettings.prototype, "path", void 0);
133
+ return AudioSettings;
134
+ }(ChildProperty));
135
+ export { AudioSettings };
136
+ /**
137
+ * Configures the video settings of the RichTextEditor.
138
+ */
139
+ var VideoSettings = /** @class */ (function (_super) {
140
+ __extends(VideoSettings, _super);
141
+ function VideoSettings() {
142
+ return _super !== null && _super.apply(this, arguments) || this;
143
+ }
144
+ __decorate([
145
+ Property(['.mp4', '.mov', '.wmv', '.avi'])
146
+ ], VideoSettings.prototype, "allowedTypes", void 0);
147
+ __decorate([
148
+ Property('Inline')
149
+ ], VideoSettings.prototype, "layoutOption", void 0);
150
+ __decorate([
151
+ Property('Blob')
152
+ ], VideoSettings.prototype, "saveFormat", void 0);
153
+ __decorate([
154
+ Property('auto')
155
+ ], VideoSettings.prototype, "width", void 0);
156
+ __decorate([
157
+ Property('auto')
158
+ ], VideoSettings.prototype, "height", void 0);
159
+ __decorate([
160
+ Property(null)
161
+ ], VideoSettings.prototype, "saveUrl", void 0);
162
+ __decorate([
163
+ Property(null)
164
+ ], VideoSettings.prototype, "path", void 0);
165
+ __decorate([
166
+ Property(true)
167
+ ], VideoSettings.prototype, "resize", void 0);
168
+ __decorate([
169
+ Property(null)
170
+ ], VideoSettings.prototype, "removeUrl", void 0);
171
+ __decorate([
172
+ Property(0)
173
+ ], VideoSettings.prototype, "minWidth", void 0);
174
+ __decorate([
175
+ Property(null)
176
+ ], VideoSettings.prototype, "maxWidth", void 0);
177
+ __decorate([
178
+ Property(0)
179
+ ], VideoSettings.prototype, "minHeight", void 0);
180
+ __decorate([
181
+ Property(null)
182
+ ], VideoSettings.prototype, "maxHeight", void 0);
183
+ __decorate([
184
+ Property(false)
185
+ ], VideoSettings.prototype, "resizeByPercent", void 0);
186
+ return VideoSettings;
187
+ }(ChildProperty));
188
+ export { VideoSettings };
107
189
  /**
108
190
  * Configures the file manager settings of the RichTextEditor.
109
191
  */
@@ -212,6 +294,12 @@ var QuickToolbarSettings = /** @class */ (function (_super) {
212
294
  __decorate([
213
295
  Property(['Replace', 'Align', 'Caption', 'Remove', '-', 'InsertLink', 'OpenImageLink', 'EditImageLink', 'RemoveImageLink', 'Display', 'AltText', 'Dimension'])
214
296
  ], QuickToolbarSettings.prototype, "image", void 0);
297
+ __decorate([
298
+ Property(['AudioReplace', 'AudioRemove', 'AudioLayoutOption'])
299
+ ], QuickToolbarSettings.prototype, "audio", void 0);
300
+ __decorate([
301
+ Property(['VideoReplace', 'VideoAlign', 'VideoRemove', 'VideoLayoutOption', 'VideoDimension'])
302
+ ], QuickToolbarSettings.prototype, "video", void 0);
215
303
  __decorate([
216
304
  Property(['Cut', 'Copy', 'Paste'])
217
305
  ], QuickToolbarSettings.prototype, "text", void 0);
@@ -0,0 +1,76 @@
1
+ import { IImageNotifyArgs } from '../base/interface';
2
+ import { Uploader } from '@syncfusion/ej2-inputs';
3
+ import { Dialog } from '@syncfusion/ej2-popups';
4
+ /**
5
+ * `Audio` module is used to handle audio actions.
6
+ */
7
+ export declare class Audio {
8
+ element: HTMLElement;
9
+ private rteID;
10
+ private parent;
11
+ dialogObj: Dialog;
12
+ uploadObj: Uploader;
13
+ private i10n;
14
+ private inputUrl;
15
+ private uploadUrl;
16
+ private contentModule;
17
+ private rendererFactory;
18
+ private quickToolObj;
19
+ private audEle;
20
+ private isAudioUploaded;
21
+ private isAllowedTypes;
22
+ private dialogRenderObj;
23
+ private deletedAudio;
24
+ private removingAudioName;
25
+ private prevSelectedAudEle;
26
+ private constructor();
27
+ protected addEventListener(): void;
28
+ protected removeEventListener(): void;
29
+ private afterRender;
30
+ private checkAudioBack;
31
+ private checkAudioDel;
32
+ private undoStack;
33
+ private touchStart;
34
+ private onToolbarAction;
35
+ private onKeyUp;
36
+ private onKeyDown;
37
+ private openDialog;
38
+ private showDialog;
39
+ private closeDialog;
40
+ private deleteAudio;
41
+ private audioRemovePost;
42
+ private triggerPost;
43
+ private audioClick;
44
+ private onDocumentClick;
45
+ private alignmentSelect;
46
+ private break;
47
+ private inline;
48
+ private editAreaClickHandler;
49
+ private isAudioElem;
50
+ private showAudioQuickToolbar;
51
+ private hideAudioQuickToolbar;
52
+ private insertingAudio;
53
+ insertAudio(e: IImageNotifyArgs): void;
54
+ private audioUrlPopup;
55
+ private audioUpload;
56
+ private checkExtension;
57
+ private fileSelect;
58
+ private cancelDialog;
59
+ private insertAudioUrl;
60
+ /**
61
+ * Destroys the ToolBar.
62
+ *
63
+ * @method destroy
64
+ * @returns {void}
65
+ * @hidden
66
+
67
+ */
68
+ destroy(): void;
69
+ /**
70
+ * For internal use only - Get the module name.
71
+ *
72
+ * @returns {void}
73
+ * @hidden
74
+ */
75
+ private getModuleName;
76
+ }