版权声明:文章转载,请标明出处,谢谢。 https://blog.csdn.net/weixin_42799222/article/details/81873412
<textarea name='desc' class="desc" rows='8' class='form-control'></textarea>
<script charset="utf-8" src="/wss/web_jwss/Public/editor/kindeditor.js"></script>
<script>
var editor;
KindEditor.ready(function (K) {
editor = K.create('.desc', {
width: '90%',
height: '330px',
items: [
'source', '|', 'undo', 'redo', '|', 'cut', 'copy', 'paste',
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'forecolor', 'hilitecolor', 'lineheight', 'bold',
'italic', 'underline', 'strikethrough', 'removeformat', '|',
'formatblock', 'fontname', 'fontsize', '|', 'insertfile', 'hr', 'pagebreak', 'anchor',
'link', 'unlink', '|', 'about'
]
});
});
</script>