How to get the Quicktags to work in Safari
Completely stolen from Troubleshooting FAQ. In fact, this is just copied from what they say, so don't think I came up with this. It was something somebody else said, and I'm putting it here because I have to put it in every frazzlin' time I upgrade WordPress. In my zealous fervor to copy the work of others, I find that it's always a good idea to keep a backup of my files. And by backup, I mean "just do stuff and hope it works." Yeah, great strategy, I know. I mean, it's my great thinking like this that I'm reminded when I see a line that says...
One could use Firefox, or remove the if statement on line 1085 and the word "else" on line 1092 of /wp-admin/admin-functions.php .
I could just use Firefox, and not worry about the WebKit javascript support. Or, you know I could just use a frazzlin' PC, and not worry about any of this Mac stuff. Then ALL my problems would cease, right then, right there. Well, I should just skip the middle-man, and get the Ubunutu right now. Or, I could live in the real world, and since I have a Mac under my desk right now, I'll just go for the "fixing a couple lines of code" instead of changing my lifestyle to better facilitate changing two lines of code. Change this:
function the_quicktags() { // Browser detection sucks, but until Safari supports the JS needed for this to work people just assume it's a bug in WP if (!strstr($_SERVER['HTTP_USER_AGENT'], 'Safari')) echo '
'; else echo ' <script type="text/javascript">if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 ) edToolbar();</script>
</div>
'; echo '