wysiwyg-editor
wysiwyg-editor copied to clipboard
Cursor jumps to place where text was deleted when inserting link
Expected behaviour.
I can insert a link when highlighting text
Actual behaviour.
Sometimes when inserting a link when highlighting text, Froala duplicates the text elsewhere in the editor instead. It inserts the text into the editor wherever text was last deleted
Steps to reproduce the problem.
- add some lines of text
- type some new text, and then delete that text
- go elsewhere in the editor, highlight some text, and then delete.
- instead of the highlighted text being linked, it is duplicated into the spot where the previous text was deleted.
This happens only with the ENTER_BR newline config.
See recording:
https://user-images.githubusercontent.com/5510974/217598982-54d4ae4d-59b8-4941-8e96-a4e6a43fc2f3.mov
Editor version.
This issue is new in v4.0.17. I believe it was introduced when trying to fix https://github.com/froala/wysiwyg-editor/issues/4545
OS/Browser
Mac, happens on all browsers.
Is there anything new with these annoying jumping cursor bugs? There are too many people complaining about jumping cursors. it happens with links, blur and focus, brake lines, and many more scenarios.