HtmlEditor "view source" button does not work inside and EditForm #771

Closed
opened 2026-01-29 17:43:08 +00:00 by claunia · 0 comments
Owner

Originally created by @Trapulo on GitHub (Mar 15, 2023).

Describe the bug

HtmlEditor "view source" button does not work inside and EditForm

To Reproduce

<EditForm Model="xxxxx" OnValidSubmit="@Save"> .... <RadzenHtmlEditor @bind-Value=xxxx="height: 500px; margin-bottom: 1rem;" UploadUrl="upload/image" Change=@OnChange Paste=@OnPaste Execute=@OnExecute />

run -> click "view source" on the bar (the last command).
The form will be submitted and view source mode will not be activated. The problem is only with this command because it seems it's the only rendered as

Expected behavior
The content may switch to view mode, as without a form around the editor.

Desktop

  • Browser Firefox

Additional context
Blazor wasm 7.0

Originally created by @Trapulo on GitHub (Mar 15, 2023). **Describe the bug** HtmlEditor "view source" button does not work inside and EditForm **To Reproduce** ` <EditForm Model="xxxxx" OnValidSubmit="@Save"> .... <RadzenHtmlEditor @bind-Value=xxxx="height: 500px; margin-bottom: 1rem;" UploadUrl="upload/image" Change=@OnChange Paste=@OnPaste Execute=@OnExecute /> ` run -> click "view source" on the bar (the last command). The form will be submitted and view source mode will not be activated. The problem is only with this command because it seems it's the only rendered as <button> **Expected behavior** The content may switch to view mode, as without a form around the editor. **Desktop** - Browser Firefox **Additional context** Blazor wasm 7.0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#771