Posted By

ecksteing on 10/04/12


Tagged

wordpress


Versions (?)

Add Theme Style to WordPress TinyMCE


 / Published in: PHP
 

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

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

  1. /* USE CUSTOM STYLE.CSS IN POST EDITOR */
  2. add_action('init', 'add_style');
  3. function add_style() {
  4. add_editor_style('style.css');
  5. }
  6. /* END USE CUSTOM STYLE.CSS IN POST EDITOR */

Report this snippet  

You need to login to post a comment.