Enter Key Creates New HTML Tag Instead of <br>
### Issue Summary:
When entering text and pressing the Enter key, the editor is generating a new HTML block-level tag (e.g., `<p>`), instead of inserting a `<br>` tag. This behavior is causing formatting inconsistencies and unexpected output in the rendered HTML.
### Steps to Reproduce
1. Open the text editor/input field.
2. Type a line of text.
3. Press Enter.
4. Observe the HTML output.
### Expected Behavior
Pressing Enter should insert a line break `<br>` within the same text block, unless the user is intentionally creating a new paragraph.
### Impact
- Produces unnecessary nested or repeated HTML elements.
- Breaks expected formatting in specific layouts.
- Causes structural inconsistencies in content rendering.
- Creates concerns for SEO where unwanted block tags may alter document hierarchy.
6 条评论