Commit e67cfbd4 authored by Petr Skoda's avatar Petr Skoda
Browse files

MDL-23733 Disable TinyMCE on iPod Touch and Android devices

Credit goes to Paul Nicholls
parent d1571da6
......@@ -37,6 +37,8 @@ class tinymce_texteditor extends texteditor {
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)) {
......
......@@ -7606,6 +7606,15 @@ function check_php_version($version='5.2.4') {
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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment