Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

In a custom Web part (actually on the home page, but I think it doesn't matter), I want to let the users input some rich content, keeping the Ribbon functionalities; same as the OOB rich text columns. This field is part a form having several fields.

By now, I have in my webpart :

<SharePoint:InputFormTextBox TextMode="MultiLine" 
                             RichText="true"
                             RichTextMode="Compatible" 
                             runat="server" 
                             Rows="6"
                             MaxLength="1530" 
                             ID="myRichText" 
                             />

this allows me to input rich text, but using the 2007's legacy rich text input.

How can I have a new 2010 rich text input ?

thanks

share|improve this question
add comment

1 Answer

Maybe you have to change the RichTextMode to FullHTML. SharePoint.. Prefix is referencing the right assembly?

--Update--

The InputFormTextBox control actually is a TextArea. With some script you can create a richer experience (RTE_ConvertTextAreaToRichEdit), but not the Ribbon functionalities. Maybe the Content Editor webpart is an alternative?

--Update 2--

I just found something which maybe very helpfull to you: http://zootfroot.blogspot.com/2010/09/develop-custom-editable-visual-web-part.html

Please let me know it this answers your question.

share|improve this answer
    
RichTextMode value does not change the UI of the control. The prefix is actually pointing to SharePoint webcontrols namespace –  Steve B Jul 13 '11 at 8:41
    
Did you migrate from 2007? –  Anita Boerboom Jul 13 '11 at 11:05
    
no, new application from scratch –  Steve B Jul 13 '11 at 11:48
    
I have to embed the rich text box in a more complex form. I can't use the content editor webpart :( –  Steve B Jul 19 '11 at 7:26
    
Too bad, are you able to write and deploy your own controls? Then you can show the neccesary ribbon tabs from code behind. –  Anita Boerboom Jul 20 '11 at 6:22
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.