--- loncom/xml/lonxml.pm 2024/04/17 15:15:13 1.572 +++ loncom/xml/lonxml.pm 2024/10/13 22:14:58 1.575 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.572 2024/04/17 15:15:13 raeburn Exp $ +# $Id: lonxml.pm,v 1.575 2024/10/13 22:14:58 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1615,7 +1615,8 @@ FULLPAGE 'dv' => 'Discard Edits and View', 'un' => 'Undo', 'ed' => 'Edit', - 'ew' => 'Edit with Daxe'); + 'ew' => 'Edit with Daxe', + 'er' => 'Editor'); my $spelllink = &Apache::lonhtmlcommon::spelllink('xmledit','filecont'); my $textarea_events = &Apache::edit::element_change_detection(); my $form_events = &Apache::edit::form_change_detection(); @@ -1639,12 +1640,12 @@ FULLPAGE $onclick{$item} = 'onclick="is_submit=true;setmode(this.form,'."'$item'".')"'; } unless ($uri =~ m{^/uploaded/}) { - $undo = '<input type="button" name="Undo" accesskey="u" value="'.$lt{'un'}.'" '. + $undo = '<input type="button" name="undo" accesskey="u" value="'.$lt{'un'}.'" '. $onclick{'undo'}.' />'."\n"; } $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"; @@ -1671,7 +1672,7 @@ $initialize $undo $deps_button $daxebutton $dragmath_button $htmlerror </div> </div> - <textarea $textarea_events style="width:100%" cols="80" rows="44" name="filecont" id="filecont" $textareaclass>$filecontents</textarea><br />$spelllink + <textarea $textarea_events style="width:100%" cols="80" rows="44" name="filecont" id="filecont" $textareaclass>$filecontents</textarea><br /><label for="filecont" class="LC_visually_hidden">$lt{'er'}</label>$spelllink <div id="LC_aftertextarea"> <br /> $titledisplay