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

Problem With WhiteSpaces

1 Answer 59 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 25 Aug 2008, 09:01 AM
Hi,

I am currently using rad editor to modify stylesheets with great difficulty. The problem lies with the fact that when a stylesheet is loaded within the editor all the whitespaces are removed. eg.

abbr,acronym,dfn{cursor:help;border:0;}
a abbr,a acronym,a dfn{cursor:pointer;}
pre,address{margin:0;padding:0;}
p,blockquote{margin:0;padding:0 0 1em 0;line-height:1.3em;}
img{border:0;}
small{font-size:0.91em;}

becomes

abbr,acronym,dfn{cursor:help;border:0;} a abbr,a acronym,a dfn{cursor:pointer;} pre,address{margin:0;padding:0;} p,blockquote{margin:0;padding:0 0 1em 0;line-height:1.3em;} img{border:0;} small{font-size:0.91em;}

Is there a way to fix this problem. I have disabled all contentfilters but this still occurs.

Lee

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 Aug 2008, 09:34 AM
Hi Lefkos,

Currently, we do not offer a CSS editing control. The RadEditor controls is an HTML/XHTML editor and it is not suitable for editing CSS files, because their contents will be loaded unstructured in the content area. The content area of RadEditor is editable IFRAME element and you will be able to see the same effect if you load the css content in a standard editable IFRAME element. For your convenience I have attached a sample html page with editable IFRAME element for test.

My suggestion is to search in Google for a good web based CSS editor.



Best regards,
Rumen
the Telerik team

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