Custom classes in the editor and mce_options
-
Hello again!
I’ customizing a theme, and I wanted to add some classes to the editor so it’d be easier to use them. I wanted to do something similar to what was done in the “Freshy 2” theme (Mainly because i knew it worked), but when I tried to implement it I realized that mce_options is deprecated.
The code of freshy goes like this:
add_filter("mce_buttons", "freshy_editor_mce_buttons", 0); add_action("mce_options", "freshy_editor_mce_options", 0); if (!class_exists('Nice_theme')) add_action('wp_head','freshy_head'); function freshy_editor_mce_options() { print 'content_css:"';bloginfo('stylesheet_directory');print '/content.css",'; }
Any idea how I should modify it so it works?
Thanks in advance!
- The topic ‘Custom classes in the editor and mce_options’ is closed to new replies.