.addStyles not passing url correctly
editor.addStyles (http://quilljs.com/docs/editor/api/#quillprototypeaddstyles) works great for inline styles, however passing a file url doesn't seem to work.
Adding it inline inputs the styles into the iframe within <style type="text/css></style> tags as expected, however adding a url in the format documented in the API docs, ie.
editor.addStyles('FILENAME.css');
seems to just put the url within style tags as plain text. See images below:
This in the editor:
Translates to this within the iframe:
Is this a bug or a problem with my code?
Hmm, I can't seem to reproduce your situation. Can you put up a live demo?
I can't reproduce either. Can you check what version of Quill you are using? Printing out Quill.version should give you this value.
Am on 0.15.3, recently updated from 0.13.2 and having same problems on both. I will look into creating a live demo if possible.
I'm going to close this as not reproducible. If you can get a demo up feel free to reopen.
Ok, we reverted back to 0.15.1 (from 0.15.3) and it has solved the problem for the time being, I will come back to this if we have to go to a newer version again and it is still happening