--- loncom/xml/lonxml.pm 2023/11/28 02:39:01 1.566
+++ loncom/xml/lonxml.pm 2023/11/28 04:48:14 1.567
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.566 2023/11/28 02:39:01 raeburn Exp $
+# $Id: lonxml.pm,v 1.567 2023/11/28 04:48:14 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1613,8 +1613,9 @@ FULLPAGE
my %lt=&Apache::lonlocal::texthash('st' => 'Save and Edit',
'vi' => 'Save and View',
'dv' => 'Discard Edits and View',
- 'un' => 'undo',
- 'ed' => 'Edit');
+ 'un' => 'Undo',
+ 'ed' => 'Edit',
+ 'ew' => 'Edit with Daxe');
my $spelllink = &Apache::lonhtmlcommon::spelllink('xmledit','filecont');
my $textarea_events = &Apache::edit::element_change_detection();
my $form_events = &Apache::edit::form_change_detection();
@@ -1630,8 +1631,8 @@ FULLPAGE
}
}
}
- my ($undo,%onclick);
- foreach my $item ('discard','undo') {
+ my ($undo,$daxebutton,%onclick);
+ foreach my $item ('discard','undo','daxe') {
$onclick{$item} = 'onclick="still_ask=true;setmode(this.form,'."'$item'".')"';
}
foreach my $item ('saveedit','saveview') {
@@ -1642,6 +1643,13 @@ FULLPAGE
$onclick{'undo'}.' />'."\n";
}
$initialize .= &setmode_javascript();
+ if ($filetype eq 'html') {
+ my %editors = &Apache::loncommon::permitted_editors();
+ if ($editors{'daxe'}) {
+ $daxebutton = ''."\n";
+ }
+ }
my $editfooter=(<