RadzenHtmlEditor Name/Id not set #1924

Closed
opened 2026-01-29 18:15:41 +00:00 by claunia · 1 comment
Owner

Originally created by @Anspitzen on GitHub (Dec 9, 2025).

Describe the bug
When setting a Name Property this name is not used anywhere in the resulting editor DOM elements

To Reproduce
Steps to reproduce the behavior:

  1. Go to HtmlEditor Demo
  2. Edit Source by adding a Name Property (Name="TheNameId")
  3. Run
  4. Inspect DOM and see auto generated Id instead of custom set Name

Expected behavior
The Name Property gets used somewhere as Id like on other components

Desktop (please complete the following information):

  • Browser Chrome

Additional context
Trying to get the element reference by javascript and searching by Id
Currently working around by having only one Editor rendered and getElementsByClassNames

Originally created by @Anspitzen on GitHub (Dec 9, 2025). **Describe the bug** When setting a Name Property this name is not used anywhere in the resulting editor DOM elements **To Reproduce** Steps to reproduce the behavior: 1. Go to [HtmlEditor Demo](https://blazor.radzen.com/html-editor) 2. Edit Source by adding a Name Property (Name="TheNameId") 3. Run 4. Inspect DOM and see auto generated Id instead of custom set Name **Expected behavior** The Name Property gets used somewhere as Id like on other components **Desktop (please complete the following information):** - Browser Chrome **Additional context** Trying to get the element reference by javascript and searching by Id Currently working around by having only one Editor rendered and getElementsByClassNames
Author
Owner

@akorchev commented on GitHub (Dec 9, 2025):

Hi @Anspitzen,

Indeed the Name property is not used as any HTML attribute and this is by design. It is used internally for validation.

If you want to set the id attribute specify it as a custom attribute:

<RadzenHtmlEditor id="myEditor">
@akorchev commented on GitHub (Dec 9, 2025): Hi @Anspitzen, Indeed the Name property is not used as any HTML attribute and this is by design. It is used internally for validation. If you want to set the id attribute specify it as a custom attribute: ``` <RadzenHtmlEditor id="myEditor"> ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1924