Cursor moves to beginning of document after typing
lightninglu10 opened this issue · 4 comments
lightninglu10 commented
Younguser commented
I've saw the same problem. Do you solve it?
mjbradford89 commented
having the same problem. version 5.37.0
lightninglu10 commented
This library doesn't seem to be maintained anymore, so I used https://github.com/scniro/react-codemirror2 instead.
fahad39 commented
Instead of updating content in onChange props try using onblur
<JoditEditor
ref={editor}
value={content}
config={config}
tabIndex={1} // tabIndex of textarea
onBlur={newContent => setContent(newContent)} // preferred to use only this option to update the content for performance reasons
onChange={newContent => {}}
/>