Skip to content

877792: modified heading of executeCommand and included insertAudio & insertVideo in RichTextEditor(Mvc/Core) #3994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions ej2-asp-core-mvc/rich-text-editor/EJ2_ASP.MVC/exec-command.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
layout: post
title: Exec Command in ##Platform_Name## Rich Text Editor Control | Syncfusion
description: Learn here all about Exec Command in Syncfusion ##Platform_Name## Rich Text Editor control of Syncfusion Essential JS 2 and more.
title: Execute Command in ##Platform_Name## Rich Text Editor Control | Syncfusion
description: Learn here all about Execute Command in Syncfusion ##Platform_Name## Rich Text Editor control of Syncfusion Essential JS 2 and more.
platform: ej2-asp-core-mvc
control: Exec Command
control: Execute Command
publishingplatform: ##Platform_Name##
documentation: ug
---


# ExecCommand in Rich Text Editor
# ExecuteCommand in Rich Text Editor

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

| Commands | Description | Code snippets |
|----------------|---------| -----------|
Expand Down Expand Up @@ -47,5 +47,8 @@ The execCommand will perform the following commands.
| copyFormatPainter | Copy the format of selected text and apply it to another text. | `rteObj.executeCommand('copyFormatPainter', formatPainterSettings);`|
| applyFormatPainter | Apply the copied format to the selected text. | `rteObj.executeCommand('applyFormatPainter');`|
| escapeFormatPainter | Remove the previously copied format and disable the sticky mode | `rteObj.executeCommand('escapeFormatPainter');`|
| 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'});` |
| 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'});` |


> The ‘ExecuteCommand’ public method is not supported in Syncfusion<sup style="font-size:70%">&reg;</sup> Markdown Editor
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
layout: post
title: Exec Command in ##Platform_Name## Rich Text Editor Control | Syncfusion
description: Learn here all about Exec Command in Syncfusion ##Platform_Name## Rich Text Editor Control of Syncfusion Essential JS 2 and more.
title: Execute Command in ##Platform_Name## Rich Text Editor Control | Syncfusion
description: Learn here all about Execute Command in Syncfusion ##Platform_Name## Rich Text Editor Control of Syncfusion Essential JS 2 and more.
platform: ej2-asp-core-mvc
control: Exec Command
control: Execute Command
publishingplatform: ##Platform_Name##
documentation: ug
---

# Exec command in ##Platform_Name## Rich text editor Control
# Execute command in ##Platform_Name## Rich text editor Control

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

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


> The ‘ExecuteCommand’ public method is not supported in Syncfusion<sup style="font-size:70%">&reg;</sup> Markdown Editor
2 changes: 1 addition & 1 deletion ej2-asp-core-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -2309,7 +2309,7 @@
<li><a href="/ej2-asp-core/rich-text-editor/globalization">Globalization</a></li>
<li><a href="/ej2-asp-core/rich-text-editor/file-browser">File Browser</a></li>
<li><a href="/ej2-asp-core/rich-text-editor/slash-menu">Slash Menu</a></li>
<li><a href="/ej2-asp-core/rich-text-editor/exec-command">ExecCommand in Rich Text Editor</a></li>
<li><a href="/ej2-asp-core/rich-text-editor/exec-command">ExecuteCommand in Rich Text Editor</a></li>
<li><a href="/ej2-asp-core/rich-text-editor/keyboard-support">Keyboard shortcuts</a></li>
<li><a href="/ej2-asp-core/rich-text-editor/accessibility">Accessibility</a></li>
<li>How To
Expand Down
2 changes: 1 addition & 1 deletion ej2-asp-mvc-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -2267,7 +2267,7 @@
<li><a href="/ej2-asp-mvc/rich-text-editor/globalization">Globalization</a></li>
<li><a href="/ej2-asp-mvc/rich-text-editor/file-browser">File Browser</a></li>
<li><a href="/ej2-asp-mvc/rich-text-editor/slash-menu">Slash Menu</a></li>
<li><a href="/ej2-asp-mvc/rich-text-editor/exec-command">ExecCommand in Rich Text Editor</a></li>
<li><a href="/ej2-asp-mvc/rich-text-editor/exec-command">ExecuteCommand in Rich Text Editor</a></li>
<li><a href="/ej2-asp-mvc/rich-text-editor/keyboard-support">Keyboard shortcuts</a></li>
<li><a href="/ej2-asp-mvc/rich-text-editor/accessibility">Accessibility</a></li>
<li>How To
Expand Down