【问题标题】:using rich textbox in Sharepoint 2013在 Sharepoint 2013 中使用富文本框
【发布时间】:2013-04-09 20:38:30
【问题描述】:

我想在 Sharepoint 2013 中使用富文本框,如下图所示。我怎样才能做到这一点?

我已经使用了下面的代码。

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

&lt;SharePoint:InputFormTextBox ID="RichTextField1" runat="server" TextMode="MultiLine" RichTextMode="FullHtml" Columns="20" Rows="10"/&gt;

但我无法得到我需要的东西。我有一个带滚动条的简单多行文本框。

感谢您的回答。

【问题讨论】:

标签: sharepoint richtextbox sharepoint-2013 rich-text-editor


【解决方案1】:

尝试添加这个

RichText="true" 

作为样本,或多或少会是这样的:

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

另外,如果您使用 chrome 查看此内容,它只会显示为纯文本框,请尝试使用 IE 查看此内容:)

【讨论】:

  • 谢谢。它在 IE 中工作。我该怎么做才能使它在所有浏览器中都能正常工作?
  • 我不太确定,因为即使是普通的 sharepoint 富文本框在 chrome 中也不能正常工作。
  • 今天遇到此问题的任何人都应该知道 Chrome 可以与内容编辑器配合使用(至少在 SharePoint 2010 中 - 所以 2013 肯定可以使用)。
【解决方案2】:

富文本框在非 IE 浏览器上是一个老问题,如果你想使用富文本的功能,你将不得不使用 IE。

您可以在您的共享点网站上实现其他富文本编辑器,例如 tinymce http://joshmccarty.com/2011/06/use-tinymce-as-the-rich-text-editor-in-sharepoint-forms/

【讨论】:

    【解决方案3】:

    我使用了这个外部(跨平台)内容编辑器:http://nicedit.com/index.php,它非常适合我。

    它看起来像这样:

    【讨论】:

      猜你喜欢
      • 2011-01-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多