I am using dark style with my own custom changes.
But I can't change editor's background.
White color looks terrible.
How can I change this background?
Wait - odd. Whilst it works in preview (F12), it doesn't work when reloading the site despite clearing all caches.
I'm sorry, but this can't be solved using CSS code, it also requires an additional js code. Were are peppering to add such feature in future realizes.
I'll update this topic once I got some news for you.
Sofy is right, there is no way to affect the editor style using CSS code. Try to use JS code in footer.php file of your WordPress active theme. Find the footer.php file and put this code after <?php wp_footer() ?> function. The black bold codes are color codes (#000000 is the background, #dddddd is the font color), you can change those before using:
<script type="text/javascript">
jQuery(window).load(function() {
tinyMCE.activeEditor.dom.addStyle('body{background-color:#000000 !important; color:#dddddd !important;}');
});
</script>
It should look like this:
@robert @sofy this works great - is there an additional command that can be used to set the default font family in the editor ? Doesn't match the rest of my site 🙁
Thanks
The editor font-family should not match to your website. This is an editor area. It always has own font-family. I've already provided a code to insert CSS code in Editor. You can insert any code you want. If you're familiar with CSS and you know the font-family you can put it beside to the color and background.