Last active
November 23, 2016 14:19
-
-
Save djm56/538733b5771a8f4fc5bf43d23fca0b3e to your computer and use it in GitHub Desktop.
Show All TinyMCE in WordPress add this to functions.php in theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add the to functions.php | |
**/ | |
function enable_more_buttons($buttons) { | |
$buttons[] = 'fontselect'; | |
$buttons[] = 'fontsizeselect'; | |
$buttons[] = 'styleselect'; | |
$buttons[] = 'backcolor'; | |
$buttons[] = 'newdocument'; | |
$buttons[] = 'cut'; | |
$buttons[] = 'copy'; | |
$buttons[] = 'charmap'; | |
$buttons[] = 'hr'; | |
$buttons[] = 'visualaid'; | |
$buttons[] = 'del'; | |
$buttons[] = 'superscript'; | |
$buttons[] = 'subscript'; | |
$buttons[] = 'cleanup'; | |
return $buttons; | |
} | |
add_filter('mce_buttons_3', 'enable_more_buttons'); | |
function myformatTinyMCE( $in ) { | |
$in['wordpress_adv_hidden'] = FALSE; | |
return $in; | |
} | |
add_filter( 'tiny_mce_before_init', 'myformatTinyMCE' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment