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