roojs-all.js
[roojs1] / examples / form / htmledit.js
index 39e7ab2..6b7a5ab 100644 (file)
@@ -10,6 +10,7 @@
  */
  
 var mform;
+var editor;
 Roo.onReady(function(){
 
     Roo.QuickTips.init();
@@ -24,6 +25,7 @@ Roo.onReady(function(){
             {
                 xtype : 'HtmlEditor',
                 xns: Roo.form,
+                white : [ 'iframe' ],
                 toolbars : [    
                     {
                         xtype : 'ToolbarStandard',
@@ -31,7 +33,11 @@ Roo.onReady(function(){
                     },
                       {
                         xtype : 'ToolbarContext',
-                        xns : Roo.form.HtmlEditor
+                        xns : Roo.form.HtmlEditor,
+                        styles : {
+                            '*' : [ 'headline' ] ,
+                            'TD' : [ 'underline', 'double-underline' ]
+                        }
                     },
                     
                     
@@ -39,9 +45,10 @@ Roo.onReady(function(){
                 id:'bio',
                 name : 'bio',
                 fieldLabel:'Biography',
-                width:550,
-                height:200,
-                expandable : true
+                width:800,
+                height:400,
+                resizable: 's' /// where the handles should got..
+
             },
             {
                 xtype : 'Button',
@@ -59,5 +66,5 @@ Roo.onReady(function(){
     });
 
     mform.render('form-ct5');
+    editor = mform.findField('bio');
 });
\ No newline at end of file