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?
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
Hi Brian Pautsch,
Query: CommandName.Audio and CommandName.Video Do Not Insert Media in Rich Text Editor
We have included the fix for the issue "CommandName.Audio and CommandName.Video Do Not Insert Media in Rich Text Editor" with 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
- 2 Replies
- 2 Participants
-
BP Brian Pautsch
- May 13, 2025 05:44 PM UTC
- Jun 12, 2025 12:56 PM UTC