mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Enable quicktags for safari. Props mattyrob. fixes #3051
git-svn-id: https://develop.svn.wordpress.org/trunk@4164 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1250,8 +1250,6 @@ 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">
|
||||
';
|
||||
@@ -1259,7 +1257,7 @@ function the_quicktags() {
|
||||
echo ' <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
|
||||
|
||||
Reference in New Issue
Block a user