Re: [w3c/editing] Should deleting cell's content on a table inside a contenteditable area implies the whole table to be deleted ? (#163)

@gked I can see several things that make sense. For example:

1. Delete table (as you say). The user clearly intended to delete something, the cursor is in this table, not much information is lost anyway, so just remove it.

2. Do nothing. It is not clear what the user wanted to do, and so it's better just to not do anything.

3. Make a separation between deletion of simple and complex content. Simple content is text content content and the start and end of a paragraph. Complex content are non-editable elements, SVGs, images, tables, etc. . When the user is about to delete complex content, it may not always be apparent what will happen, and a lot could be lost if a gigantic table is being deleted. So in the case of complex content, if the selection is collapsed and the user indicates deletion, **do not delete, but select the complex content in question**. This behavior was specified in an earlier draft. So in this case, if we believe the user wanted to delete the (empty) table, select it instead of deleting it. Of course in this particular case the table can hardly be said to be complex content, but for consistency reasons, it would be good to treat all table deletion the same.

4. Add an empty cell into a previous sibling table if there is one.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/163#issuecomment-307461440

Received on Friday, 9 June 2017 18:14:35 UTC