formatting stripped on save

3 posts, 0 answers
  1. Thomas
    Thomas avatar
    12 posts
    Member since:
    Apr 2009

    Posted 14 Dec 2009 Link to this post

    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. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 15 Dec 2009 Link to this post

    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.

  3. Thomas
    Thomas avatar
    12 posts
    Member since:
    Apr 2009

    Posted 15 Dec 2009 Link to this post

    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; 
Back to Top