-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 can't understand "font-weight: bold" ? #1456
Comments
I can reproduce:
Expected behavior: Actual behavior: This line gives false in Firefox: if (style.fontWeight && computeStyle(node).fontWeight === 'bold') {
formats.bold = true;
} Platforms: Chrome 58 on Windows 7 - good. Version: |
Nice, it's working perfectly on Firefox and Edge when I modify the condition like this:
Should you submit the patch or do you have a better solution to offer ? |
The spec says:
|
According to the CSS spec: The keyword 'normal' is synonymous with '400', and 'bold' is synonymous with '700'. https://www.w3.org/TR/CSS2/fonts.html#font-boldness Fixes #1456
Hello everyone !
I need to load an HTML content into an editor, and Im using Quill.
The problem is that my content have tag like "font-weight: bold", and Quill delete them ->
HTML content loaded into Quill ->
<p>Some text <span style="font-weight: bold;">bold text</span></p>
Quill transform it ->
<p>Some text bold text</p>
I have this problem only with firefox and internet explorer, it's working good on Chrome.
Im using Quill 1.2.4.
Any ideas guys ?
The text was updated successfully, but these errors were encountered: