Typing over selected text in a table cell removes the entire table
Provide detailed reproduction steps (if any)
A minimal reproduction is available in TinyMCE Fiddle:
Fiddle: (https://fiddle.tiny.cloud/uI1UMM0Ht0/2)
- Open the TinyMCE Fiddle.
- The editor contains a table with one row and three columns.
- In the first cell, enter the text "Test".
- Select/highlight the text "Test".
- Type a character, for example "s", to replace the selected text.
- Observe that the entire table is removed instead of only replacing the selected text in the cell.
✔️ Expected result
When text inside the first table cell is selected and a character is typed to replace the selected text, the entire table is unexpectedly removed.
For example, selecting "Test" in the first cell and typing "s" causes the whole three-column table to disappear. The typed "s" is then inserted as normal paragraph text in the editor.
Only the selected text inside the cell should be replaced; the table itself should remain intact.
❌ Actual result
When text inside the first table cell is selected and a character is typed to replace the selected text, the entire table is unexpectedly removed.
For example, selecting "Test" in the first cell and typing "s" causes the whole three-column table to disappear. The typed "s" is then inserted as normal paragraph text in the editor.
Only the selected text inside the cell should be replaced; the table itself should remain intact..
Video shows the issue
A screen recording demonstrating the issue is attached.
❓ Possible solution
No suggested solution at this time.
Other details
- Browser: Google Chrome
- OS: Windows
- TinyMCE version: 8
- First affected version: Unknown
- Worked in version: Unknown
Source: tinymce/tinymce