Skip to content

Commit 8ff85ea

Browse files
author
Garry Yao
committed
Added div.cke_dialog_ui_select to properly style the select input.
1 parent fb15575 commit 8ff85ea

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugins/dialogui/plugin.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,11 @@ CKEDITOR.plugins.add( 'dialogui', {
528528
innerHTML = [],
529529
attributes = { 'id': _.inputId, 'class': 'cke_dialog_ui_input_select', 'aria-labelledby': this._.labelId };
530530

531+
html.push( '<div class="cke_dialog_ui_input_', elementDefinition.type, '" role="presentation"' );
532+
if ( elementDefinition.width )
533+
html.push( 'style="width:' + elementDefinition.width + '" ' );
534+
html.push( '>' );
535+
531536
// Add multiple and size attributes from element definition.
532537
if ( elementDefinition.size != undefined )
533538
attributes.size = elementDefinition.size;
@@ -543,6 +548,9 @@ CKEDITOR.plugins.add( 'dialogui', {
543548
myDefinition.style = myDefinition.inputStyle;
544549

545550
_.select = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'select', null, attributes, innerHTML.join( '' ) );
551+
552+
html.push( '</div>' );
553+
546554
return html.join( '' );
547555
};
548556

0 commit comments

Comments
 (0)