We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi!
Is it possible to validate RichTextBoxes and how? If not, will this feature be added?
Regards, Ivan
The text was updated successfully, but these errors were encountered:
Not at the moment but it could be added sometime in the future.
Sorry, something went wrong.
The built-in validation would require significant API changes to the RTE. We will move this feature to v2.0.
Until then, as a workaround the validation can be done as follows:
<RichTextEdit @ref="richTextEditRef" ConfigureQuillJsMethod="blazoriseDemo.configureQuillJs" ContentChanged="@OnContentChanged" Border="@( string.IsNullOrWhiteSpace( contentAsText ) ? Border.Danger : null)"> ... </RichTextEdit> @if ( string.IsNullOrWhiteSpace( contentAsText ) ) { <Paragraph TextColor="TextColor.Danger">Text is empty</Paragraph> } else { <Paragraph TextColor="TextColor.Success">Text is valid</Paragraph> } @code{ private string contentAsText; public async Task OnContentChanged() { contentAsText = await richTextEditRef.GetTextAsync(); } }
No branches or pull requests
Hi!
Is it possible to validate RichTextBoxes and how?
If not, will this feature be added?
Regards,
Ivan
The text was updated successfully, but these errors were encountered: