view source
[roojs1] / examples / bootstrap / htmleditor.js
1 var htmleditor;
2
3 Roo.example = Roo.example || {};
4
5 Roo.example.calendar = new Roo.XComponent({
6     part     :  ["layout","viewpanel"],
7     order    : '001-viewpanel',
8     region   : '',
9     parent   : '#bootstrap',
10     name     : "unnamed module",
11     disabled : false, 
12     permname : '', 
13     _tree : function()
14     {
15         
16         this.parent = {
17             el : new Roo.bootstrap.Body()
18         }
19         this.parent.el.layout = false;
20         this.parent.el.render(document.body);
21         
22         var _this = this;
23         var MODULE = this;
24         //var baseURL = '/web.eventmanager/admin.php';
25         
26         return {
27             xtype: 'Body',
28             xns: Roo.bootstrap,
29             items : [
30                  {
31                     xtype: 'Container',
32                     xns: Roo.bootstrap,
33                     style :  'margin-top:50px', 
34                     items : [
35                         {
36                             xtype: 'Row',
37                             xns: Roo.bootstrap,
38                             style :  'margin-top:50px',
39                             items : [
40                                 { 
41                                     xtype: 'Form',
42                                     xns: Roo.bootstrap,
43                                     style :  'margin-top:50px',
44                                     items : [
45                                         {
46                                             xtype: 'HtmlEditor',
47                                             xns: Roo.bootstrap,
48                                             fieldLabel : "Editor",
49                                             labelAlign: 'top',
50                                             name : "editor",
51                                             listeners : {
52                                                 render : function() {
53                                                     htmleditor = this;
54                                                 }
55                                             }
56                                             
57                                         }
58                                     ]
59                                 }
60                             ]
61                         }
62                     ]
63                  },
64                   
65             ]
66         };
67     }
68 });