@halobear/vue-editor
示例
安装
yarn add @halobear/vue-editor
使用
<template>
<div class="test-container">
<h2 class="title">富文本编辑器</h2>
<vue-editor
class="editor-content"
type="word"
v-model="text"
:inset-image="insetImage"
></vue-editor>
<h2 class="title">markdown编辑器</h2>
<vue-editor
class="editor-content"
type="markdown"
v-model="text"
></vue-editor>
</div>
</template>
<script>
import VueEditor from '../index.vue'
export default {
components: {
VueEditor
}
}
</script>