Uncaught ReferenceError:switchEditors is not defined

Is anyone familiar with this error? It is causing TinyMCE to break in my WordPress theme.

In console it gives me these two errors both seem to originate from wp-admin/post-new.php

Uncaught ReferenceError:switchEditors is not defined

Uncaught TypeError: undefined is not a function /wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,…editor,quickt&load%5B%5D=ags,wplink,wp-fullscreen,media-upload&ver=3.9.1:2

enter image description here

Both the Visual and Smart tabs break, becoming unclickable, and the TinyMCE toolbar disappears.

4 s
4

it might me entirely different solution that i am providing but it solved the problem for me.

I followed these steps:

  1. Open the user that is getting error. (WordPress admin menu > users > your profile)
  2. Changed the setting of “Disable the visual editor when writing” and saved the settings
  3. Again disabled this feature and saved the settings
  4. Boom. my editor is back.

Maybe it could solve someone else problem.

Regards,

Rao

Leave a Comment