wysiwyg-editor icon indicating copy to clipboard operation
wysiwyg-editor copied to clipboard

Cursor jumps to place where text was deleted when inserting link

Open essmahr opened this issue 2 years ago • 1 comments
trafficstars

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.
  1. add some lines of text
  2. type some new text, and then delete that text
  3. go elsewhere in the editor, highlight some text, and then delete.
  4. 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.

essmahr avatar Feb 08 '23 16:02 essmahr

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.

harellevy avatar Aug 07 '24 13:08 harellevy