Posted
on Jan 10, 2008
(permalink)
RadEditor 7.3 introduces a slight change to the way EditorContentArea.css works.
In the latest version 7.3 of RadEditor an enhanced content filters
mechanism was introduced. The content filters mechanism is responsible
above all, for correcting browser-generated HTML into XHTML. The
mechanism was developed for RadEditor "Prometheus". The changes
itnroduced allow the editor to properly cover more scenarios.
The editor loads the CSS classes from the EditorContentArea.css file in
the RadControls/Editor/Skins/<Used_Skin>/ folder, followed by the
CSS styles from the parent page [or from external css files if CssFiles
property is used].
To style the elements in the content area you need to define global css classes for them, e.g. body, table, td, th
body
{
background-color: White !important;
color: Black !important;
font-family: Arial !important;
font-size: 10px !important;
padding:3px;
background-image: none;
margin: 0px;
text-align: left;
scrollbar-face-color: #E9E9E9;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #E9E9E9;
scrollbar-3dlight-color: #DBDBDB;
scrollbar-arrow-color: #787878;
scrollbar-track-color: #F5F5F5;
scrollbar-darkshadow-color: #AEAEAE;
word-wrap: break-word;
}
Please, note the use of the !important attribute after the values of some properties.
Since the EditorContentArea.css is loaded first on purpose, it is
possible for another global style to override its settings.If you want
to prevent the overriding of the properties defined in the
EditorContentArea.css file just set the !important attribute after
their values.
Save the file and restart your browser to see the changes.