-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[@lexical/playground] fix: block cursor show horizontal #6486
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hi @keiseiTi! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
size-limit report 📦
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
could we have some screenshots to highlight the differences in the before & after please? |
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 changed the PR description because this does not close #6459 (the table cell is still deleted) but it does fix the cursor display
@etrepum, let's revert this one. The block cursor is intended to be an underline. This now brakes when you have a table as first cell and move the cursor before the table. The reason it only works for the horizontal line is because of the CSS margins. |
@ivailop7 It looks like it works to me? This is playground css so if a user has their own css that would make this hard to see (e.g. table border of the same color) they could change it accordingly vertical-cursor.mov |
Another RTE that I could find that supported this state had similar tall vertical cursor behavior next to a table: https://richtexteditor.com/Demos/table-support.aspx Although this one has an underline cursor above the table The other editors I could find wouldn't let you get into that selection state |
Press up from that position. |
https://prosemirror-tables.netlify.app/ |
Description
Describe the changes in this pull request
fix lexical PlaygroundEditor Theme blockCursor show
RE #6459
Test plan
Before
Insert relevant screenshots/recordings/automated-tests
not need test
After
Insert relevant screenshots/recordings/automated-tests
not need test