--- 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 = ''."\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 = ''."\n"; @@ -1671,7 +1672,7 @@ $initialize $undo $deps_button $daxebutton $dragmath_button $htmlerror -
$spelllink +
$spelllink

$titledisplay