You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this is a bit hard to explain, if you open the demo at https://mdxeditor.dev/editor/demo and replace the content with this table:
| 1 | 2 | 3 |
| - | - | - |
| a | b | c |
| e | e | f |
then go back to editing mode and delete the empty paragraph after the table. The user is unable to enter text either before or after the table. in this particular example, they cannot edit the document any more.
Workarounds
Inerting an image or a link
The text was updated successfully, but these errors were encountered:
ajboni
changed the title
[BUG] Cursor bug after deleting last paragraph before/after a table.
[BUG] Cursor bug after deleting a paragraph before/after a table.
Apr 16, 2024
@ajboni that's a fair point, but I have no definitive idea on how to address this in an elegant way. One approach would be to always keep a paragraph at the bottom, if the last node is a decorator (table, code block, etc). This should be doable with Lexical. I will think about this.
I have done something here, for the "after" part. The before part is not so trivial, I'm afraid. Google docs seems to always keep a paragraph above the table, for example.
Hi, this is a bit hard to explain, if you open the demo at https://mdxeditor.dev/editor/demo and replace the content with this table:
then go back to editing mode and delete the empty paragraph after the table. The user is unable to enter text either before or after the table. in this particular example, they cannot edit the document any more.
Workarounds
Inerting an image or a link
The text was updated successfully, but these errors were encountered: