Skip to content

Commit

Permalink
override the inplace editing Edit element query.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnurudraS committed Sep 4, 2023
1 parent b163166 commit 8722c84
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:granite="http://www.adobe.com/jcr/granite/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:EditConfig"
cq:actions="[edit,-,copymove,delete,-,insert,-]"
cq:dialogMode="floating"
cq:layout="editbar"
cq:disableTargeting="{Boolean}true">
<cq:actionConfigs jcr:primaryType="nt:unstructured">
<editexpression
jcr:primaryType="nt:unstructured"
handler="CQ.FormsCoreComponents.editorhooks.openRuleEditor"
order="after CONFIGURE"
icon="bidRule"
text="Edit Rules"/>
<replace
jcr:primaryType="nt:unstructured"
condition="CQ.FormsCoreComponents.editorhooks.isReplaceable"
handler="CQ.FormsCoreComponents.editorhooks.replace"
icon="shuffle"
text="Replace"/>
</cq:actionConfigs>
<cq:inplaceEditing
jcr:primaryType="cq:InplaceEditingConfig"
active="{Boolean}true"
configPath="inplaceEditingConfig"
editorType="plaintext">
<inplaceEditingConfig
jcr:primaryType="nt:unstructured"
editElementQuery="span:first"
textPropertyName="jcr:title"/>
</cq:inplaceEditing>
</jcr:root>

0 comments on commit 8722c84

Please sign in to comment.