locked
Content editor web part Content saving issue RRS feed

  • Question

  • Hi,

    I have using content editor webpart and in our production environment it is not saving the data,every thing is working fine it saves the page,but when we check the page the old content is their even i have publish the page. 

    and there is another issue the content on a page is deleted automatically , i have check in back end there is no new version is available there. 

    Wednesday, January 23, 2013 6:52 AM

Answers

  • hi Jack 

    i am facing the same issue on multiple server.

    you can replicate this issue by putting large data (approx 1.5MB) data in the content editor web part.

    • Marked as answer by shishek Wednesday, February 13, 2013 1:25 PM
    Monday, January 28, 2013 10:50 AM
  • finally got the issue.

    the content in Content Editor is saved in a shared property which has a limit of 1mb

    please refer  http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.contenteditorwebpart.contentlink.aspx

    the limit can be increased through web.config

        <WebPartLimits MaxZoneParts="50" PropertySize="1048576" />
    
    to 
    
    
        <WebPartLimits MaxZoneParts="50" PropertySize="2097152" />
    

    refer

    http://msdn.microsoft.com/en-us/library/dd585794(v=office.11).aspx


    • Proposed as answer by Ishaan Puniani Monday, January 28, 2013 2:23 PM
    • Edited by Ishaan Puniani Monday, January 28, 2013 3:07 PM
    • Unproposed as answer by Hemendra Agrawal Thursday, January 31, 2013 11:23 AM
    • Marked as answer by Jack-Gao Friday, February 1, 2013 10:06 AM
    • Unmarked as answer by shishek Sunday, February 10, 2013 7:04 AM
    • Marked as answer by shishek Wednesday, February 13, 2013 1:25 PM
    Monday, January 28, 2013 2:23 PM
  • @Sushil i know that property but consider the following

    do you think end user will create a text file that has html and has full permissions to edit the webpart.

    or end user is too skilled in sharepoint2010 that he will upload that text file and can refer it to this webpart instead of using the charm of Rich Text Editor.

    • Marked as answer by shishek Wednesday, February 13, 2013 1:25 PM
    Tuesday, January 29, 2013 12:30 PM
  • yes a user group has right to edit this page but they don't know how to write html. they want to use RTE of sharepoint for adding/editing the content.
    • Marked as answer by shishek Wednesday, February 13, 2013 1:25 PM
    Wednesday, January 30, 2013 7:13 AM

All replies

  •  

    Hi Shekhar,

    I cannot reproduce your issue, what’s your content in content editor web part? Content editor web part does not let you embed style and script elements directly in the page.

    Instead, content editor web part lets you link to a css or js source stored in a sharepoint library.

    Please also ensure your page is need approved. If you enabled the function of approved, when you change the page, it is only need approved, then it will be display the updated.

     

    Thanks,

    Jack


    Jack Gao
    TechNet Community Support

    • Proposed as answer by Ravi S Kulkarni Friday, January 25, 2013 8:49 AM
    • Unproposed as answer by shishek Monday, January 28, 2013 11:45 AM
    Friday, January 25, 2013 7:59 AM
  • hi Jack 

    i am facing the same issue on multiple server.

    you can replicate this issue by putting large data (approx 1.5MB) data in the content editor web part.

    • Marked as answer by shishek Wednesday, February 13, 2013 1:25 PM
    Monday, January 28, 2013 10:50 AM
  • Hi Jack,

    you can use this html source HTML SOURCE .

    after putting these html in web part, data in web part is not saving

    Monday, January 28, 2013 11:44 AM
  • finally got the issue.

    the content in Content Editor is saved in a shared property which has a limit of 1mb

    please refer  http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.contenteditorwebpart.contentlink.aspx

    the limit can be increased through web.config

        <WebPartLimits MaxZoneParts="50" PropertySize="1048576" />
    
    to 
    
    
        <WebPartLimits MaxZoneParts="50" PropertySize="2097152" />
    

    refer

    http://msdn.microsoft.com/en-us/library/dd585794(v=office.11).aspx


    • Proposed as answer by Ishaan Puniani Monday, January 28, 2013 2:23 PM
    • Edited by Ishaan Puniani Monday, January 28, 2013 3:07 PM
    • Unproposed as answer by Hemendra Agrawal Thursday, January 31, 2013 11:23 AM
    • Marked as answer by Jack-Gao Friday, February 1, 2013 10:06 AM
    • Unmarked as answer by shishek Sunday, February 10, 2013 7:04 AM
    • Marked as answer by shishek Wednesday, February 13, 2013 1:25 PM
    Monday, January 28, 2013 2:23 PM
  • For the long html content you can keep your html file seperately and can use ContentLink property of content editor webpart.

    msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.contenteditorwebpart.contentlink.aspx

    But remember you will not be able to content editor feature of content editor webpart.

    (thz to Gaurav sir, for this Solution)

    Tuesday, January 29, 2013 11:08 AM
  • @Sushil i know that property but consider the following

    do you think end user will create a text file that has html and has full permissions to edit the webpart.

    or end user is too skilled in sharepoint2010 that he will upload that text file and can refer it to this webpart instead of using the charm of Rich Text Editor.

    • Marked as answer by shishek Wednesday, February 13, 2013 1:25 PM
    Tuesday, January 29, 2013 12:30 PM
  • @ishaan : Will End user have Enough rights to edit the text of the webparts ??

    Wednesday, January 30, 2013 7:03 AM
  • yes a user group has right to edit this page but they don't know how to write html. they want to use RTE of sharepoint for adding/editing the content.
    • Marked as answer by shishek Wednesday, February 13, 2013 1:25 PM
    Wednesday, January 30, 2013 7:13 AM