froala / wysiwyg-editor

The next generation Javascript WYSIWYG HTML Editor.
https://www.froala.com/wysiwyg-editor
Other
5.3k stars 674 forks source link

Vanishing cursor on FF after Enter/Backspace with selection.save() #3773

Closed idzmag closed 2 weeks ago

idzmag commented 4 years ago
Expected behavior.

Text cursor is always visible.

Actual behavior.

When using selection.save() on every keyup, text cursor is not visible after clicking enter or backspace.

Steps to reproduce the problem.

Use this simple fiddle: https://jsfiddle.net/ofLys2ja/ Type something and press Enter or Backspace. On IE it works great, on FF there is no cursor.

I'm using selection.save() to store current cursor position and insert HTML there after losing focus. In real app it's chosen with select2 component so focus on editor is always lost before insert.

Editor version.

Froala v2.9.1. Tested also with 2.9.6

OS.

Mac OS/Ubuntu/any

Browser.

Firefox 68.3.0 ESR

Is there a way to fix the missing cursor or other approach to what I want to achieve (without saving selection on every keyup)?

ilyaskarim commented 2 weeks ago

We’re closing this issue due to inactivity. If you’re still experiencing this problem on the latest version of our editor, please feel free to reopen the issue and let us know. You can find details on the latest updates here: Froala Editor Changelog.