Skip to content

Commit 21cfe01

Browse files
authored
Merge pull request #3994 from syncfusion-content/877792-ExecMvcCore
877792: modified heading of executeCommand and included insertAudio & insertVideo in RichTextEditor(Mvc/Core)
2 parents 1217431 + 75db6e5 commit 21cfe01

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

ej2-asp-core-mvc/rich-text-editor/EJ2_ASP.MVC/exec-command.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
22
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.
55
platform: ej2-asp-core-mvc
6-
control: Exec Command
6+
control: Execute Command
77
publishingplatform: ##Platform_Name##
88
documentation: ug
99
---
1010

1111

12-
# ExecCommand in Rich Text Editor
12+
# ExecuteCommand in Rich Text Editor
1313

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.
1616

1717
| Commands | Description | Code snippets |
1818
|----------------|---------| -----------|
@@ -47,5 +47,8 @@ The execCommand will perform the following commands.
4747
| copyFormatPainter | Copy the format of selected text and apply it to another text. | `rteObj.executeCommand('copyFormatPainter', formatPainterSettings);`|
4848
| applyFormatPainter | Apply the copied format to the selected text. | `rteObj.executeCommand('applyFormatPainter');`|
4949
| 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+
5053

5154
> The ‘ExecuteCommand’ public method is not supported in Syncfusion<sup style="font-size:70%">&reg;</sup> Markdown Editor

ej2-asp-core-mvc/rich-text-editor/EJ2_ASP.NETCORE/exec-command.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
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.
55
platform: ej2-asp-core-mvc
6-
control: Exec Command
6+
control: Execute Command
77
publishingplatform: ##Platform_Name##
88
documentation: ug
99
---
1010

11-
# Exec command in ##Platform_Name## Rich text editor Control
11+
# Execute command in ##Platform_Name## Rich text editor Control
1212

13-
In Rich Text Editor, execCommand used to perform commands for the modification of content in editable area. The execCommand will perform the following commands.
13+
In Rich Text Editor, executeCommand used to perform commands for the modification of content in editable area. The executeCommand will perform the following commands.
1414

1515
| Commands | Description | Code snippets |
1616
|----------------|---------| -----------|
@@ -45,5 +45,8 @@ In Rich Text Editor, execCommand used to perform commands for the modification o
4545
| copyFormatPainter | Copy the format of selected text and apply it to another text. | `rteObj.executeCommand('copyFormatPainter', formatPainterSettings);`|
4646
| applyFormatPainter | Apply the copied format to the selected text. | `rteObj.executeCommand('applyFormatPainter');`|
4747
| escapeFormatPainter | Remove the previously copied format and disable the sticky mode | `rteObj.executeCommand('escapeFormatPainter');`|
48+
| 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'});` |
49+
| 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'});` |
50+
4851

4952
> The ‘ExecuteCommand’ public method is not supported in Syncfusion<sup style="font-size:70%">&reg;</sup> Markdown Editor

ej2-asp-core-toc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2316,7 +2316,7 @@
23162316
<li><a href="/ej2-asp-core/rich-text-editor/globalization">Globalization</a></li>
23172317
<li><a href="/ej2-asp-core/rich-text-editor/file-browser">File Browser</a></li>
23182318
<li><a href="/ej2-asp-core/rich-text-editor/slash-menu">Slash Menu</a></li>
2319-
<li><a href="/ej2-asp-core/rich-text-editor/exec-command">ExecCommand in Rich Text Editor</a></li>
2319+
<li><a href="/ej2-asp-core/rich-text-editor/exec-command">ExecuteCommand in Rich Text Editor</a></li>
23202320
<li><a href="/ej2-asp-core/rich-text-editor/keyboard-support">Keyboard shortcuts</a></li>
23212321
<li><a href="/ej2-asp-core/rich-text-editor/accessibility">Accessibility</a></li>
23222322
<li>How To

ej2-asp-mvc-toc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2269,7 +2269,7 @@
22692269
<li><a href="/ej2-asp-mvc/rich-text-editor/globalization">Globalization</a></li>
22702270
<li><a href="/ej2-asp-mvc/rich-text-editor/file-browser">File Browser</a></li>
22712271
<li><a href="/ej2-asp-mvc/rich-text-editor/slash-menu">Slash Menu</a></li>
2272-
<li><a href="/ej2-asp-mvc/rich-text-editor/exec-command">ExecCommand in Rich Text Editor</a></li>
2272+
<li><a href="/ej2-asp-mvc/rich-text-editor/exec-command">ExecuteCommand in Rich Text Editor</a></li>
22732273
<li><a href="/ej2-asp-mvc/rich-text-editor/keyboard-support">Keyboard shortcuts</a></li>
22742274
<li><a href="/ej2-asp-mvc/rich-text-editor/accessibility">Accessibility</a></li>
22752275
<li>How To

0 commit comments

Comments
 (0)