• I’m just wondering if it’s possible to customize the WYSIWYG editor so that users get a limited set of formatting options.

    For example I’d really prefer they just get a basic tool set for bold, italics, and link. Maybe lists, but that’s it. Giving the whole WordPress kitchen sink of editing options is a bit much for a lot of people.

    Is there any way for me to customize this in the plugin? I can’t find it, but don’t know if I’m missing something.

    https://wordpress.org/plugins/gravity-forms-wysiwyg/

Viewing 3 replies - 1 through 3 (of 3 total)
  • +1

    You can remove the buttons with some code in functions.php.

    function delete_button($buttons) {
       unset($buttons[12]);
       return $buttons;
    }
    
    add_filter('mce_buttons_2', 'delete_button');

    Change mce_buttons_2 to mce_buttons_1 for the top row 2 for the second row 3 for the third etc.

    Add this line temporarily to find out what to replace 12 with. 12 is the id in my case for the editor keyboard shortcuts.

    print_r($buttons);

    Did you get this to work after the big TinyMCE upgrade in 3.9?

    When I tried your code, I did get results from print_r($buttons); However, the unset part didn’t work.. and the array that gets printed out represented things both on the first and second rows — but not all of them. With the 3.9 change, there’s also the menu at the top.

    I was able to hide things using CSS… but wondering if that’s the best route.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can we customize the WYSIWYG editor?’ is closed to new replies.