1 Reply Latest reply on Feb 8, 2013 12:41 AM by rajavijaysingh

    How to add rtePlugin using CQ.Util.build

    rajavijaysingh Level 1

      Hi,

      I am trying to add the spellcheck and image plugin of the rich text while using CQ.Util.Build

       

      CQ.Util.build({

                      "xtype":"panel",

                      "border":false,

                      "cls":"entry-fields-wrap",

                      "layout":"form",

                      "defaults": {

                          "hideLabel":true

                      },

                      "items":[{ "xtype":"richtext",

                          "id":"<%= id %>_text",

                          "name":"text",

                          "rtePlugins":[{"spellcheck":{"features":"*"}},{"image":{"features":"*"}}],

                          "width":"90%"

                      },{

                          "xtype":"button",

                          "text":"Submit Entry",

                          "handler": function() {

                              CQ.collab.blog.Util.validateEntryForm("<%= id %>");

                          }

                      }],

                      "renderTo":"<%= id %>_fields_wrap"

                  });