--- loncom/homework/edit.pm 2005/12/22 22:06:54 1.99 +++ loncom/homework/edit.pm 2006/05/30 12:45:36 1.102 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # edit mode helpers # -# $Id: edit.pm,v 1.99 2005/12/22 22:06:54 albertel Exp $ +# $Id: edit.pm,v 1.102 2006/05/30 12:45:36 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -32,6 +32,9 @@ use strict; use Apache::lonnet; use HTML::Entities(); use Apache::lonlocal; +use lib '/home/httpd/lib/perl/'; +use LONCAPA; + # Global Vars # default list of colors to use in editing @@ -577,8 +580,8 @@ sub editfield { if ($rows < $minheight) { $rows = $minheight; } if ($description) { $description="
".$description."
"; } if ($usehtmlarea) { - push @Apache::lonxml::htmlareafields,'homework_edit_'. - $Apache::lonxml::curdepth; + &Apache::lonhtmlcommon::add_htmlareafields('homework_edit_'. + $Apache::lonxml::curdepth); } return $description."\n".'