[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 19 Aug 2004 20:20:41 -0000


albertel		Thu Aug 19 16:20:41 2004 EDT

  Modified files:              
    /loncom/xml	londefdef.pm 
  Log:
  - 3315, add align attribute to <img> tag
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.233 loncom/xml/londefdef.pm:1.234
--- loncom/xml/londefdef.pm:1.233	Tue Aug 17 10:18:04 2004
+++ loncom/xml/londefdef.pm	Thu Aug 19 16:20:40 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.233 2004/08/17 14:18:04 sakharuk Exp $
+# $Id: londefdef.pm,v 1.234 2004/08/19 20:20:40 albertel Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -2479,6 +2479,8 @@
 	$currentstring .=&Apache::edit::text_arg('height (pixel):','height',$token,5).'<br />';
 	$currentstring .=&Apache::edit::text_arg('TeXwidth (mm):','TeXwidth',$token,5);
 	$currentstring .=&Apache::edit::text_arg('TeXheight (mm):','TeXheight',$token,5);
+	$currentstring .=&Apache::edit::select_arg('Alignment:','align',
+						   ['','bottom','middle','top','left','right'],$token,5);
 	$currentstring .=&Apache::edit::end_row().&Apache::edit::start_spanning_row();
 	my $src=&Apache::lonxml::get_param('src',$parstack,$safeeval);
 	my $alt=&Apache::lonxml::get_param('alt',$parstack,$safeeval);
@@ -2492,7 +2494,7 @@
 	my ($osrc,$owidth,$oheight)=
 	    ($token->[2]{'src'},$token->[2]{'width'},$token->[2]{'height'});
 	my $ctag=&Apache::edit::get_new_args($token,$parstack,
-					     $safeeval,'src','alt',
+					     $safeeval,'src','alt','align',
 					     'TeXwidth','TeXheight',
 					     'width','height');
 	my ($nsrc,$nwidth,$nheight)=