--- loncom/homework/inputtags.pm 2012/09/24 10:34:19 1.310 +++ loncom/homework/inputtags.pm 2012/09/24 11:04:16 1.311 @@ -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.311 2012/09/24 11:04:16 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -266,10 +266,12 @@ 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); + $result .= &Apache::edit::select_arg('Spellcheck for; ', 'spellcheck', + ['none', 'en', 'de', 'fr'], $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 { @@ -453,12 +455,14 @@ sub start_textline { 'addchars',$token,10); $result.=&Apache::edit::select_arg('Readonly:','readonly', ['no','yes'],$token); + $result.=&Apache::edit::select_arg("Spellcheck for: ", 'spellcheck', + ['none', 'en', 'de', 'fr'], $token); $result.=&Apache::edit::end_row(); $result.=&Apache::edit::end_table(); } elsif ($target eq 'modified') { my $constructtag=&Apache::edit::get_new_args($token,$parstack, $safeeval,'size', - 'addchars','readonly'); + 'addchars','readonly', 'spellcheck'); if ($constructtag) { $result = &Apache::edit::rebuild_tag($token); } } elsif ($target eq 'tex' && $Apache::lonhomework::type ne 'exam') {