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

Quill adding extra lines after removeFormat() #4452

Open
gabrielcursino opened this issue Oct 17, 2024 · 0 comments
Open

Quill adding extra lines after removeFormat() #4452

gabrielcursino opened this issue Oct 17, 2024 · 0 comments

Comments

@gabrielcursino
Copy link

Quill adding extra lines after removeFormat()

Steps for Reproduction

test the code below on playground, for example:

const quill = new Quill('#editor');

quill.on('text-change', (_, __, source) => {
  if (source === 'user') quill.removeFormat(0, quill.getText().length);
});

Expected behavior:

Do not add unnecessary lines

Actual behavior:

Adding extra lines

<p><br></p>

Platforms:

Chrome, Windows 11

Version:

2.0.2

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