FCK dos work in opera, I just made the following changes to /include/FCKeditor/fckeditor.php to add a test to see if its one of the newer opera versions and in that case show the html area. I haven't tested it much, but I havent seen anything not working either yet.
PHP Code:
function IsCompatible()
{
global $HTTP_USER_AGENT ;
if ( isset( $HTTP_USER_AGENT ) )
$sAgent = $HTTP_USER_AGENT ;
else
$sAgent = $_SERVER['HTTP_USER_AGENT'] ;
if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false )
{
$iVersion = (float)substr($sAgent, strpos($sAgent, 'MSIE') + 5, 3) ;
return ($iVersion >= 5.5) ;
}
else if ( strpos($sAgent, 'Gecko/') !== false )
{
$iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ;
return ($iVersion >= 20030210) ;
}
//This else is added to test for Opera.
else if(strpos($sAgent, 'Opera') !== false){
$iVersion = (float)substr($sAgent, strpos($sAgent, 'Opera/') +6, strpos($sAgent, '(', strpos($sAgent, 'Opera/') +6));
return ($iVersion >= 9.2);
}
else
return false ;
}
Bookmarks