Expand my Community achievements bar.

Customizing Text Component RTE Plugin Table dialog

Avatar

Level 2

I'm looking to customize the sub sub menu of tables in the RTE plugin.
This menu specifically... in the text component, click in the table and then click the table sub menu icon
Screenshot 2022-09-14 111053.png

 

the tool bar will change to just table add/remove items and click this icon that shows this sub sub menu
Screenshot 2022-09-14 111129.png

 

I found a tutorial that showed me how to update _cq_editConfix.xml with the following:

<cq:inplaceEditing
        jcr:primaryType="cq:InplaceEditingConfig"
        active="{Boolean}true"
        configPath="inplaceEditingConfig"
        editorType="text">
        <inplaceEditingConfig jcr:primaryType="nt:unstructured">
            <rtePlugins jcr:primaryType="nt:unstructured">
                <tracklinks
                    jcr:primaryType="nt:unstructured"
                    features="*"/>
                <table
                    jcr:primaryType="nt:unstructured"
                    features="*">

                    <tableStyles jcr:primaryType="cq:WidgetCollection">
                        <table1
                            jcr:primaryType="nt:unstructured"
                            cssName="myClass"
                            text="Style"/>
                        <table2
                            jcr:primaryType="nt:unstructured"
                            cssName="myClassTwo"
                            text="New Style"/>
                    </tableStyles>

                    <hiddenHeaderConfig
                        jcr:primaryType="nt:unstructured"
                        hiddenHeaderClassName="cq-wcm-foundation-aria-visuallyhidden"/>
                </table>
 
But this change doesn't show anything new in the dialog.  Any help would be appreciated.
4 Replies

Avatar

Level 2

This was interesting but our environment is set up differently... for example, 

/libs/sling/xss/config.xml

 in the demo, was in 

lib/jcr_root/libs/cq/xssprotection/config.xml. 

The other thing that wasn't mentioned was even if I change the file in CRXDE Lite, what do I build?  What files do i copy over to our environment?  There isn't a libs directory (outside of CRXDE lite)...I can follow these instructions but they don't match up to my environment so I think something is missing.

Avatar

Community Advisor

Hi,

The article was for 6.4. Which AEM version are you using?



Arun Patidar

Avatar

Level 1

Hi @arunpatidar Can you please help in the same requirement for AEM as cloud ? I have referenced above link but I could only add a field during table creation and that is not working during table edit options. Thanks