function lcp_add_preview_div($post_id) { live_preview(); return $post_id; }
<?php // actual comment form } ?> <div id="comment-input"> <label for="comment">Your comment</label> <textarea name="comment" id="comment" cols="60" rows="12" tabindex="4"></textarea> <input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /> <?php comment_id_fields(); ?> <?php if (function_exists('live_preview')) { live_preview(); } ?> <?php @(include 'constants.php'); echo $commentsFormInclude; ?> </div> <?php do_action('comment_form', $post->ID); ?> </fieldset></form> </div> <?php }