tinymce-vue-2
tinymce-vue-2 copied to clipboard
Can't get it to work with nuxt
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', }) ]
unfortunately i don't have experience with nuxt. Will leave it open in case someone does and can help out