I'm working on a theme. Part of which there are editing modes:

  • Syntax-new mode using CodeMirror
  • the two native modes (Visual and Text editor)

I have an odd scenario that tinyMCE is loaded on text editor, so that means the buttons, etc. resembles like the Visual editor.

Is there a WP hooks that I can use to prevent it from loading completely in the text editor?
I only need to use the native Text area without these tinyMCE functionality.

1 Answer 1


This is a working for me:

//Sets HTML as default editor
add_filter('wp_default_editor', create_function('', 'return "html";'));

When the page is loaded, it will always use text editor as default, removing extraneous buttons for tinyMCE.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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