--- loncom/homework/structuretags.pm 2008/07/08 09:54:30 1.424 +++ loncom/homework/structuretags.pm 2008/07/28 05:26:00 1.425 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.424 2008/07/08 09:54:30 foxr Exp $ +# $Id: structuretags.pm,v 1.425 2008/07/28 05:26:00 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -148,6 +148,10 @@ sub page_start { $extra_head .= &homework_js(); + unless ($env{'environment.wysiwygeditor'} eq 'on') { + $extra_head .= &Apache::lonhtmlcommon::dragmath_js(); + } + my %body_args; if (defined($found{'html'})) { $body_args{'skip_phases'}{'head'}=1; @@ -1878,9 +1882,13 @@ sub end_startouttext { ." ". &Apache::edit::insertlist($target,$token). - ''. - &Apache::lonhtmlcommon::dragmath($areaid).''. - '' . + ''; + unless ($env{'environment.wysiwygeditor'} eq 'on') { + $result.='' + .&Apache::lonhtmlcommon::dragmath_button($areaid,1) + .''; + } + $result.='' . &Apache::loncommon::helpLatexCheatsheet(). &Apache::edit::end_row(). &Apache::edit::start_spanning_row()."\n".