前端页面使用编辑器

1. 先下载kindeditor

<script charset="utf-8" src="/static/kindeditor/kindeditor-all-min.js"></script> # 文件路径配置
<script>
KindEditor.ready(function (K) {
window.editor = K.create('#id_content', { # #id_content是你所绑定的大文本框(textarea)的id,只需更改这里即可
width:'%100',
height:'600px',
});
});
</script>
posted @ 2020-04-17 20:04  10132714  阅读(436)  评论(0编辑  收藏  举报