[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm
raeburn
raeburn@source.lon-capa.org
Mon, 13 Apr 2009 20:15:44 -0000
raeburn Mon Apr 13 20:15:44 2009 EDT
Modified files:
/loncom/xml lonxml.pm
Log:
- "Edit Math" button available when editing HTML documents in author space (wysiwyg disabled).
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.491 loncom/xml/lonxml.pm:1.492
--- loncom/xml/lonxml.pm:1.491 Wed Feb 18 06:43:55 2009
+++ loncom/xml/lonxml.pm Mon Apr 13 20:15:44 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.491 2009/02/18 06:43:55 raeburn Exp $
+# $Id: lonxml.pm,v 1.492 2009/04/13 20:15:44 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1551,6 +1551,7 @@
my $xml_help = '';
my $initialize='';
my $textarea_id = 'filecont';
+ my $dragmath_button;
my ($add_to_onload, $add_to_onresize);
$initialize=&Apache::lonhtmlcommon::spellheader();
if ($filetype eq 'html'
@@ -1588,6 +1589,10 @@
}
</script>
FULLPAGE
+ if ($filetype eq 'html') {
+ $initialize .= "\n".&Apache::lonhtmlcommon::dragmath_js('EditMathPopup');
+ $dragmath_button = &Apache::lonhtmlcommon::dragmath_button('filecont',1);
+ }
}
$add_to_onload = 'initDocument();';
@@ -1627,7 +1632,7 @@
<div class="LC_edit_problem_discards">
<input type="submit" name="discardview" accesskey="d" value="$lt{'dv'}" />
<input type="submit" name="Undo" accesskey="u" value="$lt{'un'}" />
- $spelllink $htmlerror
+ $dragmath_button $spelllink $htmlerror
</div>
<div class="LC_edit_problem_saves">
<input type="submit" name="savethisfile" accesskey="s" value="$lt{'st'}" />