|
Hello
In JCE, you can call a custom CSS file that the editor uses. From the backend: - Components>JCE Admin>JCE Configuration - Set Template CSS Classes to NO - In the Custom CSS Classes field, enter the name of your CSS file for the editor to use. (editor_content.css) - Save the Configuration. - In your current Template CSS folder add the CSS file for the editor to use (editor_content.css). In the editor_content.css file you can set the editors background color by using the BODY tag.
BODY { margin: 0px 0px 0px 0px; background-color : #ffffff ; color : #000000; }
You should also add the rest of the tags that are setup in your template_css.css file that the editor will use (p h1, h2, h3, a:link, etc)
Here is a basic on that I use for the editor_content.css:
html{ font-family : Verdana, Arial, Helvetica, sans-serif; }
BODY { margin: 0px 0px 0px 0px; background-color : #ffffff ; color : #000000; }
h1 { color: #000; font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif; font-size: 36px; font-weight: bold; } h2 { color: #000; font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif; font-size: 30px; font-weight: bold; } h3 { color: #000; font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif; font-size: 24px; font-weight: bold; }
h4 { color: #000; font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif; font-size: 18px; font-weight: bold; }
h5 { color: #000; font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; }
h6 { color: #000; font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; }
/* Horizontal Line */ hr { background: #FF6600; height:2px; border: 1px inset; }
hr.separator { background: #FF6600; height: 1px; width: 75px; border: 0px; }
.x-small, .x-small a:link { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:8px; color:#3366C0; text-decoration:none; font-weight:medium; }
.small { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FF6600; text-decoration: none; font-weight: normal; }
.smalldark { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #333333; text-decoration: none; font-weight: normal; }
td,tr, div { font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif; color: #000000; }
p{ font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif; color: #000000; word-wrap: break-word;} ul { text-indent: 0px; list-style: disc; list-style-position:inside; list-style-type: disc; padding: 10px; margin: 20px;
} li { list-style: disc; list-style-position:inside; text-indent: 2px; list-style-position: inside; list-style-type: disc; padding: 2px; margin: 2px;
} br{ clear: all; }
Hope this helps! Jake
|