examples/form/htmledit.js
[roojs1] / examples / form / htmledit.js
1 /*
2  * Based on:
3  * Ext JS Library 1.1.1
4  * Copyright(c) 2006-2007, Ext JS, LLC.
5  *
6  * Originally Released Under LGPL - original licence link has changed is not relivant.
7  *
8  * Fork - LGPL
9  * <script type="text/javascript">
10  */
11  
12 var mform;
13 Roo.onReady(function(){
14
15     Roo.QuickTips.init();
16
17  
18     /*
19      * ================  Form 2  =======================
20      */
21     mform = new Roo.form.Form({
22         labelAlign: 'top',
23         items : [
24             {
25                 xtype : 'HtmlEditor',
26                 xns: Roo.form,
27                 toolbars : [    
28                     {
29                         xtype : 'ToolbarStandard',
30                         xns : Roo.form.HtmlEditor
31                     },
32                       {
33                         xtype : 'ToolbarContext',
34                         xns : Roo.form.HtmlEditor
35                     },
36                     
37                     
38                 ],
39                 id:'bio',
40                 name : 'bio',
41                 fieldLabel:'Biography',
42                 width:550,
43                 height:200,
44                 expandable : true
45             },
46             {
47                 xtype : 'Button',
48                 xns: Roo.form,
49                 text: 'Save'
50             },
51             {
52                 xtype : 'Button',
53                 xns: Roo.form,
54                 text: 'Cancel'
55             }
56             
57         ]
58         
59     });
60
61     mform.render('form-ct5');
62  
63 });