examples/bootstrap/Editor.js
[roojs1] / examples / bootstrap / Editor.js
index 01a2ead..c9e9685 100644 (file)
@@ -12,17 +12,10 @@ Roo.example.Editor = new Roo.XComponent({
     permname : '', 
     _tree : function()
     {
-        
-        this.parent = {
-            el : new Roo.bootstrap.Body()
-        }
-        this.parent.el.layout = false;
-        this.parent.el.render(document.body);
-        
+         
         var _this = this;
         var MODULE = this;
-        var baseURL = '/web.campaign/index.local.php';
-        
+         
         return {
             xtype: 'Body',
             xns: Roo.bootstrap,
@@ -52,9 +45,9 @@ Roo.example.Editor = new Roo.XComponent({
                                         {
                                             xtype : 'Panel',
                                             xns : Roo.bootstrap.editor,
+                                            name : 'thanks-email',
                                             width : 1000,
-                                            height : 1000,
-                                            name : 'email-inline-editor',
+                                            height : 1500,
                                             stylesheets : (function(){
                                                 var css = [];
                                                 
@@ -64,21 +57,12 @@ Roo.example.Editor = new Roo.XComponent({
                                                 
                                                 return css;
                                             })(),
-                                            items : [
+                                            listeners : {
+                                                render : function (_self)
                                                 {
-                                                    xtype : 'TextBlock',
-                                                    xns : Roo.bootstrap.editor,
-                                                    name : 'block1',
-                                                    height : 300
-                                                },
-                                                {
-                                                    xtype : 'TextBlock',
-                                                    xns : Roo.bootstrap.editor,
-                                                    name : 'block2',
-                                                    height : 300,
-                                                    style : 'margin-top:20px;'
+                                                    _this.previewPanel = _self;
                                                 }
-                                            ]
+                                            }
                                         }
                                         
                                     ]