Expand my Community achievements bar.

SOLVED

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

Avatar

Level 9

as above.

 

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

2023-08-22 15_16_25.png

 

I want to add these 2 icons

2023-08-22 15_16_36.png

 

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>

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
2 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Level 4

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>