|
|
|
|
|
by badsectoracula
1108 days ago
|
|
I don't think character indices are enough, what if your selection begins at the middle of a table cell and ends on an image that is the only child of a cell in a completely different table (no text involved at all, except some text in the cells in between)? If you want to, e.g., delete those how do you find which nodes are to be deleted and updated (e.g. for merging the two tables if there are cells after the one that contains the image)? |
|
Other approaches would probably require the selection to be a tree of its own, I can't really say whether that's simpler overall or not.