简体   繁体   中英

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:

<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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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