--- loncom/xml/lonxml.pm 2013/05/05 00:10:16 1.539
+++ loncom/xml/lonxml.pm 2013/09/21 14:33:13 1.543
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.539 2013/05/05 00:10:16 raeburn Exp $
+# $Id: lonxml.pm,v 1.543 2013/09/21 14:33:13 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1510,7 +1510,7 @@ sub renderingoptions {
}
sub inserteditinfo {
- my ($filecontents,$filetype,$filename,$symb,$itemtitle,$folderpath,$uri) = @_;
+ my ($filecontents,$filetype,$filename,$symb,$itemtitle,$folderpath,$uri,$action) = @_;
$filecontents = &HTML::Entities::encode($filecontents,'<>&"');
my $xml_help = '';
my $initialize='';
@@ -1535,6 +1535,7 @@ sub inserteditinfo {
// ]]>
FULLPAGE
+ my $textareaclass;
if ($filetype eq 'html') {
my $context;
if ($env{'request.course.id'}) {
@@ -1548,6 +1549,9 @@ FULLPAGE
$uri,undef,
"/public/$cdom/$cnum/syllabus").
"\n";
+ if (&Apache::lonhtmlcommon::htmlareabrowser()) {
+ $textareaclass = 'class="LC_richDefaultOn"';
+ }
}
}
unless ($context eq 'syllabus') {
@@ -1569,7 +1573,6 @@ FULLPAGE
}
my $titledisplay=&display_title();
- my $textareaclass;
my %lt=&Apache::lonlocal::texthash('st' => 'Save and Edit',
'vi' => 'Save and View',
'dv' => 'Discard Edits and View',
@@ -1585,13 +1588,15 @@ FULLPAGE
$htmlerror=''.$htmlerror.'';
}
if (&Apache::lonhtmlcommon::htmlareabrowser()) {
- $textareaclass = 'class="LC_richDefaultOff"';
+ unless ($textareaclass) {
+ $textareaclass = 'class="LC_richDefaultOff"';
+ }
}
}
my $editfooter=(<