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

index 90ca126..5b3cda2 100644 (file)
@@ -443,6 +443,10 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Context, Roo.bootstrap.nav.Simpl
     },
     showActiveGroup : function(tn)
     {
+        if (typeof(this.button_groups[tn]) == 'undefined') {
+            return;
+        }
+        
         this.active_group = this.button_groups[tn];
         
         // update attributes