WordPress.org

Ready to get started?Download WordPress

Forums

add_editor_style but not for dropdown styles (1 post)

  1. SteveStall
    Member
    Posted 1 year ago #

    Hi,

    I've used add_editor_style to make TinyMCE reflect the styles of my theme.
    On the new css file I declared body#tinymce.wp-editor2 for all classes, ids and tags:

    body#tinymce.wp-editor2 h1,
    body#tinymce.wp-editor2 h2,
    body#tinymce.wp-editor2 .someclass,
    body#tinymce.wp-editor2 div,
    ...

    Unfortunately these styles are affecting the dropdown for the text styles and making it difficult to interact with the list of options.

    Is there a way to affect only the iframe that contains the text?

    Thanks
    Peter

Topic Closed

This topic has been closed to new replies.

About this Topic