froala / wysiwyg-editor

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

Newline character extraneously added to inline style #4060

Closed VictoriaHunsaker closed 1 week ago

VictoriaHunsaker commented 4 years ago
Expected behavior.

Editing font size of a block creates a span with correct inlined styles

Actual behavior.

Editing font size of a block intermittently creates a span like <span style="font-size: \n 12px">. When clicking out of the editor and then back in, the malformed styles are not rendered with the edited font size

Steps to reproduce the problem.

I haven't been able to pin down exactly the steps to reproduce because it is intermittent. Steps:

  1. have multi-line text in the editor
  2. set different blocks to have different font sizes
  3. click outside of the editor (to blur or otherwise remove focus from the editor)
  4. click back inside of the editor, the formatting has been removed (because it is malformed)

I used console statements on the result of editor.html.get() to see the extra character.

Any advice on further debugging and/or how to resolve?

Editor version.

3.2.2 (but noticed the issue in 3.1.1)

OS.

macOS Catalina 10.15.6

Browser.

Firefox 80.0.1 (64-bit)

ilyaskarim commented 1 week 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.