描述:
kingeditor富文本编辑器,占用资源较少,推荐使用。
代码如下:
1,引入
<script src="__PLUG__/kingeditor/kindeditor-all.js"></script>
2,html代码
<textarea name="content" id="content" cols="100" rows="20"></textarea>
3,javascript代码
<!--kingeditor编辑器开始-->
<script>
KindEditor.ready(function(K) {
window.editor = K.create('#content', {
allowFileManager : true,
langType : 'zh-CN',
autoHeightMode : true,
afterBlur: function () { this.sync(); },
});
});
</script>
<!--kingeditor编辑器结束-->4,类库包