Ticket #4122: 4122.patch

File 4122.patch, 2.0 KB (added by Frederico Caldeira Knabben, 15 years ago)
  • _source/plugins/image/dialogs/image.js

     
    423423                                                                                        {
    424424                                                                                                if ( type == IMAGE )
    425425                                                                                                {
    426                                                                                                         var dialog = this.getDialog();
    427                                                                                                         var url = element.getAttribute( '_cke_saved_src' );
    428                                                                                                         if ( !url )
    429                                                                                                                 url = element.getAttribute( 'src' );
    430                                                                                                         dialog.dontResetSize = true;
    431                                                                                                         this.setValue( url );           // And call this.onChange()
    432                                                                                                         this.focus();
     426                                                                                                        var url = element.getAttribute( '_cke_saved_src' ) || element.getAttribute( 'src' );
     427                                                                                                        var field = this;
     428
     429                                                                                                        this.getDialog().dontResetSize = true;
     430                                                                                                       
     431                                                                                                        // In IE7 the dialog is being rendered improperly when loading
     432                                                                                                        // an image with a long URL. So we need to delay it a bit. (#4122)
     433                                                                                                        setTimeout( function()
     434                                                                                                                {
     435                                                                                                                        field.setValue( url );          // And call this.onChange()
     436                                                                                                                        field.focus();
     437                                                                                                                }, 0 );
    433438                                                                                                }
    434439                                                                                        },
    435440                                                                                        commit : function( type, element )
  • CHANGES.html

     
    204204                <li><a href="http://dev.fckeditor.net/ticket/4119">#4119</a> : Unable to edit image link with image dialog.</li>
    205205                <li><a href="http://dev.fckeditor.net/ticket/4058">#4058</a> : [FF] wysiwyg mode is sometimes not been activated.</li>
    206206                <li><a href="http://dev.fckeditor.net/ticket/4114">#4114</a> : [IE] RTE + IE6/IE7 Quirks = dialog mispositoned.</li>
     207                <li><a href="http://dev.fckeditor.net/ticket/4122">#4122</a> : [IE] The image dialog
     208                        was being rendered improperly when loading an image with long URL.</li>
    207209        </ul>
    208210        <h3>
    209211                CKEditor 3.0 RC</h3>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy