in reply to TinyMCE javascript toolbar

Here is a "button" to turn MCE off/on

<a href="#" onclick="tinymce.execCommand('mceToggleEditor',false,'content');"> [Toggle WYSIWYG]</a>

If I turn MCE off, add code tags with newlines, then turn MCE on, its eats the newlines ... grr :)