marmelab / aor-rich-text-input

<RichTextInput> component for admin-on-rest, useful for editing HTML code in admin GUIs
MIT License
23 stars 25 forks source link

fix: jumping cursor #19

Open tarnowsc opened 6 years ago

tarnowsc commented 6 years ago

In current version, while pasting or typing the cursor is jumping to the beginning of the input box. That's because each change of editor content causes the same content to be pasted back to the editor. While pasting only content that do not match current editor inner html allows to keep cursor in its place while typing and also to follow updates done via redux form.