Is it possible to remove the Visual
HTML
tabs from wp_editor
and display only the TinyMCE editor?
Basically, right now, I’m using wp_editor
to display the smallest possible TinyMCE editor I can – only one button is needed, italics.
What I’d like to do is make that smaller by removing the Visual
HTML
tabs. Our authors won’t ever need the HTML editor and the custom buttons I’m creating will only be accessible from the visual editor.
NOTE: For reasons found here, I can’t use the teeny
argument of wp_editor
.
Thanks in advance,
Just set ‘quicktags’ parameter of the settings array to false.
I was hunting for a way to disable the ‘Text’ tab for all users, and nowhere did I see the filter below mentioned.
This worked for me:
The code provided by ungestaltbar works great, but I wanted it to work for bbPress (2.2.x) as well. I found this to be very easy and clean as well;
In the template files (only copy the files you need from
wp-content/plugins/bbpress/templates/default/bbpress to your theme folder, into a folder called bbpress, for example wp-content/themes/mytheme/bbpress) you’ll find numerous calls to:
In your template files replace a call like this with (ie. add: ‘quicktags’ => false);
The calls can be found in all form-xyz.php files.
Here is a simple, yet clean way
You can hide both from view using this code in your theme’s functions.php file: