switchEditors.switchto is not a function

Hello!

I need some help. The latest WP version breaks my layout builder and the console says:

TypeError: switchEditors.switchto is not a function

Anyone knows a quick solution for this?

Yes, Updated the TinyMCE initialization, WordPress core changed in v4.3 switchto() changed as init() and added wp-editor-id etc. you need to use only use window.switchEditors without switchto. update details

I do not know how to use you switchto code, if you write where use it, maybe i can help you more hehe :grinning:

1 Like

This is more than enough! Thank you vey much! :slight_smile: :beer:

You’re welcome, Cheers! :smiley: :beer: