In App.razor habe ich im Kopfbereich Folgendes hinzugefügt:
Code: Select all
Code: Select all
Code: Select all
Code: Select all
private BlazoredTextEditor textEditor;
private string editorContent;
private async Task GetEditorContent()
{
editorContent = await textEditor.GetHTML();
Console.WriteLine($"Editor Content: {editorContent}");
}
private async Task SetEditorContent()
{
await textEditor.LoadHTMLContent("
This is preloaded content!
");
}
Mobile version