Quill: How to do for quill do not remove font classes?

Created on 14 Oct 2017  路  5Comments  路  Source: quilljs/quill

When quill load the content him removes the font classes from the content.

Steps for Reproduction
https://codepen.io/anon/pen/KXxGwE

Expected behavior
Maintain the font classes

Platforms
Google Chrome 61.0.3163.100
MacOS 10.11.6

Version
1.3.3

bug

Most helpful comment

I'm having still encountering this issue with 1.3.6

UPDATE: I was able to get around this issue by using a single word for the font. So in https://github.com/quilljs/quill/issues/1769#issuecomment-366580257, you need to have ql-font-arialblack (and update your css files and whitelist accordingly).

https://codepen.io/chawes13/pen/YzzvVZd

All 5 comments

Do you have any estimate of when this bug will be fixed?

@nunoguerra Just has to me merged & delivered, now 馃檪

This bug is not fixed.

https://codepen.io/anon/pen/eVpXPQ

Doesn't seem like it, I'm running into this as well.
Send in
<p class="ql-align-center"><span style="font-size:38px;color:rgb(230,0,0);" class="ql-font-arial-black">test</span></p>

and it gets changed to

<p class="ql-align-center"><span style="color: rgb(230, 0, 0); font-size: 38px;">test</span></p>

I'm having still encountering this issue with 1.3.6

UPDATE: I was able to get around this issue by using a single word for the font. So in https://github.com/quilljs/quill/issues/1769#issuecomment-366580257, you need to have ql-font-arialblack (and update your css files and whitelist accordingly).

https://codepen.io/chawes13/pen/YzzvVZd

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rsdrsd picture rsdrsd  路  3Comments

markstewie picture markstewie  路  3Comments

GildedHonour picture GildedHonour  路  3Comments

ouhman picture ouhman  路  3Comments

DaniilVeriga picture DaniilVeriga  路  3Comments