I have the following RTE control:
<SfRichTextEditor EnterKey="EnterKeyTag.BR" @ref="RteObj" Width="auto" Height="10vh" Placeholder="Write a message..." EnableXhtml="true">
<RichTextEditorToolbarSettings Items="@DirectMessageToolBarSettings" />
</SfRichTextEditor>
If I put the text "test" into the control (with no formatting), then when I get the html text, with :
var MessageText = await RteObj.GetXhtmlAsync();
I get the following in MessageText:
<undefined>test</undefined>
I can manually remove the "undefined" tag, but I wonder if this is a known issue (using version 25.2.4), or if I'm using it incorrectly. I tried using @bind-Value (with a string initialized to "") but it exhibited the same behavior.