I am wanting to hook into all my redactor fields content before rendering and update any inline links to include a title="" attribute. Is it possible to hook into the field before it is rendered? With PHP or in settings (https://imperavi.com/redactor/docs/settings/)?



Probably several ways you could tackle this like with a custom Redactor JS plugin, but I'd probably write a Craft plugin that forked and extended the original Craft Redactor plugin.

From there, you could overwrite the Redactor field's normalizeValue() method and parse the input to make whatever changes you want before returning.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.