]> git.mjollnir.org Git - moodle.git/commitdiff
Don't ever try to load editor when using safari.
authorjulmis <julmis>
Mon, 16 Aug 2004 09:44:43 +0000 (09:44 +0000)
committerjulmis <julmis>
Mon, 16 Aug 2004 09:44:43 +0000 (09:44 +0000)
Safari isn't supported.

lib/editor/htmlarea.php

index 98e2dd27c1d44191744f8fec6bf64358558c22f7..0a02569cda2cef73c077b1de738f278088881f5e 100644 (file)
@@ -1815,6 +1815,7 @@ HTMLArea.is_mac    = (HTMLArea.agt.indexOf("mac") != -1);
 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 @@ HTMLArea.checkSupportedBrowser = function() {
                   "I'll try, though, but it might not work.");
         }
     }
+    if(HTMLArea.is_safari) {
+        return false;
+    }
     return HTMLArea.is_gecko || HTMLArea.is_ie;
 };