--- loncom/xml/lonxml.pm 2007/08/17 21:24:21 1.451
+++ loncom/xml/lonxml.pm 2007/08/18 00:08:36 1.452
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.451 2007/08/17 21:24:21 albertel Exp $
+# $Id: lonxml.pm,v 1.452 2007/08/18 00:08:36 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1355,12 +1355,14 @@ sub inserteditinfo {
# my $editheader='Edit below
';
my $xml_help = '';
my $initialize='';
- my $add_to_onload;
+ my $textarea_id = 'filecont';
+ my ($add_to_onload, $add_to_onresize);
if ($filetype eq 'html') {
my $addbuttons=&Apache::lonhtmlcommon::htmlareaaddbuttons();
$initialize=&Apache::lonhtmlcommon::spellheader();
if (!&Apache::lonhtmlcommon::htmlareablocked() &&
&Apache::lonhtmlcommon::htmlareabrowser()) {
+ $textarea_id .= '_htmlarea';
$initialize.=(<
$addbuttons
@@ -1375,6 +1377,8 @@ $addbuttons
function () {
HTMLArea._addEvents(editor._doc,
["keypress","mousedown"], unClean);
+ editor._iframe.id = '$textarea_id';
+ resize_textarea('$textarea_id','LC_aftertextarea');";
},300);
}
@@ -1384,13 +1388,16 @@ FULLPAGE
FULLPAGE
}
$add_to_onload = 'initDocument();';
+ $add_to_onresize = "resize_textarea('$textarea_id','LC_aftertextarea');";
$xml_help=&Apache::loncommon::helpLatexCheatsheet();
}
+
my $cleanbut = '';
my $titledisplay=&display_title();
@@ -1418,13 +1425,15 @@ $xml_help
$buttons
+
$buttons
-
$titledisplay
+
+