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

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

1 Answer 97 Views
Forum suggestions
This is a migrated thread and some comments may be shown as answers.
Hamsa
Top achievements
Rank 1
Hamsa asked on 03 Jun 2009, 08:30 AM
Hi,
       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
%3c/div%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

1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 05 Jun 2009, 11:11 AM
Hi,

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".

Greetings,
Lini
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.
Tags
Forum suggestions
Asked by
Hamsa
Top achievements
Rank 1
Answers by
Lini
Telerik team
Share this question
or