1 Reply Latest reply on Feb 14, 2013 3:27 AM by splram

    Creating dialog using CQ.Util.build

    Veena_07 Level 3

      Hi

       

             After referring Entryform.jsp in blog component in libs , i tried a code bit

       

      <div id= 'new'>

       

          </div>

          <script type="text/javascript">

       

       

          CQ.Util.build({

              "xtype":"panel",

              "border":false,

              "layout":"form",

              "defaults": {

                  "hideLabel":true

              },

              "items":[{

                  "xtype":"textfield",

                  "defaultValue":"Entry title",

                  "fieldLabel":"title",

                  "name":"title"

              }

              ,{

                  "xtype":"richtext",

                  "name":"text",

                  "width":"100%",

                  "enableSourceEdit":true,

                      "fieldLabel":"richtext"

              }

          ],

          "renderTo":"new"

          });

       

       

          </script>

       

       

      This is giving me dialog in my page like

       

       

      util.jpg

       

      the richtext box is getting rendered like above .......

       

      How can i get properly like

       

      util.jpg

       

       

      Thanks

       

      veena