WordPress.org

Forums

How to add class to iframe body of TinyMCE for specific content styling (3 posts)

  1. mtpultz
    Member
    Posted 2 years ago #

    I want to add a class to the body of the iframe that is created by TinyMCE editor so I can tailor my editor-styles.css.

    Thanks,

  2. mtpultz
    Member
    Posted 2 years ago #

    Find out how to add a class to the body of tinymce iframe:

    http://stackoverflow.com/questions/7604083/accessing-wordpresss-tinymce-iframe

    But still need to figure out how to detect the content being loaded so I can determine the template or page name being edited. Any ideas?

  3. mtpultz
    Member
    Posted 2 years ago #

    Just used GET['var'] and grabbed the post id from the url. Was hoping for a more elegant solution so I could use more information from the original request without making a separate query but works.

Topic Closed

This topic has been closed to new replies.

About this Topic