SfRichTextEditor Inside modal bind does not work

Hi, I have a SfRichTextEditor inside a modal.

I already use this component outside modals and they works perfectly.

I've added refreshUI like suggested in this post

https://www.syncfusion.com/feedback/9692/rich-text-editor-does-not-initialise-correctly-within-modal-dialog

<SfRichTextEditor @bind-Value=@text

                                  Height="200"

                                  EnableTabKey=true

                                  EnableAutoUrl=true

                                  EnablePersistence=true

                                  AutoSaveOnIdle=true

                                  ShowCharCount=true

                                  Readonly="@(!Enabled)"

                                  Enabled="@Enabled"

                                  CssClass="is-sf-rte">

</SfRichTextEditor>


I have a dropdown, and when the dropdownvalue change I fill text variable with Html, also with StateHasChanged the Rich TextBox blink and does not change the text inside.

Can you help me?


1 Reply

VY Vinothkumar Yuvaraj Syncfusion Team May 15, 2023 10:48 AM UTC

Hi Martina,


We have created a sample based on the information you provided. Unfortunately, we were unable to replicate the problem you reported on our end. Please refer to the attached sample and video.


If you are still experiencing an error, please provide the following information so that we can replicate the issue:


  • Share your code or a runnable sample.
  • If possible, modify our sample to reflect the issue you are encountering.
  • Please provide the replication procedure so that we can investigate the problem.
  • If possible, include a video that demonstrates the issue you are experiencing.


Regards,

Vinothkumar


Attachment: RichTextEditor182327_4b5cd2f5.zip

Loader.
Up arrow icon