Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to add dymamicly edit option on parsys right click in touch mode.

Shehjadkhan
Level 4
Level 4

Hi All,

As part of some custom implementation.

I have overlayed these 2 below file under this folder /libs/cq/ui/widgets/source/widgets/wcm

EditBase.Actions.js

EditBase.js

to introduce one new option when you right click on parsys. (Please see at attached image)

If I have to implement something similar to touch UI which are the files I have to modify. Also if you have done something similar to this let us know what code flow would be.

Thanks,

Shehjad

1 Reply
kautuk_sahni
Community Manager
Community Manager

Make sure you have editorType="text" property added to the inlineEditing node.

Refer to xml below:

<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    cq:actions="[text:Text/Image,-,EDIT,DELETE]"
    cq:dialogMode="floating"
    cq:layout="editbar"
    jcr:primaryType="cq:EditConfig">
    <cq:inplaceEditing
        jcr:primaryType="cq:InplaceEditingConfig"
        active="{Boolean}true"
        editorType="text">
        <config jcr:primaryType="nt:unstructured">
            <rtePlugins jcr:primaryType="nt:unstructured">
                <subsuperscript
                    jcr:primaryType="nt:unstructured"
                    features="*"/>
            </rtePlugins>
        </config>
    </cq:inplaceEditing>
</jcr:root>