Because of <span id="CmCaReT"></span> being inserted, the bookmark endOffset and startOffset will be incorrect until the bookmark is updated. By doing editor.selection.getBookmark(), the bookmark will be updated, fixing all bugs related to the offset of the rng in tinymce trying to be set to an incorrect value.
Because of
<span id="CmCaReT"></span>
being inserted, the bookmark endOffset and startOffset will be incorrect until the bookmark is updated. By doing editor.selection.getBookmark(), the bookmark will be updated, fixing all bugs related to the offset of the rng in tinymce trying to be set to an incorrect value.https://github.com/christiaan/tinymce-codemirror/issues/2