Changeset 1795
- Timestamp:
- 10/14/2004 07:33:06 AM (20 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r1786 r1795 98 98 <div><textarea rows="1" cols="40" name="excerpt" tabindex="4" id="excerpt"><?php echo $excerpt ?></textarea></div> 99 99 </fieldset> 100 <script type="text/javascript">101 <!--102 function ReloadTextDiv()103 {104 var UseInstantPreview = document.getElementById("use_instant_preview").checked;105 if( UseInstantPreview == true )106 {107 var NewText = document.getElementById("content").value;108 splitText = NewText.split(/\n/).join("<br />");109 var DivElement = document.getElementById("TextDisplay");110 DivElement.innerHTML = splitText;111 }112 }113 // -->114 </script>115 100 <fieldset id="postdiv"> 116 101 <legend><a href="http://wordpress.org/docs/reference/post/#post" title="<?php _e('Help with post field') ?>"><?php _e('Post') ?></a></legend> … … 149 134 <input name="referredby" type="hidden" id="referredby" value="<?php echo htmlspecialchars($_SERVER['HTTP_REFERER']); ?>" /> 150 135 </p> 151 <fieldset id="previewdiv"> 152 <legend><a href="http://wordpress.org/docs/reference/post/#post" title="Help with post field">Preview</a></legend> 153 <div><p id="TextDisplay"></p></div> 154 </fieldset> 136 155 137 <?php echo $form_enclosure; ?> 156 138 -
trunk/wp-admin/wp-admin.css
r1762 r1795 489 489 font-size: .4em; 490 490 } 491 492 #TextDisplay{493 border-left: solid 1px #666666;494 border-right: solid 1px #000000;495 border-top: solid 1px #666666;496 border-bottom: solid 1px #000000;497 background:#f2f9a5;498 margin:10px 30px 10px 30px;499 padding:3px;500 font-size: 11px;501 font-family:verdana;502 }
Note: See TracChangeset
for help on using the changeset viewer.