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                     new Roo.form.HtmlEditor.ToolbarStandard()
29                 ],
30                 id:'bio',
31                 name : 'bio',
32                 fieldLabel:'Biography',
33                 width:550,
34                 height:200
35             },
36             {
37                 xtype : 'Button',
38                 xns: Roo.form,
39                 text: 'Save',
40             },
41             {
42                 xtype : 'Button',
43                 xns: Roo.form,
44                 text: 'Cancel',
45             }
46             
47         ]
48         
49     });
50
51     mform.render('form-ct5');
52  
53 });