Add new style to list in rtePlugings

Add the list of styles as given below and then in your css file add the check mark image in css rule corresponding to the class name e.g 
.className1{
background:url(check.png) 10px 0px 
}
      jcr:primaryType="cq:Widget"
                    fieldLabel="Text"
                    height="200"
                    name="./text"
                    xtype="richtext">
                    <rtePlugins jcr:primaryType="nt:unstructured">
                        <styles
                            jcr:primaryType="nt:unstructured"
                            features="*">
                            <styles jcr:primaryType="cq:WidgetCollection">
                                <className1
                                    jcr:primaryType="nt:unstructured"
                                    cssName="className1"
                                    text="className1"/>
                                <className2
                                    jcr:primaryType="nt:unstructured"
                                    cssName="className2"
                                    text="className2"/>
                            </styles>
                        </styles>
                    </rtePlugins>
                </text>

Comments

Popular posts from this blog

AEM 6.3 Migration -osgi bundle whitelist error-osgi-service is NOT whitelisted to use SlingRepository.loginAdministrative