Ticket #1962: mcepolish.diff
File mcepolish.diff, 21.1 KB (added by , 19 years ago) |
---|
-
wp-includes/js/quicktags.js
386 386 + '" />'; 387 387 edInsertContent(myField, myValue); 388 388 } 389 } 390 No newline at end of file 389 } -
wp-includes/js/tinymce/tiny_mce.js
5526 5526 case "mceInsertContent": 5527 5527 var insertHTMLFailed = false; 5528 5528 this.getWin().focus(); 5529 5529 /* WP 5530 5530 if (tinyMCE.isGecko || tinyMCE.isOpera) { 5531 5531 try { 5532 5532 // Is plain text or HTML … … 5560 5560 return; 5561 5561 } 5562 5562 } 5563 5563 */ 5564 5564 // Ugly hack in Opera due to non working "inserthtml" 5565 5565 if (tinyMCE.isOpera && insertHTMLFailed) { 5566 5566 this.getDoc().execCommand("insertimage", false, tinyMCE.uniqueURL); -
wp-admin/edit-form-advanced.php
7 7 <div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div> 8 8 <?php endif; ?> 9 9 10 <?php $richedit = ( 'true' != get_user_option('rich_editing') ) ? false : true; ?>11 12 10 <form name="post" action="post.php" method="post" id="post"> 13 11 <?php if ( (isset($mode) && 'bookmarklet' == $mode) || 14 12 isset($_GET['popupurl']) ): ?> … … 139 137 <div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo $post->post_title; ?>" id="title" /></div> 140 138 </fieldset> 141 139 142 <fieldset id="<?php echo $richedit? 'postdivrich' : 'postdiv'; ?>">140 <fieldset id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>"> 143 141 <legend><?php _e('Post') ?></legend> 144 142 145 143 <?php … … 148 146 $rows = 12; 149 147 } 150 148 ?> 151 <?php if ( !$richedit )the_quicktags(); ?>149 <?php the_quicktags(); ?> 152 150 153 <div><textarea <?php if ( $richedit ) echo 'title="true"'; ?> rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="2" id="content"><?php echo $richedit? wp_richedit_pre($post->post_content) : $post->post_content; ?></textarea></div>151 <div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="2" id="content"><?php echo user_can_richedit() ? wp_richedit_pre($post->post_content) : $post->post_content; ?></textarea></div> 154 152 </fieldset> 155 153 156 <?php if ( !$richedit ) : ?>157 154 <script type="text/javascript"> 158 155 <!-- 159 156 edCanvas = document.getElementById('content'); 160 //--> 161 </script> 162 <?php else : ?> 163 <script type="text/javascript"> 164 <!-- 157 <?php if ( user_can_richedit() ) : ?> 165 158 // This code is meant to allow tabbing from Title to Post (TinyMCE). 166 159 if ( tinyMCE.isMSIE ) 167 160 document.getElementById('title').onkeydown = function (e) … … 193 186 return false; 194 187 } 195 188 } 196 189 <?php endif; ?> 197 190 //--> 198 191 </script> 199 <?php endif; ?>200 192 201 193 <?php echo $form_pingback ?> 202 194 <?php echo $form_prevstatus ?> -
wp-admin/inline-uploading.php
150 150 151 151 $uwidth_sum = 0; 152 152 $html = ''; 153 $popups = ''; 153 154 $style = ''; 154 155 $script = ''; 155 156 if ( count($attachments) > 0 ) { … … 162 163 $__using_thumbnail = __('Using Thumbnail'); 163 164 $__using_original = __('Using Original'); 164 165 $__no_thumbnail = '<del>'.__('No Thumbnail').'</del>'; 166 $__send_to_editor = __('Send to editor'); 165 167 $__close = __('Close Options'); 166 168 $__confirmdelete = __('Delete this file from the server?'); 167 169 $__nothumb = __('There is no thumbnail associated with this photo.'); … … 190 192 add_post_meta($ID, '_wp_attachment_metadata', $meta); 191 193 } 192 194 $attachment = array_merge($attachment, $meta); 193 $delete_cancel = "<a onclick=\"return confirm('$__confirmdelete')\" href=\"".basename(__FILE__)."?action=delete&attachment={$ID}&all=$all&start=$start&post=$post\">$__delete</a> 195 $send_delete_cancel = "<a onclick=\"sendToEditor({$ID});return false;\" href=\"javascript:void()\">$__send_to_editor</a> 196 <a onclick=\"return confirm('$__confirmdelete')\" href=\"".basename(__FILE__)."?action=delete&attachment={$ID}&all=$all&start=$start&post=$post\">$__delete</a> 194 197 <a onclick=\"popup.style.display='none';return false;\" href=\"javascript:void()\">$__close</a> 195 198 "; 196 199 $uwidth_sum += 128; … … 219 222 imgb[{$ID}] = '<img id=\"image{$ID}\" src=\"{$image['guid']}\" alt=\"{$image['post_title']}\" $height_width />'; 220 223 "; 221 224 $html .= "<div id='target{$ID}' class='attwrap left'> 222 <div id='popup{$ID}' class='popup'>223 <a id=\"I{$ID}\" onclick=\"if($thumb)toggleImage({$ID});else alert('$__nothumb');return false;\" href=\"javascript:void()\">$thumbtext</a>224 <a id=\"L{$ID}\" onclick=\"toggleLink({$ID});return false;\" href=\"javascript:void()\">$__not_linked</a>225 {$delete_cancel}226 </div>227 225 <div id='div{$ID}' class='imagewrap' onclick=\"doPopup({$ID});\"> 228 226 <img id=\"image{$ID}\" src=\"$src\" alt=\"{$image['post_title']}\" $height_width /> 229 227 </div> 230 228 </div> 231 229 "; 230 $popups .= "<div id='popup{$ID}' class='popup'> 231 <a id=\"I{$ID}\" onclick=\"if($thumb)toggleImage({$ID});else alert('$__nothumb');return false;\" href=\"javascript:void()\">$thumbtext</a> 232 <a id=\"L{$ID}\" onclick=\"toggleLink({$ID});return false;\" href=\"javascript:void()\">$__not_linked</a> 233 {$send_delete_cancel} 234 </div> 235 "; 232 236 } else { 233 $script .= "a {$ID}a= '<a id=\"{$ID}\" rel=\"attachment\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$attachment['post_title']}\">{$attachment['post_title']}</a>';234 a {$ID}b= '<a id=\"{$ID}\" href=\"{$attachment['guid']}\" onclick=\"doPopup({$ID});return false;\" title=\"{$attachment['post_title']}\">{$attachment['post_title']}</a>';237 $script .= "aa[{$ID}] = '<a id=\"{$ID}\" rel=\"attachment\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$attachment['post_title']}\">{$attachment['post_title']}</a>'; 238 ab[{$ID}] = '<a id=\"{$ID}\" href=\"{$attachment['guid']}\" onclick=\"doPopup({$ID});return false;\" title=\"{$attachment['post_title']}\">{$attachment['post_title']}</a>'; 235 239 "; 236 240 $html .= "<div id='target{$ID}' class='attwrap left'> 237 <div id='popup{$ID}' class='popup'>238 <div class='filetype'>File Type: ".str_replace('/',"/\n",$attachment['post_mime_type'])."</div>239 <a id=\"L{$ID}\" onclick=\"toggleOtherLink({$ID});return false;\" href=\"javascript:void()\">$__linked_to_file</a>240 {$delete_cancel}241 </div>242 241 <div id='div{$ID}' class='otherwrap' onmousedown=\"selectLink({$ID})\" onclick=\"doPopup({$ID});return false;\"> 243 242 <a id=\"{$ID}\" href=\"{$attachment['guid']}\" onmousedown=\"selectLink({$ID});\" onclick=\"return false;\">{$attachment['post_title']}</a> 244 243 </div> 245 244 </div> 246 245 "; 246 $popups .= "<div id='popup{$ID}' class='popup'> 247 <div class='filetype'>File Type: ".str_replace('/',"/\n",$attachment['post_mime_type'])."</div> 248 <a id=\"L{$ID}\" onclick=\"toggleOtherLink({$ID});return false;\" href=\"javascript:void()\">$__linked_to_file</a> 249 {$send_delete_cancel} 250 </div> 251 "; 247 252 } 248 253 } 249 254 } … … 278 283 target = document.getElementById('target'+i); 279 284 popup = document.getElementById('popup'+i); 280 285 popup.style.left = (target.offsetLeft) + 'px'; 286 popup.style.top = (target.offsetTop) + 'px'; 281 287 popup.style.display = 'block'; 282 288 } 283 function init() { 284 popup = false; 285 } 289 popup = false; 286 290 function selectLink(n) { 287 291 o=document.getElementById('div'+n); 292 if ( typeof document.body.createTextRange == 'undefined' || typeof win.tinyMCE == 'undefined' || win.tinyMCE.configs.length < 1 ) 293 return; 288 294 r = document.body.createTextRange(); 289 295 if ( typeof r != 'undefined' ) { 290 296 r.moveToElementText(o); … … 333 339 oi.innerHTML = usingthumbnail; 334 340 } 335 341 } 342 343 var win = window.opener ? window.opener : window.dialogArguments; 344 if (!win) win = top; 345 tinyMCE = win.tinyMCE; 346 richedit = ( typeof tinyMCE == 'object' && tinyMCE.configs.length > 0 ); 347 function sendToEditor(n) { 348 o = document.getElementById('div'+n); 349 h = o.innerHTML.replace(new RegExp('^\\s*(.*?)\\s*$', ''), '$1'); // Trim 350 h = h.replace(new RegExp(' (class|title|width|height|id|onclick|onmousedown)=([^\'"][^ ]*)( |/|>)', 'g'), ' $1="$2"$3'); // Enclose attribs in quotes 351 h = h.replace(new RegExp(' on(click|mousedown)="[^"]*"', 'g'), ''); // Drop menu events 352 h = h.replace(new RegExp('<(/?)A', 'g'), '<$1a'); // Lowercase tagnames 353 h = h.replace(new RegExp('<IMG', 'g'), '<img'); // Lowercase again 354 h = h.replace(new RegExp('(<img .+?")>', 'g'), '$1 />'); // XHTML 355 if ( richedit ) 356 win.tinyMCE.execCommand('mceInsertContent', false, h); 357 else 358 win.edInsertContent(win.edCanvas, h); 359 } 336 360 </script> 337 361 <style type="text/css"> 338 362 body { … … 351 375 width: 100%; 352 376 } 353 377 #images { 378 position: absolute; 354 379 clear: both; 355 380 margin: 0px; 356 padding: 3px 15px;381 padding: 15px 15px; 357 382 height: 96px; 358 383 /* white-space: nowrap;*/ 359 384 width: <?php echo $images_width; ?>px; … … 492 517 } 493 518 </style> 494 519 </head> 495 <body onload="init()">520 <body> 496 521 <ul id="upload-menu"> 497 522 <li<?php echo $current_1; ?>><a href="<?php echo basename(__FILE__); ?>?action=upload&post=<?php echo $post; ?>&all=<?php echo $all; ?>"><?php _e('Upload'); ?></a></li> 498 523 <?php if ( $attachments = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE post_parent = '$post'") ) { ?> … … 521 546 </ul> 522 547 <?php if ( $action == 'view' ) : ?> 523 548 <div id="wrap"> 524 < div class="tip"><?php _e('You can drag and drop these items into your post. Click on one for more options.'); ?></div>549 <!--<div class="tip"><?php _e('You can drag and drop these items into your post. Click on one for more options.'); ?></div>--> 525 550 <div id="images"> 526 551 <?php echo $html; ?> 552 <?php echo $popups; ?> 527 553 </div> 528 554 </div> 529 555 <?php elseif ( $action == 'upload' ) : ?> -
wp-admin/wp-admin.css
1 1 * html #poststuff { 2 2 height: 100%; /* kill peekaboo bug in IE */ 3 3 } 4 4 body { 5 border: none; 6 } 5 7 a { 6 8 border-bottom: 1px solid #69c; 7 9 color: #00019b; -
wp-admin/admin-header.php
79 79 <script type="text/javascript" src="../wp-includes/js/tw-sack.js"></script> 80 80 <script type="text/javascript" src="list-manipulation.js"></script> 81 81 <?php if ( isset( $editing ) ) : ?> 82 <?php if ( $editing && 'true' == get_user_option('rich_editing') ) :82 <?php if ( $editing && user_can_richedit() ) : 83 83 $mce_plugins = apply_filters('mce_plugins', array('wordpress', 'autosave', 'wphelp')); 84 84 $mce_plugins = implode($mce_plugins, ','); 85 85 $mce_buttons = apply_filters('mce_buttons', array('bold', 'italic', 'strikethrough', 'separator', 'bullist', 'numlist', 'outdent', 'indent', 'separator', 'justifyleft', 'justifycenter', 'justifyright' ,'separator', 'link', 'unlink', 'image', 'emotions', 'wordpress', 'separator', 'undo', 'redo', 'code', 'wphelp')); 86 86 $mce_buttons = implode($mce_buttons, ','); 87 $mce_buttons_2 = apply_filters('mce_buttons_2', array()); 88 $mce_buttons_2 = implode($mce_buttons_2, ','); 87 89 ?> 88 90 <script language="javascript" type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce_gzip.php?index=0&theme=advanced&plugins=<?php echo $mce_plugins; ?>"></script> 89 91 <script type="text/javascript"> … … 93 95 width : "100%", 94 96 theme : "advanced", 95 97 theme_advanced_buttons1 : "<?php echo $mce_buttons; ?>", 96 theme_advanced_buttons2 : " ",98 theme_advanced_buttons2 : "<?php echo $mce_buttons_2; ?>", 97 99 theme_advanced_buttons3 : "", 98 100 theme_advanced_toolbar_location : "top", 99 101 theme_advanced_toolbar_align : "left", … … 110 112 convert_newlines_to_brs : false, 111 113 remove_linebreaks : true, 112 114 save_callback : "wp_save_callback", 113 valid_elements : "-a[id|href|title|rel],-strong/b,-em/i,-strike,-del,-u,p[class|align|dir],-ol,-ul,-li,br,img[class|src|alt|title|width|height|align],-sub,-sup,-blockquote[dir],-table[border=0|cellspacing|cellpadding|width|height|class|align|dir],thead[class|rowspan|width|height|align|valign|dir],tr[class|rowspan|width|height|align|valign|dir],th[dir|class|colspan|rowspan|width|height|align|valign|scope],td[dir|class|colspan|rowspan|width|height|align|valign],-div[dir|class|align],-span[class|align],-pre[class],-code[class],-address,-h1[class|align|dir],-h2[class|align|dir],-h3[class|align|dir],-h4[class|align|dir],-h5[class|align|dir],-h6[class|align|dir],hr", 115 <?php if (current_user_can('unfiltered_html') == false) : ?> 116 valid_elements : "-a[id|href|title|rel],-strong/b,-em/i,-strike,-del,-u,p[class|align|dir],-ol,-ul,-li,br,img[class|src|alt|title|width|height|align],-sub,-sup,-blockquote[dir],-table[border=0|cellspacing|cellpadding|width|height|class|align|dir],thead[class|rowspan|width|height|align|valign|dir],tr[class|rowspan|width|height|align|valign|dir],th[dir|class|colspan|rowspan|width|height|align|valign|scope],td[dir|class|colspan|rowspan|width|height|align|valign],-div[dir|class|align],-span[class|align],-pre[class],-code[class],-address,-h1[class|align|dir],-h2[class|align|dir],-h3[class|align|dir],-h4[class|align|dir],-h5[class|align|dir],-h6[class|align|dir],hr", 117 <?php endif; ?> 114 118 plugins : "<?php echo $mce_plugins; ?>" 115 119 <?php do_action('mce_options'); ?> 116 120 }); … … 151 155 var newcat; 152 156 153 157 function newCatAddIn() { 158 if ( !document.getElementById('jaxcat') ) return false; 154 159 var ajaxcat = document.createElement('p'); 155 160 ajaxcat.id = 'ajaxcat'; 156 161 -
wp-admin/admin-functions.php
1077 1077 function the_quicktags() { 1078 1078 // Browser detection sucks, but until Safari supports the JS needed for this to work people just assume it's a bug in WP 1079 1079 if (!strstr($_SERVER['HTTP_USER_AGENT'], 'Safari')) 1080 :echo '1081 1080 echo ' 1081 <div id="quicktags"> 1082 1082 <script src="../wp-includes/js/quicktags.js" type="text/javascript"></script> 1083 <script type="text/javascript">edToolbar();</script> 1084 '; 1085 echo '</div>'; 1086 endif; 1083 <script type="text/javascript">if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 ) edToolbar();</script> 1084 </div> 1085 '; 1086 else echo ' 1087 <script type="text/javascript"> 1088 function edInsertContent(myField, myValue) { 1089 //IE support 1090 if (document.selection) { 1091 myField.focus(); 1092 sel = document.selection.createRange(); 1093 sel.text = myValue; 1094 myField.focus(); 1095 } 1096 //MOZILLA/NETSCAPE support 1097 else if (myField.selectionStart || myField.selectionStart == "0") { 1098 var startPos = myField.selectionStart; 1099 var endPos = myField.selectionEnd; 1100 myField.value = myField.value.substring(0, startPos) 1101 + myValue 1102 + myField.value.substring(endPos, myField.value.length); 1103 myField.focus(); 1104 myField.selectionStart = startPos + myValue.length; 1105 myField.selectionEnd = startPos + myValue.length; 1106 } else { 1107 myField.value += myValue; 1108 myField.focus(); 1109 } 1087 1110 } 1111 </script> 1112 '; 1113 } 1088 1114 1089 1115 function validate_current_theme() { 1090 1116 $theme_loc = 'wp-content/themes'; … … 1801 1827 return array('file' => $file, 'id' => $id); 1802 1828 } 1803 1829 1830 function user_can_richedit() { 1831 if ( 'true' != get_user_option('rich_editing') ) 1832 return false; 1833 1834 if ( preg_match('!opera[ /][2-8]|konqueror|safari!i', $_SERVER['HTTP_USER_AGENT']) ) 1835 return false; 1836 1837 return true; // Best guess 1838 } 1839 1804 1840 ?> -
wp-admin/edit-page-form.php
20 20 21 21 ?> 22 22 23 <?php $richedit = ( 'true' != get_user_option('rich_editing') ) ? false : true; ?>24 25 23 <form name="post" action="post.php" method="post" id="post"> 26 24 27 25 <?php … … 119 117 </fieldset> 120 118 121 119 122 <fieldset id="<?php echo ( $richedit) ? 'postdivrich' : 'postdiv'; ?>">120 <fieldset id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>"> 123 121 <legend><?php _e('Page Content') ?></legend> 124 122 <?php 125 123 $rows = get_settings('default_post_edit_rows'); … … 127 125 $rows = 10; 128 126 } 129 127 ?> 130 <?php if (! $richedit )the_quicktags(); ?>128 <?php the_quicktags(); ?> 131 129 132 <div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content"><?php echo $richedit? wp_richedit_pre($post->post_content) : $post->post_content; ?></textarea></div>130 <div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content"><?php echo user_can_richedit() ? wp_richedit_pre($post->post_content) : $post->post_content; ?></textarea></div> 133 131 </fieldset> 134 132 135 <?php if ( !$richedit ) : ?>136 133 <script type="text/javascript"> 137 134 <!-- 138 135 edCanvas = document.getElementById('content'); 136 <?php if ( user_can_richedit() ) : ?> 137 // This code is meant to allow tabbing from Title to Post (TinyMCE). 138 if ( tinyMCE.isMSIE ) 139 document.getElementById('title').onkeydown = function (e) 140 { 141 e = e ? e : window.event; 142 if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) { 143 var i = tinyMCE.selectedInstance; 144 if(typeof i == 'undefined') 145 return true; 146 tinyMCE.execCommand("mceStartTyping"); 147 this.blur(); 148 i.contentWindow.focus(); 149 e.returnValue = false; 150 return false; 151 } 152 } 153 else 154 document.getElementById('title').onkeypress = function (e) 155 { 156 e = e ? e : window.event; 157 if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) { 158 var i = tinyMCE.selectedInstance; 159 if(typeof i == 'undefined') 160 return true; 161 tinyMCE.execCommand("mceStartTyping"); 162 this.blur(); 163 i.contentWindow.focus(); 164 e.returnValue = false; 165 return false; 166 } 167 } 168 <?php endif; ?> 139 169 //--> 140 170 </script> 141 <?php endif; ?>142 171 143 172 <p class="submit"> 144 173 <?php if ( $post_ID ) : ?> -
wp-admin/edit-form-comment.php
4 4 $form_action = 'editedcomment'; 5 5 $form_extra = "' />\n<input type='hidden' name='comment_ID' value='" . $comment->comment_ID . "' />\n<input type='hidden' name='comment_post_ID' value='".$comment->comment_post_ID; 6 6 ?> 7 <?php $richedit = ( 'true' != get_user_option('rich_editing') ) ? false : true; ?>8 7 9 8 <form name="post" action="post.php" method="post" id="post"> 10 9 <div class="wrap"> … … 32 31 <fieldset id="uridiv"> 33 32 <legend><?php _e('URI:') ?></legend> 34 33 <div> 35 <input type="text" name="newcomment_author_url" size="35" value="<?php echo $comment->comment_author_url ?>" tabindex="3" id="URL" />34 <input type="text" id="newcomment_author_url" name="newcomment_author_url" size="35" value="<?php echo $comment->comment_author_url ?>" tabindex="3" id="URL" /> 36 35 </div> 37 36 </fieldset> 38 37 39 38 <fieldset style="clear: both;"> 40 39 <legend><?php _e('Comment') ?></legend> 41 <?php if ( !$richedit )the_quicktags(); ?>40 <?php the_quicktags(); ?> 42 41 43 42 <?php 44 43 $rows = get_settings('default_post_edit_rows'); … … 46 45 $rows = 10; 47 46 } 48 47 ?> 49 <div><textarea <?php if ( $richedit ) echo 'title="true"'; ?> rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content" style="width: 99%"><?php echo $richedit? wp_richedit_pre($comment->comment_content) : $comment->comment_content; ?></textarea></div>48 <div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content" style="width: 99%"><?php echo user_can_richedit() ? wp_richedit_pre($comment->comment_content) : $comment->comment_content; ?></textarea></div> 50 49 </fieldset> 51 50 52 <?php if ( !$richedit ) : ?>53 51 <script type="text/javascript"> 54 52 <!-- 55 53 edCanvas = document.getElementById('content'); 54 <?php if ( user_can_richedit() ) : ?> 55 // This code is meant to allow tabbing from Author URL to Post (TinyMCE). 56 if ( tinyMCE.isMSIE ) 57 document.getElementById('newcomment_author_url').onkeydown = function (e) 58 { 59 e = e ? e : window.event; 60 if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) { 61 var i = tinyMCE.selectedInstance; 62 if(typeof i == 'undefined') 63 return true; 64 tinyMCE.execCommand("mceStartTyping"); 65 this.blur(); 66 i.contentWindow.focus(); 67 e.returnValue = false; 68 return false; 69 } 70 } 71 else 72 document.getElementById('newcomment_author_url').onkeypress = function (e) 73 { 74 e = e ? e : window.event; 75 if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) { 76 var i = tinyMCE.selectedInstance; 77 if(typeof i == 'undefined') 78 return true; 79 tinyMCE.execCommand("mceStartTyping"); 80 this.blur(); 81 i.contentWindow.focus(); 82 e.returnValue = false; 83 return false; 84 } 85 } 86 <?php endif; ?> 56 87 //--> 57 88 </script> 58 <?php endif; ?>59 89 60 90 <p class="submit"><input type="submit" name="editcomment" id="editcomment" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" /> 61 91 <input name="referredby" type="hidden" id="referredby" value="<?php echo $_SERVER['HTTP_REFERER']; ?>" />