Shift-Enter in tinyMCE (wp 3.3.1) not working

It’s working for me — have you checked your source code on the published post to see if <br> tags are being inserted? If so, you may want to check your CSS to make sure nothing is over-riding the tags. One of the biggest culprits can be float: left being applied to the line breaks.

How to prevent pages from automatically adding line breaks?

Try using get_the_content(); in your page template loop instead of the_content(); EDIT 05/24/2012 – Try this: <div id=”main-content”> <?php while( have_posts() ) : the_post() ?> <h1 id=”pagetitle”><?php the_title(); ?></h1> <div class=”pagecontent”> <?php echo get_the_content(); ?> </div> <?php endwhile ?> </div> P.S. You will also need to consider the rest of your more “normal” wordpress pages … Read more

Preserving tabs and line breaks in when switching from HTML to Visual Editor

Add to function.php add_filter(‘tiny_mce_before_init’, ‘tiny_mce_before_init’); And function tiny_mce_before_init: function tiny_mce_before_init($init) { $init[‘setup’] = “function(ed) { ed.onBeforeSetContent.add(function(ed, o) { if ( o.content.indexOf(‘<pre’) != -1) { o.content = o.content.replace(/<pre[^>]*>[\\s\\S]+?<\\/pre>/g, function(a) { return a.replace(/(\\r\\n|\\n)/g, ‘<br />’); }); } }); }”; return $init; } http://core.trac.wordpress.org/ticket/19666 – it’s known bug, there is workaround but not fix tabs only new line … Read more