[solved] MicroTiny background and text color

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
kendo451

[solved] MicroTiny background and text color

Post by kendo451 »

If you have a template that uses the </__body> element as a wrapper with a different color background than the content area, it is probable that your MicroTiny content editor will show the "wrong" background color, or the background will be so close to the text color as to be unreadable.

The simple solution to this is as follows:

Add the following line to your stylesheet, after any general body styles:

Code: Select all

body#tinymce {
  background:#fff;
  color:black;
}
The reason this works is that MicroTiny uses an Iframe where the body uses the same stylesheets as your page, but the body element has the id of "tinymce".

You can set the background and color to anything you want. You could also style link colors etc by prefixing your selector with #tinymce. Example:

Code: Select all

#tinymce a { color: blue; }
Locked

Return to “CMSMS Core”