Reputation: 59
I have added richtext in the custom widget but i dont know how to add aditinal plugins for richtext.
Please help how we can achieve the same. I am trying to add superscript/subscript in the richtext but not able to achieve the same.
Upvotes: 1
Views: 2627
Reputation: 81
Here is a code snippet that I've used to add this functionality to a richtext field.
<text
jcr:primaryType="cq:Widget"
hideLabel="{Boolean}true"
name="./text"
xtype="richtext">
<rtePlugins jcr:primaryType="nt:unstructured">
<subsuperscript
jcr:primaryType="nt:unstructured"
features="*"/>
</rtePlugins>
</text>
This snippet belongs in the dialog.xml of your custom component.
please have a look at the documentation for configuring the rich text editor for more information.
Upvotes: 1