Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8796849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:42:57+00:00 2026-06-13T23:42:57+00:00

I am trying to figure out how to remove specific buttons from the TinyMCE

  • 0

I am trying to figure out how to remove specific buttons from the TinyMCE editor. I have researched the arguments in the codex but for TinyMCE is just says array and not sure if I can include some paramters in my arguments of which buttons to show/hide?

I am using the editor in a gravity form and my code is as follows so far

add_action( 'gform_field_input', 'gforms_wp_editor', 10, 5 );

function gforms_wp_editor( $input, $field, $value, $lead_id, $form_id ) {
if( $field["cssClass"] == 'richtext' ) {
ob_start();
wp_editor( $value, "input_{$form_id}_{$field['id']}",
array(
'media_buttons' => false,
'quicktags' => false,

'textarea_name' => "input_{$field['id']}"
)   );
$input = ob_get_clean();
}
return $input;
}

I have removed the HTML tab using the quicktags to false, so hoping I can do something similar to strip out buttons from the editor.

buttons shown right now with the code above are as follows

enter image description here

Note: ‘teeny’ editor is now what I need, just in case someone suggests

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:42:58+00:00Added an answer on June 13, 2026 at 11:42 pm

    The tinymce parameter allows you to pass configuration options directly to TinyMCE – see the docs for theme_advanced_buttons and theme_advanced_disable, and the button reference.

    To show only the bold, italic and underline buttons:

    wp_editor($value, "input...", array(
        'tinymce' => array(
            'theme_advanced_buttons1' => 'bold,italic,underline',
            'theme_advanced_buttons2' => '',
            'theme_advanced_buttons3' => ''
        )
    ));
    

    Or, to show everything except the bold, italic and underline buttons:

    wp_editor($value, "input...", array(
        'tinymce' => array(
            'theme_advanced_disable' => 'bold,italic,underline'
        )
    ));
    

    As requested, your code modified:

    add_action( 'gform_field_input', 'gforms_wp_editor', 10, 5 );
    
    function gforms_wp_editor( $input, $field, $value, $lead_id, $form_id ) {
        if( $field["cssClass"] == 'richtext' ) {
            ob_start();
            wp_editor( $value, "input_{$form_id}_{$field['id']}",
                array(
                    'media_buttons' => false,
                    'quicktags'     => false,
                    'textarea_name' => "input_{$field['id']}",
                    'tinymce'       => array(
                        'theme_advanced_disable' => 'bold,italic,underline'
                    )
                )
            );
            $input = ob_get_clean();
        }
        return $input;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to figure out how to remove a class from a parent
I am trying to figure out a neat way to remove unused factors from
I have been trying to figure this one out but I am having a
I am trying to figure out how to remove a node from a binary
I am trying to figure out how to remove the first character of a
I am trying to figure out how to remove everything between and including in
trying to figure out why this is happening - I have an input text
Trying to figure out why my silverlight app suddenly just displays nothing (right click
Im trying figure out how I can change the value of a specific cell
I'm trying to figure out how best to remove anonymous event handlers using jQuery.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.