Skip to content

Commit

Permalink
Enable quicktags for Safari. Props mattyrob. fixes #3051
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
markjaquith committed Dec 10, 2006
1 parent 07d1b27 commit d308d88
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wp-admin/admin-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1121,15 +1121,13 @@ function save_mod_rewrite_rules() {
}

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 '
<div id="quicktags">
<script src="../wp-includes/js/quicktags.js" type="text/javascript"></script>
<script type="text/javascript">if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 ) edToolbar();</script>
</div>
';
else echo '
echo '
<script type="text/javascript">
function edInsertContent(myField, myValue) {
//IE support
Expand Down

0 comments on commit d308d88

Please sign in to comment.