JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.0.1
[ckeditor.git] / _source / plugins / menu / plugin.js
index 790f16f..f65d5db 100644 (file)
@@ -232,6 +232,8 @@ CKEDITOR.tools.extend( CKEDITOR.editor.prototype,
                                        this.parent._.panel.showAsChild( panel, this.id, offsetParent, corner, offsetX, offsetY );\r
                                else\r
                                        panel.showBlock( this.id, offsetParent, corner, offsetX, offsetY );\r
+\r
+                               editor.fire( 'menuShow', [ panel ] );\r
                        },\r
 \r
                        hide : function()\r
@@ -328,7 +330,7 @@ CKEDITOR.menuItem = CKEDITOR.tools.createClass(
                                        ' onclick="CKEDITOR.tools.callFunction(', menu._.itemClickFn, ',', index, '); return false;"' +\r
                                        '>' +\r
                                                '<span class="cke_icon_wrapper"><span class="cke_icon"' +\r
-                                                       ( this.icon ? ' style="background-image:url(' + CKEDITOR.getUrl( this.icon ) + ');background-position:0 ' + offset + 'px;"></span>'\r
+                                                       ( this.icon ? ' style="background-image:url(' + CKEDITOR.getUrl( this.icon ) + ');background-position:0 ' + offset + 'px;"'\r
                                                        : '' ) +\r
                                                        '></span></span>' +\r
                                                '<span class="cke_label">' );\r