4

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.

4
  • I'm assuming you are using the "Enhanced rich text"? Nov 23, 2011 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, 2011 at 15:16
  • Can you set the multi line textbox to "Enhanced rich text"-type? Nov 23, 2011 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, 2011 at 13:37

1 Answer 1

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>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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