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

External CSS question

3 Answers 50 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Fit2Page asked on 09 Sep 2009, 10:12 AM
Hi,

I link an external CSS file to an Editor from codebehind:

NLtext.CssFiles.Add("~/" & TablePrefixStrip & "/css/telerik.css")

This works OK, the stylesheet is coupled.
But when I try to select classes from this sheet and add it with

NLtext.CssClasses.Add("Links class ", ".link")

it cannot find the classes. I think this problem occurs when a stylesheet is coupled which lies above the root of our CMS.

But even when I try

NLtext.CssFiles.Add("http://f2p-server:8136/css/telerik.css")
NLtext.CssClasses.Add("Links class", ".MarLeft")

It is not working.

Please assist, TIA

Marc

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 Sep 2009, 07:37 AM
Hi Marc,

I tried to reproduce the reported problem but without success. For your convenience I have attached a video demonstrating my test and configuration. Please, try the provided steps and let me know if you still experience any problems.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 14 Sep 2009, 12:41 PM
Hi Rumen,

Thanks very much for your explanation.
All this was tested and gone through last by me Friday. When I look now it works, I don't believe it myself.....

The only thing I changed was the skin for the editor. Maybe this has someting to do with caching?

I am truly sorry for the inconvenience.

BR,
Marc

0
Rumen
Telerik team
answered on 17 Sep 2009, 06:31 AM
Hi Marc,

I am glad that the problem was resolved. Yes, when dealing with css styles and iframe elements it is recommended to clear the browser cache.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Rumen
Telerik team
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or