js:Markdown编辑器Vue3版本md-editor-v3

在这里插入图片描述

文档

安装

npm install md-editor-v3

使用

<template>
  <MdEditor v-model="text" />
</template>

<script setup>
import {
      
       ref } from 'vue';
import {
      
       MdEditor } from 'md-editor-v3';
import 'md-editor-v3/lib/style.css';

const text = ref('Hello Editor!');
</script>

猜你喜欢

转载自blog.csdn.net/mouday/article/details/132169910