|
<SfRichTextEditor @ref="RichTextEditor" @bind-Value="@Model.Summary" Height="300" EnableTabKey=true EnableAutoUrl=true EnablePersistence=true AutoSaveOnIdle=true Placeholder="Type your note." CssClass="is-sf-rte">
<RichTextEditorToolbarSettings Items="@Tools" />
</SfRichTextEditor> |
|
<SfDialog Height="75%" Width="500px" Target="#target" IsModal="true" @bind-Visible="Visibility">
<DialogTemplates>
<Content>
<EditForm Model="@rteValue">
<SfRichTextEditor @ref="RichTextEditorObj" @bind-Value="@rteValue.Summary" Height="200" EnableTabKey=true EnableAutoUrl=true EnablePersistence=true AutoSaveOnIdle=true Placeholder="Type your note." CssClass="is-sf-rte">
<RichTextEditorToolbarSettings Items="@Tools" />
</SfRichTextEditor>
</EditForm>
</Content>
</DialogTemplates>
<DialogEvents OnOpen="@DialogOpen" Closed="@DialogClose" Opened="@onopen"></DialogEvents>
</SfDialog>
@code{
SfRichTextEditor RichTextEditorObj;
private void onopen()
{
this.RichTextEditorObj.RefreshUI();
}
}
|