Ticket #692: 692.5.diff
File 692.5.diff, 868 bytes (added by , 10 years ago) |
---|
-
inc/user-content.php
123 123 'textarea_name' => 'comment', 124 124 'textarea_rows' => 8, 125 125 'quicktags' => array( 126 'buttons' => 'strong,em,ul,ol,li ,wporg_php,js'126 'buttons' => 'strong,em,ul,ol,li' 127 127 ), 128 128 'teeny' => true, 129 129 'tinymce' => false, … … 132 132 return ob_get_clean(); 133 133 } 134 134 135 public static function mce_buttons( $buttons ) {136 $buttons = array_merge( $buttons, array( 'wporg_php' ) );137 return $buttons;138 }139 140 public static function mce_plugins( $plugins ) {141 $plugins['wporg_php'] = get_stylesheet_directory_uri() . '/js/user-notes.js';142 return $plugins;143 }144 135 } // DevHub_User_Submitted_Content 145 136 146 137 DevHub_User_Submitted_Content::init();