There are issues with all the wysiwyg editors out there. It’s a problem with Drupal too. It’s hard to make a browser-based tool that just works right.
What WordPress is trying to do is “clean” the code. This is useful in many situations but not always.
TWO WORDPRESS LINE BREAK HACKS
Insert this in HTML mode to create line break that survives WP “cleaner” (look at html):
<div style="margin-bottom:2em;"><span style="display:none;">.</span></div>
Adjust “size” of line break via “margin” CSS tag.
This line has 2em set above it – just to prove the code above works! Make sure you don’t paste in curly/smart quotes.
OR if you just want one line break add <code><br ></code>. Note that this gets ‘cleaned’ whenever you switch from visual to html mode but it still works after the “br” part gets cleaned out. Again, you will see extra lines above this sentence.
PLUG-IN METHODS FOR LINE BREAKS
Turn off all cleaning with this
But that’s an issue with existing posts so not a flexible solution
Or try out the ‘advanced’ editor:
http://wordpress.org/extend/plugins/tinymce-advanced/
http://www.laptoptips.ca/projects/tinymce-advanced/
This post is helpful:
http://blog.ironspider.ca/2008/05/02/plain-text-wordpress-look-ma-no-curly-quotes/
And this gives way more options:
http://plugins.trac.wordpress.org/wiki/TextControl
It reminds me of the MoveableType editor.
3 Comments
You, sir, are my hero. Thank you.
I hope you do not mind if I posted a link on digg
Thank you so much! TinyMCE Advanced is EXACTLY what I needed to resolve the problem!!