Created
March 21, 2014 22:44
-
-
Save illucent/9698052 to your computer and use it in GitHub Desktop.
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
<?php | |
function thsp_tiny_mce_settings( $tinyMCESettings ) { | |
return $tinyMCESettings; | |
/* | |
This is what $tinyMCESettings array looks like | |
$tinyMCESettings = Array ( | |
[mode] => exact | |
[width] => 100% | |
[theme] => advanced | |
[skin] => wp_theme | |
[language] => en | |
[spellchecker_languages] => +English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv | |
[theme_advanced_toolbar_location] => top | |
[theme_advanced_toolbar_align] => left | |
[theme_advanced_statusbar_location] => bottom | |
[theme_advanced_resizing] => 1 | |
[theme_advanced_resize_horizontal] => | |
[dialog_type] => modal | |
[formats] => { | |
alignleft : [ | |
{selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'left'}}, | |
{selector : 'img,table', classes : 'alignleft'} | |
], | |
aligncenter : [ | |
{selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'center'}}, | |
{selector : 'img,table', classes : 'aligncenter'} | |
], | |
alignright : [ | |
{selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'right'}}, | |
{selector : 'img,table', classes : 'alignright'} | |
], | |
strikethrough : {inline : 'del'} | |
} | |
[relative_urls] => | |
[remove_script_host] => | |
[convert_urls] => | |
[remove_linebreaks] => 1 | |
[gecko_spellcheck] => 1 | |
[fix_list_elements] => 1 | |
[keep_styles] => | |
[entities] => 38,amp,60,lt,62,gt | |
[accessibility_focus] => 1 | |
[media_strict] => | |
[paste_remove_styles] => 1 | |
[paste_remove_spans] => 1 | |
[paste_strip_class_attributes] => all | |
[paste_text_use_dialog] => 1 | |
[webkit_fake_resize] => | |
[spellchecker_rpc_url] => http://vanilla.ts/wp-includes/js/tinymce/plugins/spellchecker/rpc.php | |
[schema] => html5 | |
[wpeditimage_disable_captions] => | |
[wp_fullscreen_content_css] => http://vanilla.ts/wp-includes/js/tinymce/plugins/wpfullscreen/css/wp-fullscreen.css | |
[plugins] => inlinepopups,spellchecker,tabfocus,paste,media,fullscreen,wordpress,wpeditimage,wpgallery,wplink,wpdialogs,wpfullscreen | |
[content_css] => http://vanilla.ts/wp-content/themes/twentytwelve/editor-style.css | |
[elements] => content | |
[wpautop] => 1 | |
[apply_source_formatting] => | |
[theme_advanced_buttons1] => bold,italic,strikethrough,bullist,numlist,blockquote,justifyleft,justifycenter,justifyright,link,unlink,wp_more,spellchecker,wp_fullscreen,wp_adv | |
[theme_advanced_buttons2] => formatselect,underline,justifyfull,forecolor,pastetext,pasteword,removeformat,charmap,outdent,indent,undo,redo,wp_help | |
[theme_advanced_buttons3] => | |
[theme_advanced_buttons4] => | |
[tabfocus_elements] => sample-permalink,post-preview | |
[body_class] => content post-type-post | |
[theme_advanced_resizing_use_cookie] => | |
) | |
*/ | |
} | |
add_filter( 'tiny_mce_before_init', 'thsp_tiny_mce_settings' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment