In this example, I have shared how to use WordPress text editor to behave like html? Use following code in your theme’s functions.php file OR in site specific plugin.
//decide when you want to apply the auto paragraph
if(get_post_type()=='YOUR_POSTYPE_NAME') //if it does not work, you may want to pass the current post object to get_post_type
return $content;//no autop
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.