想说什么呢?记下来吧!!
vareditor1;
KindEditor.ready(function (K) {
editor1= K.create(‘#content1‘, {
cssPath:‘../plugins/code/prettify.css‘,
uploadJson:‘../asp.net/upload_json.ashx‘,
fileManagerJson:‘../asp.net/file_manager_json.ashx‘,
allowFileManager:true,
afterCreate: function () {var self = this;
K.ctrl(document,13, function () {
self.sync();
K(‘form[name=example]‘)[0].submit();
});
K.ctrl(self.edit.doc,13, function () {
self.sync();
K(‘form[name=example]‘)[0].submit();
});
},
forecolor:‘gray‘,
afterFocus: function (e) {if (editor1.html() == ‘想说什么呢?记下来吧!!‘)
editor1.html(‘‘);
},
afterBlur: function (e) {
console.log(editor1.html());if (editor1.html() == ‘
‘ || editor1.html() == ‘‘)
editor1.html(‘想说什么呢?记下来吧!!‘);
}
});
prettyPrint();
});