Explanation: by default the editor ignores the ['code', 'preview'], which removes the code and the preview functionality. You re-set that property to just include ['code'], which will just remove the code button.
Awesome, it works!
This would be a nice addition to the docs!
It’s worth noting since the preview button is a toggle for the code button, you should either keep none or both, other wise the functionality is broken (no way to go back to code):