Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-23733 Disable TinyMCE on iPod Touch and Android devices

Credit goes to Paul Nicholls
  • Loading branch information...
commit e67cfbd4c7b39251f896a84badfcc01c02bef9fd 1 parent d1571da
@skodak skodak authored
Showing with 11 additions and 0 deletions.
  1. +2 −0  lib/editor/tinymce/lib.php
  2. +9 −0 lib/moodlelib.php
View
2  lib/editor/tinymce/lib.php
@@ -37,6 +37,8 @@ public function supported_by_browser() {
return true;
} else if (check_browser_version('Safari iOS')) {
return false;
+ } else if (check_browser_version('Android WebKit')) {
+ return false;
} else if (check_browser_version('Safari', 3)) {
return true;
} else if (check_browser_version('Opera', 9)) {
View
9 lib/moodlelib.php
@@ -7606,6 +7606,15 @@ function check_browser_version($brand='MSIE', $version=5.5) {
if (strpos($agent, 'iPad')) {
return true;
}
+ if (strpos($agent, 'iPod')) {
+ return true;
+ }
+ break;
+
+ case 'Android WebKit': /// WebKit browser on Android
+ if (strpos($agent, 'Linux; U; Android')) {
+ return true;
+ }
break;
}
Please sign in to comment.
Something went wrong with that request. Please try again.