Index: /CKEditor/branches/versions/3.5.x/_source/plugins/adobeair/plugin.js
===================================================================
--- /CKEditor/branches/versions/3.5.x/_source/plugins/adobeair/plugin.js	(revision 6210)
+++ /CKEditor/branches/versions/3.5.x/_source/plugins/adobeair/plugin.js	(revision 6211)
@@ -28,10 +28,11 @@
 					(function( eventName )
 					{
+						var inlineEventHandler = node.getAttribute( 'on' + eventName );
 						if ( node.hasAttribute( 'on' + eventName ) )
 						{
+							node.removeAttribute( 'on' + eventName );
 							node.on( eventName, function( evt )
 							{
-								var inlineEventHandler = node.getAttribute( 'on' + eventName ),
-									callFunc = /(return\s*)?CKEDITOR\.tools\.callFunction\(([^)]+)\)/.exec( inlineEventHandler ),
+								var callFunc = /(return\s*)?CKEDITOR\.tools\.callFunction\(([^)]+)\)/.exec( inlineEventHandler ),
 									hasReturn = callFunc && callFunc[ 1 ],
 									callFuncArgs = callFunc &&  callFunc[ 2 ].split( ',' ),
Index: /CKEditor/branches/versions/3.5.x/_source/plugins/dialog/plugin.js
===================================================================
--- /CKEditor/branches/versions/3.5.x/_source/plugins/dialog/plugin.js	(revision 6210)
+++ /CKEditor/branches/versions/3.5.x/_source/plugins/dialog/plugin.js	(revision 6211)
@@ -726,5 +726,4 @@
 				element.setStyle( 'display', 'block' );
 
-			CKEDITOR.ui.fire( 'ready', this );
 			// FIREFOX BUG: Fix vanishing caret for Firefox 2 or Gecko 1.8.
 			if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 )
@@ -793,4 +792,6 @@
 					// Execute onLoad for the first show.
 					this.fireOnce( 'load', {} );
+					CKEDITOR.ui.fire( 'ready', this );
+
 					this.fire( 'show', {} );
 					this._.editor.fire( 'dialogShow', this );
