--- loncom/homework/daxepage.pm 2024/04/17 14:15:45 1.16 +++ loncom/homework/daxepage.pm 2025/02/21 06:09:37 1.18 @@ -1,7 +1,7 @@ # The LearningOnline Network # Page with Daxe on the left side and the preview on the right side # -# $Id: daxepage.pm,v 1.16 2024/04/17 14:15:45 raeburn Exp $ +# $Id: daxepage.pm,v 1.18 2025/02/21 06:09:37 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -84,6 +84,9 @@ sub handler { if ($is_not_assess) { delete($editors{'xml'}); $editors{'edit'} = 1; + $Apache::lonnet::env{'form.editmode'} = 'daxe'; + } else { + $Apache::lonnet::env{'form.problemmode'} = 'daxe'; } &Apache::lonhtmlcommon::clear_breadcrumbs(); my %lt = &Apache::lonlocal::texthash( @@ -96,6 +99,7 @@ sub handler { 'edit' => 'Save and Edit', 'disc' => 'Discard and View', 'save' => 'Save and View', + 'daxe' => 'Daxe Editor', ); my $name = $uri; $name =~ s/^.*\/([^\/]+)$/$1/; @@ -124,22 +128,23 @@ sub handler { if ($is_assess) { $editheader .= ''."\n"; } - $editheader .= '
'. - $uri.' | '.
+ $editheader .= ' '.
+ ' '.$uri.' '.
+ ''.
$saveeditbutton.$saveexitbutton.$exitbutton.'';
if ($editors{'edit'} || $editors{'xml'}) {
my $other = (($editors{'edit'} && $editors{'xml'})? $lt{'oeds'} : $lt{'othe'});
$editheader .= ' | '.$other.': '.
'';
if ($is_not_assess) {
- $editheader .= ''."\n".
+ $editheader .= ''."\n".
''."\n";
} else {
@@ -154,7 +159,9 @@ sub handler {
}
$editheader .= '';
}
- $editheader .= ' |