Ticket #3876: 3876.patch
File 3876.patch, 2.0 KB (added by , 16 years ago) |
---|
-
_source/plugins/dialogui/plugin.js
332 332 if ( elementDefinition[ 'default' ] ) 333 333 attributes.checked = 'checked'; 334 334 _.checkbox = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'input', null, attributes ); 335 html.push( ' ', CKEDITOR.tools.htmlEncode( elementDefinition.label ) ); 335 html.push( '<label for="', attributes.id, '">', 336 CKEDITOR.tools.htmlEncode( elementDefinition.label ), 337 '</label>' ); 336 338 return html.join( '' ); 337 339 }; 338 340 339 CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, ' label', null, null, innerHTML );341 CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'span', null, null, innerHTML ); 340 342 }, 341 343 342 344 /** … … 393 395 id : null, 394 396 title : title 395 397 }, true ), 396 inputHtml = [],397 398 inputAttributes = 398 399 { 399 400 type : 'radio', 400 401 'class' : 'cke_dialog_ui_radio_input', 401 402 name : commonName, 402 403 value : value 403 }; 404 }, 405 inputHtml = []; 404 406 if ( me._['default'] == value ) 405 407 inputAttributes.checked = 'checked'; 406 408 cleanInnerDefinition( inputDefinition ); 407 409 cleanInnerDefinition( labelDefinition ); 408 410 children.push( new CKEDITOR.ui.dialog.uiElement( dialog, inputDefinition, inputHtml, 'input', null, inputAttributes ) ); 409 new CKEDITOR.ui.dialog.uiElement( dialog, labelDefinition, inputHtmlList, 'label', null, null, 410 inputHtml.join( '' ) + ' ' + item[0] ); 411 new CKEDITOR.ui.dialog.uiElement( dialog, labelDefinition, inputHtml, 'label', null, { 'for' : inputAttributes.id }, 412 item[0] ); 413 inputHtmlList.push( inputHtml.join( '' ) ); 411 414 } 412 415 new CKEDITOR.ui.dialog.hbox( dialog, [], inputHtmlList, html ); 413 416 return html.join( '' );