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

Setting CssFiles on RadEditor

3 Answers 110 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Igor Kalders
Top achievements
Rank 1
Igor Kalders asked on 15 Aug 2008, 09:39 AM
The documentation on RadControls for ASP.NET.AJAX (revised 7/23/2008) mentions for RadEditor.CssFiles "Gets or sets the list of external CSS files that should be made available in the editor's content area." and demonstrates this in the samples.

However, the property is readonly, so assignment is not possible (anymore?). I guess the documentation is residue from former versions?

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 15 Aug 2008, 10:48 AM
Hi Igor,

You can set the CssFiles properly like this via codebehind

        RadEditor1.CssFiles.Add("~/external1.css");
        RadEditor1.CssFiles.Add("~/external2.css");

or inline as follows:

<telerik:radeditor runat="server" ID="RadEditor1">
   
<CssFiles>
       
<telerik:EditorCssFile Value="~/ExternalCssFiles/Styles1.css,~/ExternalCssFiles/Styles2.css" />
   
</CssFiles>
</
telerik:radeditor>

More information is available here.

All the best,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Igor Kalders
Top achievements
Rank 1
answered on 15 Aug 2008, 11:14 AM
I'm sorry, I was aware of the codebehind solution. I actually just wanted to point out the error in the documentation, which might be confusing.

I was not familiar with the - sadly, more verbose - declarative solution. So still thanks for pointing that out :)
0
Accepted
Rumen
Telerik team
answered on 15 Aug 2008, 01:26 PM
Hello Igor,

You are absolutely correct about the documentation and I will update the topic. I updated your Telerik points for your feedback!

I am also glad that I was able to help with the declarative syntax :)


Have a nice weekend,
Rumen
the Telerik team

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