从数据库读取数据为什么在kindeditor不显示
谢谢啊,好用了
KindEditor.ready(function(K) {
var options = {
cssPath : 'kindeditor/plugins/code/prettify.css',
uploadJson : 'kindeditor/jsp/upload_json.jsp',
fileManagerJson : 'kindeditor/jsp/file_manager_json.jsp',
allowFileManager : true,
resizeType : 0,
items : [ 'source', '|', 'undo', 'redo', '|', 'preview',
'wordpaste', '|', 'justifyleft', 'justifycenter',
'justifyright', 'justifyfull', 'insertorderedlist',
'insertunorderedlist', 'selectall', '|', 'fullscreen',
'formatblock', 'fontname', 'fontsize', '|', 'forecolor',
'hilitecolor', 'bold', 'italic', 'lineheight',
'removeformat', '|', 'table', 'hr' ],
afterCreate : function() {
this.sync();
},
afterBlur : function() {
this.sync();
}
};
var editor = K.create('textarea', options);
editor.sync();
//prettyPrint();
});
HTML:
<textarea id="textsummary" name="textsummary"
rows="22" style="width:100%"><%=text%></textarea>
全文:http://bbs.csdn.net/topics/390192212