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

Unable to split formatted single element multiline quote #471

Open
Poldraunic opened this issue Sep 30, 2024 · 0 comments
Open

Unable to split formatted single element multiline quote #471

Poldraunic opened this issue Sep 30, 2024 · 0 comments

Comments

@Poldraunic
Copy link

Hi! Encountered an issue today.

Repro:

  1. editor.setHTML('<i>foo<br>bar</i>'); editor.increaseQuoteLevel().
  2. Set cursor to the end of the first line.
  3. Press Enter. Get an empty line as expected.
  4. Press Enter. Get another empty line instead of split.

isEmptyBlock() function checks the textContent property for an element. And in this case, it is not empty and so no split happens.

This example is a reduction of a real world E-mail I have in my database. Should I be doing some extra preprocessing for this kind of input? Is it possible to fix this in Squire itself?

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

No branches or pull requests

1 participant