Ticket #5927: 5927.patch
File 5927.patch, 2.0 KB (added by , 13 years ago) |
---|
-
_source/plugins/dialogui/plugin.js
236 236 if ( elementDefinition.size ) 237 237 attributes.size = elementDefinition.size; 238 238 239 if ( elementDefinition.controlStyle ) 240 attributes.style = elementDefinition.controlStyle; 241 239 242 // If user presses Enter in a text box, it implies clicking OK for the dialog. 240 243 var me = this, keyPressedOnMe = false; 241 244 dialog.on( 'load', function() … … 375 378 cleanInnerDefinition( myDefinition ); 376 379 if ( elementDefinition[ 'default' ] ) 377 380 attributes.checked = 'checked'; 381 382 if (typeof myDefinition.controlStyle != 'undefined') 383 myDefinition.style = myDefinition.controlStyle; 384 378 385 _.checkbox = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'input', null, attributes ); 379 386 html.push( ' <label id="', labelId, '" for="', attributes.id, '">', 380 387 CKEDITOR.tools.htmlEncode( elementDefinition.label ), … … 453 460 inputAttributes.checked = 'checked'; 454 461 cleanInnerDefinition( inputDefinition ); 455 462 cleanInnerDefinition( labelDefinition ); 463 464 if (typeof inputDefinition.controlStyle != 'undefined') 465 inputDefinition.style = inputDefinition.controlStyle; 466 456 467 children.push( new CKEDITOR.ui.dialog.uiElement( dialog, inputDefinition, inputHtml, 'input', null, inputAttributes ) ); 457 468 inputHtml.push( ' ' ); 458 469 new CKEDITOR.ui.dialog.uiElement( dialog, labelDefinition, inputHtml, 'label', null, { id : labelId, 'for' : inputAttributes.id }, … … 610 621 CKEDITOR.tools.htmlEncode( item[0] ) ); 611 622 } 612 623 624 if (typeof myDefinition.controlStyle != 'undefined') 625 myDefinition.style = myDefinition.controlStyle; 626 613 627 _.select = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'select', null, attributes, innerHTML.join( '' ) ); 614 628 return html.join( '' ); 615 629 };