Ticket #5483: 5483.patch

File 5483.patch, 691 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    643643                                                                        // Check if the <head> tag is available.
    644644                                                                        if ( !(/<head[\s|>]/).test( data ) )
    645645                                                                                data = data.replace( /<html[^>]*>/, '$&<head><title></title></head>' ) ;
     646                                                                        else if ( !(/<title[\s|>]/).test( data ) )
     647                                                                                data = data.replace( /<head[^>]*>/, '$&<title></title>' ) ;
    646648
    647649                                                                        // The base must be the first tag in the HEAD, e.g. to get relative
    648650                                                                        // links on styles.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy