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 var editor
14 Roo.onReady(function(){
15
16     Roo.QuickTips.init();
17
18  
19     /*
20      * ================  Form 2  =======================
21      */
22     mform = new Roo.form.Form({
23         labelAlign: 'top',
24         items : [
25             {
26                 xtype : 'HtmlEditor',
27                 xns: Roo.form,
28                 toolbars : [    
29                     {
30                         xtype : 'ToolbarStandard',
31                         xns : Roo.form.HtmlEditor
32                     },
33                       {
34                         xtype : 'ToolbarContext',
35                         xns : Roo.form.HtmlEditor
36                     },
37                     
38                     
39                 ],
40                 id:'bio',
41                 name : 'bio',
42                 fieldLabel:'Biography',
43                 width:800,
44                 height:400,
45                 resizable: 's' /// where the handles should got..
46
47             },
48             {
49                 xtype : 'Button',
50                 xns: Roo.form,
51                 text: 'Save'
52             },
53             {
54                 xtype : 'Button',
55                 xns: Roo.form,
56                 text: 'Cancel'
57             }
58             
59         ]
60         
61     });
62
63     mform.render('form-ct5');
64     editor = mform.findField('bio');
65 });