[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm

raeburn raeburn at source.lon-capa.org
Tue Sep 24 20:15:10 EDT 2024


raeburn		Wed Sep 25 00:15:10 2024 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  - "Edit with Daxe" button above textarea when using text editor to edit
    an html file uploaded to a course, if domain/course config allows Daxe.
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.573 loncom/xml/lonxml.pm:1.574
--- loncom/xml/lonxml.pm:1.573	Mon Jul  8 01:01:44 2024
+++ loncom/xml/lonxml.pm	Wed Sep 25 00:15:10 2024
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module
 #
-# $Id: lonxml.pm,v 1.573 2024/07/08 01:01:44 raeburn Exp $
+# $Id: lonxml.pm,v 1.574 2024/09/25 00:15:10 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1644,7 +1644,7 @@
       }
       $initialize .= &setmode_javascript();
       if ($filetype eq 'html') {
-          my %editors = &Apache::loncommon::permitted_editors();
+          my %editors = &Apache::loncommon::permitted_editors($uri);
           if ($editors{'daxe'}) {
               $daxebutton = '<input type="button" name="editwithdaxe" accesskey="w" value="'.$lt{'ew'}.'" '.
                             $onclick{'daxe'}.' />'."\n";




More information about the LON-CAPA-cvs mailing list