Wysiwyg-editor: Backspacing over the first character of a new line, entirely removes the new line.

Created on 27 Apr 2018  路  5Comments  路  Source: froala/wysiwyg-editor

Expected behavior.

If you backspace the first character of a new line, you shouldn't jump back to the previous line.

Actual behavior.

Backspacing over the first character of a new line, entirely removes the new line.

Steps to reproduce the problem.
  1. Froala front page
  2. Type the following:
This is a line.

T
  1. Backspace the new line's T character.
  2. Entire new line is removed and the caret jumps to the end of line. on the first line.
OS.

Any

Browser.

Any

bug

Most helpful comment

This should be fixed on the current master repo from here.

All 5 comments

IMHO this issue is a little annoying although Froala is a great WYSIWYG-Editor in general.

Could you please have a look? 馃檪

Experiencing this with DIV elements as well, even when they have the "fr-inner" class.

https://codepen.io/anon/pen/jKOLwV

This happens here as well. The 1 letter block + backspace seems to be ignoring NO_DELETE_TAGS or htmlAllowedEmptyTags.

Perhaps #2785 is another example of this.

Note: This pen works correctly when I change the version to 1.7.x

Another note, setting keepFormatOnDelete to true results in the correct behavior (at least for me)

plz fix this

This should be fixed on the current master repo from here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

george-norris-salesforce picture george-norris-salesforce  路  4Comments

studiotemple picture studiotemple  路  3Comments

jmsche picture jmsche  路  3Comments

cksachdev picture cksachdev  路  4Comments

homoky picture homoky  路  3Comments