![](/img/trans.png)
[英]how to sent hindi or other language to another page with rich text editor
[英]How to set an instance of CKEDitor on the page to be always Rich Text Editor
我一直在使用页面上的CKEditor的DNN网站(ASP.NET,C#,Visual Basic,Visual Studio 2012 Express for Web)上工作。 示例是:
<dnn:TextEditor ID="txtRichBox" runat="server" Width="850" TextRenderMode="Raw" HtmlEncode="False" defaultmode="Rich" height="350" Visible="false" choosemode="true" chooserender="False" />
我只希望页面上有Rich Text Editor,而不是Basic Text Box。 我怎样才能做到这一点? 预先感谢您的任何帮助。
使用JavaScript将CKEditor附加到控件:
<script>
CKEDITOR.replace( 'ID of textbox control' );
</script>
我可能会推荐CKEditor的文档吗? 在这里 。
您不能仅仅发明诸如choosemode
和chooserender
类的属性并期望它起作用。 编辑器的属性数量有限 。
最简单的方法是使用CSS隐藏单选按钮“ Basic Text Box
和“ Rich Text Editor
,以便用户无法在它们之间切换。 默认情况下,将加载编辑器,而不是基础的基本TextBox。
<style>
.dnnTextPanelView {
display: none;
}
</style>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.