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

index 54c027b..070d9a6 100644 (file)
@@ -467,6 +467,9 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Context, Roo.bootstrap.nav.Simpl
         }
         // based on attributes...
         this.active_group.forEach(function(e) {
+            if (typeof(e.attrname) == 'undefined') {
+                return;
+            }
              e.setValue(this.selectedNode.getAttribute(e.attrname));
         }, this);
         this.show();