Bound "togglePreview" method for export.

I needed to customize the editor's toolbar for a project, and encountered an issue where I couldn't make the preview button work, because Editor.togglePreview didn't exist.