Ticket #2802: 2802.patch
File 2802.patch, 1.4 KB (added by , 15 years ago) |
---|
-
_source/plugins/dialog/plugin.js
69 69 return; 70 70 } 71 71 definition = new CKEDITOR.dialog._.definitionObject( this, definition ); 72 definition = CKEDITOR.fire( 'dialogDefinition', { name : dialogName, definition : definition }, editor ).definition;72 definition = editor.fire( 'dialogDefinition', { name : dialogName, definition : definition }, editor ).definition; 73 73 74 74 // Initialize some basic parameters. 75 75 CKEDITOR.tools.extend( ( this._ || ( this._ = {} ) ), { … … 1243 1243 1244 1244 currentZIndex : null, 1245 1245 1246 storedDialogs : {},1247 1248 1246 margins : [0, 0, 0, 0], 1249 1247 1250 1248 /** … … 2129 2127 // If the dialogDefinition is already loaded, open it immediately. 2130 2128 if ( typeof( CKEDITOR.dialog._.dialogDefinitions[dialogName] ) == 'function' ) 2131 2129 { 2132 var dialog = CKEDITOR.dialog._.storedDialogs[dialogName] || new CKEDITOR.dialog( this, dialogName ); 2133 CKEDITOR.dialog._.storedDialogs[dialogName] = dialog; 2130 if ( !this._.storedDialogs ) 2131 this._.storedDialogs = {}; 2132 2133 var dialog = this._.storedDialogs[dialogName] || new CKEDITOR.dialog( this, dialogName ); 2134 this._.storedDialogs[dialogName] = dialog; 2134 2135 dialog.show(); 2135 2136 return dialog; 2136 2137 }