// 后台成功返回数据后的js处理KindEditor.remove('#content_id');// 先移除之前创建的编辑器var editor = KindEditor.create('#content_id', { // 再重新创建编辑器 themeType: 'simple', resizeType: 1, urlType: 'domain', // 将图片保存为绝对路径 uploadJson: '../kindeditor/php/upload_json.php', fileManagerJson: '../kindeditor/php/file_manager_json.php', allowFileManager: true, afterBlur: function(){this.sync();} }); editor.html(data); // 再把从后台传过来的值重新赋给编辑器
新闻热点
疑难解答