christiaan / tinymce-codemirror

Development moved to gitlab.com/tinymce-plugins/tinymce-codemirror
https://gitlab.com/tinymce-plugins/tinymce-codemirror
Apache License 2.0
71 stars 29 forks source link

Fix bug with bookmark caused by the wrong offsets being stored in memory #7

Closed ThGraham closed 8 years ago

ThGraham commented 8 years ago

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

christiaan commented 8 years ago

Thanks for taking the time to fix this!