[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
foxr
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 08 Jul 2008 09:54:31 -0000
foxr Tue Jul 8 05:54:31 2008 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
Added edit math button for textareas in multicolored editor.
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.423 loncom/homework/structuretags.pm:1.424
--- loncom/homework/structuretags.pm:1.423 Wed Jun 11 09:52:35 2008
+++ loncom/homework/structuretags.pm Tue Jul 8 05:54:30 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.423 2008/06/11 13:52:35 www Exp $
+# $Id: structuretags.pm,v 1.424 2008/07/08 09:54:30 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1870,6 +1870,7 @@
my $text='';
if ($target eq 'edit') {
+ my $areaid = 'homework_edit_'.$Apache::lonxml::curdepth;
$text=&Apache::lonxml::get_all_text("endouttext",$parser,$style);
$result.=&Apache::edit::start_table($token)."<tr><td>".&mt('Text Block')."</td>
<td>".&mt('Delete:').
@@ -1877,7 +1878,9 @@
."</td>
<td>".
&Apache::edit::insertlist($target,$token).
- '</td><td align="right" valign="top">' .
+ '</td><td>'.
+ &Apache::lonhtmlcommon::dragmath($areaid).'</td>'.
+ '<td align="right" valign="top">' .
&Apache::loncommon::helpLatexCheatsheet().
&Apache::edit::end_row().
&Apache::edit::start_spanning_row()."\n".