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

Paragraphs with bottom margins cause a blank paragraph to be inserted below it #797

Closed
kylebragger opened this issue Jul 16, 2016 · 0 comments

Comments

@kylebragger
Copy link

kylebragger commented Jul 16, 2016

When paragraphs in the editable container have an explicit bottom margin set, Quill inserts a blank paragraph below it.

Steps for Reproduction

  1. Visit http://codepen.io/anon/pen/mEpzAA
  2. Change the margin-bottom in the CSS column to 1rem (or anything else non-zero)
  3. Save
  4. Refresh

Expected behavior: Paragraphs in #editor2 are rendered with the specified bottom margin.

Actual behavior: Paragraphs in #editor2 are rendered with the specified bottom margin and a new, blank paragraph is inserted below it.

If you change margin-bottom back to 0, the issue goes away.

Platforms: Chrome 51 on Mac OS X 10.11.5, no extensions, incognito window

Version: Beta 8 (also happens in beta 6)

@kylebragger kylebragger changed the title Paragraph doubling for paragraphs with bottom margins set Paragraphs with bottom margins cause a blank paragraph to be inserted below it Jul 16, 2016
@jhchen jhchen closed this as completed in c0ce4aa Jul 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants