CommandName.Audio & CommandName.Video

We created a modal window where users can browse their folders/files and select a file to insert into the editor. We handle each file type differently:

if (file.IsAudio())
    await _rteMessage.ExecuteCommandAsync(CommandName.Audio, new AudioCommandsArgs() { Url = file });
else if (file.IsImage())
    await _rteMessage.ExecuteCommandAsync(CommandName.InsertImage, new ImageCommandsArgs() { Url = file });
else if (FileIsVideo())
    await _rteMessage.ExecuteCommandAsync(CommandName.Video, new VideoCommandsArgs() { Url = file });
else
    await _rteMessage.ExecuteCommandAsync(CommandName.InsertHTML, "<a rel='nofollow' href=\"" + file+ "\">" + file + "</a>");


"InsertImage" and  "
InsertHTML" work great, but "Audio" and "Video" don't do anything.

This page doesn't mention those commands (they must be newer): 
https://blazor.syncfusion.com/documentation/rich-text-editor/exec-command

The tooltips for these commands show "Command for embedding audio files into the editor." and " Command for embedding video files into the editor."

How do we make these commands work?


2 Replies

BT Bhuvaneshwari Thirunavukarasu Syncfusion Team May 16, 2025 12:07 PM UTC

Hi Brian Pautsch,
Thanks for reaching out and sorry for the delay.
We have considered the reported issue "CommandName.Audio and CommandName.Video Do Not Insert Media in Rich Text Editor" as a bug from our end. The fix will be included in our upcoming patch release, which is scheduled for the fourth week of May.


Now you can track the status of the reported issue through this feedback,

CommandName.Audio and CommandName.Video Do Not Insert Media in Rich Text Editor in Blazor | Feedback Portal


Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”


Regards,

Bhuvaneshwari Thirunavukarasu



BT Bhuvaneshwari Thirunavukarasu Syncfusion Team June 12, 2025 12:56 PM UTC

Hi Brian Pautsch,

Query: CommandName.Audio and CommandName.Video Do Not Insert Media in Rich Text Editor

​Feedback: CommandName.Audio and CommandName.Video Do Not Insert Media in Rich Text Editor in Blazor | Feedback Portal

We have included the fix for the issue  "CommandName.Audio and CommandName.Video Do Not Insert Media in Rich Text Editorwith our package version 29.2.10. So, can you please upgrade your package to the latest to resolve the issue from your end?


Root cause: The commandName for audio and video is added wrongly.

Regards

Bhuvaneshwari T


Loader.
Up arrow icon