• Resolved hirschferkel

    (@hirschferkel)


    i’ve added these lines to my functions.php:

    // Connect the WordPress post editor to your custom stylesheet
    function my_theme_add_editor_styles() {
     add_editor_style( 'editor-style.css' );
    add_action( 'admin_init', 'my_theme_add_editor_styles' );

    Then i got the message in Design > Editor:

    WordPress Wiki Theme: Stylesheet für WYSIWYG-Editor (editor-style.css)

    where i added this link to my current theme’s css document which is in the same directory like the editor-style.css

    @import url( ‘style_blue.css’ );

    /* Add overwrites as needed so that the content of the editor field is attractive and not broken */
    body { padding: 0; background: #fff; }

    But i get still only the wp-content.css sytle while editing e.g. a new page.

    What am i doing wrong?

Viewing 5 replies - 1 through 5 (of 5 total)
  • kmessinger

    (@kmessinger)

    There is no wp-content.css. Where did you get the theme? The css should be in wp-content/theme/yourtheme/css

    Thread Starter hirschferkel

    (@hirschferkel)

    Actually there is in each WordPress:
    https://url/wp-includes/js/tinymce/skins/wordpress/wp-content.css

    But i got a little further, now.
    Somehow the url import does not work, when i edit the editor-style directly, it works 90%

    but for some strange reason the capitons e.g are not displaed well as in the theme they are defined by .wp-caption but are overwritten from the same wp-content.css with dl.wp-caption

    How can i change this?

    Thread Starter hirschferkel

    (@hirschferkel)

    O.k. i understood that some css settings of the theme have to be adjusted to the editor itself. Everythig now really looks like WYSIWYG

    Thread Starter hirschferkel

    (@hirschferkel)

    solved

    I don’t understand how you solved it. Please post.

    • This reply was modified 8 years, 2 months ago by beesbane.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Tinymce doesn't use my theme's css styleheet’ is closed to new replies.