-
Notifications
You must be signed in to change notification settings - Fork 2k
fix(Equation):Fixing cursor position after equation #7720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this 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.
Hi @etrepum , will try to find a better solution for this |
Added InlineParagraphNode, a new Lexical node extending ElementNode to support inline paragraph rendering.
It inherits all properties from ParagraphNode and applies width: auto, minWidth: 1px, and display: inline-flex styles for inline-flex layout
Closes : Bug: Fixing cursor position after equation #7606