[wp-trac] Re: [WordPress Trac] #2200: Ability to hide preview
WordPress Trac
wp-trac at lists.automattic.com
Thu Feb 15 05:26:46 GMT 2007
#2200: Ability to hide preview
-----------------------------------+----------------------------------------
Reporter: hypercubed | Owner: anonymous
Type: enhancement | Status: new
Priority: low | Milestone: 2.2
Component: Administration | Version: 2.0
Severity: normal | Resolution:
Keywords: 2nd-opinion has-patch |
-----------------------------------+----------------------------------------
Comment (by hypercubed):
It is now line 72 replaced with:
{{{
<script type="text/javascript">
<!--
function show_preview() {
var elm = document.getElementById("frm_preview");
elm.src = "<?php echo
attribute_escape(apply_filters('preview_post_link',
add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>";
elm.height = "600";
return false;
}
-->
</script>
<a href="#preview-post" onclick="show_preview();">Show Preview</a>
<iframe id="frm_preview" src="" width="100%" height="10" ></iframe>
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/2200#comment:11>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list