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?
This was a bug in Quill (in Parchment, in fact...).
Just provided a fix.