--- loncom/homework/structuretags.pm 2008/08/21 20:46:23 1.428 +++ loncom/homework/structuretags.pm 2008/08/26 03:18:29 1.429 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.428 2008/08/21 20:46:23 raeburn Exp $ +# $Id: structuretags.pm,v 1.429 2008/08/26 03:18:29 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1887,7 +1887,6 @@ sub end_startouttext { my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; my $result=''; my $text=''; - if ($target eq 'edit') { my $areaid = 'homework_edit_'.$Apache::lonxml::curdepth; $text=&Apache::lonxml::get_all_text("endouttext",$parser,$style); @@ -1898,7 +1897,10 @@ sub end_startouttext { unless ($env{'environment.wysiwygeditor'} eq 'on') { $result.='' .&Apache::lonhtmlcommon::dragmath_button($areaid,1) - .''; + .'' + .'' + .&Apache::edit::insertlist($target,$token) + .''; } $result.='' . &Apache::loncommon::helpLatexCheatsheet().