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

ConvertToXhtml ContentFilter converts &nbsp to space

4 Answers 137 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Scott Clark
Top achievements
Rank 1
Scott Clark asked on 20 Sep 2010, 10:26 PM

I'm currently using version 2009.1.527.35 of the Telerik RadControls for ASP.NET Ajax.  When I use the Default Content Filters ( or none) and the user edits the content using the HTML view and adds an   then clicks Design and back to HTML, the entity is translated to a space.  I narrowed down the issue to the the ConvertToXhtml content filter by a process of elimination.

Is this expected behavior?  I did notice that Firefox doesn't exhibit the same behavior--only IE 8.  I didn't try IE7 or Chrome.

I don't really care for the result--I'd like to keep XHTML formatting, but I don't really have a choice since the   is more critical to the CMS.

Here's how to reproduce the issue:

1)  Create a page with the following markup:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebpPrototype._Default" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
    <telerik:RadEditor ID="RadEditor1" runat="server" Skin="Black" ContentFilters="ConvertToXhtml,RemoveScripts,FixUlBoldItalic,IECleanAnchors,FixEnclosingP,MozEmStrong,ConvertFontToSpan,IndentHTMLContent,OptimizeSpans">
    </telerik:RadEditor>
    </div>
      
    </form>
</body>
</html>

2)  View the page in the browser.  Click HTML.  Add an &nbsp; to the content.  Click design.  Click back and the &NBSP; has been replaced with spaces.
3)  In the page markup, remove the ConvertToXhtml form the ContentFilters.  Repeat and see the expected results.

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 23 Sep 2010, 01:44 PM
Hello Scott,

This problem is fixed in the latest Q2 2010 SP1 version 2010.2.826 of RadControls for ASP.NET AJAX. My suggestion is to test the live demos of RadEditor, which use the latest Telerik.Web.UI version. If the problem does not exist, upgrade the Telerik.Web.UI.dll in your projects bin folder with the latest one.

Best regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Scott Clark
Top achievements
Rank 1
answered on 29 Sep 2010, 12:58 AM
Thank you!
0
ken
Top achievements
Rank 1
answered on 13 Oct 2010, 05:35 AM
When I use Edit Template in RadGrid , data get by ItemDataBound from Grid. If column data is string empty, it show "&nbsp:" in textbox.text
I use Telerik version 929_35.

Please help.
Thanks!
0
Radoslav
Telerik team
answered on 18 Oct 2010, 09:09 AM
Hello Ken,

I tried to reproduce the described issue, but to no avail. I am sending you a simple example, please check it out and let me know what differs in your case.
Looking forward for your reply.

Regards,
Radoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Scott Clark
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Scott Clark
Top achievements
Rank 1
ken
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or