Changing background toolbar colour and text colour in tinymce editor

痴心易碎 提交于 2019-12-14 02:55:38

问题


I have used this code in my init call for tinymce to point at my main css file:

<script>
            tinymce.init({
                selector: 'textarea',
                content_css:'default.css'
            });

This works well and within that CSS i use this to alter the background colour of the body of my editor :

.mce-content-body {
background: #474F52;
}

I now want to add to this the appropriate CSS overrides for the toolbar colour - the button colour and the text colour as per:

Please help! I have searched far and wide to no avail.


回答1:


/* toolbar */
.mce-toolbar-grp {
    background-color: #000 !important; /* uses !important or override .mce-panel background-color/image */
    background-image: none !important;
}

/* text color */
#tinymce {
   color: #dd9900;
}

/* button text color */
.mce-ico {
   color: #dd9900;
}

/* button background color */
.mce-btn button {
    background-color: #000000;
}


来源:https://stackoverflow.com/questions/24642448/changing-background-toolbar-colour-and-text-colour-in-tinymce-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!