|
1 | 1 | ---
|
2 | 2 | layout: post
|
3 |
| -title: Exec Command in ##Platform_Name## Rich Text Editor Control | Syncfusion |
4 |
| -description: Learn here all about Exec Command in Syncfusion ##Platform_Name## Rich Text Editor control of Syncfusion Essential JS 2 and more. |
| 3 | +title: Execute Command in ##Platform_Name## Rich Text Editor Control | Syncfusion |
| 4 | +description: Learn here all about Execute Command in Syncfusion ##Platform_Name## Rich Text Editor control of Syncfusion Essential JS 2 and more. |
5 | 5 | platform: ej2-asp-core-mvc
|
6 |
| -control: Exec Command |
| 6 | +control: Execute Command |
7 | 7 | publishingplatform: ##Platform_Name##
|
8 | 8 | documentation: ug
|
9 | 9 | ---
|
10 | 10 |
|
11 | 11 |
|
12 |
| -# ExecCommand in Rich Text Editor |
| 12 | +# ExecuteCommand in Rich Text Editor |
13 | 13 |
|
14 |
| -In Rich Text Editor, execCommand used to perform commands for the modification of content in editable area. |
15 |
| -The execCommand will perform the following commands. |
| 14 | +In Rich Text Editor, executeCommand used to perform commands for the modification of content in editable area. |
| 15 | +The executeCommand will perform the following commands. |
16 | 16 |
|
17 | 17 | | Commands | Description | Code snippets |
|
18 | 18 | |----------------|---------| -----------|
|
@@ -47,5 +47,8 @@ The execCommand will perform the following commands.
|
47 | 47 | | copyFormatPainter | Copy the format of selected text and apply it to another text. | `rteObj.executeCommand('copyFormatPainter', formatPainterSettings);`|
|
48 | 48 | | applyFormatPainter | Apply the copied format to the selected text. | `rteObj.executeCommand('applyFormatPainter');`|
|
49 | 49 | | escapeFormatPainter | Remove the previously copied format and disable the sticky mode | `rteObj.executeCommand('escapeFormatPainter');`|
|
| 50 | +| insertVideo | Insert a video to the current cursor position. | `rteObj.executeCommand('insertVideo', { url: 'https://cdn.syncfusion.com/ej2/richtexteditor-resources/RTE-Ocean-Waves.mp4', cssClass: 'e-rte-video'});` | |
| 51 | +| insertAudio | Insert a audio to the current cursor position. | `rteObj.executeCommand('insertAudio', { url: 'https://cdn.syncfusion.com/ej2/richtexteditor-resources/RTE-Audio.wav', cssClass: 'e-rte-audio'});` | |
| 52 | + |
50 | 53 |
|
51 | 54 | > The ‘ExecuteCommand’ public method is not supported in Syncfusion<sup style="font-size:70%">®</sup> Markdown Editor
|
0 commit comments