Skip to content
This repository was archived by the owner on Aug 19, 2026. It is now read-only.

Fixed line breaks showing an empty content in nested editors - #603

Merged
sagzy merged 1 commit into
mainfrom
fix/line-breaks-nested-editors
Apr 13, 2023
Merged

sagzy merged 1 commit into
mainfrom
fix/line-breaks-nested-editors

Conversation

@sagzy

@sagzy sagzy commented Apr 13, 2023

Copy link
Copy Markdown
Contributor

refs TryGhost/Product#2992

- at the moment, there are some open issues at Lexical with line breaks
  - meta/lexical#2807
  - meta/lexical#3677
- this commit fixes our workaround in `generateEditorState` for nested editors. We actively remove any additional spaces or line breaks before inserting them
@sagzy
sagzy requested a review from kevinansfield April 13, 2023 11:25
@sagzy
sagzy merged commit a5895f1 into main Apr 13, 2023
@sagzy
sagzy deleted the fix/line-breaks-nested-editors branch April 13, 2023 14:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant