--- loncom/xml/lonxml.pm 2013/05/12 00:00:24 1.531.2.7
+++ loncom/xml/lonxml.pm 2013/11/20 02:38:26 1.531.2.12
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.531.2.7 2013/05/12 00:00:24 raeburn Exp $
+# $Id: lonxml.pm,v 1.531.2.12 2013/11/20 02:38:26 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -745,7 +745,7 @@ sub init_safespace {
my ($target,$safeeval,$safehole,$safeinit) = @_;
$safeeval->reval('use LaTeX::Table;');
$safeeval->deny_only(':dangerous');
- $safeeval->reval('use Math::Complex;');
+ $safeeval->reval('use LONCAPA::LCMathComplex;');
$safeeval->permit_only(":default");
$safeeval->permit("entereval");
$safeeval->permit(":base_math");
@@ -1604,7 +1604,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='';
@@ -1629,6 +1629,7 @@ sub inserteditinfo {
// ]]>
FULLPAGE
+ my $textareaclass;
if ($filetype eq 'html') {
my $context;
if ($env{'request.course.id'}) {
@@ -1642,6 +1643,9 @@ FULLPAGE
$uri,undef,
"/public/$cdom/$cnum/syllabus").
"\n";
+ if (&Apache::lonhtmlcommon::htmlareabrowser()) {
+ $textareaclass = 'class="LC_richDefaultOn"';
+ }
}
}
unless ($context eq 'syllabus') {
@@ -1663,7 +1667,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',
@@ -1679,13 +1682,15 @@ FULLPAGE
$htmlerror=''.$htmlerror.'';
}
if (&Apache::lonhtmlcommon::htmlareabrowser()) {
- $textareaclass = 'class="LC_richDefaultOff"';
+ unless ($textareaclass) {
+ $textareaclass = 'class="LC_richDefaultOff"';
+ }
}
}
my $editfooter=(<