Merge pull request #3490 from emzo/patch-1

Show limited formatting buttons on short description field editor
This commit is contained in:
Mike Jolley 2013-07-18 06:11:28 -07:00
commit 8f273e8240
1 changed files with 3 additions and 4 deletions

View File

@ -160,10 +160,9 @@ add_action( 'pre_post_update', 'woocommerce_pre_post_update' );
function woocommerce_product_short_description_meta_box( $post ) {
$settings = array(
'quicktags' => array( 'buttons' => 'em,strong,link' ),
'textarea_name' => 'excerpt',
'quicktags' => true,
'tinymce' => true,
'quicktags' => array( 'buttons' => 'em,strong,link' ),
'tinymce' => array( 'theme_advanced_buttons1' => 'bold,italic,link,unlink' ),
'editor_css' => '<style>#wp-excerpt-editor-container .wp-editor-area{height:175px; width:100%;}</style>'
);
@ -502,4 +501,4 @@ function woocommerce_wp_radio( $field ) {
</li>';
}
echo '</ul></fieldset>';
}
}