Odd Behaviour with P and Span tags

7 posts, 0 answers
  1. Michael Dillon
    Michael Dillon avatar
    5 posts
    Member since:
    Jan 2010

    Posted 22 Jul 2010 Link to this post

    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.
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 27 Jul 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. rh
    rh avatar
    193 posts
    Member since:
    Jan 2007

    Posted 11 Aug 2010 Link to this post

    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.
  5. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 16 Aug 2010 Link to this post

    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
  6. LeBear
    LeBear avatar
    233 posts
    Member since:
    May 2006

    Posted 05 Sep 2010 Link to this post

    Your link points to localhost!  :(
  7. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 06 Sep 2010 Link to this post

    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
  8. LeBear
    LeBear avatar
    233 posts
    Member since:
    May 2006

    Posted 06 Sep 2010 Link to this post

    Thank you very much!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017