Rad Editor List Items:Paragraph Styles not getting Applied on Save

2 posts, 0 answers
  1. Hamsa
    Hamsa  avatar
    2 posts
    Member since:
    Jun 2009

    Posted 03 Jun 2009 Link to this post

           Am using Radeditor list and as well as webpart, things goes fine with webpart but I have issue in List Items, Paragraph styles on Saving will not getting applied for Rich Text and the same will work fine in Enhanced Rich Text

    Here the code which I could see in View source for the entered text in editors

    In Rich Text

    This is Rich Text

    Where as In Enhanced Rich Text its the text is wrapped in div

    %3cdiv class%3dExternalClassE3422639FCD448D2B1B6F8BB1322DC69%3e%3ch1 class%3dExternalClass3C796753EB8940BFADB7514CBFC2775C%3eThis is Enriched Text%26nbsp%3b%3c/h1%3e
    is it bcos its wrapped in div the paragraph styles are getting applied on save in case of Enhanced and wat we need to do for the same to get applied for Rich Text

    Please guide me why this difference when text is passed in Rich Text and Enhanced Text appears like this in view source
  2. Lini
    Lini avatar
    2144 posts

    Posted 05 Jun 2009 Link to this post


    The differences you described are due to the SharePoint list column's design. The only difference between rich text and enhanced rich text in our editor is the extra line of tools from the tools file. The editor outputs the same HTML in both cases. After the content is saved, SharePoint applies a number of filters that strip HTML tags that are not allowed in the current list column. If the column type is "rich text", the allowed tags are very few - just simple formatting. If the column type is "enhanced rich text", then you have more allowed tags. Unfortunately, we cannot control the content that is saved on the server because the tag stripping is done after it leaves the editor. Therefore if you need to have additional formatting in a "rich text" column, you should find a way to change it to "enhanced rich text".

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top