Tagged: tinyMCE
- This topic has 1 reply, 2 voices, and was last updated 6 years, 6 months ago by
Steve.
Viewing 1 reply thread
-
AuthorPosts
-
-
July 30, 2015 at 4:34 am #4095
kattagamiMemberHello,
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
-
July 30, 2015 at 10:15 am #4096
SteveKeymasterYou 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 >
-
-
AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.