how to add link/unlink icon on my RTE component dialog? | Community
Skip to main content
jayv25585659
Level 8
August 23, 2023
Solved

how to add link/unlink icon on my RTE component dialog?

  • August 23, 2023
  • 2 replies
  • 659 views

as above.

 

This is what I can see right now in my component dialog.

 

I want to add these 2 icons

 

How do I do it? Thanks!

-------------------------------------------------------

this is a code snippet from my component dialog

 

<heading jcr:primaryType="nt:unstructured" sling:resourceType="cq/gui/components/authoring/dialog/richtext" fieldLabel="Heading" name="./heading" useFixedInlineToolbar="{Boolean}true"> <rtePlugins jcr:primaryType="nt:unstructured" sling:resourceSuperType="myhost/global/options/rte-inline-editor/rtePlugins"/> </heading>

 

 

these are the content of myhost/global/options/rte-inline-editor/rtePlugins

 

<rtePlugins jcr:primaryType="nt:unstructured"> <paraformat jcr:primaryType="nt:unstructured" features="*"> <formats jcr:primaryType="cq:WidgetCollection"> <p jcr:primaryType="nt:unstructured" description="Paragraph" tag="p"/> <h1 jcr:primaryType="nt:unstructured" description="Heading 1" tag="h1"/> <h2 jcr:primaryType="nt:unstructured" description="Heading 2" tag="h2"/> <h3 jcr:primaryType="nt:unstructured" description="Heading 3" tag="h3"/> <h4 jcr:primaryType="nt:unstructured" description="Heading 4" tag="h4"/> <h5 jcr:primaryType="nt:unstructured" description="Heading 5" tag="h5"/> <h6 jcr:primaryType="nt:unstructured" description="Heading 6" tag="h6"/> </formats> </paraformat> <edit jcr:primaryType="nt:unstructured" defaultPasteMode="plaintext" features="[cut,copy,paste-default,paste-plaintext]" stripHtmlTags="{Boolean}true"/> <keys jcr:primaryType="nt:unstructured" tabSize="2"/> <undo jcr:primaryType="nt:unstructured" features="*"/> </rtePlugins>

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Harwinder-singh
Community Advisor
Harwinder-singhCommunity AdvisorAccepted solution
Community Advisor
August 23, 2023
Amit-Tiwari
Level 4
August 23, 2023

Add this you will get the link

 

<links jcr:primaryType="nt:unstructured" features="*" protocols="[mailto:]"/>

 

here is a smaple for more plugin

<rtePlugins jcr:primaryType="nt:unstructured"> <findreplace jcr:primaryType="nt:unstructured" features="*"/> <format jcr:primaryType="nt:unstructured" features="[bold,italic]"/> <image jcr:primaryType="nt:unstructured" features="*"/> <justify jcr:primaryType="nt:unstructured" features="*"/> <lists jcr:primaryType="nt:unstructured" features="*"/> <subsuperscript jcr:primaryType="nt:unstructured" features="*"/> <links jcr:primaryType="nt:unstructured" features="*" protocols="[mailto:]"/> <spellcheck jcr:primaryType="nt:unstructured" features="*" invalidStyle="background-color: #ffdddd;"/> <undo jcr:primaryType="nt:unstructured" features="*"/> <edit jcr:primaryType="nt:unstructured" defaultPasteMode="plaintext" features="*"/> <table jcr:primaryType="nt:unstructured" features="*"> <defaultValues jcr:primaryType="nt:unstructured" header="top" tableTemplate="&lt;table width=&quot;100%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;1&quot; border=&quot;1&quot;>&lt;tbody>&lt;tr>&lt;th>&amp;nbsp;&lt;/th>&lt;th>&amp;nbsp;&lt;/th>&lt;th>&amp;nbsp;&lt;/th>&lt;th>&amp;nbsp;&lt;/th>&lt;/tr>&lt;tr>&lt;td>&amp;nbsp;&lt;/td>&lt;td>&amp;nbsp;&lt;/td>&lt;td>&amp;nbsp;&lt;/td>&lt;td>&amp;nbsp;&lt;/td>&lt;/tr>&lt;/tbody>&lt;/table>"/> </table> <paraformat jcr:primaryType="nt:unstructured" features="*"> <formats jcr:primaryType="nt:unstructured"> <p jcr:primaryType="nt:unstructured" description="Paragraph" tag="p"/> <h3 jcr:primaryType="nt:unstructured" description="Heading 3" tag="h3"/> <h4 jcr:primaryType="nt:unstructured" description="Heading 4" tag="h4"/> </formats> </paraformat> <misctools jcr:primaryType="nt:unstructured" features="[specialchars]"> <specialCharsConfig jcr:primaryType="nt:unstructured"> <chars jcr:primaryType="nt:unstructured"> <greek jcr:primaryType="nt:unstructured" rangeEnd="1023" rangeStart="880"/> <mathoperators jcr:primaryType="nt:unstructured" rangeEnd="8959" rangeStart="8704"/> <mathletterlike jcr:primaryType="nt:unstructured" rangeEnd="8527" rangeStart="8488"/> </chars> </specialCharsConfig> </misctools> <styles jcr:primaryType="nt:unstructured" features="*"> <styles jcr:primaryType="nt:unstructured"> <address jcr:primaryType="nt:unstructured" cssName="address" text="address"/> <footnote jcr:primaryType="nt:unstructured" cssName="footnote" text="footnote"/> </styles> </styles> </rtePlugins>