~ubuntu-branches/ubuntu/intrepid/moin/intrepid-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/editor/_source/classes/fckstyledef_ie.js

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-02-14 16:09:24 UTC
  • mfrom: (0.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20060214160924-fyrx3gvknzqvt4vj
Tags: 1.5.2-1ubuntu1
Drop python2.3 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
{
51
51
        for ( var a in this.Attributes )
52
52
        {
53
 
                if ( a.toLowerCase() == 'style' )
54
 
                        targetElement.style.cssText = this.Attributes[a] ;
55
 
                else
56
 
                        targetElement.setAttribute( a, this.Attributes[a], 0 ) ;
 
53
                switch ( a.toLowerCase() )
 
54
                {
 
55
                        case 'style' :
 
56
                                targetElement.style.cssText = this.Attributes[a] ;
 
57
                                break ;
 
58
                                
 
59
                        case 'class' :
 
60
                                targetElement.setAttribute( 'className', this.Attributes[a], 0 ) ;
 
61
                                break ;
 
62
                                
 
63
                        default :
 
64
                                targetElement.setAttribute( a, this.Attributes[a], 0 ) ;
 
65
                }
57
66
        }
58
67
}
59
68
 
65
74
                this._RemoveDuplicates( oChild ) ;
66
75
                
67
76
                if ( this.IsEqual( oChild ) )
68
 
                {
69
 
                        oChild.insertAdjacentHTML( 'beforeBegin', oChild.innerHTML ) ;
70
 
                        oChild.parentElement.removeChild( oChild ) ;
71
 
                }
 
77
                        FCKTools.RemoveOuterTags( oChild ) ;
72
78
        }
73
79
}
74
80