Roo/form/HtmlEditor/ToolbarStandard.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 29 Aug 2011 07:12:01 +0000 (15:12 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 29 Aug 2011 07:12:01 +0000 (15:12 +0800)
Roo/form/HtmlEditor/ToolbarStandard.js

index 390f4c3..4e15165 100644 (file)
@@ -337,9 +337,19 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
                 text: "Other;",
                 cls: 'x-edit-none',
                 menu : {
-                    items : this.specialElements
+                    items : []
                 }
             };
+            for (var i =0; i < this.specialElements.length; i++) {
+                semenu.menu.items.push(
+                    Roo.apply({ 
+                        handler: function(a,b) {
+                            editor.insertAtCursor(this.ihtml);
+                        }
+                    }, this.specialElements[i])
+                );
+                    
+            }
             
             tb.add(semenu);