Skip to content

Commit

Permalink
Added div.cke_dialog_ui_select to properly style the select input.
Browse files Browse the repository at this point in the history
  • Loading branch information
Garry Yao committed Nov 8, 2012
1 parent fb15575 commit 8ff85ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/dialogui/plugin.js
Expand Up @@ -528,6 +528,11 @@ CKEDITOR.plugins.add( 'dialogui', {
innerHTML = [],
attributes = { 'id': _.inputId, 'class': 'cke_dialog_ui_input_select', 'aria-labelledby': this._.labelId };

html.push( '<div class="cke_dialog_ui_input_', elementDefinition.type, '" role="presentation"' );
if ( elementDefinition.width )
html.push( 'style="width:' + elementDefinition.width + '" ' );
html.push( '>' );

// Add multiple and size attributes from element definition.
if ( elementDefinition.size != undefined )
attributes.size = elementDefinition.size;
Expand All @@ -543,6 +548,9 @@ CKEDITOR.plugins.add( 'dialogui', {
myDefinition.style = myDefinition.inputStyle;

_.select = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'select', null, attributes, innerHTML.join( '' ) );

html.push( '</div>' );

return html.join( '' );
};

Expand Down

0 comments on commit 8ff85ea

Please sign in to comment.