Skip to content

fix(richtext): create break nodes on shift + enter#7817

Open
delucis wants to merge 1 commit into
decaporg:mainfrom
delucis:chris/richtext-soft-breaks
Open

fix(richtext): create break nodes on shift + enter#7817
delucis wants to merge 1 commit into
decaporg:mainfrom
delucis:chris/richtext-soft-breaks

Conversation

@delucis
Copy link
Copy Markdown
Contributor

@delucis delucis commented May 19, 2026

Summary

Inserts break elements on shift + enter in richtext widget, matching how the markdown widget works.

Closes #7816

I referred to the ExtendedBlockquotePlugin which has a similar design and the old LineBreak method from the markdown widget. Happy to adjust the approach if there’s a better one as this was my first time figuring out Plate and am not familiar with best practices etc.

Test plan

Tested in a local project with a patch. I didn’t see tests for other plugins, so wasn’t sure if I should/how to implement testing for this.

Checklist

Please add a x inside each checkbox:

A picture of a cute animal (not mandatory but encouraged)

@delucis delucis requested a review from a team as a code owner May 19, 2026 21:35
Copy link
Copy Markdown
Contributor

@yanthomasdev yanthomasdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks @delucis!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Soft line breaks in new richtext widget

2 participants