Ticket #9503: 9503.patch
File 9503.patch, 1.2 KB (added by , 11 years ago) |
---|
-
_source/plugins/forms/plugin.js
150 150 151 151 if ( name == 'input' ) 152 152 { 153 switch( element.getAttribute( 'type' ) )153 switch( element.getAttribute( 'type' ) || 'text' ) 154 154 { 155 155 case 'button' : 156 156 case 'submit' : … … 166 166 case 'image' : 167 167 return { imagebutton : CKEDITOR.TRISTATE_OFF }; 168 168 169 default : 169 case 'text' : 170 case 'password' : 170 171 return { textfield : CKEDITOR.TRISTATE_OFF }; 171 172 } 172 173 } … … 191 192 evt.data.dialog = 'hiddenfield'; 192 193 else if ( element.is( 'input' ) ) 193 194 { 194 switch ( element.getAttribute( 'type' ) )195 switch ( element.getAttribute( 'type' ) || 'text' ) 195 196 { 196 197 case 'button' : 197 198 case 'submit' : … … 207 208 case 'image' : 208 209 evt.data.dialog = 'imagebutton'; 209 210 break; 210 default : 211 case 'text' : 212 case 'password' : 211 213 evt.data.dialog = 'textfield'; 212 214 break; 213 215 }