I am using Tiny mce in my website since more than a year.
Today it suddenly stopped working and giving follwoing error
Anyonce can help to fix this error?
If you use Vue and followed the Laracasts tutorial to implement communication between components, you'll probably have this line in your main.js:
window.Event = new Vue();
The solution was to change that line to:
window.eventBus = new Vue({});
And then each of the places that was used, change
Event.$emit
to
window.eventBus.$emit
And:
Event.$on
to
window.eventBus.$on
I was pointed in the right direction by excellent support from Tiny. They also said that you can rollback to 5.8 while you resolve your problem by changing /tinymce/5/
to /tinymce/5.8/
in your src
.