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

formatting stripped on save

2 Answers 42 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 14 Dec 2009, 06:29 PM
I'm experiencing an issue where the formatting looks correct in the MOSSRadEditor and when I save and edit the list item again the content appears as regular text.

the SharePoint list field is set to Enhanced Rich Text.

-tom daly


2 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 15 Dec 2009, 08:59 AM
Hi Thomas,

Could you send me a sample of the HTML code that you enter in the editor? This way I will be able to reproduce the issue on our test server. However this seems to be yet another problem, caused by the MOSS content filter. When you submit the page, MOSS will validate it and automatically make changes if the content is not valid. You can verify this by trying to enter the same content with the original SharePoint rich text editor.


Best wishes,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Thomas
Top achievements
Rank 1
answered on 15 Dec 2009, 03:42 PM
Stanimir,

I see my problem already.. I am saving the text to the list.. should be using the .Content. Let me go back an change this.

protected MOSSRadEditor _txtSummary;  
_txtSummary = new MOSSRadEditor();  
_txtSummary.ID = "txtSummary";  
_txtSummary.Height = Unit.Pixel(300);  
 
//To populate the control  
_txtSummary.Content = Item["Summary"].ToString();  
 
//To Save  
Item["Summary"] = _txtSummary.Text; 
Tags
WebParts for SharePoint
Asked by
Thomas
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Thomas
Top achievements
Rank 1
Share this question
or