WordPress.org

Support

Support » How-To and Troubleshooting » Disable HTML Editor

Disable HTML Editor

  • Hi,

    I am running with wordpress 2.7.1 and I would like to disable HTML Editor in wordpress admin section. I know how to disable Visual Editor but do not know how to do it for HTML..please throw some light on my query and give me the solution as soon as possible.

    Thanks,

    Shane G.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I don’t know of an easy way to disable the html editor. I’m sure it is possible but it strikes me as a major project.

    Hello all,

    Shane did you have any success disabling the HTML editor?

    Cheers

    Hello

    I havent disabled the text editor but i have installed a much improved version via the plugin WP Advanced Code Editor. The plugin allowed me to fully edit a page of tables i have been struggling with for a few days. And don’t mention linguistic differences between US ‘center’ and UK ‘centre’ which confused me for a while.

    add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') );
    add_action( 'admin_head', 'my_css_4_admin' );
    function my_css_4_admin() {
    	echo '<style type="text/css">#editor-toolbar #edButtonHTML, #quicktags {display: none;}</style>' . "\n";
    }

    Thats works or you use the plugin Adminimize

    the html editor is enabled/disabled on a per user basis.

    go to users, select the one you want to edit and you’ll see a check box at the top of the page that asks if you want the html editor or not.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disable HTML Editor’ is closed to new replies.