--- loncom/homework/inputtags.pm 2012/12/19 17:35:34 1.312 +++ loncom/homework/inputtags.pm 2012/12/28 18:22:13 1.314 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.312 2012/12/19 17:35:34 raeburn Exp $ +# $Id: inputtags.pm,v 1.314 2012/12/28 18:22:13 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -266,8 +266,9 @@ 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', - ['none', 'en', 'de', 'fr'], $token); + $spell_langs, $token); } elsif ($target eq 'modified') { my $constructtag=&Apache::edit::get_new_args($token,$parstack, $safeeval,'rows','cols', @@ -286,12 +287,18 @@ sub start_textfield { for (my $i=0;$i