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

index 3462b06..dbcdeda 100644 (file)
@@ -450,6 +450,10 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Context, Roo.bootstrap.nav.Simpl
         
         this.active_group = this.button_groups[tn];
         
+         this.active_group.forEach(function(e) {
+            e.hide();
+        });
+        
         // update attributes
         if (this.selectedNode.hasAttribute('data-block') ) {
             var block = Roo.htmleditor.Block.factory(this.selectedNode);