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

CSS Styles in RadEditor

3 Answers 105 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Yashar
Top achievements
Rank 1
Yashar asked on 20 Oct 2008, 11:15 AM
Hi,

I have a set of CSS Styles that I want my users to be able to select from the Apply CSS... Drop Down in the RadEditor Toolbar, I've added them to the CssEditor.css file in the common files...5.2.0.0__1f131a624888eeed... directory so they show up fine, but the problem is that all the CORE.CSS styles are also showing up, is there anyway to get round this?

I also have a second issue in that the toolbar sometimes loads up at the bottom of the page, or way off the bottom off the page when clicking inside an editor window, at the moment I have 3 editor's one at the top of the page one below it and another below that, the top editor loads the toolbar fine, but the other two load it further and further down the page, could this be a CSS styling issue?

Thanks.

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 21 Oct 2008, 10:58 AM
Hi Yashar,

Note that, you can also predefine the styles to be displayed in the Apply Class dropdown, by using the respective tools file. Just, set the desired CSS Styles in the Classes collection e.g.
<root> 
  .........  
 <classes> 
   <class name="Clear Class" value="" /> 
   <class name="Links Class" value="a.link" /> 
   <class name="Images Class" value=".img" /> 
   <class name="My Red Text" value=".redText" /> 
 </classes> 
</root> 


As to the second problem: 
I am not sure what the exact reason for the problem is, but note you can easily workaround it by setting ToolbarMode to Default in the corresponding ConfigFile e.g.

<property name="ToolbarMode">Default</property>

I hope this helps.

Greetings,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Yashar
Top achievements
Rank 1
answered on 22 Oct 2008, 08:57 AM
Hi,

Thanks George for your first response that seems to have worked nicely.

The second problem I am having is still an issue, if I change the toolbar mode to default the following happens: Problem!

Which obviously is a little off. Interestingly in firefox the above problem doesn't occur, neither does the first problem of the toolbar showing up miles down the page, which is why I think it might be some sort of CSS issue.

Thanks,

Yashar
0
George
Telerik team
answered on 23 Oct 2008, 11:45 AM
Hi Yashar,

Our controls are primarily designed to work on pages with XHTML doctype , but by default the MOSS Webs does not have one. I tested the behavior using the Office2007 skin and indeed there were some visual problems. We are constantly trying to improve the " quirks mode" and as you can see on your side the problem won't be observed when using some other skin e.g. Telerik, Default, WebBlue, Vista...

Please check this on your side.

Sincerely,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Yashar
Top achievements
Rank 1
Answers by
George
Telerik team
Yashar
Top achievements
Rank 1
Share this question
or