WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am wondering if Wordpress allows us to change the onclick attribute of the tab switching in the HTML editor? For example this is the a tag for the Visual editor:

<a onclick="switchEditors.switchto(this);" class="wp-switch-editor switch-tmce" id="content-tmce">Visual</a>

I would like to know if we can easily change the value of the onclick attribute using filters? Or any other means..


share|improve this question
do you want to set it default to visual editor and remove the tabs ?? – abhishekfdd Jan 7 '14 at 12:50

You can do it with help of jQuery like this:

jQuery(document).ready(function() {
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.