<div class="form-group">
<label class="col-xs-2 control-label text-right">内容</label>
<div class="col-xs-10">
<script src="/Editor/kindeditor.js"></script>
<script src="/Editor/lang/zh_CN.js"></script>
<script type="text/javascript">
KindEditor.ready(function (k) {
k.create('#ctl00_ContentPlaceHolder1_txtContent',
{
items: [
'source', '|', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'image', 'link'],
allowFileManager: false,
uploadJson: 'Upload.aspx'
});
});
</script>
<asp:TextBox runat="server" ID="txtContent" TextMode="MultiLine" Columns="80" Rows="15">
</asp:TextBox>
</div>
</div>
我的文件里有一个富文本编辑器的压缩包,名字叫Editor.zip,可以通过下面地址下载。
下载地址:https://files.cnblogs.com/files/tony-brook/Editor.zip