Return to Snippet

Revision: 59840
at October 4, 2012 09:21 by ecksteing


Updated Code
/* USE CUSTOM STYLE.CSS IN POST EDITOR */
 add_action('init', 'add_style');
function add_style() {
	add_editor_style('style.css');
}
/* END USE CUSTOM STYLE.CSS IN POST EDITOR */

Revision: 59839
at October 4, 2012 09:20 by ecksteing


Initial Code
/* END USE CUSTOM STYLE.CSS IN POST EDITOR */
 add_action('init', 'add_style');
function add_style() {
	add_editor_style('style.css');
}
/* END USE CUSTOM STYLE.CSS IN POST EDITOR */

Initial URL
http://eckstein.id.au/12590/wordpress/functions-tinymce-style

Initial Description
This PHP adds the style.css of the active Theme to the WordPress TinyMCE Post and Page editor.

Initial Title
Add Theme Style to WordPress TinyMCE

Initial Tags
wordpress

Initial Language
PHP