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

index bb0d2ac..fa1ce58 100644 (file)
@@ -242,6 +242,7 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Context, Roo.bootstrap.nav.Simpl
                     xns : Roo.bootstrap.form,
                     cls : 'roo-htmleditor-context-entry-' + key + '-' + item.name,
                     name: '-roo-edit-' + item.name,
+                    attrname : item.name,
                     width: item.width,
                     //allowBlank:true,
                     value: '',
@@ -466,7 +467,7 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Context, Roo.bootstrap.nav.Simpl
         }
         // based on attributes...
         this.active_group.forEach(function(e) {
-             e.setValue(this.selectedNode.getAttribute(e.attrname));
+             e.setValue(this.selectedNode.getAttribute(e.name));
         }, this);
         this.show();