Piyush aggarwal
Piyush aggarwal

Reputation: 772

Right-hand side of 'instanceof' is not callable error in Tinymce

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? enter image description here

Upvotes: 1

Views: 1032

Answers (1)

Drewster
Drewster

Reputation: 539

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.

Upvotes: 2

Related Questions