Add a Preview Button to the Fullscreen Editor in WordPress

I really like the fullscreen editor in WordPress. I use it nearly all of the time when composing long-form content, often in conjunction with the excellent Markdown on Save plugin by Mark Jaquith. It has always bugged me that there wasn’t a Preview button in the fullscreen mode toolbar.

Problem solved.


Here’s the code.

This post is part of the project: Fullscreen Preview Button. View the project timeline for more context on this post.