quill icon indicating copy to clipboard operation
quill copied to clipboard

.addStyles not passing url correctly

Open kimberley-p opened this issue 12 years ago • 5 comments

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:

ineditor

Translates to this within the iframe:

inpage

Is this a bug or a problem with my code?

kimberley-p avatar Jul 15 '14 08:07 kimberley-p

Hmm, I can't seem to reproduce your situation. Can you put up a live demo?

heidid avatar Jul 15 '14 19:07 heidid

I can't reproduce either. Can you check what version of Quill you are using? Printing out Quill.version should give you this value.

jhchen avatar Jul 18 '14 00:07 jhchen

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.

kimberley-p avatar Jul 18 '14 10:07 kimberley-p

I'm going to close this as not reproducible. If you can get a demo up feel free to reopen.

jhchen avatar Aug 11 '14 03:08 jhchen

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

kimberley-p avatar Aug 11 '14 10:08 kimberley-p