j6montoya / vue-tinymce

Tinymce support on Vue 2.1x
Apache License 2.0
22 stars 8 forks source link

"tinymce is not defined" #1

Open NicholasEli opened 7 years ago

NicholasEli commented 7 years ago

Followed the example but this error occurs "tinymce is not defined" on render.

albertchan commented 7 years ago

Yes, having the same problem. Did you manage to get it working?

codepotato commented 7 years ago

@NicholasEli @albertchan you need to install tinymce too in order to use this package.

To get this working I did the following:

yarn add tinymce

Then in my vue files I did the following :

require('tinymce');

and then

import VueTinymce from 'vue-tinymce' Vue.use(VueTinymce);

as per the docs.

Hope that helps!

josephNg95 commented 7 years ago

@codepotato: thank you, it worked, but new error is: Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/themes/modern/theme.js Same issue 3 !

jeremyhart commented 7 years ago

I found just adding require('tinymce') before you import vue-tinymce does the trick

josephNg95 commented 7 years ago

I solved it !