--- loncom/homework/daxepage.pm 2024/03/25 17:29:23 1.13 +++ 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.13 2024/03/25 17:29:23 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', @@ -86,7 +87,7 @@ sub handler { my $daxeurl = '/adm/daxe/daxe.html?config=config/loncapa_config.xml&save=/daxesave'. '&file='.$filearg; my $headjs = &Apache::loncommon::iframe_wrapper_headjs(). - &listener_js($lang,$filearg). + &listener_js($lang,$filearg,$is_assess). &toggle_LCmenus_js().&saveandview_js(). &Apache::edit::js_change_detection(); @@ -119,7 +120,7 @@ sub handler { ''; if ($is_not_assess) { $editheader .= ''."\n". - ''."\n"; } else { if ($editors{'edit'}) { @@ -160,7 +161,7 @@ ENDFRAME } sub listener_js { - my ($lang,$filearg) = @_; + my ($lang,$filearg,$is_assess) = @_; return <<"ENDJS";