Skip to content
New issue

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 support #153

Open
VladStepanov opened this issue Jul 20, 2021 · 1 comment
Open

Nuxt support #153

VladStepanov opened this issue Jul 20, 2021 · 1 comment

Comments

@VladStepanov
Copy link

VladStepanov commented Jul 20, 2021

Is it possible to install to nuxt? I have tried to install, but im getting error

Unknown custom element: <Wysiwyg> - did you register the component correctly?

Repro: https://codesandbox.io/s/muddy-pond-v60mj?file=/pages/index.vue
Check plugins/wysiwyg.js and nuxt.config.js

@yasser17
Copy link

yasser17 commented Jan 21, 2022

You need to follow the next steps:

1- Add a file into the plugins folder with the next code

import Vue from 'vue'
import wysiwyg from 'vue-wysiwyg'

import 'vue-wysiwyg/dist/vueWysiwyg.css'

Vue.use(wysiwyg, {HERE YOUR OPTIONS})

2 - import your plugins file in nuxt.config.js file

...

plugins: [
	{ src: '~plugins/helpers.js' },
],
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants