disable rich editor for safari

This commit is contained in:
JT Smith 2006-04-15 20:32:44 +00:00
parent acbf0f01a0
commit 11d19f8d91
2 changed files with 3 additions and 1 deletions

View file

@ -424,7 +424,7 @@ sub getToolbar {
#-------------------------------------------------------------------
sub getRichEditor {
my $self = shift;
return '' if $self->getValue('disableRichEditor');
return '' if ($self->getValue('disableRichEditor') || $self->session->env->get("HTTP_USER_AGENT") =~ /Safari/);
my $nameId = shift;
my @toolbarRow1 = split("\n",$self->getValue("toolbarRow1"));
push(@toolbarRow1,"contextmenu") if ($self->getValue("enableContextMenu"));