Editor Bootstrap styles for inputs
Editor Bootstrap styles for inputs
sliekens
Posts: 97Questions: 17Answers: 2
in Bug reports
In editor.bootstrap.js, the code adds CSS class form-control
to inputs with type="text"
but not other inputs like email/password/number/....
Replace:
// For each instance we need to know when it is opened
dte.on( 'open.dtebs', function ( e, type ) {
if ( type === 'inline' || type === 'bubble' ) {
$('div.DTE input[type=text], div.DTE select, div.DTE textarea').addClass( 'form-control' );
}
} );
Replace with:
// For each instance we need to know when it is opened
dte.on( 'open.dtebs', function ( e, type ) {
if ( type === 'inline' || type === 'bubble' ) {
$('div.DTE input:not([type=checkbox]):not([type=radio]), div.DTE select, div.DTE textarea').addClass( 'form-control' );
}
} );
This discussion has been closed.
Replies
Thanks! I had thought it did that already, but obviously not. I'll have it fixed in 1.6.2.
Allan