Remove the second row of formatting buttons in the TinyMCE editor for the

product short description meta box.
This commit is contained in:
Emyr Thomas 2013-11-25 21:53:40 +00:00
parent b4c66db7e2
commit 4af19400b6
1 changed files with 5 additions and 2 deletions

View File

@ -24,11 +24,14 @@ class WC_Meta_Box_Product_Short_Description {
$settings = array(
'textarea_name' => 'excerpt',
'quicktags' => array( 'buttons' => 'em,strong,link' ),
'tinymce' => array( 'theme_advanced_buttons1' => 'bold,italic,link,unlink' ),
'tinymce' => array(
'theme_advanced_buttons1' => 'bold,italic,link,unlink',
'theme_advanced_buttons2' => '',
),
'editor_css' => '<style>#wp-excerpt-editor-container .wp-editor-area{height:175px; width:100%;}</style>'
);
wp_editor( htmlspecialchars_decode( $post->post_excerpt ), 'excerpt', $settings );
}
}
}