Closed ajboni closed 3 months ago
@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.
:tada: This issue has been resolved in version 2.20.6 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
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.
Works great! I think the "after" part is the most common case, thank you!
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