Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #4095
      kattagami
      Member

      Hello,

      I use the editor field in a widget and I would like to remove some buttons from TinyMCE.

      The Piklist documentation said:
      “tinymce (array) (optional) Load TinyMCE, can be used to pass settings directly to TinyMCE using an array. Pass false to remove the Visual Editor.
      Default: true”

      I have tested this:

      piklist('field', 
      array(
          'type'              => 'editor',
          'scope'             => 'post',
          'field'             => 'widget_editor_content',
          'label'             => __( 'Custom content' , 'katt' ),
          'options'           => array (
                              'wpautop'         => true,
                              'media_buttons'   => false,
                              'tabindex'        => '',
                              'editor_css'      => '',
                              'editor_class'    => '',
                              'teeny'           => false,
                              'dfw'             => false,
                              'tinymce'         => array(
                                                      'bold',
                                                      'italic',
                                                      'bullist',
                                                      'numlist',
                                                      ),
                              'quicktags'       => false,
                                    )
      )
      );

      But it doesn’t work …

      Does someone could show me a code example to achieve this? For instance remove the fullscreen button?

      Thanks in advance

    • #4096
      Steve
      Keymaster

      You may need to go old school to get this done. Remember, Piklist does everything the WordPress way, so standard WP hooks, filters and functions work just fine. This Codex page may help >

Viewing 1 reply thread
  • You must be logged in to reply to this topic.