diff -Naur ../1p9p2_20080903/lib/editor/htmlarea/htmlarea.php ./lib/editor/htmlarea/htmlarea.php
--- ../1p9p2_20080903/lib/editor/htmlarea/htmlarea.php 2008-07-11 01:18:23.000000000 +0100
+++ ./lib/editor/htmlarea/htmlarea.php 2008-09-04 19:18:59.000000000 +0100
@@ -2373,6 +2373,7 @@
HTMLArea.is_win_ie = (HTMLArea.is_ie && !HTMLArea.is_mac);
HTMLArea.is_gecko = (navigator.product == "Gecko");
HTMLArea.is_safari = (HTMLArea.agt.indexOf("safari") != -1);
+HTMLArea.is_chrome = (HTMLArea.agt.indexOf("chrome") != -1);
// variable used to pass the object to the popup editor window.
HTMLArea._object = null;
@@ -2400,7 +2401,7 @@
// FIXME!!! this should return false for IE < 5.5
HTMLArea.checkSupportedBrowser = function() {
- if (HTMLArea.is_gecko) {
+ if (HTMLArea.is_gecko && !HTMLArea.is_chrome) {
if (navigator.productSub < 20021201) {
alert("You need at least Mozilla-1.3 Alpha.\n" +
"Sorry, your Gecko is not supported.");
@@ -2411,12 +2412,15 @@
"I'll try, though, but it might not work.");
}
}
+ if(HTMLArea.is_chrome) {
+ return true;
+ }
if(HTMLArea.is_safari) {
return false;
}
+
return HTMLArea.is_gecko || HTMLArea.is_ie;
};
-
// selection & ranges
// returns the current selection object
diff -Naur ../1p9p2_20080903/lib/moodlelib.php ./lib/moodlelib.php
--- ../1p9p2_20080903/lib/moodlelib.php 2008-09-02 01:18:57.000000000 +0100
+++ ./lib/moodlelib.php 2008-09-04 18:48:43.000000000 +0100
@@ -6196,6 +6196,10 @@
// MacOS X Camino support
$version = 20041110;
}
+ if (substr_count($agent, 'Chrome')) {
+ // Lets allow Chrome!
+ return true;
+ }
// the proper string - Gecko/CCYYMMDD Vendor/Version
// Faster version and work-a-round No IDN problem.