Getting unexpected "undefined" tags in html text

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.



2 Replies

VJ Vinitha Jeyakumar Syncfusion Team May 16, 2024 07:34 AM UTC

Hi Paul Bunn,


We have already considered the reported issue "The EnterKey as BR is not working properly in the Rich Text Editor" as a bug from our end and the fix for the issue will be included in our upcoming weekly patch release at the end of May 2024

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


Regards,

Vinitha



VJ Vinitha Jeyakumar Syncfusion Team June 12, 2024 11:45 AM UTC

Hi Paul Bunn,

We are glad to announce that our Essential Studio 2024 Volume 2 release v26.1.35 is rolled out and is available for download under the following link.
 

We have included the fix for the reported issue "The EnterKey as BR is not working properly in the Rich Text Editor" with our Vol 2 2024 main release V26.1.35. So please upgrade your package to the latest to resolve the issue from your end.


Root Cause: 
The reported issue occurred since the text Area value property is not updated properly.

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further

Regards,
Vinitha

Loader.
Up arrow icon