Ticket #1541: 1541.patch

File 1541.patch, 1.0 KB (added by Artur Formella, 16 years ago)
  • plugins/mediawiki/fckplugin.js

     
    607607
    608608                                                                if ( attribs.length > 0 )
    609609                                                                        stringBuilder.push( attribs ) ;
     610                                                                if(htmlNode.innerHTML == "")
     611                                                                        stringBuilder.push( ' />' ) ;
     612                                                                else
     613                                                                {
     614                                                                        stringBuilder.push( '>' ) ;
     615                                                                        this._inPre = true ;
     616                                                                        this._AppendChildNodes( htmlNode, stringBuilder, prefix ) ;
     617                                                                        this._inPre = false ;
    610618
    611                                                                 stringBuilder.push( '>' ) ;
    612                                                                 this._inPre = true ;
    613                                                                 this._AppendChildNodes( htmlNode, stringBuilder, prefix ) ;
    614                                                                 this._inPre = false ;
    615 
    616                                                                 stringBuilder.push( '<\/' ) ;
    617                                                                 stringBuilder.push( sNodeName ) ;
    618                                                                 stringBuilder.push( '>' ) ;
     619                                                                        stringBuilder.push( '<\/' ) ;
     620                                                                        stringBuilder.push( sNodeName ) ;
     621                                                                        stringBuilder.push( '>' ) ;
     622                                                                }
    619623                                                        }
    620624                                               
    621625                                                        break ;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy