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

I am building a Silverlight application that interacts with SharePoint through Managed Client Object Model. One of the functionalities of the app is to update a list item field with rich text content.

I don't know how to pass rich text content to SharePoint. HTML styling doesn't work because SharePoint adds the content literally.

For example, I want to write

SharePoint is awesome.

but the following doesn't work:

SharePoint <b>is</b> <i>awesome</i>.

Please help. Thanks.

share|improve this question
    
I'm assuming you are using the "Enhanced rich text"? –  Ruben Herman Nov 23 '11 at 14:15
    
Actually no, I am using a Multi line text box with the type of text set to "Rich text" –  Boris Nov 23 '11 at 15:16
    
Can you set the multi line textbox to "Enhanced rich text"-type? –  Ruben Herman Nov 23 '11 at 15:57
    
@RubenHerman Sure, I can. I don't see that helping me much. I need to programmatically fill that field with formatted text, i.e. bold, italic, etc. –  Boris Nov 24 '11 at 13:37
add comment

1 Answer 1

<a>, <div> <p> and probably a couple of more tags are supported.

To apply styles use inline style approach; for example:
<p style="background: blue; color: white;">A style is applied with inline CSS</p>

share|improve this answer
add 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.