[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm

raeburn raeburn at source.lon-capa.org
Thu Jun 19 15:37:35 EDT 2014


raeburn		Thu Jun 19 19:37:35 2014 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  - Bug 6711.  No Richtext Editor or Spellchecker for textfield inside
    externalresponse.
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.323 loncom/homework/inputtags.pm:1.324
--- loncom/homework/inputtags.pm:1.323	Mon Jan 13 15:29:10 2014
+++ loncom/homework/inputtags.pm	Thu Jun 19 19:37:35 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.323 2014/01/13 15:29:10 bisitz Exp $
+# $Id: inputtags.pm,v 1.324 2014/06/19 19:37:35 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -238,7 +238,11 @@
 	    if ($addchars) {
 		$result.=&addchars($tagident, $addchars);
 	    }
-            my $textareaclass = 'class="LC_richDetectHtml spellchecked"';
+            my $textareaclass;
+            unless (&Apache::londefdef::is_inside_of($tagstack,
+                                                    'externalresponse')) {
+                $textareaclass = 'class="LC_richDetectHtml spellchecked"';
+            }
 	    $result.= '<textarea wrap="hard" name="'.$tagident.'" id="'.$tagident.'" ' .
 		      'rows="'.$rows.'" cols="'.$cols.'" '.$textareaclass
 		      .'>'.




More information about the LON-CAPA-cvs mailing list