RichTextEditor inside the Dialog Component

17 Aug 20231 minute to read

While rendering the Rich Text Editor inside the Dialog component, the dialog container and its wrapper elements are styled with display as none, so the editor’s toolbar does not get proper offset width and will render above the edit area container. To resolve this issue, you can call the RefreshUI method of RichTextEditor in the Dialog Opened event.

  • @using Syncfusion.Blazor.RichTextEditor
    @using Syncfusion.Blazor.Popups
    @using Syncfusion.Blazor.Buttons
    <SfButton @onclick="@OpenDialog">Open Dialog</SfButton>
    <SfDialog @ref="DialogObj" Width="450px" ShowCloseIcon="true">
        <DialogEvents Opened="@DialogOpen"></DialogEvents>
                <div>Dialog Header</div>
                <SfRichTextEditor @ref="RteObj">
    @code {
        SfDialog DialogObj;
        SfRichTextEditor RteObj;
        private void OpenDialog()
        private void DialogOpen()