- Timestamp:
- 05/27/09 19:14:48 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm
r3947 r3984 455 455 { 456 456 457 my %new_attrs = ( class => $class ); 458 $new_attrs{style} = $this->{attrs}->{style} 459 if exists $this->{attrs}->{style}; 457 460 my $newspan = 458 461 new Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node( $this->{context}, 459 'span', { class => $class });462 'span', \%new_attrs ); 460 463 my $kid = $this->{head}; 461 464 while ($kid) { … … 512 515 513 516 $this->_moveClassToSpan('WYSIWYG_TT'); 517 $this->_moveClassToSpan('WYSIWYG_COLOR') 518 if lc( $this->{tag} ) ne 'font'; 514 519 515 520 # See if we have a TML translation function for this tag … … 865 870 if ( $kid->{tag} eq 'th' ) { 866 871 $kid->_moveClassToSpan('WYSIWYG_TT'); 872 $kid->_moveClassToSpan('WYSIWYG_COLOR'); 867 873 ( $flags, $text ) = $kid->_flatten($options); 868 874 $text = _TDtrim($text); … … 871 877 elsif ( $kid->{tag} eq 'td' ) { 872 878 $kid->_moveClassToSpan('WYSIWYG_TT'); 879 $kid->_moveClassToSpan('WYSIWYG_COLOR'); 873 880 ( $flags, $text ) = $kid->_flatten($options); 874 881 $text = _TDtrim($text);
Note: See TracChangeset
for help on using the changeset viewer.
