public/ckeditor/4.4dev/plugins/dialogui/plugin.js
function( dialog, elementDefinition, htmlList, contentHtml ) {
				if ( arguments.length < 4 )
					return;

				var _ = initPrivateObject.call( this, elementDefinition );
				_.labelId = CKEDITOR.tools.getNextId() + '_label';
				var children = this._.children = [];

				var innerHTML = function() {
						var html = [],
							requiredClass = elementDefinition.required ? ' cke_required' : '';
						if ( elementDefinition.labelLayout != 'horizontal' ) {
							html.push(
								'<label class="cke_dialog_ui_labeled_label' + requiredClass + '" ', ' id="' + _.labelId + '"',
									( _.inputId ? ' for="' + _.inputId + '"' : '' ),
									( elementDefinition.labelStyle ? ' style="' + elementDefinition.labelStyle + '"' : '' ) + '>',
									elementDefinition.label,
								'</label>',
								'<div class="cke_dialog_ui_labeled_content"',
									( elementDefinition.controlStyle ? ' style="' + elementDefinition.controlStyle + '"' : '' ),
									' role="presentation">',
									contentHtml.call( this, dialog, elementDefinition ),
								'</div>' );
						} else {
							var hboxDefinition = {
								type: 'hbox',
								widths: elementDefinition.widths,
								padding: 0,
								children: [
									{
									type: 'html',
									html: '<label class="cke_dialog_ui_labeled_label' + requiredClass + '"' +
										' id="' + _.labelId + '"' +
										' for="' + _.inputId + '"' +
										( elementDefinition.labelStyle ? ' style="' + elementDefinition.labelStyle + '"' : '' ) + '>' +
											CKEDITOR.tools.htmlEncode( elementDefinition.label ) +
										'</span>'
								},
									{
									type: 'html',
									html: '<span class="cke_dialog_ui_labeled_content"' + ( elementDefinition.controlStyle ? ' style="' + elementDefinition.controlStyle + '"' : '' ) + '>' +
										contentHtml.call( this, dialog, elementDefinition ) +
										'</span>'
								}
								]
							};
							CKEDITOR.dialog._.uiElementBuilders.hbox.build( dialog, hboxDefinition, html );
						}
						return html.join( '' );
					};
				var attributes = { role: elementDefinition.role || 'presentation' };

				if ( elementDefinition.includeLabel )
					attributes[ 'aria-labelledby' ] = _.labelId;

				CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'div', null, attributes, innerHTML );
			}
function( dialog, elementDefinition, htmlList, contentHtml ) {
				if ( arguments.length < 4 )
					return;

				var _ = initPrivateObject.call( this, elementDefinition );
				_.labelId = CKEDITOR.tools.getNextId() + '_label';
				var children = this._.children = [];

				var innerHTML = function() {
						var html = [],
							requiredClass = elementDefinition.required ? ' cke_required' : '';
						if ( elementDefinition.labelLayout != 'horizontal' ) {
							html.push(
								'<label class="cke_dialog_ui_labeled_label' + requiredClass + '" ', ' id="' + _.labelId + '"',
									( _.inputId ? ' for="' + _.inputId + '"' : '' ),
									( elementDefinition.labelStyle ? ' style="' + elementDefinition.labelStyle + '"' : '' ) + '>',
									elementDefinition.label,
								'</label>',
								'<div class="cke_dialog_ui_labeled_content"',
									( elementDefinition.controlStyle ? ' style="' + elementDefinition.controlStyle + '"' : '' ),
									' role="presentation">',
									contentHtml.call( this, dialog, elementDefinition ),
								'</div>' );
						} else {
							var hboxDefinition = {
								type: 'hbox',
								widths: elementDefinition.widths,
								padding: 0,
								children: [
									{
									type: 'html',
									html: '<label class="cke_dialog_ui_labeled_label' + requiredClass + '"' +
										' id="' + _.labelId + '"' +
										' for="' + _.inputId + '"' +
										( elementDefinition.labelStyle ? ' style="' + elementDefinition.labelStyle + '"' : '' ) + '>' +
											CKEDITOR.tools.htmlEncode( elementDefinition.label ) +
										'</span>'
								},
									{
									type: 'html',
									html: '<span class="cke_dialog_ui_labeled_content"' + ( elementDefinition.controlStyle ? ' style="' + elementDefinition.controlStyle + '"' : '' ) + '>' +
										contentHtml.call( this, dialog, elementDefinition ) +
										'</span>'
								}
								]
							};
							CKEDITOR.dialog._.uiElementBuilders.hbox.build( dialog, hboxDefinition, html );
						}
						return html.join( '' );
					};
				var attributes = { role: elementDefinition.role || 'presentation' };

				if ( elementDefinition.includeLabel )
					attributes[ 'aria-labelledby' ] = _.labelId;

				CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'div', null, attributes, innerHTML );
			}
function ( dialog , elementDefinition , htmlList , contentHtml ) { if ( arguments . length < 4 ) return ; var _ = initPrivateObject . call ( this , elementDefinition ) ; _ . labelId = CKEDITOR . tools . getNextId ( ) + '_label' ; var children = this . _ . children = [ ] ; var innerHTML = function ( ) { var html = [ ] , requiredClass = elementDefinition . required ? ' cke_required' : '' ; if ( elementDefinition . labelLayout != 'horizontal' ) { html . push ( '<label class="cke_dialog_ui_labeled_label' + requiredClass + '" ' , ' id="' + _ . labelId + '"' , ( _ . inputId ? ' for="' + _ . inputId + '"' : '' ) , ( elementDefinition . labelStyle ? ' style="' + elementDefinition . labelStyle + '"' : '' ) + '>' , elementDefinition . label , '</label>' , '<div class="cke_dialog_ui_labeled_content"' , ( elementDefinition . controlStyle ? ' style="' + elementDefinition . controlStyle + '"' : '' ) , ' role="presentation">' , contentHtml . call ( this , dialog , elementDefinition ) , '</div>' ) ; } else { var hboxDefinition = { type : 'hbox' , widths : elementDefinition . widths , padding : 0 , children : [ { type : 'html' , html : '<label class="cke_dialog_ui_labeled_label' + requiredClass + '"' + ' id="' + _ . labelId + '"' + ' for="' + _ . inputId + '"' + ( elementDefinition . labelStyle ? ' style="' + elementDefinition . labelStyle + '"' : '' ) + '>' + CKEDITOR . tools . htmlEncode ( elementDefinition . label ) + '</span>' } , { type : 'html' , html : '<span class="cke_dialog_ui_labeled_content"' + ( elementDefinition . controlStyle ? ' style="' + elementDefinition . controlStyle + '"' : '' ) + '>' + contentHtml . call ( this , dialog , elementDefinition ) + '</span>' } ] } ; CKEDITOR . dialog . _ . uiElementBuilders . hbox . build ( dialog , hboxDefinition , html ) ; } return html . join ( '' ) ; } ; var attributes = { role : elementDefinition . role || 'presentation' } ; if ( elementDefinition . includeLabel ) attributes [ 'aria-labelledby' ] = _ . labelId ; CKEDITOR . ui . dialog . uiElement . call ( this , dialog , elementDefinition , htmlList , 'div' , null , attributes , innerHTML ) ; }
Base class for all dialog window elements with a textual label on the left.

@class CKEDITOR.ui.dialog.labeledElement
@extends CKEDITOR.ui.dialog.uiElement
@constructor Creates a labeledElement class instance.
@param {CKEDITOR.dialog} dialog Parent dialog window object.
@param {CKEDITOR.dialog.definition.uiElement} elementDefinition
The element definition. Accepted fields:

* `label` (Required) The label string.
* `labelLayout` (Optional) Put 'horizontal' here if the
label element is to be laid out horizontally. Otherwise a vertical
layout will be used.
* `widths` (Optional) This applies only to horizontal
layouts &mdash; a two-element array of lengths to specify the widths of the
label and the content element.
* `role` (Optional) Value for the `role` attribute.
* `includeLabel` (Optional) If set to `true`, the `aria-labelledby` attribute
will be included.

@param {Array} htmlList The list of HTML code to output to.
@param {Function} contentHtml
A function returning the HTML code string to be added inside the content
cell.
Base class for all dialog window elements with a textual label on the left .