Ticket #2802: 2802.patch

File 2802.patch, 1.4 KB (added by Martin Kou, 15 years ago)
  • _source/plugins/dialog/plugin.js

     
    6969                return;
    7070        }
    7171        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;
    7373
    7474        // Initialize some basic parameters.
    7575        CKEDITOR.tools.extend( ( this._ || ( this._ = {} ) ), {
     
    12431243
    12441244        currentZIndex : null,
    12451245
    1246         storedDialogs : {},
    1247 
    12481246        margins : [0, 0, 0, 0],
    12491247
    12501248        /**
     
    21292127                        // If the dialogDefinition is already loaded, open it immediately.
    21302128                        if ( typeof( CKEDITOR.dialog._.dialogDefinitions[dialogName] ) == 'function' )
    21312129                        {
    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;
    21342135                                dialog.show();
    21352136                                return dialog;
    21362137                        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy