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

Inline font-family property lost #1614

Closed
oliverlin opened this issue Aug 1, 2017 · 1 comment
Closed

Inline font-family property lost #1614

oliverlin opened this issue Aug 1, 2017 · 1 comment

Comments

@oliverlin
Copy link

Steps for Reproduction

  1. https://codepen.io/Oliverl/pen/qXZKKe/ Please see what in the html and what is in the content of preview area.
  2. The html content includes some paragraph with font family style property defined. But some of the font style disappeared in the editor.
    This one works fine:
  <p>
    <span style="font-family: Times;">Quill uses classes for most inline styles.</span>
  </p>

This one disappeared:

  <p>
    <span style="font-family: Times New Romen;">Quill uses classes for most inline styles.</span>
  </p>
  1. I am able to apply those font from the toolbar to the content. Just when I put the value of what quill generated to quill editor, the fonts would still disappear.
  2. This happens to those font values with space(like "Time New Romens").
    I believe the issue Inline styling lost after loading/pasting html #1566 also encountered the same issue with me.

Expected behavior:
The font-family property and its value should parsed to the editor content no matter there is space between inside of it or not.

Actual behavior:
Those font style is not parsed in editor content when there are spaces in the font value.

Platforms:
Mac OS 10.12.5
Chrome 59.0.3071.115

Version:
1.3.0

@oliverlin
Copy link
Author

I found there is an existing issue has the same problem #1580. Closing this one.

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