The example text isn't displaying in the text editor, I can add text to the editor but unable to format it using the toolbar.
I am using a shortened version of the example code from the getting start guide: https://blazor.syncfusion.com/documentation/rich-text-editor/getting-started-webapp
I have linked the stylesheet and the javascript in App.Razor.
Any help would be appreciated
@rendermode InteractiveServer
<SfRichTextEditor>
<RichTextEditorToolbarSettings Items="@Tools" />
<p><b> Key features:</b></p>
<ul>
<li><p> Provides <b>IFRAME</b> and <b>DIV</b> modes </p></li>
<li><p> Capable of handling markdown editing.</p></li>
<li><p> Contains a modular library to load the necessary functionality on demand.</p></li>
<li><p> Provides a fully customizable toolbar.</p></li>
<li><p> Provides HTML view to edit the source directly for developers.</p></li>
<li><p> Allows preview of modified content before saving it.</p></li>
</ul>
</SfRichTextEditor>
@code {
private List<ToolbarItemModel> Tools = new List<ToolbarItemModel>()
{
new ToolbarItemModel() { Command = ToolbarCommand.Bold },
new ToolbarItemModel() { Command = ToolbarCommand.Italic },
new ToolbarItemModel() { Command = ToolbarCommand.Underline },
new ToolbarItemModel() { Command = ToolbarCommand.StrikeThrough },
};
}
Using Rich Text Editor Correctly
Your component should look something like this:
razor
Copy
Edit
@using Syncfusion.Blazor.RichTextEditor
<SfRichTextEditor>
<p>This is some rich text content.</p>
</SfRichTextEditor>
Found the issue, I had uninstalled the general package (SyncFusion.Blazor) and replaced it with the specific package (SyncFusion.Blazor.RichTextEditor)