--- loncom/homework/structuretags.pm 2023/09/10 18:12:53 1.578 +++ loncom/homework/structuretags.pm 2023/11/07 12:26:00 1.579 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.578 2023/09/10 18:12:53 raeburn Exp $ +# $Id: structuretags.pm,v 1.579 2023/11/07 12:26:00 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -445,7 +445,7 @@ sub page_start { if (&Apache::lonhtmlcommon::htmlareabrowser()) { my %textarea_args; if (($env{'request.state'} ne 'construct') || - ($env{'environment.nocodemirror'})) { + (&Apache::loncommon::nocodemirror())) { %textarea_args = ( dragmath => 'math', ); @@ -851,7 +851,7 @@ sub problem_edit_buttons { if ($mode eq 'editxml') { $result.=&problem_edit_action_button('subedit','edit','e','Edit',1); $result.=&problem_edit_action_button('subundo','undoxml','u','Undo',1); - if ($env{'environment.nocodemirror'}) { + if (&Apache::loncommon::nocodemirror()) { $result.=&Apache::lonhtmlcommon::dragmath_button("LC_editxmltext",1); } } else { @@ -3375,7 +3375,7 @@ sub end_startouttext { .&Apache::edit::deletelist($target,$token) .'' .''; - if ($env{'environment.nocodemirror'}) { + if (&Apache::loncommon::nocodemirror()) { $result.=&Apache::lonhtmlcommon::dragmath_button($areaid,1); } else { $result.=' ';