简体   繁体   English

在tinymce编辑器中更改背景工具栏颜色和文本颜色

[英]Changing background toolbar colour and text colour in tinymce editor

I have used this code in my init call for tinymce to point at my main css file: 我在初始化调用tinymce中使用此代码来指向我的主css文件:

<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 : 这很好用,在CSS内,我用它来改变编辑器主体的背景色:

.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: 现在,我想为工具栏颜色添加适当的CSS替代-按钮颜色和文本颜色如下:

目前编辑

Please help! 请帮忙! I have searched far and wide to no avail. 我搜索了无数次。

/* 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;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM