roojs-debug.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 31 Aug 2011 08:14:02 +0000 (16:14 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 31 Aug 2011 08:14:02 +0000 (16:14 +0800)
roojs-debug.js

index d69842f..362e388 100644 (file)
@@ -40550,10 +40550,12 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype,  {
         
         tn = sel.tagName.toUpperCase();
         
+        var lastSel = this.tb.selectedNode
+        
         this.tb.selectedNode = sel;
         
         // if current menu does not match..
-        if (this.tb.name != tn) {
+        if ((this.tb.name != tn) || (lastSel != this.tb.selectedNode)) {
                 
             this.tb.el.hide();
             ///console.log("show: " + tn);