Remove the second row of formatting buttons in the TinyMCE editor for the
product short description meta box.
This commit is contained in:
parent
b4c66db7e2
commit
4af19400b6
|
@ -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 );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue