// 后台成功返回数据后的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);   // 再把从后台传过来的值重新赋给编辑器

相关文章:

  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-25
  • 2021-09-20
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案