Do you have any ideas what is causing this? I shouldn't have to change a stylesheet just to get a white background on the editor should I?
Thank you,
Terry
6 Answers, 1 is accepted
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 introduced 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
{
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;
background-color: Red !important;
color: Green !important;
}
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.
For more details on this issue, you can review the following forum thread:http://www.telerik.com/community/forums/thread/b311D-ekcma.aspx
Best regards,
George
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
First, anyone placing the editor control on a page would expect the background color to be white, at least to start with. They may want to customize the color, but anyone would expect it to be white to begin with.
Second, setting BackColor="White" on the control should override any stylesheet setting. This is the way all .NET controls work except the RadEditor.
Third, after setting EnableEmbeddedSkins="False", manually adding the stylesheets, and adding "background-color: White !important;" to the body class in EditorContentArea.css all of the tables across my application are rendered with dashed borders because EditorContentArea.css has the "dashed" border style set across all tables and forms. I commented out everything in EditorContentArea.css except the background-color style on the body tag, and the RadEditor control still doesn't render right. It basically doesn't render at all at that point because it looks so weird. I also tried setting EnableEmbeddedBaseStylesheet="false" on the control and that seems to have no effect either.
The other thread that you link to above mentioned this will be fixed in the Q1 2008 release. Is that still the case and when is that release expected?
We are on a very tight schedule and will unfortunately just have to abandon the control until its ready for prime time.
Thank you,
Terry
Thank you,
Terry
Firstly I want to apology about misleading you in my previous reply. The previously sent forum thread is about the classic editor. Actually the solution described in the forum thread works for the "Prometheus" editor and for the classic one as well, because of the unified applying styles mechanism.
I reviewed you issue again and unfortunately the provided information is not sufficient for us to determine what the exact reason for the problem is. That is why I kindly ask you to open a support ticket and send us your project or a sample one reproducing the issue. Once we have your project we will do all our best to provide you with a solution as soon as possible.
As you have already read in the forum thread we plan to implement for the next Q1 2008 release, a new editor's /both Classic and "Prometheus"/ server property which will allow the developers to set directly the content appearance inline in the editor's declaration or through the codebehind - the Q1 release will be in a couple of months.
Kind regards,
George
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I just installed the latest Prometheus update. After adding the RadEditor back into my application it still has a transparent content area and, even worse, every table cell in my whole application (basically everything on all pages) has a dashed border around it.
Thank you,
Terry
Please, open a support ticket and send us your sample project, in which the behavior can be observed, and we will do all our best to provide you with a solution right away.
Regarding the server property which will allow the developers to set directly the content appearance inline in the editor's declaration or through the codebehind - we plan to implement it in some of our future releases.
Best regards,
George
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center