lundi 14 mai 2012

How to enable styles and markup styles in richtext field in List Sharepoint 2010

The styles are disabled because in sharepoint 2010 the styles and the markup styles menus are exclusive to wiki pages.





To fix this problem you will have to change your field in the schema.xml like this

<Field ID="{BF6BD5D0-F44A-4B62-99D7-A92A1465DFBF}"
         Name="RichtextMenuEnabled"
         DisplayName=" RichtextMenuEnabled "
         Type="HTML"
         RichText="TRUE"
         RichTextMode="ThemeHtml" />
and you will have the same field without having to delete/Create the list with the menu enabled

Hope that it helps if not please post a comment

3 commentaires:

  1. Hi

    Thank you for this information, but where do i change this? im not sure where to locate this schema.xml.

    Best regards
    Kenneth

    RépondreSupprimer
    Réponses
    1. Hi Gaarsdar.
      If you have created the list via Code, change schema.xml of the list.
      Otherwise, if you have created the list manually, list settings -> Add from existing site columns -> under Publishing Columns select 'Full HTML content with formatting and constraints for publishing'.
      Hope it helps

      Supprimer
  2. what about I created the form using InfoPath 2010.

    RépondreSupprimer