[PR #838] Addition of a Source View for Html Editor #2352

Closed
opened 2026-01-29 18:18:26 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/radzenhq/radzen-blazor/pull/838

State: closed
Merged: Yes


Added a toolbar button for switching between rendered and source view.
When in source view, the formatting tools are disabled.

This gave rise to a new property in toolbar buttons using the editor's 'View' to enable or disable the button. This is a flag, so you can create a button that will be active in 'Rendered', 'Source' or both (can't think what could be done in both, but I'm sure someone will have a need in the future). This defaults to Rendered so as not to break existing code.

I also tried, instead of disabling buttons, hiding them. The UI looked messy switching between the two views.

Look forward to your thoughts...

Best Regards

Paul Ruston

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/838 **State:** closed **Merged:** Yes --- Added a toolbar button for switching between rendered and source view. When in source view, the formatting tools are disabled. This gave rise to a new property in toolbar buttons using the editor's 'View' to enable or disable the button. This is a flag, so you can create a button that will be active in 'Rendered', 'Source' or both (can't think what could be done in both, but I'm sure someone will have a need in the future). This defaults to Rendered so as not to break existing code. I also tried, instead of disabling buttons, hiding them. The UI looked messy switching between the two views. Look forward to your thoughts... Best Regards Paul Ruston
claunia added the pull-request label 2026-01-29 18:18:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#2352