• hello, i activated the editor-style.css, everything shows up, also the font size and the google font, but not the color, does anyone have this issue? i put also only the color for one font, no way to show up the color.

    another question, i have also the h1 and a in the editor-style.css, how can i make these show up?

    and the last point, is there a possibility to change the names of the styles for the client? let’s say, change h1 to title, this would be a very useful approach…

    WP4.0/latest

    thanks

    https://wordpress.org/plugins/tinymce-advanced/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    Hm, not sure what’s going on with the colors, perhaps something overrides them?

    You can change the names of the styles to whatever you want. The requirement is that the same names are used in both editor-style.css and the theme’s style.css.

    Thread Starter W2014

    (@w2014)

    the name is the same, but still the color does not appear, only the size and the font-style. do you have also this issue? i mean, is this a bug?

    Thread Starter W2014

    (@w2014)

    ok, i found it finally out, that is a very tricky bug in the plugin. i could solve that, one of the dummiest bugs i ever saw…because i worked 1 week to find it out, i would charge 100 euro for the bugfix…

    @w2014
    Are you effing kidding me?

    Plugin Author Andrew Ozz

    (@azaozz)

    @w2014 LOL, how much did you pay for this plugin? How about for the TinyMCE editor or for WordPress?

    I’m guessing it is something in editor-style.css that causes the colors to not apply. Most likely already fixed in the updated TinyMCE that is coming in WordPress 4.1 in December 🙂

    Thread Starter W2014

    (@w2014)

    ok…i decided to reveal the SOLUTION to the community:

    in class-wp-editor.php search for “preview_styles” (line ca. 494) and add “color”, it should look like this (there you can add all styles you want to show up):

    // Limit the preview styles in the menu/toolbar
    					'preview_styles' => 'font-family font-size font-weight font-style text-decoration text-transform color',
    Plugin Author Andrew Ozz

    (@azaozz)

    This controls the text color of the “block formats” drop-down (on the toolbar) which is “outside” of the editor. It has nothing to do with editor-style.css which is for inside the editor.

    I misunderstood your initial question, thought you meant that text color doesn’t work/show in the editor or on the site.

    Thread Starter W2014

    (@w2014)

    hello, although you know that bug, it is still not implemented it in the newest version…so the dropdown still does not show the colours…
    it is just a simple setting, adding colour to that setting i mentioned…

    Plugin Author Andrew Ozz

    (@azaozz)

    Yes, the preview color in the drop-downs is disabled by default in the WordPress integration. You can enable it by changing the preview_styles setting from a plugin. If you remove it (unset it) the TinyMCE default will be used.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Editor not showing the color style’ is closed to new replies.