Skip to content

Instantly share code, notes, and snippets.

@farnscosnippet
Last active June 8, 2016 17:29
Show Gist options
  • Save farnscosnippet/5808184 to your computer and use it in GitHub Desktop.
Save farnscosnippet/5808184 to your computer and use it in GitHub Desktop.
WORDPRESS: Jessica Hische's Post Reset
// Adjust the WYSISYG Editor
function myformatTinyMCE($in)
{
$in['remove_linebreaks']=false;
$in['gecko_spellcheck']=false;
$in['keep_styles']=false;
$in['accessibility_focus']=true;
$in['tabfocus_elements']='major-publishing-actions';
$in['media_strict']=false;
$in['paste_remove_styles']=false;
$in['paste_remove_spans']=false;
$in['paste_strip_class_attributes']='none';
$in['paste_text_use_dialog']=true;
$in['wpeditimage_disable_captions']=true;
$in['plugins']='inlinepopups, tabfocus,paste,media,fullscreen,wordpress,wpeditimage,wpgallery,wplink,wpdialogs,wpfullscreen';
$in['content_css']=get_template_directory_uri() . "/css/editor-styles.css";
$in['wpautop']=true;
$in['apply_source_formatting']=false;
$in['theme_advanced_buttons1']='formatselect,|,italic,|,bullist,|,link,unlink,|,wp_fullscreen,|,undo,redo';
$in['theme_advanced_buttons2']='';
$in['theme_advanced_buttons3']='';
$in['theme_advanced_buttons4']='';
$in['theme_advanced_blockformats']='p,h3,h4';
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