How should we handle breaking out of inline leaf nodes? #5622
Unanswered
leo-petrucci
asked this question in
Q&A
Replies: 2 comments 5 replies
-
Did you map the left and right arrow to offset? Is this the proposed solution that you talk about? |
Beta Was this translation helpful? Give feedback.
1 reply
-
On the official example, if I toggle back bold for instance at the end of a line. I continue in a new text node. No? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I only noticed today that I'm unable to exit inline code snippets (as well as bold and italic) if they're typed at the end of a paragraph.
After some research I tracked down this issue #4704, which seems very similar to what I'm experiencing. The proposed solution works great with links, which are structured like:
However the same issue is present for all leaf nodes:
Screen.Recording.2024-03-28.at.16.21.13.mov
None of the nodes mentioned above technically count as
inline
, so the reported fix doesn't work for them. The issue is also present in the official examples.So what's the best course of action here? Should I implement my own bold, italic and code snippet and make them all inline?
Beta Was this translation helpful? Give feedback.
All reactions