Steps to reproduce:
- In VE standalone, edit <table><tr><td>hello</td><td>world</td></tr></table>
- Click on the word "hello" to put the selection inside the table
- Click on the "Insert paragraph" slug just above the table
Expected behaviour: The paragraph is inserted
Actual behaviour: The paragraph is inserted, but an exception is thrown
This happens because paragraph insertion modifies the document, but the tableNode.editingFragment.selection doesn't get correspondingly updated.
However, the impact is mitigated because we've fixed T185546, so the danger of the exception causing model corruption is pretty low.