Sup and sub buttons

0.0/5
<?php
function my_mce_buttons_2( $buttons ) {	

	$buttons[] = 'superscript';
	$buttons[] = 'subscript';

	return $buttons;
}
add_filter( 'mce_buttons_2', 'my_mce_buttons_2' );

Comments and reviews

{{ reviewsTotal }} Review
{{ reviewsTotal }} Reviews
{{ options.labels.newReviewButton }}
{{ userData.canReview.message }}

Description

Add in a core button that’s disabled by default in the TinyMCE editor

Author

Tags

This snippet is untagged