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

Odd Behaviour with P and Span tags

6 Answers 80 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Michael Dillon
Top achievements
Rank 1
Michael Dillon asked on 22 Jul 2010, 06:12 PM
When a P tag is inside a SPAN tag (bad html I know) the editor does some wierdness.

This is in Firefox 3.6+ it does not occur in FF 3.5. Its also fine In IE7 and IE 8(both modes)

if you enter

<html>
    <head>
    </head>
    <body>
        <span>
        <p>hola newman</p>
        </span>
    </body>
</html>


and switch between design and html views you end up with 

<html>
    <head>
    </head>
    <body>
        <span>
        <p><span xmlns="http://www.w3.org/1999/xhtml">hola newman</span></p>
        <span xmlns="http://www.w3.org/1999/xhtml">        </span></span>
    </body>
</html>


If you keep switching it keeps putting more spaces in the second span tag. Also if you apply a style to a P and hit enter while in design in the at tag it copies the tag and the style regardless of  NewLineBr setting.

6 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 27 Jul 2010, 11:06 AM
Hi Michael,

This is expected behavior. RadEditor has number of built-in content filters which are modifying the content in order to generate XHTML compliant output. You can avoid this behavior by disable ConvertFontToSpan content filter, e.g.:
protected void Page_Load(object sender, EventArgs e)
{  
    if(!IsPostBack)
        RadEditor1.DisableFilter(EditorFilters.ConvertFontToSpan);
}

I hope this helps.


Sincerely yours,
Dobromir
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
rh
Top achievements
Rank 1
answered on 11 Aug 2010, 08:48 PM
I have the same issue. I don't think it should be expected behavior because it causes issues when you edit content in FireFox it causes display issues in the HTML when viewing the output in Firefox or in an email client. IE still displays the content correctly after editing in Firefox.
0
Rumen
Telerik team
answered on 16 Aug 2010, 03:08 PM
Hi Roy,

I logged the problem with very high priority in our PITS system with ID 3087. We will do our best to solve it as early as possible.

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
LeBear
Top achievements
Rank 1
answered on 05 Sep 2010, 09:01 PM
Your link points to localhost!  :(
0
Rumen
Telerik team
answered on 06 Sep 2010, 04:18 PM
Hello LeBear,

Here is the correct link http://demos.telerik.com/aspnet-ajax/editor/examples/builtincontentfilters/defaultcs.aspx.


Best wishes,
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
LeBear
Top achievements
Rank 1
answered on 06 Sep 2010, 05:37 PM
Thank you very much!
Tags
Editor
Asked by
Michael Dillon
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
rh
Top achievements
Rank 1
Rumen
Telerik team
LeBear
Top achievements
Rank 1
Share this question
or