vue-wysiwyg icon indicating copy to clipboard operation
vue-wysiwyg copied to clipboard

Nuxt support

Open VladStepanov opened this issue 4 years ago • 1 comments

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

VladStepanov avatar Jul 20 '21 13:07 VladStepanov

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' },
],
...

yasser17 avatar Jan 21 '22 01:01 yasser17