RTE Source Edit button only for Administrators
How can I only allow administrators access to the Source Edit button in the RTE? (AEM 6.5) Is there a permission I can use?
I am trying to avoid turning it on and off from the template.
How can I only allow administrators access to the Source Edit button in the RTE? (AEM 6.5) Is there a permission I can use?
I am trying to avoid turning it on and off from the template.
We can use the dialog submit call.
$(document).on("click", ".cq-dialog-submit", function (e) {
//On submit this is invoked
// Ajax call to servlet here
});
An example here - Call any servlet in touchUI dialog |AEM 6.3+ – AEM Queries & Solutions (wordpress.com)
javascript - dialog-ready event does not fire when dialog opens in AEM 6.1? - Stack Overflow
Sling Servlet in AEM – AEM CQ5 Tutorials
Thanks
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.