WordPress

Set WordPress Default Text Editor

standard_tiny_mce

When using the WordPress text editor you can choose if you want to write your posts in either the visual text editor or the HTML text editor.

By default this will be set to visual, but I prefer to use the HTML editor as then I know exactly what is going into the post.

Adding the following WordPress snippet means you can make sure the WordPress will always use the html as the default text editor.

Add this to the functions.php page and remove the line depending on which you want as the default editor.

<?php
# This sets the Visual Editor as default #
add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') );

# This sets the HTML Editor as default #
add_filter( 'wp_default_editor', create_function('', 'return "html";') );  
?>
Back to top ^

Join Paulund

  • Get access to 100s of premium tutorials and downloadable content
  • Members content consists of Premium WordPress plugins, CSS packages, jQuery packages, tutorial demo files and templates for 100s of web development tutorials
  • In-depth development tutorials
  • Priority tutorial requests
  • Priority email development support
  • No ads

Here at Paulund you'll find Web Development tutorials and snippets focusing mainly on PHP, WordPress and CSS. Members will get access to premium tutorials that go into more detail about development with these languages. You will also get access to downloadable premium content based on the tutorial.

Join Paulund

Leave a Reply

Your email address will not be published. Required fields are marked *