--- loncom/xml/lonxml.pm 2007/08/17 21:24:21 1.451
+++ loncom/xml/lonxml.pm 2007/09/10 19:46:57 1.456
@@ -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.456 2007/09/10 19:46:57 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1355,13 +1355,15 @@ sub inserteditinfo {
# my $editheader='Edit below
';
my $xml_help = '';
my $initialize='';
- my $add_to_onload;
- if ($filetype eq 'html') {
- my $addbuttons=&Apache::lonhtmlcommon::htmlareaaddbuttons();
- $initialize=&Apache::lonhtmlcommon::spellheader();
- if (!&Apache::lonhtmlcommon::htmlareablocked() &&
- &Apache::lonhtmlcommon::htmlareabrowser()) {
- $initialize.=(<
$addbuttons
@@ -1375,22 +1377,30 @@ $addbuttons
function () {
HTMLArea._addEvents(editor._doc,
["keypress","mousedown"], unClean);
+ editor._iframe.id = '$textarea_id';
+ resize_textarea('$textarea_id','LC_aftertextarea');
},300);
}
FULLPAGE
- } else {
- $initialize.=(<
$addbuttons
function initDocument() {
+ resize_textarea('$textarea_id','LC_aftertextarea');
}
FULLPAGE
- }
- $add_to_onload = 'initDocument();';
+ }
+
+ $add_to_onload = 'initDocument();';
+ $add_to_onresize = "resize_textarea('$textarea_id','LC_aftertextarea');";
+
+ if ($filetype eq 'html') {
$xml_help=&Apache::loncommon::helpLatexCheatsheet();
}
+
my $cleanbut = '';
my $titledisplay=&display_title();
@@ -1402,7 +1412,7 @@ FULLPAGE
my $buttons=(<
-
+
BUTTONS
@@ -1418,13 +1428,15 @@ $xml_help
$buttons
+
$buttons
-
$titledisplay
+
+