<p>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.</p>

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

CC BY-SA 4.0
2018-10-16T00:09:01.863Z
2018-10-16T00:09:01.863Z
Brad Bell
<p>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 (<a href="https://imperavi.com/redactor/docs/settings/" rel="nofollow noreferrer">https://imperavi.com/redactor/docs/settings/</a>)?</p>

<p>Thanks</p>

<redactor><hook>
Can you hook into a Redactor field before render?
# Can you hook into a Redactor field before render?

(Asked by: username_0 on 2018-10-11)

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/>)?

Thanks

**Tags:** redactor, hook


---

## 1 answers

### Answer by username_1 on 2018-10-16. Score: 0 | Accepted answer

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.


---

