--- loncom/homework/daxepage.pm 2024/03/23 23:11:52 1.12 +++ loncom/homework/daxepage.pm 2024/03/31 01:50:18 1.14 @@ -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.12 2024/03/23 23:11:52 raeburn Exp $ +# $Id: daxepage.pm,v 1.14 2024/03/31 01:50:18 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -73,6 +73,7 @@ sub handler { 'noif' => 'No iframe support.', 'show' => 'Show content in pop-up window', 'save' => 'Save', + 'text' => 'Text Editor', 'oeds' => 'other editors', 'othe' => 'other editor', 'edit' => 'Save and Edit', @@ -81,11 +82,12 @@ sub handler { ); my $name = $uri; $name =~ s/^.*\/([^\/]+)$/$1/; + my $lang = &Apache::lonlocal::current_language(); my $filearg = '/daxeopen'.$uri; my $daxeurl = '/adm/daxe/daxe.html?config=config/loncapa_config.xml&save=/daxesave'. '&file='.$filearg; my $headjs = &Apache::loncommon::iframe_wrapper_headjs(). - &listener_js($filearg). + &listener_js($lang,$filearg,$is_assess). &toggle_LCmenus_js().&saveandview_js(). &Apache::edit::js_change_detection(); @@ -118,7 +120,7 @@ sub handler { ''; if ($is_not_assess) { $editheader .= ''."\n". - ''."\n"; } else { if ($editors{'edit'}) { @@ -159,7 +161,7 @@ ENDFRAME } sub listener_js { - my ($filearg) = @_; + my ($lang,$filearg,$is_assess) = @_; return <<"ENDJS";