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

Newline inserted when there is a text-align in the innerHTML #786

Closed
clemmy opened this issue Jul 6, 2016 · 0 comments
Closed

Newline inserted when there is a text-align in the innerHTML #786

clemmy opened this issue Jul 6, 2016 · 0 comments

Comments

@clemmy
Copy link

clemmy commented Jul 6, 2016

When initializing Quill with innerHTML that includes text-align styling, there will be a random newline inserted in the editor.

Steps for Reproduction

  1. Visit http://beta.quilljs.com/playground/
  2. Replace the editor-container's innerHTML with <div style="text-align: center;">hi</div>
  3. Observe that there is a newline.
  4. Replace the editor-container's innerHTML with <div>hi</div>
  5. Observer that there is no newline.

Platforms: Chrome 52 on Mac 10.10.5

Version: 1.0.6.Beta

@jhchen jhchen closed this as completed in e51ce5b Jul 7, 2016
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