Ionaru / easy-markdown-editor

EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://stackblitz.com/edit/easymde
MIT License
2.39k stars 316 forks source link

Cursor cannot be used correctly on start #221

Closed djschilling closed 4 years ago

djschilling commented 4 years ago

Describe the bug

When i load the editor with a value in it the cursor does not react correctly. Only after i type a letter the cursor does react correctly.

To Reproduce

const editor = new EasyMDE({element: '#editor', initialValue: this.value});

I made a video to show the behaviour: https://seafile.church.tools/f/f5e70a36c13e49a38aad/ i tried to click some times in the video on the bottom of the text.

Expected behavior

The cursor should behave correctly when loading the editor with an initial value.

Version information

Ionaru commented 4 years ago

Do you have the same behaviour on https://easymde.tk/ ?

djschilling commented 4 years ago

no i have not.

djschilling commented 4 years ago

we found out the problem was on our side.