In updateItemNumbering(), when changing the contents of the numberSpan, delete all its children and add a new text node, instead of assuming the first child is a text node, and trying to change its value. The reason for this is that the text node may have been wrapped in a selection span.
In updateItemNumbering(), when changing the contents of the numberSpan, delete all its
children and add a new text node, instead of assuming the first child is a text node, and
trying to change its value. The reason for this is that the text node may have been
wrapped in a selection span.

corinthia/corinthia-editorlib,corinthia/corinthia-editor,corinthia/corinthia-editorlib,corinthia/corinthia-editorlib,corinthia/corinthia-editor,corinthia/corinthia-editor,corinthia/corinthia-editorlib,corinthia/corinthia-editorlib,corinthia/corinthia-editor,corinthia/corinthia-editor