Last active
August 29, 2015 14:16
-
-
Save mdemrs/ebacc262035171249119 to your computer and use it in GitHub Desktop.
wp: enable full TinyMCE by default
This file contains 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
//Enable full TinyMCE by default | |
function my_mce_options( $init ) { | |
$init['wordpress_adv_hidden'] = false; | |
return $init; | |
} | |
add_filter('tiny_mce_before_init', 'my_mce_options'); | |
//Add buttons in TinyMCE, list http://www.tinymce.com/wiki.php/TinyMCE3x:Buttons/controls | |
function wpc_add_more_buttons($buttons){ | |
$buttons[] = 'charmap'; | |
$buttons[] = 'cut'; | |
$buttons[] = 'copy'; | |
$buttons[] = 'paste'; | |
return $buttons; | |
} | |
add_filter('mce_buttons', 'wpc_add_more_buttons'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment