plugin.handleClick pos is incorrect when click on merged cell

Here is my demo – a table with two merged cells, each containing only one paragraph:

The position atfer the text “2” is 10. However when I click on the red area: The plugin.handleClick pos is 18 (atfer the table_row), and my expected value is 11.

1 Like

I’ve identified that the issue was caused by this commit: 5814486.

The way such cells stick outside of their parent <tr> was confusing the heuristic. Attached patch should fix this.

Thanks so much for the quick response! I’ve verified that the issue is now fixed.