Rollback live preview stuff.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
40a8e6885b
commit
5c4e8a43a8
|
@ -97,21 +97,6 @@ window.onload = focusit;
|
|||
<legend><a href="http://wordpress.org/docs/reference/post/#excerpt" title="<?php _e('Help with excerpts') ?>"><?php _e('Excerpt') ?></a></legend>
|
||||
<div><textarea rows="1" cols="40" name="excerpt" tabindex="4" id="excerpt"><?php echo $excerpt ?></textarea></div>
|
||||
</fieldset>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function ReloadTextDiv()
|
||||
{
|
||||
var UseInstantPreview = document.getElementById("use_instant_preview").checked;
|
||||
if( UseInstantPreview == true )
|
||||
{
|
||||
var NewText = document.getElementById("content").value;
|
||||
splitText = NewText.split(/\n/).join("<br />");
|
||||
var DivElement = document.getElementById("TextDisplay");
|
||||
DivElement.innerHTML = splitText;
|
||||
}
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
<fieldset id="postdiv">
|
||||
<legend><a href="http://wordpress.org/docs/reference/post/#post" title="<?php _e('Help with post field') ?>"><?php _e('Post') ?></a></legend>
|
||||
<?php the_quicktags(); ?>
|
||||
|
@ -148,10 +133,7 @@ if ('publish' != $post_status || 0 == $post_ID) {
|
|||
?>
|
||||
<input name="referredby" type="hidden" id="referredby" value="<?php echo htmlspecialchars($_SERVER['HTTP_REFERER']); ?>" />
|
||||
</p>
|
||||
<fieldset id="previewdiv">
|
||||
<legend><a href="http://wordpress.org/docs/reference/post/#post" title="Help with post field">Preview</a></legend>
|
||||
<div><p id="TextDisplay"></p></div>
|
||||
</fieldset>
|
||||
|
||||
<?php echo $form_enclosure; ?>
|
||||
|
||||
<?php
|
||||
|
|
|
@ -488,15 +488,3 @@ textarea, input, select {
|
|||
#wphead h1 span {
|
||||
font-size: .4em;
|
||||
}
|
||||
|
||||
#TextDisplay{
|
||||
border-left: solid 1px #666666;
|
||||
border-right: solid 1px #000000;
|
||||
border-top: solid 1px #666666;
|
||||
border-bottom: solid 1px #000000;
|
||||
background:#f2f9a5;
|
||||
margin:10px 30px 10px 30px;
|
||||
padding:3px;
|
||||
font-size: 11px;
|
||||
font-family:verdana;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue