- 在官方链接中下载所需要的文件
- 新建一个html文件
在文件中引用jquery.js,kindeditor-all-min.js,lang/zh-CN.js,efault.css<textarea id="description" name="description" style="width:80%" rows="20"></textarea> <script type="text/javascript"> KindEditor.ready(function(K) { window.editor = K.create('#description',{ items : [ 'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste', 'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript', 'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/', 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage', 'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak', 'anchor', 'link', 'unlink', '|', 'about' ], allowFileManager:true, uploadJson : '../../image_upload.action', fileManagerJson : '../../image_manage.action' }); }); </script>
富文本编辑器Kindeditor的快速入门
最新推荐文章于 2023-03-10 10:11:49 发布