I always find myself in HTML mode in the editor to try and get simple things like breaks between paragraphs to show up right (using <p></p>). Is that normal? Is there a better editor out there that I could use?
|
What happens is that TinyMCE converts every double line break in the HTML source to The auto- If what you want is lots of |
|||
|
I agree with some of the above posts, as direct answers to the question (which assumes continued use of the WYSIWYG editor). But after trial, I have to recommend at least reconsidering, and switching to the HTML editor. Assuming you're still with me (you're considering it as an option), there's more. "Ah," you say, "HTML editor still adds line breaks and generally messes with me!" True, which is why you need to remove the auto-p filter. For good measure, since I switch to as pure HTML as possible, I take out the texturizer, which handles things like curly quotes. Go to your theme editor. Go to the "Theme Functions" (functions.php) file. Add the following:
But I also add this if I'm planning to use post/page excerpts:
Hope that helps! And frankly... I've never tried the disabling of filters alongside the visual editor! Maybe it actually DOES help in that regard as well! |
|||
|
|
|
I recommend TinyMCE Advanced as well, I prefer to have more control over the HTML code that is user editable on the site. There's an option |
|||
|
|
|
In short: yes. That's normal. No there are no better editors out there. You might try TinyMCE Advanced and see if it helps. Also, if you use backticks (`) on this site, it'll escape your html:
|
|||
|
|
|
I use the Disable WPautop plugin, which, as expected, disables the wpautop function. That might be useful, depending on your situation. |
|||
|
|
|
The reason you're having trouble is because WordPress prefers to use tags, which are more semantic than line breaks. |
|||
|
|