var txt = layedit.getContent(ieditor);//获取编辑器内的文本
var regex = new RegExp('<img', 'gi');
txt = txt.replace(regex, '<img style="width: 100%;"');
$("#detail").val(txt);

相关文章:

  • 2021-05-19
  • 2021-04-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2021-11-12
猜你喜欢
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案