1. Insert the multiline text field in the test list. Names are called content. For example, the following drawings:
2. In the Content field. Join a link. For example, with:
3. Try to enter the notes format link, for example:
4, click OK when. Pop-up message box. For example, with:
5, some people may say, can directly edit the source of multiple lines of text, for example:
6. After clicking Save, use the F12 tool to view the HTML elements, for example:
You can see the href attribute and be dropped by SharePoint format.
7, our solution. When inserting, precede the Notes link with http://, for example,
8. Be able to see the HTML elements of the foreground. Normal but more than http://, in script format out.
9. Format the script with http://, such as the following.
function Formatnoteslink () { var all = document.getElementsByTagName ("a"); for (var i = 0; i < all.length; i++) { if (All[i].href.indexof ("http://notes//") = = 0
) { = all[i].href.replace ("http://notes//", "notes://"
); } 500);
10, again with F12 tool view, everything is normal, for example:
11, perhaps some people say. How does the customer know to add http://In front so that we can change the dialog box to insert the link, for example,
12, in detail is to change layouts the following Rtedialog file. For example, with:
Location: C:\Program files\common files\microsoft Shared\Web Server Extensions\15\template\layouts
Changes:
Summary
Of course, this is only in the use of SharePoint process encountered a small problem, encountered when also went to Google a bit, found to rewrite the Ribbon or multi-line text field of the blog, I think it is too complex, think of such a way, suppose there is a need for friends, is a small reference it.
Extrapolate, in addition to notes such a link. A lot of other things can be done by this kind of processing, such as scripts, etc., interested to be able to try it yourself.
All right, here we go, rest.
。
。
Now rest.
。。
Copyright notice: This article Bo Master original article. Blog, not reproduced without consent.
SharePoint wants a multi-line text Type field to be a special type of link