I have a tab switching theme that lets the user choose 3 editing modes when adding new pages (HTML and Visual- these are WP defaults and the new Syntax mode using Code Mirror).
I have issues when switching from Syntax back to HTML and Visual. It seems that the tab switching is unstable and the editor is not restored back to its normal WP default behaviour.
I plan to use the default switchEditors.switchto function by WP but I don't know what parameters I would like to feed to it. Can someone please show me an example how to use this function in a custom JS function (like inside a theme?) Thanks.