Closed myndzi closed 8 years ago
Seeing same issue. Fix would be awesome! +1
yep, same issue here
The tinymce package on npm isn't compatible with Common JS, so it cannot be used in this module. This leaves us with the need for tinymce to already be globally available in your app. Not saying that this is ideal, just how it is.
thanks
I tried MANY ways of shimming the package when loading it locally. Spent many hours trying. None worked. Only way I finally got it to work is with the cdn.
I'm using webpack and react.
Nonetheless: Thanks for this great tool!
Извиняюсь за не английский но я решил эту проблему когда сменил права папки tinymce на 755
solved by adding tinymce.min.js
script to the index.html
file
you can add script like this because this option better then globally load
<TinyMCE scriptUrl={'//tinymce.cachefly.net/4.2/tinymce.min.js'} />
The component references
tinymce
twice, but never requires it in or creates it. I guess it just assumes that there is a global object namedtinymce
that exists?This doesn't play nice if you're using browserify to handle your dependency inclusion.
tinymce
appears to exist on npm and there seems to be no reason not to include it: sinceTinyMCE.js
does userequire
, it's not browser-safe on its own anyway.