locked
SharePoint 2010 - rich text editor - hyperlink missing from toolbar RRS feed

  • Question

  • Hi, I use SharePoint 2010.

    - My (OOB) list has a Rich Text Editor column for comments - and from the tool bar for this rich text editor - we are missing the icon for Hyperlink. 
    I work on so many SharePoint sites and normally Rich Text Editor should have the icon for hyperlink in toolbar.

    - I canNOT use the Enhanced Text Editor, which has the hyperlink.

    Any thoughts on how to get the hyper link in toolbar for Rich Text Editor?

    Thanks.


    • Edited by ran009 Monday, September 9, 2013 10:02 PM
    Monday, September 9, 2013 10:02 PM

Answers

  • AFAIK, the hyperlink button was there in SP2007  RTE by default, but may be got changed in SP2010. To get it working as before, you need to get the field reference for the list column in question thru C# or Powershell and set its attribute "AllowHyperlink" to true and update the field. This way you don't have to change the field to enhanced mode.

    SPSite site = new SPSite("http://siteUrl");
    SPWeb web = site.OpenWeb();
    SPList list = web.Lists["my List"];
    SPField RTEfield = list.Fields["Rich Text Column"];
    RTEfield.AllowHyperlink = true;
    RTEfield.Update(true);
    Hope it helps.
    • Marked as answer by ran009 Wednesday, September 11, 2013 6:14 PM
    Wednesday, September 11, 2013 11:39 AM
  • Hi,

    According to your post, my understanding is that you wanted to show the hyperlink in toolbar for Rich Text Editor.

    We can create a custom content type with a field of type node with the attrubute RichtText="TRUE".

    The following code snippet for your reference.

    <Field Type="Note" DisplayName="RichTextField" Required="FALSE" EnforceUniqueValues="FALSE" Indexed="FALSE" NumLines="6" RichText="TRUE" RichTextMode="Compatible" Sortable="FALSE" Group="Custom Columns" ID="{GUID HERE}" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="RichTextField" Name="RichTextField" Overwrite="TRUE" xmlns="http://schemas.microsoft.com/sharepoint/" />

    For more details: http://social.msdn.microsoft.com/Forums/en-US/553e5e01-e2e0-4ad2-8427-949e4563adf6/why-does-a-multi-line-text-column-supports-rich-text-in-lists-but-not-document-libraries-when-added

    There are some similar threads for your reference:

    http://sharepoint.stackexchange.com/questions/45670/add-multiline-html-field-is-not-showing-html-ribbon-tools

    http://www.hansrasmussen.com/rich-text-editor-not-displaying/

    If you have any problems, please feel free to reply me.

    Thanks & Regards,

    Jason




    Jason Guo
    TechNet Community Support

    • Marked as answer by JasonGuo Monday, September 16, 2013 3:41 PM
    Wednesday, September 11, 2013 2:18 PM

All replies

  • AFAIK, the hyperlink button was there in SP2007  RTE by default, but may be got changed in SP2010. To get it working as before, you need to get the field reference for the list column in question thru C# or Powershell and set its attribute "AllowHyperlink" to true and update the field. This way you don't have to change the field to enhanced mode.

    SPSite site = new SPSite("http://siteUrl");
    SPWeb web = site.OpenWeb();
    SPList list = web.Lists["my List"];
    SPField RTEfield = list.Fields["Rich Text Column"];
    RTEfield.AllowHyperlink = true;
    RTEfield.Update(true);
    Hope it helps.
    • Marked as answer by ran009 Wednesday, September 11, 2013 6:14 PM
    Wednesday, September 11, 2013 11:39 AM
  • Hi,

    According to your post, my understanding is that you wanted to show the hyperlink in toolbar for Rich Text Editor.

    We can create a custom content type with a field of type node with the attrubute RichtText="TRUE".

    The following code snippet for your reference.

    <Field Type="Note" DisplayName="RichTextField" Required="FALSE" EnforceUniqueValues="FALSE" Indexed="FALSE" NumLines="6" RichText="TRUE" RichTextMode="Compatible" Sortable="FALSE" Group="Custom Columns" ID="{GUID HERE}" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="RichTextField" Name="RichTextField" Overwrite="TRUE" xmlns="http://schemas.microsoft.com/sharepoint/" />

    For more details: http://social.msdn.microsoft.com/Forums/en-US/553e5e01-e2e0-4ad2-8427-949e4563adf6/why-does-a-multi-line-text-column-supports-rich-text-in-lists-but-not-document-libraries-when-added

    There are some similar threads for your reference:

    http://sharepoint.stackexchange.com/questions/45670/add-multiline-html-field-is-not-showing-html-ribbon-tools

    http://www.hansrasmussen.com/rich-text-editor-not-displaying/

    If you have any problems, please feel free to reply me.

    Thanks & Regards,

    Jason




    Jason Guo
    TechNet Community Support

    • Marked as answer by JasonGuo Monday, September 16, 2013 3:41 PM
    Wednesday, September 11, 2013 2:18 PM