放在项目的跟路径即可,下面是初始化代码,编辑器没有实例化显示出来,注意引入的js路径
[removed][removed]
[removed][removed]
<form action="#">
<textarea id="editor1" name="editor1" ></textarea>
<input type="submit" value="提交"/>
[removed]
var editor;
KindEditor.ready(function(K) {
//editor = K.create('#editor1');
editor=K.create('#editor1', {
width : '580px',
height: '300px',
uploadJson : '../editor/jsp/upload_json.jsp',
fileManagerJson : './editor/jsp/file_manager_json.jsp',
allowFileManager : true,
items:[
'undo', 'redo', '|', 'preview', 'print', 'template', 'cut', 'copy', 'paste',
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent',
'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image',
'insertfile', 'table', 'hr', 'emoticons','link', 'unlink'
]
});
});
[removed]
</form>