Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add a preview button to the WordPress fullscreen editor toolbar.
Plugin Name: Fullscreen Preview Button
Description: Add a preview button to the fullscreen editor toolbar.
Version: 1.2
Author: Alex King
Author URI:
License: GPL2
function akv3_fullscreen_preview_button() {
<script type="text/javascript">
;(function($) {
var $preview = $('#post-preview');
.css('margin-left', '5px')
.click(function(e) {
.insertBefore('#wp-fullscreen-save input.button-primary');
add_action('admin_footer-post-new.php', 'akv3_fullscreen_preview_button');
add_action('admin_footer-post.php', 'akv3_fullscreen_preview_button');

This comment has been minimized.

Copy link
Owner Author

@alexkingorg alexkingorg commented Jan 14, 2013

Updated for WP 3.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment