public/ckeditor/4.4dev/plugins/dialogui/plugin.js
function( definition ) {
				var regex = /^on([A-Z]\w+)/,
					match;

				var registerDomEvent = function( uiElement, dialog, eventName, func ) {
						uiElement.on( 'formLoaded', function() {
							uiElement.getInputElement().on( eventName, func, uiElement );
						} );
					};

				for ( var i in definition ) {
					if ( !( match = i.match( regex ) ) )
						continue;

					if ( this.eventProcessors[ i ] )
						this.eventProcessors[ i ].call( this, this._.dialog, definition[ i ] );
					else
						registerDomEvent( this, this._.dialog, match[ 1 ].toLowerCase(), definition[ i ] );
				}

				return this;
			}
function( definition ) {
				var regex = /^on([A-Z]\w+)/,
					match;

				var registerDomEvent = function( uiElement, dialog, eventName, func ) {
						uiElement.on( 'formLoaded', function() {
							uiElement.getInputElement().on( eventName, func, uiElement );
						} );
					};

				for ( var i in definition ) {
					if ( !( match = i.match( regex ) ) )
						continue;

					if ( this.eventProcessors[ i ] )
						this.eventProcessors[ i ].call( this, this._.dialog, definition[ i ] );
					else
						registerDomEvent( this, this._.dialog, match[ 1 ].toLowerCase(), definition[ i ] );
				}

				return this;
			}
function ( definition ) { var regex = / ^on([A-Z]\w+) / , match ; var registerDomEvent = function ( uiElement , dialog , eventName , func ) { uiElement . on ( 'formLoaded' , function ( ) { uiElement . getInputElement ( ) . on ( eventName , func , uiElement ) ; } ) ; } ; for ( var i in definition ) { if ( ! ( match = i . match ( regex ) ) ) continue ; if ( this . eventProcessors [ i ] ) this . eventProcessors [ i ] . call ( this , this . _ . dialog , definition [ i ] ) ; else registerDomEvent ( this , this . _ . dialog , match [ 1 ] . toLowerCase ( ) , definition [ i ] ) ; } return this ; }
The events must be applied to the inner input element, and
this must be done when the iframe and form have been loaded.
The events must be applied to the inner input element and this must be done when the iframe and form have been loaded .