TinyMCE HTML Encode Backslash

ok so finally found a solution to this. i had to edit class-wp-editor.php and include the following for the $first_init array ‘setup’ => ‘function(ed) { ed.onGetContent.add(function(ed, o) { // Replaces all a characters with b characters o.content = o.content.replace(/\\\\/g, “\”); }); }’,

WordPress adding extra html coding to my data on saving

IT turned out to be less hassle to just recreate my plugin using the latest and greatest code available here: https://github.com/helgatheviking/WP-Alchemy-Holy-Grail-Theme And it also turned out to have something to do with the filter being applied to the editor. This: <?php echo esc_html( wp_richedit_pre($mb->get_the_value()) ); ?> was the problem, replacing it ultimately with this solved … Read more

TinyMCE adds a   after a HR

Turns out I wasn’t far from the answer: function mce_mod( $init ) { $init[‘apply_source_formatting’] = false; return $init; } add_filter(‘tiny_mce_before_init’, ‘mce_mod’, 99); add this to functions.php and it will stop the nbsp’s. From the TinyMCE docs if you want to fully tame tinyMCE I recommend you check out this gist