mavonEditor icon indicating copy to clipboard operation
mavonEditor copied to clipboard

[Question] 只有单个html怎么通过cdn 引入js?

Open lucasjinreal opened this issue 4 years ago • 2 comments

如果只需要markdown的渲染功能,我的项目没有npm依赖,只有一个简单的html,怎么实现通过cdn来引入这个Js呢

lucasjinreal avatar Jan 14 '21 02:01 lucasjinreal

当前还存在一点小问题,如果你不使用图片上传功能,你可以参考 https://github.com/hinesboy/mavonEditor/issues/586 的方式测试一下:

ygj6 avatar Mar 06 '21 01:03 ygj6

可以试一下这样子使用。

<!-- css -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/index.css" rel="stylesheet" />

<!-- js -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mavon-editor.js"></script>
Vue.use(MavonEditor)

<!-- html -->
<mavon-editor v-model="value" />

txperl avatar Sep 18 '21 08:09 txperl