Roo/bootstrap/form/HtmlEditorToolbar/Context.js
authorAlan <alan@roojs.com>
Fri, 10 Feb 2023 07:06:54 +0000 (15:06 +0800)
committerAlan <alan@roojs.com>
Fri, 10 Feb 2023 07:06:54 +0000 (15:06 +0800)
Roo/bootstrap/form/HtmlEditorToolbar/Context.js

index c1c7fd8..6712840 100644 (file)
@@ -426,6 +426,7 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Context, Roo.bootstrap.nav.Simpl
         
         if (tn == 'BODY') {
             this.deleteBtn.hide();
+            this.hide();
         }
         
         
@@ -433,6 +434,7 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Context, Roo.bootstrap.nav.Simpl
             this.hideActiveGroup();
         }
         this.showActiveGroup(tn);
+        this.show();
         this.deleteBtn.show();
         
     },
@@ -478,7 +480,7 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Context, Roo.bootstrap.nav.Simpl
             }
              e.setValue(this.selectedNode.getAttribute(e.attrname));
         }, this);
-        this.show();
+        
             
     }