Permalink
Browse files

Don't ever try to load editor when using safari.

Safari isn't supported.
  • Loading branch information...
1 parent 22d42bf commit 7ada3fea233b4d235235b8063921f28d8f8e77ac julmis committed Aug 16, 2004
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/editor/htmlarea.php
View
@@ -1815,6 +1815,7 @@ function (str, l1, l2, l3) {
HTMLArea.is_mac_ie = (HTMLArea.is_ie && HTMLArea.is_mac);
HTMLArea.is_win_ie = (HTMLArea.is_ie && !HTMLArea.is_mac);
HTMLArea.is_gecko = (navigator.product == "Gecko");
+HTMLArea.is_safari = (HTMLArea.agt.indexOf("safari") != -1);
// variable used to pass the object to the popup editor window.
HTMLArea._object = null;
@@ -1853,6 +1854,9 @@ function (str, l1, l2, l3) {
"I'll try, though, but it might not work.");
}
}
+ if(HTMLArea.is_safari) {
+ return false;
+ }
return HTMLArea.is_gecko || HTMLArea.is_ie;
};

0 comments on commit 7ada3fe

Please sign in to comment.