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

Format Stripper Problem

9 Answers 167 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dan Ehrmann
Top achievements
Rank 1
Dan Ehrmann asked on 03 Jan 2008, 04:56 AM
I am having a problem with the format stripper in the latest Prometheus editor. If I enter:

    <span>asdasd</span>

into the html view, then switch to design view and click the strip span tags button, the editor then contains:

    <span><span style="FONT-SIZE: 14pt"></span>asdasd</span>

Subsequent clicks on the strip span tags button adds even more stuff.

This also happens in the editor on your demo site


9 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 06 Jan 2008, 03:54 PM
Hi Dan,

Thank you for reporting this issue - I logged it in our ToDo list and we will take it for consideration for the upcoming Service Pack.

Your points were updated.

Kind regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Andrew Robins
Top achievements
Rank 1
answered on 03 Jul 2008, 11:33 PM
I am also having a similar problem with the editor using the latest version of the editor.

Could you let me know when you expect to have the issues with the stripping of formatting in the editor resolved?
0
George
Telerik team
answered on 07 Jul 2008, 08:44 AM
Hi Kevin,

Could you please verify that you are able to reproduce the problem using the latest version of the control v.619(SP2). We believe that this issue is fixed.

If you are able to reproduce it using the latest version, please send us the exact reproduction steps, along with your test HTML.

Best regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chris Miller
Top achievements
Rank 1
answered on 05 Jan 2009, 05:14 PM
We're having the exact same problem in 2008.03.1125.20 using FF3 and IE7.

0
Lini
Telerik team
answered on 06 Jan 2009, 09:48 AM
Hi,

The original span tag is not removed because of an editor content filter (ConvertFontToSpan). This filter converts all font tags to spans in HTML view and back to fonts in Design view. This is done to help the browser's HTML editing engines, which internally works with font tags. When you click the remove span tags tool nothing happens because all the span tags have been changed to fonts. To workaround this problem, either disable the ConvertFontToSpan filter (from the codebehind use RadEditor1.DisableFilter(EditorFilters.ConvertFontToSpan) or use the strip all font tags tool to remove the elements.

If you have the exact same problem as the original poster (extra span tag being added to the content), then please try to reproduce it on our online demos page - http://demos.telerik.com/aspnet-ajax/Editor/Examples/Default/DefaultCS.aspx and list the steps you made so we can investigate further.

Best wishes,
Lini
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Chris Miller
Top achievements
Rank 1
answered on 06 Jan 2009, 06:11 PM
I will try to disable that content filter. Is there a list of all content filters being used?

I can't reproduce the problem on your demo because your demo doesn't have a format stripper button.

0
Lini
Telerik team
answered on 07 Jan 2009, 12:58 PM
Hi,

The format stripper dropdown is on the right of the Apply CSS Class dropdown. The Telerik.Web.UI.EditorFilters server enumeration has all the available content filters. By default, all filters except MakeUrlsAbsolute are enabled. For more information, see the RadEditor documentation - http://www.telerik.com/help/aspnet-ajax/contentfilters.html.

Kind regards,
Lini
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Chris Miller
Top achievements
Rank 1
answered on 09 Jan 2009, 11:26 PM
Thanks ... I thought that button was for coloring text ... my apologies.

So, I went to this page, http://demos.telerik.com/aspnet-ajax/Editor/Examples/Default/DefaultCS.aspx and then clicked on HTML view, typed in some span tags and then went back to the Design view and stripped span elements. Then, I went back to HTML view and the span tags are still there. This gives me the impression the strip span elements is not working.

Thanks :)
0
Lini
Telerik team
answered on 12 Jan 2009, 08:23 AM
Hi,

Try disabling the ConvertFontToSpan filter for the editor in your project and see how the format stripper behaves then. I have logged this issue in our bug tracker so it should be fixed in one of the next RadControls for ASP.NET AJAX releases.

Best wishes,
Lini
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Dan Ehrmann
Top achievements
Rank 1
Answers by
George
Telerik team
Andrew Robins
Top achievements
Rank 1
Chris Miller
Top achievements
Rank 1
Lini
Telerik team
Share this question
or