This is my MudHtmlEditor component:
<MudHtmlEditor @ref="_htmlEditor" @bind-Html="_currentTemplate.Body">
<MudHtmlToolbarOptions InsertImage="true" />
</MudHtmlEditor>
And I try to add text / html code dynamically to the editor by doing the following
private void InsertVariable(string variable)
{
_currentTemplate.Body += $"<p>{{{{{variable}}}}}</p>";
StateHasChanged();
}
(I have also tried SetHtml and calling the OnChange methods manually but none of this worked for some reason)