We have a requirement to make cell selection behaviour more predictable for merged cells, unfortunately I’m not sure if creating a custom selection class would solve this. I’m thinking it might require changes in the core Selection class.
Please consider the following example:
The desired behaviour would be to select only 1,4 and 7 cells when selecting the first column.
The ultimate goal is to render rectangular overlay on top of all selected cells (as opposed to adding a selected classname), so that in the last example cell 7 should be partially selected (visually select only the first colspan out of 3 for the first column, second colspan for the second column etc).
Would that be possible to achieve by creating a custom selection class? If not, would you @marijn consider making a change in core Selection class to control this behaviour?