mditor icon indicating copy to clipboard operation
mditor copied to clipboard

如何获取完整的html(预览的html)?

Open wugy11 opened this issue 7 years ago • 2 comments

保存编辑的内容时,直接存解析后的html(点击“预览”生成的html),这样在显示内容时不需要对md解析了。

wugy11 avatar Jan 26 '18 00:01 wugy11

//通过 mditor 实的 viewer 能拿到,如下

const html = mditor.viewer.html;
console.log(html);

Houfeng avatar Jan 26 '18 05:01 Houfeng

话说api说明什么时候出呢,例如:原始内容以及转换后的内容 现在只能靠猜或者看代码

BanKnight avatar May 17 '18 06:05 BanKnight