Delete cells from table throws an Error
FabDonRixos opened this issue · 2 comments
FabDonRixos commented
Jodit Version: ^1.3.39
Browser: Chrome
OS: Windows
Is React App: True
Code
You can use the demo from https://xdsoft.net/jodit/
Steps
- Insert a table.
- Select some cells
- Press Backspace/Delete
- In the demo there will only be an error in the console, will in my project there is a fullscren runtime error
Expected behaviour:
The component should catch the error and just leave it there, or better, delete the selected cells.
Actual behaviour:
The error is thrown:
Failed to execute 'insertNode' on 'Range': Nodes of type '#text' may not be inserted inside nodes of type '#document'.
ivxn97 commented
Any solution for this?
FabDonRixos commented
Any solution for this?
Sadly I haven’t found a solution by now.
I just accepted it and lucky only my PO is using it to create Messages so I told him not to delete tables like this