Last active
December 15, 2015 03:48
-
-
Save matthacksteiner/5196671 to your computer and use it in GitHub Desktop.
TinyMCE Configurator
#wordpress #functions.php #backend
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
/** | |
* TinyMCE conf | |
*/ | |
function SissibayTinyMCE($in) | |
{ | |
$in['remove_linebreaks']=false; | |
$in['gecko_spellcheck']=false; | |
$in['keep_styles']=false; | |
$in['accessibility_focus']=false; | |
$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']=false; | |
$in['wpeditimage_disable_captions']=false; | |
$in['plugins']='inlinepopups,tabfocus,paste,media,fullscreen,wordpress,wpeditimage,wpgallery,wplink,wpdialogs,wpfullscreen'; | |
$in['content_css']=get_template_directory_uri() . "/editor-style.css"; | |
$in['wpautop']=false; | |
$in['apply_source_formatting']=false; | |
$in['theme_advanced_buttons1']='formatselect,|,bold,italic,underline,|,bullist,numlist,|,link,unlink,|,pastetext,pasteword,removeformat|pastetext,pasteword,removeformat,|,outdent,indent,|,undo,redo,undo,redo'; | |
$in['theme_advanced_buttons2']=''; | |
$in['theme_advanced_buttons3']=''; | |
$in['theme_advanced_buttons4']=''; | |
$in['theme_advanced_blockformats'] = 'Absatz=p,Überschrift 1=h3'; | |
return $in; | |
} | |
add_filter('tiny_mce_before_init', 'SissibayTinyMCE' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment