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:800,
43                 height:400,
44                 resizable: 's' /// where the handles should got..
45
46             },
47             {
48                 xtype : 'Button',
49                 xns: Roo.form,
50                 text: 'Save'
51             },
52             {
53                 xtype : 'Button',
54                 xns: Roo.form,
55                 text: 'Cancel'
56             }
57             
58         ]
59         
60     });
61
62     mform.render('form-ct5');
63  
64 });