Ticket #4361: 4361.patch

File 4361.patch, 926 bytes (added by Garry Yao, 15 years ago)
  • _source/core/ui.js

     
    7575                if ( command )
    7676                        command.uiItems.push( result );
    7777
     78                // Replace ui item definitions with created ui instances(#4361).
     79                this._.items[ name ] = result;
     80
    7881                return result;
    7982        },
    8083
  • _source/plugins/toolbar/plugin.js

     
    201201                                                                        }
    202202
    203203                                                                        var itemObj = item.render( editor, output );
     204                                                                        // Associate toolbar item instance with UI object (#4361).
     205                                                                        item.toolbarItem = itemObj;
    204206                                                                        index = toolbarObj.items.push( itemObj ) - 1;
    205207
    206208                                                                        if ( index > 0 )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy