tinymce-vue-2 icon indicating copy to clipboard operation
tinymce-vue-2 copied to clipboard

Can't get it to work with nuxt

Open mirhat opened this issue 7 years ago • 1 comments

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

mirhat avatar Jan 21 '18 18:01 mirhat

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

mbouclas avatar Jan 21 '18 20:01 mbouclas