<script src="kindeditor.js" type="text/javascript"></script>
<script type="text/javascript">
KE.show({
id: 'content2',
resizeMode: 1,
allowPreviewEmoticons: false,
allowUpload: false,
items: [
'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
//服务器控件的js
KE.show({
id: 'content1',//这里是解析后的ID,也就是服务器控件的ID
resizeMode: 1,
allowPreviewEmoticons: false,
allowUpload: false,
items: [
'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
</script>
加压包的demo
<h3>简单模式</h3>
<textarea id="content2" name="content" style="width:500px;height:200px;visibility:hidden;"></textarea>
用服务器控件
<h3>简单模式</h3>
<asp:TextBox ID="content1" TextMode="MultiLine" runat="server" style="width:500px;height:200px;visibility:hidden;"></asp:TextBox>
我这里只是用了它一个很小的功能。。迟点也会将上传文件的功能也贴上来(连同demo)