• 我使用ckeditor 我在编辑的使用源码编辑,保存内容包含javascript、style标签的时候,数据库中有javascript、style标签 ,

  • 输入到页面也可以执行,但是我再次编辑的时候就不见了。添加allowedContent: true就可以了

  • CKEDITOR.replace( 'textarea_id', { allowedContent: true});

  • 也可以通过在config.js中添加config.allowedContent = true;实现 

  • 注:版本4.0

相关文章:

  • 2021-04-11
  • 2022-02-16
  • 2021-09-12
  • 2022-12-23
  • 2021-07-21
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-30
  • 2022-12-23
  • 2021-10-03
  • 2021-12-23
  • 2021-12-15
相关资源
相似解决方案