Adding Hyperlink button to Rich Text Box tool bar
You can create custom list in SharePoint environment. The list can contain multiple columns with different data types. (Single line of text, multiple lines of text, Date and Time, Numbers, Currency …..)
When you create a multiple lines of text data column, this will display a Rich Text Box when user enters the data. But this text box won’t support highlighting a text with a hyperlink. If you have a look at Rich Text Box available in adding a News item in the Portal server, it contains this functionality.
To allow the above functionality for all the Rich Text Box’s simply do the following change in OWS.JS file located at “C:\Program Files\Common Files\ Microsoft Shared\web server extensions\60\TEMPLATE\LAYOUTS\1033”
Find the RichTextFieldBuildUI() function and replace the following line
RTE_ConvertTextAreaToRichEdit(
this.frm.stFieldPrefix + this.stName,
true,
fld.fAllowHyperlink,
this.stDirection,
L_Language_Text);
with
RTE_ConvertTextAreaToRichEdit(
this.frm.stFieldPrefix + this.stName,
true,
true,
this.stDirection,
L_Language_Text);
3 Comments:
Hey if i want to make that rich text box more richer in functionality, Is there any way? like if i just copy and throw already formatted text (within tables with pictures) to that rich text box is there any way we can make that text box work ? Please email me if you have some answers i would really appreciate your help my email address is virtuallypresent@hotmail.com
Hey,
I tried your suggestion and did not work. Any idea why? (IIS server was even restarted).
Thanks in advance.
I tried as well and it didn't work
Post a Comment
<< Home