I am running Mac OS X 10.4.3 ("Tiger"). I have Firefox installed as my default Web browser, and I am currently using the most current version, 1.5.
I am having trouble setting the background color to white using the Moodle HTML Editor with Firefox, so I tried using Safari (Version 2.0.2 [416.13]).
For the benefit of Mac OS X users who may not have tried Safari with Moodle, the Moodle HTML Editor does not even appear in Safari. When I click on the edit icon, I simply get a window showing the source code.
If you have successfully used the Moodle HTML Editor with Safari, please let me know.
Otherwise, please accept this message as an indication that Safari, at least the current version, is not compatible with Moodle's HTML Editor.
I hope that this message is of help to someone. Thank you for your time!
Cordially,
David
--
<http://ddickerson.igc.org/>
<http://www.us.iearn.org/>
Thanks.
From my understanding, Safari on Mac OS X uses the same engine as the KDE/Linux browser Konqueror, so I assume that the HTML Editor does not appear in Konqueror either. (My Linux and Windows PC is not up right now, so I cannot check.)
Firefox is my default browser on Mac OS X, so I am okay. I had not bothered to check for the HTML Editor with Safari until yesterday.
Cordially,
David
Tim.
There were some posts about this problem, but I hadn't heard that they had been fixed. I'm not running a Mac, so I suppose this could be the difference.
What version of Moodle are you running?
The expanded window was unavailable -- it would pop up but it would pop up as a blank window.
Oh, this is a known bug. I just meant that apart from that bug everything else is working fine. I don't use the expanded window much so it is not much of an issue for me.
Tim.
Or is there some other way to make this work?
I use Safari for everything, and would like to use the HTML editor within Safair, rather than firefox.
We have already several choices available and soon in moodle too. Check
http://moodle.org/mod/forum/discuss.php?d=96160
TinyMCE, FCKEditor, Xinha, YUIRTE and a couple of other editor work with the latest versions of Safari and Opera. I have used this function in moodlelib.php to allow those browsers to use editor:
function can_use_html_editor() {
global $USER, $CFG;
if (!empty($USER->htmleditor) and !empty($CFG->htmleditor)) {
if ( isset( $_SERVER ) ) {
$sAgent = $_SERVER['HTTP_USER_AGENT'] ;
}
else {
global $HTTP_SERVER_VARS ;
if ( isset( $HTTP_SERVER_VARS ) ) {
$sAgent = $HTTP_SERVER_VARS['HTTP_USER_AGENT'] ;
}
else {
global $HTTP_USER_AGENT ;
$sAgent = $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) ;
}
else if ( strpos($sAgent, 'Opera/') !== false )
{
$fVersion = (float)substr($sAgent, strpos($sAgent, 'Opera/') + 6, 4) ;
return ($fVersion >= 9.5) ;
}
else if ( preg_match( "|AppleWebKit/(\d+)|i", $sAgent, $matches ) )
{
$iVersion = $matches[1] ;
return ( $matches[1] >= 522 ) ;
}
}
else return false ;
}
-Mark
Some other tweaking of the code would need to be done within Moodle ... probably in htmlarea.php in the mid-2300 line area.
larry
Maybe issues in previous versions of Safari have been resolved with the default htmleditor.
Does anyone know?
larry
Safari is the default browser on Mac, and I know a lot of people are not savvy enough to know how to install Firefox on their machines (I work support for my campus, and we have users who think the Internet is "the blue E icon"). If moodle doesn't work the the default browser for a system, then I think it's a big issue.
The latest TinyMCE editor seems to work with Safari and Opera too http://www.geniisoft.com/showcase.nsf/WebEditors
I have not yet tested how to get the latest version of TinyMCE to work with moodle 1.8...
My problem, however, is with moodle's browser sniffing...
I know that TinyMCE works in safari, yet moodle prevents TinyMCE from loading within Safari.
Does anybody know how to disable moodle's browser sniffing for Safari?
Thanks!
Check discussions from developer area - one way is to edit moodlelib.php and function can_use_html_editor http://moodle.org/mod/forum/discuss.php?d=84293