tui.editor 编辑器支持markdown与标准富文本内容的编辑器
下面基于tui-editor开发的VUE组件,扩展了以下几个功能
首先安装扩展包
npm install --save tui-editor
然后创建Lamour-editor.vue
组件文件
<template><div :id="id"></div>
</template><script setup>
import { defineProps, defineEmits } from 'vue'
import axios from 'plugins/axios'//编辑器
import Editor from '@toast-ui/editor'
import '@toast-ui/editor/dist/toastui-editor.css'const props = defineProps({modelValue: String,action: { type: String, default: `/upload` },id: { type: String, default: `houdunren-editor` },type: {
本文发布于:2024-02-04 08:12:55,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170702803853840.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |