Advertisement
Guest User

Ash Goodman

a guest
Feb 16th, 2010
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.31 KB | None | 0 0
  1. echo ' <script type="text/javascript">
  2.  
  3.  
  4.  
  5. jQuery(document).ready(function() {
  6.  
  7.  
  8.  
  9. jQuery("#_bio_mce").addClass("mceEditor");
  10.  
  11. if ( typeof( tinyMCE ) == "object" && typeof( tinyMCE.execCommand ) == "function" ) {
  12.  
  13. tinyMCE.execCommand("mceAddControl", false, "_bio_mce");
  14.  
  15. }
  16.  
  17.  
  18.  
  19. jQuery("#_edu_mce").addClass("mceEditor");
  20.  
  21. if ( typeof( tinyMCE ) == "object" && typeof( tinyMCE.execCommand ) == "function" ) {
  22.  
  23. tinyMCE.execCommand("mceAddControl", false, "_edu_mce");
  24.  
  25. }
  26.  
  27.  
  28.  
  29. jQuery("#_ana_mce").addClass("mceEditor");
  30.  
  31. if ( typeof( tinyMCE ) == "object" && typeof( tinyMCE.execCommand ) == "function" ) {
  32.  
  33. tinyMCE.execCommand("mceAddControl", false, "_ana_mce");
  34.  
  35. }
  36.  
  37.  
  38.  
  39. jQuery("#_pub_mce").addClass("mceEditor");
  40.  
  41. if ( typeof( tinyMCE ) == "object" && typeof( tinyMCE.execCommand ) == "function" ) {
  42.  
  43. tinyMCE.execCommand("mceAddControl", false, "_pub_mce");
  44.  
  45. }
  46.  
  47. });
  48.  
  49. </script> ';
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59. echo '<p style="background-color:#EDEDED;color:#4d4d4d;padding:10px;margin:0;"><label for="_bio_mce"><strong>Enter in the attorney <em>Biography</em> here.</strong></label></p>';
  60.  
  61. echo '<textarea class="_bio_mce" name="_bio_mce" id="_bio_mce">
  62.  
  63. ' . get_post_meta($post->ID, '_bio_mce', true) . '
  64.  
  65. </textarea> ';
  66.  
  67. echo '<p style="background-color:#EDEDED;color:#4d4d4d;padding:10px;margin:0;"><label for="_edu_mce"><strong>Enter in the attorney <em>Education and Honors</em> here.</strong></label></p>';
  68.  
  69. echo '<textarea class="_edu_mce" name="_edu_mce" id="_edu_mce">
  70.  
  71. ' . get_post_meta($post->ID, '_edu_mce', true) . '
  72.  
  73. </textarea>';
  74.  
  75. echo '<p style="background-color:#EDEDED;color:#4d4d4d;padding:10px;margin:0;"><label for="_ana_mce"><strong>Enter in the attorney <em>Admissions and Affiliations</em> here.</strong></label></p>';
  76.  
  77. echo '<textarea class="_ana_mce" name="_ana_mce" id="_ana_mce">
  78.  
  79. ' . get_post_meta($post->ID, '_ana_mce', true) . '
  80.  
  81. </textarea> ';
  82.  
  83. echo '<p style="background-color:#EDEDED;color:#4d4d4d;padding:10px;margin:0;"><label for="_pub_mce"><strong>Enter in the attorney <em>Publications and Speeches</em> here</strong></label></p>';
  84.  
  85. echo '<textarea class="_pub_mce" name="_pub_mce" id="_pub_mce">
  86.  
  87. ' . get_post_meta($post->ID, '_pub_mce', true) . '
  88.  
  89. </textarea> ';
  90.  
  91. echo '<p style="background-color:#EDEDED;color:#4d4d4d;padding:15px;margin:0;"></p><br /><br />';
  92.  
  93.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement