Bug - Pressing Enter in editor inserts line break at wrong position and corrupts bullet list formatting
Requested by: @isaaclombardssw via YakShaver.ai cc: @isaaclombardssw, @lukecookssw, @MarcusIrmscherSSW, @kulesy, @JackDevAU
Hi Team!
Watch the video (1 min 27 sec)
Url from screen share: https://ssw.com.au/rules/admin/-/rules/monitor-youtube-analytics-and-metrics
Pain
Pressing Enter leaves the caret several lines from where it was placed and mangles the bullet list around it. The steps below do not reproduce this on current main. The missing precondition is a block that already contains hard line breaks. Real bug, wrong steps, so do not close it as works-fine.
Approach
Suspect is the break plugin, which drops the node attributes Slate's caret mapping walks. The hard-break fixes merged in August and September 2026 touched this same path and were never checked against this issue.
Acceptance Criteria
- Enter in a block that already contains hard line breaks leaves the caret where it was placed
- The bullet list keeps its structure after that Enter
- Verified in a live browser editor, not a headless one
Reproduce Steps
- Open TinaCMS
- Navigate to an existing Markdown or MDX content item containing a bullet list
- Place the cursor on a line above or within the list
- Press Enter
Screenshot
Figure: Enter key creates misplaced line breaks and incorrect bullet formatting
Source: tinacms/tinacms