3 Replies Latest reply on Nov 18, 2012 4:26 PM by Sham HC

    adding rtePlugin for custom widget

    mp05 Level 1

      Hi

      We have a custom widget with multifield Component that includes OOB RichText component.  We need to support foreign-language characters on that RichText

       

      this.DescriptionField= new CQ.form.RichText({

              width: '420px',

              "stateful": false

          });

       

      How can we add rtePlugin to custom widget using RichText?

       

      Thanks!

        • 1. Re: adding rtePlugin for custom widget
          Sham HC Level 7

          Following [1] and I guess for table plugin it will be like

           

          this.DescriptionField= new CQ.form.RichText({

                  width: '420px',

                  "stateful": false,

                  "rtePlugins": {

                          "table": {

                              "features": "*",

                              "defaultValues": {

                                  "width": "100%"

                              },

                              "editMode": CQ.form.rte.plugins.TablePlugin.EDITMODE_TABLE

                          }

                      }

              });

           

           

          [1]  http://dev.day.com/docs/en/cq/current/widgets-api/index.html?class=CQ.form.RichText

          1 person found this helpful
          • 2. Re: adding rtePlugin for custom widget
            mp05 Level 1

            Thanks Sham. We have another custom component with dialog like below using OOB xtype 'textfield'. How can we have this component use plugins for textfield to support international characters?

             

                        <tab1

                            jcr:primaryType="cq:Panel"

                            title="Tab 1">

                            <items jcr:primaryType="cq:WidgetCollection">

                                <headerTextLeft

                                    jcr:primaryType="cq:Widget"

                                    fieldLabel="Header Text Left"

                                    name="./headerTextLeft"

                                    xtype="textfield"/>

                                <headerTextRight

                                    jcr:primaryType="cq:Widget"

                                    fieldLabel="Header Text Right"

                                    name="./headerTextRight"

                                    xtype="textfield"/>

                           </items>

                        </tab1>

            • 3. Re: adding rtePlugin for custom widget
              Sham HC Level 7

              If you have functionality that will provide as per your custom international characters support for the textfield component. You can include using plugins refer http://dev.day.com/docs/en/cq/current/widgets-api/index.html?class=CQ.Ext.form.TextField