How to change background of TinyMCE?

后端 未结 8 1547
慢半拍i
慢半拍i 2020-12-17 10:19

I have just install TinyMCE editor for my website. But the default background is black and text colour is gray. Anybody can tell me how to change background to white and tex

8条回答
  •  一生所求
    2020-12-17 10:43

    TinyMCE is probably using the main stylesheet of your website. And in this case it's with grey text on a black background.

    All you need to do is add this style to your main stylesheet:

    body.mceContentBody { 
       background: #fff; 
       color:#000;
    }
    

    And then hard clear your cache or restart the session so that TinyMCE will load up the CSS fresh. And then your edit area will now show black text (#000) on white backing (#fff).

提交回复
热议问题