Ticket #4101: 4101.patch

File 4101.patch, 1.8 KB (added by Artur Formella, 15 years ago)
  • _source/plugins/dialogui/plugin.js

     
    822822                                enable : function()
    823823                                {
    824824                                        this._.disabled = false;
    825                                         this.getElement().removeClass( 'disabled' );
     825                                        var element = this.getElement();
     826                                        element && element.removeClass( 'disabled' );
    826827                                },
    827828
    828829                                /**
     
    905906                                        var me = this.selectParentTab();
    906907
    907908                                        // GECKO BUG: setTimeout() is needed to workaround invisible selections.
    908                                         setTimeout( function(){ me.getInputElement().$.focus(); }, 0 );
     909                                        setTimeout( function()
     910                                                {
     911                                                        var element = me.getInputElement();
     912                                                        element && element.$.focus();
     913                                                }, 0 );
    909914                                },
    910915
    911916                                /**
     
    917922                                        var me = this.selectParentTab();
    918923
    919924                                        // GECKO BUG: setTimeout() is needed to workaround invisible selections.
    920                                         setTimeout( function(){ var e = me.getInputElement().$; e.focus(); e.select(); }, 0 );
     925                                        setTimeout( function()
     926                                                {
     927                                                        var e = me.getInputElement()
     928                                                        if ( e )
     929                                                        {
     930                                                                e.$.focus();
     931                                                                e.$.select();
     932                                                        }
     933                                                }, 0 );
    921934                                },
    922935
    923936                                /**
  • CHANGES.html

     
    178178                        <li><a href="http://dev.fckeditor.net/ticket/4094">#4094</a> : Smiley plugin file</li>
    179179                </ul></li>
    180180                <li><a href="http://dev.fckeditor.net/ticket/4085">#4085</a> : Paste and Paste from Word dialogs were not well styled in IE+RTL.</li>
     181                <li><a href="http://dev.fckeditor.net/ticket/4101">#4101</a> : Now it is possible to close dialog before gets focus.</li>
    181182        </ul>
    182183        <h3>
    183184                CKEditor 3.0 RC</h3>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy