Hello,
Given this C# code:
and this in the .aspx file:
we are seeing the HTML content get rewritten as:
and when the ContentFilters="None" property is removed altogether, the HTML content gets rewritten as:
This is pretty unusual behaviour -- in the first case it reordered attributes and rewrote inline styles.... and in the second case it reordered attributes and added one in the <img> tag, but left the <a> tag alone.
The HTML rewriting only seems to happen when initializing the control after setting the Content property. If I paste content into the HTML tab, then post the control back to the server, the content is unaltered.
We'd like to be able to use RadEditor for a project but it is critical that the editor not change the HTML content at all. Is this possible?
I can provide a sample project but it's larger than the 2MB upload limit due to it including the controls DLL itself. Controls version is 2013.1.319.40.
Any insight into this issue would be appreciated, thanks.
Warren.
Given this C# code:
HtmlContentEditor1.Content = @"<html><body>
<img height=
""
0
""
width=
""
0
""
>
<a href=
""
http:
//www.telerik.com"" style=""color: #9a9a9a;"">Telerik</a><br>
</body></html>";
<
telerik:RadEditor
runat
=
"server"
ID
=
"HtmlContentEditor1"
EditModes
=
"Html"
Width
=
"600"
ContentFilters
=
"None"
/>
we are seeing the HTML content get rewritten as:
<
html
><
head
></
head
><
body
>
<
img
width
=
"0"
height
=
"0"
>
<
a
style
=
"color: rgb(154, 154, 154);"
href
=
"http://www.telerik.com"
>Telerik</
a
><
br
>
</
body
></
html
>
and when the ContentFilters="None" property is removed altogether, the HTML content gets rewritten as:
<
html
>
<
head
>
</
head
>
<
body
>
<
img
alt
=
""
width
=
"0"
height
=
"0"
/>
<
a
href
=
"http://www.telerik.com"
style
=
"color: #9a9a9a;"
>Telerik</
a
><
br
/>
</
body
>
</
html
>
This is pretty unusual behaviour -- in the first case it reordered attributes and rewrote inline styles.... and in the second case it reordered attributes and added one in the <img> tag, but left the <a> tag alone.
The HTML rewriting only seems to happen when initializing the control after setting the Content property. If I paste content into the HTML tab, then post the control back to the server, the content is unaltered.
We'd like to be able to use RadEditor for a project but it is critical that the editor not change the HTML content at all. Is this possible?
I can provide a sample project but it's larger than the 2MB upload limit due to it including the controls DLL itself. Controls version is 2013.1.319.40.
Any insight into this issue would be appreciated, thanks.
Warren.