Remove explicit check for android devices with ckeditor as ckeditor 4.5.2 supports them

This commit is contained in:
Hadi Nategh 2015-08-07 10:31:22 +00:00
parent 1cf308411f
commit 3853343f7e

View File

@ -511,11 +511,6 @@ class html
*/
static function htmlarea_availible()
{
//error_log(__METHOD__.__LINE__.' userAgent:'.$_SERVER[HTTP_USER_AGENT]);
// we check for the useragent to be able to recognize andoid machines that do not support ckeditor yet.
// ckeditors fallback is rather unpleaseant.
if (stripos($_SERVER[HTTP_USER_AGENT],'android') !== false) return false;
// this one is for testing how it will turn out, if you do not have the device or agent ready at your fingertips
// if (stripos($_SERVER[HTTP_USER_AGENT],'mozilla') !== false) return false;