What Theme are you using?
BlankSlate. But I also switched over to twentyten and twentyeleven and nothing worked. I also added add_editor_style(‘editor-style.css’); to my functions file.
Twenty Eleven does have support for editor styles.
How do you know that it didn’t work when you switched to Twenty Eleven?
Because I activated the Twenty Eleven Theme and added a style and nothing showed up in the styles dropdown. I am using TinyMCE Advanced.
This is the style I added.
.highlight {
color: red;
}
Because I activated the Twenty Eleven Theme and added a style and nothing showed up in the styles dropdown. I am using TinyMCE Advanced.
TinyMCE Advanced and the Editor Style feature are two entirely different things.
This is the style I added.
.highlight {
color: red;
}
Did you add this style definition also to editor-style.css
?
Yes I did add the style definition to the editor-style.css. Don’t you need TinyMCE Advanced to get the styles to display?
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Don’t you need TinyMCE Advanced to get the styles to display?
Nope. The built in TinyMCE editor supports editor-style.css
.
Disable TinyMCE Advanced, switch to the Twenty Eleven theme and try to create a new post. You’ll see the editor-style.css
from Twenty Eleven take effect.