Essentially what I want is to pre-load the existing content editor with some text may be from a configuration(by adminstrator) or from the list. So I am creating a custom wp that will act like a wrapper to the existing content editor and add some text to it. But this makes the CEWP uneditable to the user. Please suggest. I am using SharePoint 2010 foundation.
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
Here's my working code for SP 2010 for adding text to the existing CEWP. I think it must be identical to the example mentioned above:
|
|||
|
|
|
Wrapping the webpart with custom code shouldn't be needed; should be able to do what you want by updating the contents. The following article should get you moving in the right direction. Programmatically Updating a SharePoint Content Editor Web Part -- note this is for SharePoint 2007, but as you didn't mention what version you are using... |
|||||
|