Ticket #9168: 9168.patch

File 9168.patch, 1.0 KB (added by fujikawa.naoki, 12 years ago)
  • docprops.js

     
    214214                                                setup : function( doc )
    215215                                                {
    216216                                                        this.setValue( doc.getElementsByTag( 'title' ).getItem( 0 ).data( 'cke-title' ) );
     217                            previousTitle = doc.getElementsByTag( 'title' ).getItem( 0 ).data( 'cke-title' );
    217218                                                },
    218219                                                commit : function( doc, html, head, body, isPreview )
    219220                                                {
    220221                                                        if ( isPreview )
    221222                                                                return;
    222                                                         doc.getElementsByTag( 'title' ).getItem( 0 ).data( 'cke-title', this.getValue() );
    223                                                 }
     223                            doc.getElementsByTag( 'title' ).getItem( 0 ).data( 'cke-title', this.getValue() );
     224                            if(!CKEDITOR.env.ie && previousTitle == ""){
     225                                doc.getElementsByTag( 'title' ).getItem(0).setText(this.getValue());
     226                            }
     227                        }
    224228                                        },
    225229                                        {
    226230                                                type : 'hbox',
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy