Skip to content

Conversation

Jynx2004
Copy link

  1. Added InlineParagraphNode, a new Lexical node extending ElementNode to support inline paragraph rendering.

  2. It inherits all properties from ParagraphNode and applies width: auto, minWidth: 1px, and display: inline-flex styles for inline-flex layout

  3. Closes : Bug: Fixing cursor position after equation #7606

Copy link

vercel bot commented Jul 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2025 5:04pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2025 5:04pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 23, 2025
Copy link
Collaborator

@etrepum etrepum left a comment

Choose a reason for hiding this comment

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

I'm certain that there is a simpler and robust solution to this, navigating the cursor with the arrow keys works fine, the only issue is creating the same selection with a click.

I think this approach will cause different problems, will only help with this one specific DecoratorNode when it's likely to be an issue for other inline DecoratorNodes, adds a lot of unnecessary complexity a a semantically meaningless element to the document, has no tests, etc. I would not recommend going further with this approach.

@Jynx2004
Copy link
Author

I'm certain that there is a simpler and robust solution to this, navigating the cursor with the arrow keys works fine, the only issue is creating the same selection with a click.

I think this approach will cause different problems, will only help with this one specific DecoratorNode when it's likely to be an issue for other inline DecoratorNodes, adds a lot of unnecessary complexity a a semantically meaningless element to the document, has no tests, etc. I would not recommend going further with this approach.

Hi @etrepum , will try to find a better solution for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Fixing cursor position after equation
3 participants