--- loncom/homework/inputtags.pm 2012/09/24 10:34:19 1.310 +++ loncom/homework/inputtags.pm 2013/04/11 14:59:40 1.315 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.310 2012/09/24 10:34:19 foxr Exp $ +# $Id: inputtags.pm,v 1.315 2013/04/11 14:59:40 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -266,10 +266,13 @@ sub start_textfield { my $bodytext=&Apache::lonxml::get_all_text("/textfield",$parser, $style); $result.=&Apache::edit::editfield($token->[1],$bodytext,'Text you want to appear by default:',80,2); + my $spell_langs = &spelling_languages(); + $result .= &Apache::edit::select_arg('Spellcheck for:', 'spellcheck', + $spell_langs, $token); } elsif ($target eq 'modified') { my $constructtag=&Apache::edit::get_new_args($token,$parstack, $safeeval,'rows','cols', - 'addchars'); + 'addchars', 'spellcheck'); if ($constructtag) { $result = &Apache::edit::rebuild_tag($token); } else { @@ -284,12 +287,18 @@ sub start_textfield { for (my $i=0;$i