-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
When a table is the last node in the document and its last cell is empty, Ctrl+A fails to select anything but the first node of the document. #2401
Comments
Updating the Something about how I'm happy to open a PR but would love to understand what's causing the issue and even write a test about it if possible. |
Oooooooh, yeah, I thought there might be dragons elsewhere. Thanks for the education, @philippkuehn. |
I had to revert these changes because of #2491 |
The issue is within the Unfortunately this packages isn’t maintained anymore :( |
I removed these lines, and solves the issue for me: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I updated my dependencies recently and noticed that the table extension is now using a fork at |
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days |
There is a strange problem with tables and selecting all content with <ctrl>-<a>. When the last node in the document is a table and the last table cell is empty, then pressing <CTRL>-<a> to select everyting only selects the very first node in the document. As soon as one of the conditions - table not the last node or last table cell not empty - is not met, <CTRL>-<a> selects all, as expected. We fix the problem by making sure some content is following the table and add an empty paragraph. When another solution is found we can remove this hack again. More information here: - ueberdosis/tiptap#2401 - ueberdosis/tiptap#3651
There is a strange problem with tables and selecting all content with <ctrl>-<a>. When the last node in the document is a table and the last table cell is empty, then pressing <CTRL>-<a> to select everyting only selects the very first node in the document. As soon as one of the conditions - table not the last node or last table cell not empty - is not met, <CTRL>-<a> selects all, as expected. We fix the problem by making sure some content is following the table and add an empty paragraph. When another solution is found we can remove this hack again. More information here: - ueberdosis/tiptap#2401 - ueberdosis/tiptap#3651
Allow to select all (Ctrl-A, Command-A) with tables in certain conditions. Due to a tiptap/ProseMirror bug tables with some empty cells and no content preceding or following the table, selecting the whole table did not work. This fix makes sure that a non-empty paragraph is added at the end, if no other content is present at the end of the document. More information here: - ueberdosis/tiptap#2401 - ueberdosis/tiptap#3651
Allow to select all (Ctrl-A, Command-A) with tables in certain conditions. Due to a tiptap/ProseMirror bug tables with some empty cells and no content preceding or following the table, selecting the whole table did not work. This fix makes sure that a non-empty paragraph is added at the end, if no other content is present at the end of the document. Follow-up from: - #61 More information here: - ueberdosis/tiptap#2401 - ueberdosis/tiptap#3651
What’s the bug you are facing?
When:
Ctrl+A will select the first node of the document.
If the last cell of that table has any content, Ctrl+A will select everything as expected.
How can we reproduce the bug on our side?
Can you provide a CodeSandbox?
https://codesandbox.io/s/suspicious-swartz-xfx53?file=/src/App.js
What did you expect to happen?
I expect Ctrl+A to select all the nodes in the document, but it doesn't depending on table node's contents.
Anything to add? (optional)
First, I wanted to ensure where this behavior is coming from. So, I've tried to reproduce this on the clean demo of prosemirror-tables extension - but it works fine.
Though on this tiptap demo it works exactly as in my project, i.e. "select all" is broken for the described scenario.
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: