froala / wysiwyg-editor

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

Cursor in wrong spot after inserting horizontal line #3589

Closed brycehill closed 2 weeks ago

brycehill commented 5 years ago

It looks like even #fr-just attributes are getting stripped when id is excluded from the htmlAllowedAttrs option.

Steps to reproduce the problem.
  1. Create a froala editor instance excluding id from the htmlAllowedAttrs option
  2. Paste in multiple paragraphs of text
  3. Bold the first word
  4. Place cursor after initial paragraph and insert a horizontal line

https://jsfiddle.net/rthx5cjq/

Expected behavior.

Cursor is placed after the horizontal line

Actual behavior.

Cursor is placed after the bolded word

Editor version.

v3.0.4

OS.

MacOS

Browser.

Chrome

Recording.

2019-08-02 10 52 24

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.