Max_Salah
Max_Salah

Reputation: 2497

How to realize the "undo" functionality in CQ5 Rich Text Editor with a button?

Using CQ Rich Text Editor, I can undo the editing with strg + z. How to connect this functionality with a button? In other words where to find the javascript which is responsible for undo functionality? enter image description here

Upvotes: 0

Views: 406

Answers (1)

Alisneaky
Alisneaky

Reputation: 215

In your RTE plugins (in the xml file), use:

<table
    jcr:primaryType="nt:unstructured"
    features="*"/>
<undo
    jcr:primaryType="nt:unstructured"
    features="*"/>

Hope this solves your problem.

For more info check here

Upvotes: 2

Related Questions