We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
由于Nuxt升级了配置方式也发生了改变,如何正常引入该插件
The text was updated successfully, but these errors were encountered:
解决了吗
Sorry, something went wrong.
mavon-editor@next
3.0.1
export default defineNuxtConfig({ css: [ 'mavon-editor/dist/css/index.css', // import mavon-editor css ], plugins: [ { src: '~/plugins/mavon-editor', mode: 'client' } // usage mavon-editor component ] })
~/plugins/mavon-editor
import mavonEditor from 'mavon-editor'; export default defineNuxtPlugin((nuxtApp) => { nuxtApp.vueApp.use(mavonEditor); })
Editor
<template> <ClientOnly> <mavon-editor v-model="model" w-full h-730px :toolbars="toolbarsConfig"/> </ClientOnly> </template> <script setup lang="ts"> const model = defineModel({ type: String }) // defineModel on Vue 3.4 const toolbarsConfig = { // ... toolbars config } </script>
No branches or pull requests
由于Nuxt升级了配置方式也发生了改变,如何正常引入该插件
The text was updated successfully, but these errors were encountered: