examples/bootstrap/htmleditor.js
[roojs1] / examples / bootstrap / htmleditor.js
index e69de29..76a4c7a 100644 (file)
@@ -0,0 +1,68 @@
+var htmleditor;
+
+Roo.example = Roo.example || {};
+
+Roo.example.calendar = new Roo.XComponent({
+    part     :  ["layout","viewpanel"],
+    order    : '001-viewpanel',
+    region   : '',
+    parent   : '#bootstrap',
+    name     : "unnamed module",
+    disabled : false, 
+    permname : '', 
+    _tree : function()
+    {
+        
+        this.parent = {
+            el : new Roo.bootstrap.Body()
+        }
+        this.parent.el.layout = false;
+        this.parent.el.render(document.body);
+        
+        var _this = this;
+        var MODULE = this;
+        //var baseURL = '/web.eventmanager/admin.php';
+        
+        return {
+            xtype: 'Body',
+            xns: Roo.bootstrap,
+            items : [
+                 {
+                    xtype: 'Container',
+                    xns: Roo.bootstrap,
+                    style :  'margin-top:50px', 
+                    items : [
+                        {
+                            xtype: 'Row',
+                            xns: Roo.bootstrap,
+                            style :  'margin-top:50px',
+                            items : [
+                                { 
+                                    xtype: 'Form',
+                                    xns: Roo.bootstrap,
+                                    style :  'margin-top:50px',
+                                    items : [
+                                        {
+                                            xtype: 'HtmlEditor',
+                                            xns: Roo.bootstrap,
+                                            fieldLabel : "Editor",
+                                            labelAlign: 'top',
+                                            name : "editor",
+                                            listeners : {
+                                                render : function() {
+                                                    htmleditor = this;
+                                                }
+                                            }
+                                            
+                                        }
+                                    ]
+                                }
+                            ]
+                        }
+                    ]
+                 },
+                  
+            ]
+        };
+    }
+});
\ No newline at end of file