--- loncom/homework/lonhomework.pm 2008/05/19 21:07:33 1.293 +++ loncom/homework/lonhomework.pm 2008/07/01 11:01:30 1.294 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.293 2008/05/19 21:07:33 www Exp $ +# $Id: lonhomework.pm,v 1.294 2008/07/01 11:01:30 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -937,6 +937,16 @@ sub editxmlmode { &Apache::loncommon::resize_textarea_js(). &Apache::structuretags::setmode_javascript(); my $only_body = ($env{'environment.remote'} eq 'off')? 0 : 1; + my $dragmath = < + function mathedit(textarea, doc) { + targetEntry = textarea; + targetDoc = doc; + newwin = window.open("/adm/dragmath/applet/EditMathPopup.html","","width=565,height=500,resizable"); + } + + +ENDDRAGMATH my $start_page = &Apache::loncommon::start_page(&mt("EditXML [_1]",$file),$js, {'no_auto_mt_title' => 1, @@ -959,6 +969,7 @@ sub editxmlmode {
+ @@ -966,7 +977,8 @@ sub editxmlmode {
- + ' + .$dragmath.'

'.&Apache::lonxml::message_location().'