Diff for /loncom/xml/scripttag.pm between versions 1.175 and 1.176

version 1.175, 2016/07/01 19:59:25 version 1.176, 2023/11/07 12:26:01
Line 30  package Apache::scripttag; Line 30  package Apache::scripttag;
   
 use strict;  use strict;
 use Apache::lonnet;  use Apache::lonnet;
   use Apache::loncommon;
 use Apache::lonlocal;  use Apache::lonlocal;
 use Apache::lonxml();  use Apache::lonxml();
 use Apache::londefdef();  use Apache::londefdef();
Line 123  sub start_script { Line 124  sub start_script {
   
         my $depth = $Apache::lonxml::curdepth;          my $depth = $Apache::lonxml::curdepth;
         $result.='<span id="LC_edit_problem_codemirror">';          $result.='<span id="LC_edit_problem_codemirror">';
         unless ($env{'environment.nocodemirror'}) {          my $nocodemirror = &Apache::loncommon::nocodemirror();
           unless ($nocodemirror) {
             # only show button if codemirror activated              # only show button if codemirror activated
             $result.='<input type="button" id="fitsize'.$depth.'" value="'.&mt("Dynamic size").              $result.='<input type="button" id="fitsize'.$depth.'" value="'.&mt("Dynamic size").
             '" onclick="autosize(\''.$depth.'\')" />';              '" onclick="autosize(\''.$depth.'\')" />';
         }          }
         $result.=&Apache::edit::editfield($token->[1],$bodytext,'',80,4).'</span>';          $result.=&Apache::edit::editfield($token->[1],$bodytext,'',80,4).'</span>';
   
         unless ($env{'environment.nocodemirror'}) {          unless ($nocodemirror) {
             $result.='<script type="text/javascript">              $result.='<script type="text/javascript">
                 var cm'.$depth.' = CodeMirror.fromTextArea(document.getElementById("homework_edit_'.$depth.'"),                  var cm'.$depth.' = CodeMirror.fromTextArea(document.getElementById("homework_edit_'.$depth.'"),
                 {                  {

Removed from v.1.175  
changed lines
  Added in v.1.176


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>