Using Rich Text Box in Sharepoint 2013

I want to use a rich text box in Sharepoint 2013, as shown in the image below. How can i do this?

Sharepoint 2013 rich text editor

I have already used the code below.

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 

<SharePoint:InputFormTextBox ID="RichTextField1" runat="server" TextMode="MultiLine" RichTextMode="FullHtml" Columns="20" Rows="10"/>

but I could not get what I needed. I got a simple multi-line text box with a scroll.

Thanks for answers.

enter image description here

+2
source share
2 answers

try adding this to

RichText="true" 

more or less it will look like a pattern:

<SharePoint:InputFormTextBox ID="rftDefaultValue" 
RichText="true" 
RichTextMode="FullHtml" runat="server" 
TextMode="MultiLine" Rows="5">
</SharePoint:InputFormTextBox>

also, if you are viewing it using chrome, it will only display as a text field, try viewing it using IE :)

+3
source

All Articles