http://docs.cksource.com/CKEditor_3.x/D ... ide/Styles
<textarea class="ckeditor" name="mycontent"></textarea> <script type="text/javascript"> CKEDITOR.replace( 'mycontent'); </script>
config.extraPlugins = 'stylesheetparser'; config.contentsCss = '/css/styles.css'; config.stylesSet = []; config.stylesheetParser_skipSelectors = /(^body)/i;
body{
margin: 0px;
background: #1a3749;
background-image: url(/images/admin/background1.jpg);
background-repeat: repeat-x;
}
.error_msg{
color: #ce0f0f;
font-weight: bold;
font-style: normal;
}
Re: including css problems
And the style sheet parser users only rules composed of an element and a class
Re: including css problems
If I undestood well, this line should remove the style to the body (and thus the background) :
I am not sure of what you mean. In my style sheet body and .error_msg are element and class.
Is there a full example of linking an external css to CKEditor somewhere ?
Re: including css problems
contentsCss
Re: including css problems
I made your modification and the class .error_msg appears well in the drop-down menu.
Thank you for your help.