I have an editor.css file in my theme, but the style sheet is not loaded in the editor.

When using WYSIWYG module with other editors, there was an option to set which style sheet(s) should be loaded. That option seems to be gone from this module, and it's unclear how to add the editor.css file into the iframe.

If it's supposed to be picked up automatically, then that is not happening.

*edit*

I checked the code for this module, and it looks like the only place editor.css is mentioned is in the description text for the toolbar style_list. Perhaps this feature hasn't been implemented yet.

I did find a hook_ckeditor_css_alter so that a stylesheet could be added from a module, but I think it would be better if someone preparing a theme didn't also have to prepare a module in order to have their theme's editor.css file included.

Additionally, I did find that the front-end editor-specific style sheet will not be added if the admin theme is being used to edit content, so re-titling this issue to reflect the request to add that sheet automatically, since an issue for including it for an admin theme may have been closed (works as designed).

For those who need a work-around until this feature is implemented, you can also add a line in your theme's info file to have the stylesheet included:

ckeditor_stylesheets[] = css/editor.css

Comments

jenlampton’s picture

Title: editor.css not loaded in admin theme » editor.css not loaded in automatically
Issue summary: View changes
jenlampton’s picture

Issue summary: View changes