需要在节点内容填充前,重置图片的宽度
例如:
description = _description.replace(/\<img/gi, '<img style="width:100%;height:auto" ');
// 内容显示
<rich-text nodes='{{ description }}' ></rich-text>
需要在节点内容填充前,重置图片的宽度
例如:
description = _description.replace(/\<img/gi, '<img style="width:100%;height:auto" ');
// 内容显示
<rich-text nodes='{{ description }}' ></rich-text>