Remove HTML editor and visual/HTML tabs from TinyMCE
Just set ‘quicktags’ parameter of the settings array to false. wp_editor(”, ‘some-id’, array(‘quicktags’ => false) );
Just set ‘quicktags’ parameter of the settings array to false. wp_editor(”, ‘some-id’, array(‘quicktags’ => false) );
So I’m answering my own question, for those that face or will face the same problem. I have added two buttons. One opens wordpress’ build-in window to select a post and inserts the link. The other opens wordpress’ build-in media window to select an image. That is what somehow what you get at the end. … Read more
Solution 1 This works as javascript solution: Example: tinyMCE.activeEditor.dom.addStyle(‘p {color:red; font-size:28px;}’); just open your js console and paste it for a quick test. To target a specific editor one should use: tinyMCE.getInstanceById(‘##editorID##’).dom.addStyle(‘p {color:red; font-size:28px;}’); This will inject the provided string into the editors iframe <head><style id=”mceDefaultStyles”></style> … Solution 2 Use wp_ajax as callback handler to … Read more
You pretty much had it, according to the description. Here’s what you might be looking for for instances 2 and 3 (for instance 1 you can leave the settings empty to get the default set of buttons): Instance 2: wp_editor( $distribution, ‘distribution’, array( ‘media_buttons’ => false, ‘textarea_rows’ => 8, ‘tabindex’ => 4, ‘tinymce’ => array( … Read more
Alright so I’ve already updated this question a ton and it’s starting to get overloaded, so I figured I’d write this as an answer even though it isn’t a full one. Extrapolating from @bueltge’s answer, I actually went back and found his previous post in question. In that post, there was a plugin listed that … Read more
Well, Thanks to wp 3.3 now we have wp_editor() function to do that 🙂