SharePoint 2016中的增强型富文本列 [英] Enhanced rich text column in SharePoint 2016

查看:105
本文介绍了SharePoint 2016中的增强型富文本列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去两年来我一直在SP域上工作.我需要在自定义.aspx页中使用SP增强的RTF文本字段.在下面的链接中,他们提到了所有SP字段(增强型RTF除外)(例如:http://sharepointpals.com/post/Retrieving-Various-Field-Types-in-SharePoint-Custom-Form-using-jQuery-and-SPServices) . 我只需要在客户端执行此功能. can头可以实现这一目标吗?我有插入纯文本的代码.但是我需要增强的RTF.

I am working on SP domain for past two years. I need to use SP Enhanced rich text field in custom .aspx page. In below link they mentioned for all SP fields except Enhanced rich text (Ex: http://sharepointpals.com/post/Retrieving-Various-Field-Types-in-SharePoint-Custom-Form-using-jQuery-and-SPServices). I need to do this functionality in clientside only. Hoe can we achieve this?. i have code to insert plain text .but i need Enhanced richtext.

代码:

..此代码我无法插入附件.

..This code i cannot able to insert attachment.

谢谢

Hemanth

推荐答案

如果要创建绑定到内容类型字段的页面布局,则可以直接使用RichTextField类.但是,如果要显示不与内容类型交互的文本框,则可以使用InputFormTextBox 并配置其属性,使其呈现为富文本框.

If you're creating a page layout that binds to a content types field then its straight forward and you can use RichTextField class. However, if you want to display a textbox that does not interact with a content type then you can use the InputFormTextBox and configure its properties so it render as a rich text box.

使用InputFormTextBox时,与RichText字段不同,没有上载文件按钮,这是设计使然.

When using InputFormTextBox, it is different with RichText field, there is no Upload File button, it is by design.

对于您的问题,建议您使用内容类型字段(RichText字段)代替InputFormTextBox.

For your issue, I suggest you use a content type field(RichText field) instead of InputFormTextBox.

或者,将附件上传到SharePoint库中,然后将链接复制并粘贴到InputFormTextBox中.

Or, upload the attachments into a SharePoint library, then copy and paste the link in the InputFormTextBox.

http://geekswithblogs .net/shehan/archive/2009/08/20/using-sharepoints-rich-text-box-in-a-page.aspx

谢谢

温迪


这篇关于SharePoint 2016中的增强型富文本列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆