/// <summary> /// Executes the requested command with the provided value. Check <see cref="HtmlEditorCommands" /> for the list of supported commands. /// </summary> /// <param name="name">The name.</param> /// <param name="value">The value.</param> public async Task ExecuteCommandAsync(string name, string value = null) { State = await JSRuntime.InvokeAsync <RadzenHtmlEditorCommandState>("Radzen.execCommand", ContentEditable, name, value); await OnExecuteAsync(name); Html = State.Html; await OnChange(); }
async Task UpdateCommandState() { State = await JSRuntime.InvokeAsync <RadzenHtmlEditorCommandState>("Radzen.queryCommands", ContentEditable); StateHasChanged(); }