Title: Modify tinymce settings
Last modified: February 8, 2024

---

# Modify tinymce settings

 *  Resolved [Oliver](https://wordpress.org/support/users/mcbluna/)
 * (@mcbluna)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/modify-tinymce-settings/)
 * Hello,
 * I’ve my own set of tinymce settings and I’ve to modify function.php after every
   plugin update. Is there a “cleaner” way to do this?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/modify-tinymce-settings/#post-17408372)
 * can you tell me what you are modifying ie an example of the code and what you
   change
 *  Thread Starter [Oliver](https://wordpress.org/support/users/mcbluna/)
 * (@mcbluna)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/modify-tinymce-settings/#post-17410913)
 * Thank you for your response 😊
 * Here is what I change every time
 *     ```wp-block-code
       //editor bbpressfunction bsp_enable_visual_editor( $args = array() ) {global $bsp_style_settings_form;$args['tinymce'] = array('height' => 500,'toolbar1' => 'newdocument restoredraft undo redo | styleselect | bold italic underline strikethrough superscript subscript forecolor backcolor | link unlink | image | alignleft aligncenter alignright | bullist numlist outdent indent | cut copy paste pastetext | removeformat | visualblocks | preview','plugins' => 'advlist autolink autoresize colorpicker image link lists paste preview textcolor visualblocks wordpress autosave','menubar' => false,'statusbar' => false,'branding' => false,'autosave_restore_when_empty' => true,'textcolor_cols' => '10','textcolor_rows' => '6','textcolor_map' => '["000000","Black","993300","Burnt orange","333300","Dark olive","003300","Dark green","003366","Dark azure","000080","Navy Blue","333399","Indigo","333333","Very dark gray","800000","Maroon","FF6600","Orange","808000","Olive","008000","Green","008080","Teal","0000FF","Blue","666699","Grayish blue","808080","Gray","FF0000","Red","FF9900","Amber","99CC00","Yellow green","339966","Sea green","33CCCC","Turquoise","3366FF","Royal blue","800080","Purple","999999","Medium gray","FF00FF","Magenta","FFCC00","Gold","FFFF00","Yellow","00FF00","Lime","00FFFF","Aqua","00CCFF","Sky blue","993366","Red violet","FFFFFF","White","FF99CC","Pink","FFCC99","Peach","FFFF99","Light yellow","CCFFCC","Pale green","CCFFFF","Pale cyan","99CCFF","Light sky blue","CC99FF","Plum","CCCCCC","cli default","F9F1A5","cli command","13A10E","cli option","61D6D6","cli option params","3B78FF","cli parameter","E74856","cli error","B4009E","cli stacktrace","F2F2F2","log info","13A10E","log debug","C19C00","log trace","3A96DD","log warn","C50F1F","log error","881798","log fatal"]');//if full visualif ($bsp_style_settings_form['Show_editorsactivate'] == 3 || $bsp_style_settings_form['Show_editorsactivate'] == 4) {$args ['teeny'] = false ;}//if not showing editor as wellif ($bsp_style_settings_form['Show_editorsactivate'] == 1 || $bsp_style_settings_form['Show_editorsactivate'] == 3) $args['quicktags'] = false;return $args;}
       ```
   
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/modify-tinymce-settings/#post-17410916)
 * thanks, I’ll take a look at whether I can make that easier
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/modify-tinymce-settings/#post-17413387)
 * ok, I’ve added a filter to the core code that you can use. So leave the code 
   in my plugin alone.
 * Put this in your child theme’s function file –
 * ie wp-content/themes/%your-theme-name%/functions.php
 * where %your-theme-name% is the name of your theme
 * or use
   [https://en-gb.wordpress.org/plugins/code-snippets/](https://en-gb.wordpress.org/plugins/code-snippets/)
 *     ```wp-block-code
       add_filter ('bsp_enable_visual_editor' , 'rew_amend_tinymce' , 10 , 1) ;
   
       function rew_amend_tinymce ($args) {
       	$args['tinymce'] = array(
       'height' => 500,
       'toolbar1' => 'newdocument restoredraft undo redo | styleselect | bold italic underline strikethrough superscript subscript forecolor backcolor | link unlink | image | alignleft aligncenter alignright | bullist numlist outdent indent | cut copy paste pastetext | removeformat | visualblocks | preview',
       'plugins' => 'advlist autolink autoresize colorpicker image link lists paste preview textcolor visualblocks wordpress autosave',
       'menubar' => false,
       'statusbar' => false,
       'branding' => false,
       'autosave_restore_when_empty' => true,
       'textcolor_cols' => '10',
       'textcolor_rows' => '6',
       'textcolor_map' => '["000000","Black","993300","Burnt orange","333300","Dark olive","003300","Dark green","003366","Dark azure","000080","Navy Blue","333399","Indigo","333333","Very dark gray","800000","Maroon","FF6600","Orange","808000","Olive","008000","Green","008080","Teal","0000FF","Blue","666699","Grayish blue","808080","Gray","FF0000","Red","FF9900","Amber","99CC00","Yellow green","339966","Sea green","33CCCC","Turquoise","3366FF","Royal blue","800080","Purple","999999","Medium gray","FF00FF","Magenta","FFCC00","Gold","FFFF00","Yellow","00FF00","Lime","00FFFF","Aqua","00CCFF","Sky blue","993366","Red violet","FFFFFF","White","FF99CC","Pink","FFCC99","Peach","FFFF99","Light yellow","CCFFCC","Pale green","CCFFFF","Pale cyan","99CCFF","Light sky blue","CC99FF","Plum"
       ,"CCCCCC","cli default","F9F1A5","cli command","13A10E","cli option","61D6D6","cli option params","3B78FF","cli parameter","E74856","cli error","B4009E","cli stacktrace"
       ,"F2F2F2","log info","13A10E","log debug","C19C00","log trace","3A96DD","log warn","C50F1F","log error","881798","log fatal"
       ]'
       );
   
       return $args ;
       }
       ```
   
 * This should then hold when I do updated to save you needing to do the change.
 * Let me know if you have any problems
    -  This reply was modified 2 years, 3 months ago by [Robin W](https://wordpress.org/support/users/robin-w/).
 *  Thread Starter [Oliver](https://wordpress.org/support/users/mcbluna/)
 * (@mcbluna)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/modify-tinymce-settings/#post-17413810)
 * Robin you are awesome 😊
 * I was hoping for something like that. Just wonder why no one else brought it 
   up yet.
 * Thank you very much
   Oliver
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/modify-tinymce-settings/#post-17413845)
 * Great – glad it all worked, and thanks for your kindness.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Modify tinymce settings’ is closed to new replies.

 * ![](https://ps.w.org/bbp-style-pack/assets/icon-256x256.jpg?rev=2706563)
 * [bbp style pack](https://wordpress.org/plugins/bbp-style-pack/)
 * [Support Threads](https://wordpress.org/support/plugin/bbp-style-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/bbp-style-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbp-style-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbp-style-pack/reviews/)

## Tags

 * [tinymce](https://wordpress.org/support/topic-tag/tinymce/)

 * 6 replies
 * 2 participants
 * Last reply from: [Robin W](https://wordpress.org/support/users/robin-w/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/modify-tinymce-settings/#post-17413845)
 * Status: resolved