none
Sharepoint Rich Text box in custom web part

    Question

  • Hi,

    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!
    Tuesday, November 18, 2008 3:07 PM

Answers

  • 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
    Wednesday, November 19, 2008 7:50 PM

All replies