How to do the onchange for the richtext?
I did it like this but i doesn't work
<someField
jcr:primaryType="cq:Widget"
allowBlank="true"
name="./someField"
xtype="richtext">
<rtePlugins
jcr:primaryType="nt:unstructured">
<subsuperscript
jcr:primaryType="nt:unstructured"
features="[subscript,superscript]"/>
</rtePlugins>
<listeners
jcr:primaryType="nt:unstructured"
change="function() {console.log('success')}"
/>
</someField>
Views
Replies
Total Likes
Hi AndreiUifi May i know which AEM version are you using ?
Views
Replies
Total Likes
AEM 6.1 as I know
Views
Replies
Total Likes
You are using Classic API and not TOuch UI.
For Touch UI - you can use the DOM to handle events - see
Adobe Experience Manager Help | Using Event Handlers in Adobe Experience Manager Touch UI Components
For Classic UI - there is a rich set of Event Handlers for RichText - see this ref doc:
Views
Replies
Total Likes
On Classic UI for richtext, 'change' doesn't work
Views
Replies
Total Likes
In classic UI change exits. pls use correct method paramentes to work.
change : ( CQ.Ext.form.Field this
, Mixed newValue
, Mixed oldValue
)
this
: CQ.Ext.form.FieldnewValue
: MixedThe new valueoldValue
: MixedThe original value
Views
Replies
Total Likes
I use that but, it doesn't work
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies