--- loncom/homework/inputtags.pm 2021/12/30 03:54:45 1.333.2.12.2.1 +++ loncom/homework/inputtags.pm 2023/02/05 01:52:21 1.333.2.12.2.2 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.333.2.12.2.1 2021/12/30 03:54:45 raeburn Exp $ +# $Id: inputtags.pm,v 1.333.2.12.2.2 2023/02/05 01:52:21 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -473,8 +473,10 @@ sub start_textline { $result .= &spellcheck_onblur($itemid, $spellcheck); if (($Apache::inputtags::status['-1'] eq 'CAN_ANSWER') && - (($tagstack->[-2] eq 'formularesponse') || ($tagstack->[-2] eq 'mathresponse')) && - (&Apache::lonnet::EXT('resource.'.$partid.'_'.$id.'.turnoffeditor') ne 'yes')) { + (((($tagstack->[-2] eq 'formularesponse') || ($tagstack->[-2] eq 'mathresponse')) && + (&Apache::lonnet::EXT('resource.'.$partid.'_'.$id.'.turnoffeditor') ne 'yes')) || + (($tagstack->[-2] eq 'customresponse') && + (&Apache::lonnet::EXT('resource.'.$partid.'_'.$id.'.turnoffeditor') eq 'no')))) { $result.=&edit_mathresponse_button($input_tag_id); } }