Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
chrisdeeming opened this issue Apr 27, 2018 · 5 comments
Labels

Comments

@chrisdeeming
Copy link

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

@steffenweber
Copy link

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

Could you please have a look? 🙂

@SeanDKendle
Copy link

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

@timfeid
Copy link

timfeid commented May 29, 2018

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)

@Vnthf
Copy link

Vnthf commented May 30, 2018

plz fix this

@stefanneculai
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants