Sharepoint Rich Text box in custom web part
-
Tuesday, November 18, 2008 3:07 PMHi,
I am trying to add a Rich Text field which should be exactly the same as that in Sharepoint into my custom web part. I have done the following:
InputFormTextBox txt = new InputFormTextBox();
txt.TextMode = TextBoxMode.MultiLine;
txt.RichTextMode = SPRichTextMode.FullHtml;
this.Controls.Add(txt);
The rich text box is rendered fine but the full functionality present in the sharpoint rich text editor (Spell check, the wizard for upload of documents) is not there. Can anyone suggest how I can add a rich text box into my custom webpart that is exactly like the rich text editor in the Content Editor Web part in Sharepoint?
Thanks!
All Replies
-
Tuesday, November 18, 2008 3:30 PMHave you verified that the underlying SharePoint Site Column also has rich text enabled?
http://blog.beckybertram.com -
Tuesday, November 18, 2008 3:51 PMSorry, dint get what you meant. It is a custom webpart with labels and a rich text box that was build in visual studio. I have just added this webpart to the sharepoint page and it is limited in functionality from the rich text editor in the content editor web part. Am i missing something?
-
Tuesday, November 18, 2008 4:02 PMTry using the RichHtmlField control.
-
Tuesday, November 18, 2008 4:42 PMHi Raja, could you provide more details of how to use it? Is it simply like:
RichHtmlField txt = new RichHtmlField();
this.Controls.Add(txt); -
Wednesday, November 19, 2008 7:50 PM
So I found the solution. We have to use the asseturlselector with the sharepoint rich text box to enable all the functionality.- Marked As Answer by RadSPDev Wednesday, November 19, 2008 7:50 PM
-
Tuesday, November 02, 2010 3:32 AM
Hi RadSPDev,
Would you pls give more detail about your solution, we have the same issue as yours.
Thanks,
-
Thursday, February 23, 2012 8:43 AM
Hi,
Iam also getting the problem.
Can u post the full code??
-
Thursday, November 29, 2012 2:39 PM
How to get the text from Richtextbox?
I am not abe to get the value from javascript, it is returning null.

