--- loncom/xml/lonxml.pm 2009/10/15 21:12:51 1.500 +++ loncom/xml/lonxml.pm 2009/11/30 21:17:41 1.501 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.500 2009/10/15 21:12:51 raeburn Exp $ +# $Id: lonxml.pm,v 1.501 2009/11/30 21:17:41 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -111,6 +111,7 @@ use Apache::loncacc(); use Apache::lonmaxima(); use Apache::lonr(); use Apache::lonlocal; +use Apache::lonhtmlcommon(); #==================================== Main subroutine: xmlparse @@ -1625,6 +1626,7 @@ FULLPAGE } my $titledisplay=&display_title(); + my $wysiwyglink; my %lt=&Apache::lonlocal::texthash('st' => 'Save and Edit', 'vi' => 'Save and View', 'dv' => 'Discard Edits and View', @@ -1639,6 +1641,13 @@ FULLPAGE if ($htmlerror) { $htmlerror=''.$htmlerror.''; } + if (&Apache::lonhtmlcommon::htmlareabrowser()) { + if (&Apache::lonhtmlcommon::htmlareablocked()) { + $wysiwyglink = &Apache::lonhtmlcommon::enablelink($textarea_id); + } else { + $wysiwyglink = &Apache::lonhtmlcommon::disablelink($textarea_id); + } + } } my $editfooter=(<
+ $wysiwyglink
$titledisplay
@@ -1884,7 +1894,7 @@ ENDNOTFOUND } } if ($filetype eq 'html') { &writeallows($request->uri); } - + &Apache::lonxml::add_messages(\$result); $request->print($result);