We're having issues with preformatted text in the RadEditor when using FireFox 2.0. We're using the RadEditor for a documentation site where we need to display source code (C#, xml markup, etc). We're trying to use the <pre> tags to format this code. When we wrap content in <pre> tags and switch between design and code views in FireFox, <br /> tags are added where line breaks used to be. In other words:
<pre>asdfasfd
asdfasfd
asfdasfd</pre>
gets changed to this:
<pre>asdfasfd <br />
asdfasfd<br />
asfdasfd</pre>
The same thing happens if we designate another tag, like <code> and give it a white-space:pre; style in the CSS stylesheet. The editor seems to recognize the preformatted style that's been applied and inserts the <br /> tags.
We do not seem to experience this behavior in IE7.
Thanks for your help.
<pre>asdfasfd
asdfasfd
asfdasfd</pre>
gets changed to this:
<pre>asdfasfd <br />
asdfasfd<br />
asfdasfd</pre>
The same thing happens if we designate another tag, like <code> and give it a white-space:pre; style in the CSS stylesheet. The editor seems to recognize the preformatted style that's been applied and inserts the <br /> tags.
We do not seem to experience this behavior in IE7.
Thanks for your help.