This is a migrated thread and some comments may be shown as answers.

[Solved] Transparent Content Area

6 Answers 215 Views
Editor
This is a migrated thread and some comments may be shown as answers.
terrysmith
Top achievements
Rank 1
terrysmith asked on 08 Jan 2008, 11:54 PM
I added the Prometheus RadEditor to a WebPart. The content area is completely transparent when the page renders. Instead of it being White it displays the tiled background graphic of the master page. Setting BackColor to White doesn't affect anything.

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

Sort by
0
George
Telerik team
answered on 09 Jan 2008, 10:02 AM
Hi Terry,

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
0
terrysmith
Top achievements
Rank 1
answered on 09 Jan 2008, 04:51 PM
Thank you for your response, but this seems ridiculous to me.

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

0
terrysmith
Top achievements
Rank 1
answered on 10 Jan 2008, 11:31 PM
Can I get some more help on this or do I need to submit an issue ticket?

Thank you,
Terry

0
George
Telerik team
answered on 11 Jan 2008, 11:32 AM
Hi 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
0
terrysmith
Top achievements
Rank 1
answered on 18 Feb 2008, 05:44 PM
Hi, is there any status change on this issue?

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

0
George
Telerik team
answered on 20 Feb 2008, 11:15 AM
Hi 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
Tags
Editor
Asked by
terrysmith
Top achievements
Rank 1
Answers by
George
Telerik team
terrysmith
Top achievements
Rank 1
Share this question
or