mbouclas / tinymce-vue-2

A vue 2 component for TinyMCE
49 stars 15 forks source link

Can't get it to work with nuxt #11

Open mirhat opened 6 years ago

mirhat commented 6 years ago

I am getting this error NuxtServerError render function or template not defined in component: anonymous

Tinymce.js plugin `import Vue from 'vue' import TinyMCE from 'tinymce-vue-2' import Theme from 'tinymce/themes/modern/theme'

if (process.env.BROWSER) { window.Theme = Theme } Vue.component('tinymce', TinyMCE)`

nuxt.config.js loaders: [ { test: require.resolve('tinymce/tinymce'), loader: 'expose-loader?tinyMCE!expose-loader?$' } ], css: [ 'tinymce/skins/lightgray/skin.min.css', 'tinymce/skins/lightgray/content.min.css' ], plugins: [ { src: '~/plugins/tinymce.js', ssr: false } ], plugins: [ new webpack.ProvidePlugin({ 'tinymce': 'tinymce', }) ]

mbouclas commented 6 years ago

unfortunately i don't have experience with nuxt. Will leave it open in case someone does and can help out