Hi there,
We are using the RadEditorProvider in our DNN site, and in the RadEditor's config file, we have the ContentFilters property set to "None". When in the editor, it still seems to be changing text while toggling between HTML and design views. The text it is changing is "<!-->", it is changing it to "<!---->". Any ideas on how to absolutely stop changing any text between views? We are using the RadEditorProvider version 4.9.1 and DNN 4.9.4. The version of the Telerik.Web.UI file is 2009.3.1103.20. Any assistance would be so greatly appreciated!
Regards,
Marco
We are using the RadEditorProvider in our DNN site, and in the RadEditor's config file, we have the ContentFilters property set to "None". When in the editor, it still seems to be changing text while toggling between HTML and design views. The text it is changing is "<!-->", it is changing it to "<!---->". Any ideas on how to absolutely stop changing any text between views? We are using the RadEditorProvider version 4.9.1 and DNN 4.9.4. The version of the Telerik.Web.UI file is 2009.3.1103.20. Any assistance would be so greatly appreciated!
Regards,
Marco
4 Answers, 1 is accepted
0
Hi Marco,
I am not aware of this problem and you are the first to report it. My suggestion is to upgrade to the latest official build of RadEditor for ASP.NET AJAX (Q3 2010 SP2 (version 2010.3.1317)) and see whether the problem still persists.
Best regards,
Rumen
the Telerik team
I am not aware of this problem and you are the first to report it. My suggestion is to upgrade to the latest official build of RadEditor for ASP.NET AJAX (Q3 2010 SP2 (version 2010.3.1317)) and see whether the problem still persists.
Best regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Marco
Top achievements
Rank 1
answered on 08 Feb 2011, 03:43 PM
Hi Rumen,
Thank you so much for the response. I have installed the latest version of the Telerik component, 2010.3.1317.20 with the same result. If I put in "<!-->" in the HTML end, switch to Design, switch back to HTML, it changes to "<br><!---->". Is there any way to not modify the HTML at all in design time?
Regards,
Marco
Thank you so much for the response. I have installed the latest version of the Telerik component, 2010.3.1317.20 with the same result. If I put in "<!-->" in the HTML end, switch to Design, switch back to HTML, it changes to "<br><!---->". Is there any way to not modify the HTML at all in design time?
Regards,
Marco
0
Hi Marco,
This behavior is caused by RadEditor's inner content filter responsible for preserving HTML comments inside the content. You can disable this filter during the ClientLoad event of RadEditor using the following code:
I hope this helps.
Kind regards,
Dobromir
the Telerik team
This behavior is caused by RadEditor's inner content filter responsible for preserving HTML comments inside the content. You can disable this filter during the ClientLoad event of RadEditor using the following code:
<
telerik:RadEditor
ID
=
"RadEditor1"
runat
=
"server"
ContentFilters
=
"None"
>
</
telerik:RadEditor
>
<
script
type
=
"text/javascript"
>
function OnClientLoad(eidtor, args)
{
var filtersManger = eidtor.get_filtersManager();
var filter = filtersManger.getFilterByName("IEKeepCommentsFilter");
if (typeof(filter) != "undefined")
{
filtersManger.remove(filter);
}
}
</
script
>
I hope this helps.
Kind regards,
Dobromir
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Marco
Top achievements
Rank 1
answered on 15 Feb 2011, 11:03 PM
Hi Dobromir,
I have added the code per your request and it still modifies the code. See example below:
This is pasted into HTML view:
<!-- ############################# -->
<!--[if!IE]>
<!-->
ABC
<!-->
<![endif]-->
<!--[if IE]>
DEF
<![endif]-->
<!-- ############################# -->
Switch to HTML view, switch back, get this (FireFox):
<!-- ############################# -->
<!--[if!IE]>
<!-->
ABC
<!---->
<!--[endif]-->
<!--[if IE]>
DEF
<![endif]-->
<!-- ############################# -->
In IE8, I get this:
<!-- ############################# --> DEF <!-- ############################# -->
Any ideas? Is there a way to not have the design view modify the text in any way, just load the preview?
Thanks so much for the assistance,
Marco
I have added the code per your request and it still modifies the code. See example below:
This is pasted into HTML view:
<!-- ############################# -->
<!--[if!IE]>
<!-->
ABC
<!-->
<![endif]-->
<!--[if IE]>
DEF
<![endif]-->
<!-- ############################# -->
Switch to HTML view, switch back, get this (FireFox):
<!-- ############################# -->
<!--[if!IE]>
<!-->
ABC
<!---->
<!--[endif]-->
<!--[if IE]>
DEF
<![endif]-->
<!-- ############################# -->
In IE8, I get this:
<!-- ############################# --> DEF <!-- ############################# -->
Any ideas? Is there a way to not have the design view modify the text in any way, just load the preview?
Thanks so much for the assistance,
Marco