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

				var _ = initPrivateObject.call( this, elementDefinition, { 'default': !!elementDefinition[ 'default' ] } );

				if ( elementDefinition.validate )
					this.validate = elementDefinition.validate;

				var innerHTML = function() {
						var myDefinition = CKEDITOR.tools.extend( {}, elementDefinition, {
							id: elementDefinition.id ? elementDefinition.id + '_checkbox' : CKEDITOR.tools.getNextId() + '_checkbox'
						}, true ),
							html = [];

						var labelId = CKEDITOR.tools.getNextId() + '_label';
						var attributes = { 'class': 'cke_dialog_ui_checkbox_input', type: 'checkbox', 'aria-labelledby': labelId };
						cleanInnerDefinition( myDefinition );
						if ( elementDefinition[ 'default' ] )
							attributes.checked = 'checked';

						if ( typeof myDefinition.inputStyle != 'undefined' )
							myDefinition.style = myDefinition.inputStyle;

						_.checkbox = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'input', null, attributes );
						html.push( ' <label id="', labelId, '" for="', attributes.id, '"' + ( elementDefinition.labelStyle ? ' style="' + elementDefinition.labelStyle + '"' : '' ) + '>', CKEDITOR.tools.htmlEncode( elementDefinition.label ), '</label>' );
						return html.join( '' );
					};

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

				var _ = initPrivateObject.call( this, elementDefinition, { 'default': !!elementDefinition[ 'default' ] } );

				if ( elementDefinition.validate )
					this.validate = elementDefinition.validate;

				var innerHTML = function() {
						var myDefinition = CKEDITOR.tools.extend( {}, elementDefinition, {
							id: elementDefinition.id ? elementDefinition.id + '_checkbox' : CKEDITOR.tools.getNextId() + '_checkbox'
						}, true ),
							html = [];

						var labelId = CKEDITOR.tools.getNextId() + '_label';
						var attributes = { 'class': 'cke_dialog_ui_checkbox_input', type: 'checkbox', 'aria-labelledby': labelId };
						cleanInnerDefinition( myDefinition );
						if ( elementDefinition[ 'default' ] )
							attributes.checked = 'checked';

						if ( typeof myDefinition.inputStyle != 'undefined' )
							myDefinition.style = myDefinition.inputStyle;

						_.checkbox = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'input', null, attributes );
						html.push( ' <label id="', labelId, '" for="', attributes.id, '"' + ( elementDefinition.labelStyle ? ' style="' + elementDefinition.labelStyle + '"' : '' ) + '>', CKEDITOR.tools.htmlEncode( elementDefinition.label ), '</label>' );
						return html.join( '' );
					};

				CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'span', null, null, innerHTML );
			}
function ( dialog , elementDefinition , htmlList ) { if ( arguments . length < 3 ) return ; var _ = initPrivateObject . call ( this , elementDefinition , { 'default' : ! ! elementDefinition [ 'default' ] } ) ; if ( elementDefinition . validate ) this . validate = elementDefinition . validate ; var innerHTML = function ( ) { var myDefinition = CKEDITOR . tools . extend ( { } , elementDefinition , { id : elementDefinition . id ? elementDefinition . id + '_checkbox' : CKEDITOR . tools . getNextId ( ) + '_checkbox' } , true ) , html = [ ] ; var labelId = CKEDITOR . tools . getNextId ( ) + '_label' ; var attributes = { 'class' : 'cke_dialog_ui_checkbox_input' , type : 'checkbox' , 'aria-labelledby' : labelId } ; cleanInnerDefinition ( myDefinition ) ; if ( elementDefinition [ 'default' ] ) attributes . checked = 'checked' ; if ( typeof myDefinition . inputStyle != 'undefined' ) myDefinition . style = myDefinition . inputStyle ; _ . checkbox = new CKEDITOR . ui . dialog . uiElement ( dialog , myDefinition , html , 'input' , null , attributes ) ; html . push ( ' <label id="' , labelId , '" for="' , attributes . id , '"' + ( elementDefinition . labelStyle ? ' style="' + elementDefinition . labelStyle + '"' : '' ) + '>' , CKEDITOR . tools . htmlEncode ( elementDefinition . label ) , '</label>' ) ; return html . join ( '' ) ; } ; CKEDITOR . ui . dialog . uiElement . call ( this , dialog , elementDefinition , htmlList , 'span' , null , null , innerHTML ) ; }
A single checkbox with a label on the right.

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

* `checked` (Optional) Whether the checkbox is checked
on instantiation. Defaults to `false`.
* `validate` (Optional) The validation function.
* `label` (Optional) The checkbox label.

@param {Array} htmlList List of HTML code to output to.
A single checkbox with a label on the right .