View Source Philtre.Block.ContentEditable.CleanEmptyCells (philtre v0.12.1)

Cleans up empty cells from a block.

Various block actions will result in empty cells being left over. These are redundant and can be removed without any consequences, resulting in a simpler html.

Link to this section Summary

Functions

Removes empty cells from a block.

Link to this section Functions

Removes empty cells from a block.

Since a new block must contain an empty cell, that one is not cleaned up in this scenario.

If block selection starts and/or ends within a cleaned up cell, that edge of selection is moved into the next appropriate cell.