Changeset 722
- Timestamp:
- 12/15/2008 05:15:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-messages/bp-messages-cssjs.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-cssjs.php
r659 r722 1 1 <?php 2 2 3 function messages_add_tinymce() {4 global $bp;5 6 if ( ( $bp['current_component'] == $bp['messages']['slug'] && $bp['current_action'] == 'compose' ) || ( $bp['current_component'] == $bp['messages']['slug'] && $bp['current_action'] == 'view' ) ) {7 echo '8 <script type="text/javascript" src="' . site_url() . '/wp-includes/js/tinymce/tiny_mce.js"></script>9 <script type="text/javascript">10 <!--11 tinyMCE.init({12 theme : "advanced",13 skin : "wp_theme",14 language : "en",15 theme_advanced_toolbar_location : "top",16 theme_advanced_toolbar_align : "left",17 theme_advanced_path_location : "bottom",18 theme_advanced_resizing : true,19 theme_advanced_resize_horizontal : false,20 theme_advanced_buttons1:"bold,italic,strikethrough,|,bullist,numlist,blockquote,|,justifyleft,justifycenter,justifyright,|,link,unlink,image,wp_more,|,fullscreen,wp_adv",theme_advanced_buttons2:"formatselect,underline,justifyfull,forecolor,|,pastetext,pasteword,removeformat,|,media,charmap,|,outdent,indent,|,undo,redo,wp_help",theme_advanced_buttons3:"",21 content_css : "' . site_url() . '/wp-includes/js/tinymce/plugins/wordpress/wordpress.css",22 mode : "exact",23 elements : "message_content",24 width : "100%",25 height : "250",26 plugins:"safari,inlinepopups,autosave,paste,wordpress,media,fullscreen"27 });28 -->29 </script>';30 }31 32 }33 add_action( 'wp_head', 'messages_add_tinymce' );3 // function messages_add_tinymce() { 4 // global $bp; 5 // 6 // if ( ( $bp['current_component'] == $bp['messages']['slug'] && $bp['current_action'] == 'compose' ) || ( $bp['current_component'] == $bp['messages']['slug'] && $bp['current_action'] == 'view' ) ) { 7 // echo ' 8 // <script type="text/javascript" src="' . site_url() . '/wp-includes/js/tinymce/tiny_mce.js"></script> 9 // <script type="text/javascript"> 10 // <!-- 11 // tinyMCE.init({ 12 // theme : "advanced", 13 // skin : "wp_theme", 14 // language : "en", 15 // theme_advanced_toolbar_location : "top", 16 // theme_advanced_toolbar_align : "left", 17 // theme_advanced_path_location : "bottom", 18 // theme_advanced_resizing : true, 19 // theme_advanced_resize_horizontal : false, 20 // theme_advanced_buttons1:"bold,italic,strikethrough,|,bullist,numlist,blockquote,|,justifyleft,justifycenter,justifyright,|,link,unlink,image,wp_more,|,fullscreen,wp_adv",theme_advanced_buttons2:"formatselect,underline,justifyfull,forecolor,|,pastetext,pasteword,removeformat,|,media,charmap,|,outdent,indent,|,undo,redo,wp_help",theme_advanced_buttons3:"", 21 // content_css : "' . site_url() . '/wp-includes/js/tinymce/plugins/wordpress/wordpress.css", 22 // mode : "exact", 23 // elements : "message_content", 24 // width : "100%", 25 // height : "250", 26 // plugins:"safari,inlinepopups,autosave,paste,wordpress,media,fullscreen" 27 // }); 28 // --> 29 // </script>'; 30 // } 31 // 32 // } 33 // add_action( 'wp_head', 'messages_add_tinymce' ); 34 34 35 35 function messages_add_js() {
Note: See TracChangeset
for help on using the changeset viewer.