--- loncom/homework/lonhomework.pm 2008/07/07 11:02:25 1.295 +++ loncom/homework/lonhomework.pm 2008/07/28 05:26:00 1.296 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.295 2008/07/07 11:02:25 foxr Exp $ +# $Id: lonhomework.pm,v 1.296 2008/07/28 05:26:00 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -935,9 +935,11 @@ sub editxmlmode { my $js = &Apache::edit::js_change_detection(). &Apache::loncommon::resize_textarea_js(). - &Apache::structuretags::setmode_javascript(); + &Apache::structuretags::setmode_javascript(). + &Apache::lonhtmlcommon::dragmath_js(); my $only_body = ($env{'environment.remote'} eq 'off')? 0 : 1; - my $dragmath = &Apache::lonhtmlcommon::dragmath("LC_editxmltext"); + my $dragmath_button = + &Apache::lonhtmlcommon::dragmath_button("LC_editxmltext",1); my $start_page = &Apache::loncommon::start_page(&mt("EditXML [_1]",$file),$js, {'no_auto_mt_title' => 1, @@ -965,11 +967,11 @@ sub editxmlmode { 'onclick="javascript:setmode(this.form,'."'discard'".')" /> + '.$dragmath_button.'
- ' - .$dragmath.' +

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