Changeset 11982 for trunk/wp-admin/press-this.php
- Timestamp:
- 09/29/2009 09:46:13 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/press-this.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r11971 r11982 348 348 do_action('admin_head'); 349 349 350 if ( user_can_richedit() ) { 351 add_filter( 'teeny_mce_before_init', create_function( '$a', '$a["height"] = "400"; $a["onpageload"] = ""; $a["mode"] = "textareas"; $a["editor_selector"] = "mceEditor"; return $a;' ) ); 352 wp_tiny_mce( true ); 353 } 350 if ( user_can_richedit() ) 351 wp_tiny_mce( true, array( 'height' => '370' ) ); 354 352 ?> 355 353 <script type="text/javascript"> … … 423 421 } 424 422 } 425 jQuery(document).ready(function( ) {423 jQuery(document).ready(function($) { 426 424 //resize screen 427 425 window.resizeTo(720,570); … … 439 437 jQuery('#title').unbind(); 440 438 jQuery('#publish, #save').click(function() { jQuery('#saving').css('display', 'inline'); }); 439 440 $('#tagsdiv-post_tag, #categorydiv').children('h3').click(function(){ 441 $(this).siblings('.inside').toggle(); 442 }); 441 443 }); 442 444 </script> 443 445 </head> 444 <body class="press-this ">446 <body class="press-this wp-admin"> 445 447 <div id="wphead"></div> 446 448 <form action="press-this.php?action=post" method="post"> … … 553 555 <div id="quicktags"></div> 554 556 <div class="editor-container"> 555 <textarea name="content" id="content" style="width:100%;" class="mceEditor" rows="15"> 556 <?php if ($selection) echo wp_richedit_pre(htmlspecialchars_decode($selection)); ?> 557 <?php if ($url) { echo '<p>'; if($selection) _e('via '); echo "<a href='$url'>$title</a>."; echo '</p>'; } ?> 558 </textarea> 557 <textarea name="content" id="content" style="width:100%;" class="theEditor" rows="15"><?php 558 if ( $selection ) 559 echo wp_richedit_pre(htmlspecialchars_decode($selection)); 560 if ( $url ) { 561 echo '<p>'; 562 if ( $selection ) 563 _e('via '); 564 echo "<a href='$url'>$title</a>.</p>"; 565 } 566 ?></textarea> 559 567 </div> 560 568 </div>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)