This Joplin plugin adds to the View menu a command to toggle between WYSIWIG and Markdown editors, with a keyboard shortcut (CtrlOrCmd + G). It addresses a known limitation of Joplin.
For information on how to build or publish the plugin, please see GENERATOR_DOC.md