--- loncom/xml/lonxml.pm 2009/02/18 06:43:55 1.491 +++ loncom/xml/lonxml.pm 2009/04/13 20:15:44 1.492 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.491 2009/02/18 06:43:55 raeburn Exp $ +# $Id: lonxml.pm,v 1.492 2009/04/13 20:15:44 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1551,6 +1551,7 @@ sub inserteditinfo { my $xml_help = ''; my $initialize=''; my $textarea_id = 'filecont'; + my $dragmath_button; my ($add_to_onload, $add_to_onresize); $initialize=&Apache::lonhtmlcommon::spellheader(); if ($filetype eq 'html' @@ -1588,6 +1589,10 @@ FULLPAGE } FULLPAGE + if ($filetype eq 'html') { + $initialize .= "\n".&Apache::lonhtmlcommon::dragmath_js('EditMathPopup'); + $dragmath_button = &Apache::lonhtmlcommon::dragmath_button('filecont',1); + } } $add_to_onload = 'initDocument();'; @@ -1627,7 +1632,7 @@ $initialize
- $spelllink $htmlerror + $dragmath_button $spelllink $htmlerror