switchEditors.switchto is not a function

wordpress

#1

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?


#2

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:


#3

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


#4

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