Home

Issue: 1775

How work with vue plugins like tinymce-vue-2

[issue link]

I try to add tinymce to Nuxt

nuxt.config.js

plugins: [{src: '~/plugins/vue2-tiny', ssr: false}],

build: {
    vendor: ['tinymce','tinymce-vue-2'],

vue2-tiny.js

import Vue from 'vue'
import TinyMCE from 'tinymce-vue-2'

Vue.component('tiny-mce', TinyMCE)

edit.vue
in my view i add

<tiny-mce id="description" v-model="h"></tiny-mce>

But get an error

GET http://localhost:3000/_nuxt/themes/modern/theme.js net::ERR_ABORTED
Uncaught TypeError: Theme is not a constructor

How i can add themes/modern/theme.js to my nuxt project?

This question is available on Nuxt.js community (#c1595)