store element's ContentRange in InsertElementEdit

When an element is deleted, it gets dissociated from the document. While
it can still be referenced by an InsertElementEdit, it is useless for
undo/redo, because its ContentRange gets lost when it is dissociated.
Hence the ContentRange must also be stored in InsertElementEdit.

Signed-off-by: Florian Thienel <florian@thienel.org>
4 files changed