HTML Editor Custom Tool Wrap Code

I'd like to add custom tools to the RadzenHtmlEditor which wrap the selected text/html in a div with a custom class. I know that currently something similar can be done with:
await editor.ExecuteCommandAsync(HtmlEditorCommands.FormatBlock, "pre")

But I'd like to do something like the following:
await editor.ExecuteCommandAsync(HtmlEditorCommands.WrapHtml, "div", className: "my-custom-class")
Which would wrap whatever is highlighted in the editor with:

<div class="my-custom-class">
    <!-- Whatever is selected -->
</div>


Or perhaps even allow a dictionary of attributes and values to be passed as a parameter so that more than just the class list can be set. I.e:
await editor.ExecuteCommandAsync(HtmlEditorCommands.WrapHtml, "div", attributes:new Dictionary<string, string> { { "class", "my-custom-class" }});

Hi @Matthew_Conradie,

Unfortunately this is not possible. The built-in browser API does not support what you are after.

Thank you for responding. I'll try and get it to do what I require through the javascript interop.