Quill font format is ignored

604 views Asked by At

I have the instance and the Quill editor. As well, i use custom fonts for my toolbar:

Font.whitelist = ['roboto', 'roboto-mono'];
Quill.register(Font, true);

Then i use font roboto-mono for text. When i save the innerHTML from the .ql-editor I have something like this:

<p><span class="ql-roboto-mono">asdkasdlas</span></p>

But when I insert it in the editor on refreshing page, I got the next result: <p>asdkasdlas</p> For inserting text I use quill.clipboard.dangerouslyPasteHTML. What did I wrong?

1

There are 1 answers

1
Mike Aski On

This was a bug in Quill (in Parchment, in fact...).

Just provided a fix.