--- loncom/xml/lonxml.pm 2010/08/07 19:23:56 1.512 +++ loncom/xml/lonxml.pm 2010/09/29 15:47:21 1.515 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.512 2010/08/07 19:23:56 raeburn Exp $ +# $Id: lonxml.pm,v 1.515 2010/09/29 15:47:21 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1492,27 +1492,27 @@ sub inserteditinfo { my $dragmath_button; my ($add_to_onload, $add_to_onresize); $initialize=&Apache::lonhtmlcommon::spellheader(); - if (($filetype eq 'html') && (&Apache::lonhtmlcommon::htmlareabrowser())) { + if (($filetype eq 'html') && (&Apache::lonhtmlcommon::htmlareabrowser())) { my $lang = &Apache::lonhtmlcommon::htmlarea_lang(); my %textarea_args = ( fullpage => 'true', dragmath => 'math', ); - $initialize .= - &Apache::lonhtmlcommon::htmlareaselectactive(\%textarea_args). - (< +// FULLPAGE + if ($filetype eq 'html') { + $dragmath_button = ''.&Apache::lonhtmlcommon::dragmath_button('filecont',1).''; + $initialize .= "\n".&Apache::lonhtmlcommon::dragmath_js('EditMathPopup'); } - if ($filetype eq 'html' || $filetype eq 'tex') { - $dragmath_button = '
'.&Apache::lonhtmlcommon::dragmath_button('filecont',1).'
'; - $initialize .= "\n".&Apache::lonhtmlcommon::dragmath_js('EditMathPopup'); - } - $add_to_onload = 'initDocument();'; $add_to_onresize = "resize_textarea('$textarea_id','LC_aftertextarea');"; @@ -1537,7 +1537,7 @@ FULLPAGE $htmlerror=''.$htmlerror.''; } if (&Apache::lonhtmlcommon::htmlareabrowser()) { - $textareaclass = 'class="LC_richDetectHtml"'; + $textareaclass = 'class="LC_richDefaultOff"'; } } my $editfooter=(< - $spelllink $htmlerror + $htmlerror $dragmath_button
-$dragmath_button - +
$spelllink

$titledisplay