<script>
var editor = "";
KindEditor.ready(function(K) {
K.create('#editor_id', {
/* afterUpload : function(url) {
alert(url); //上传图片的路径
}*/
afterBlur : function(){
this.sync();
//alert(editor.text()); //上传内容
}
});
window.editor = K.create('#editor_id');
var options = {
cssPath : '/public/kindeditor-4.1.10/examples/css/index.css',
filterMode : true,
};
editor = K.create('textarea[name="content"]', options);
var editor = "";
KindEditor.ready(function(K) {
K.create('#editor_id', {
/* afterUpload : function(url) {
alert(url); //上传图片的路径
}*/
afterBlur : function(){
this.sync();
//alert(editor.text()); //上传内容
}
});
window.editor = K.create('#editor_id');
var options = {
cssPath : '/public/kindeditor-4.1.10/examples/css/index.css',
filterMode : true,
};
editor = K.create('textarea[name="content"]', options);
});
</script>
<textarea id="editor_id" name="content" style="width:700px;height:300px;">
</textarea>