Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: What's the best Post Preview plugin?


deadlyhifi
Participant

@tomdebruin

good work.

though I changed the preview button to <p name='live_comment_preview_button' id='live_comment_preview_submit' value='".$label."' onclick='sendPostToPreview("".$live_comment_preview_path."" )' />Preview Post</p>, styled accordingly with a cursor on hover and placed it on the post form itself (the submit button would try and submit the form).

add_action('post_form', 'add_live_comment_preview');
add_action('edit_form','add_live_comment_preview');

also added it to the edit post form.

Skip to toolbar