Fixed bug where setting the contents of the editor to non text contents would produce an incorrect selection range.