Ticket #4101: 4101.patch
File 4101.patch, 1.8 KB (added by , 14 years ago) |
---|
-
_source/plugins/dialogui/plugin.js
822 822 enable : function() 823 823 { 824 824 this._.disabled = false; 825 this.getElement().removeClass( 'disabled' ); 825 var element = this.getElement(); 826 element && element.removeClass( 'disabled' ); 826 827 }, 827 828 828 829 /** … … 905 906 var me = this.selectParentTab(); 906 907 907 908 // 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 ); 909 914 }, 910 915 911 916 /** … … 917 922 var me = this.selectParentTab(); 918 923 919 924 // 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 ); 921 934 }, 922 935 923 936 /** -
CHANGES.html
178 178 <li><a href="http://dev.fckeditor.net/ticket/4094">#4094</a> : Smiley plugin file</li> 179 179 </ul></li> 180 180 <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> 181 182 </ul> 182 183 <h3> 183 184 CKEditor 3.0 RC</h3>