<p>You could do this with a <a href="https://craftcms.com/docs/plugins" rel="nofollow noreferrer">custom plugin</a> that used the <a href="https://craftcms.com/docs/plugins/hooks-reference#addRichTextLinkOptions" rel="nofollow noreferrer">addRichTextLinkOptions</a> to add extra options to that dropdown.</p>

<p>You can use <a href="https://pluginfactory.io" rel="nofollow noreferrer">https://pluginfactory.io</a> to generate boilerplate plugin code to get you up and running quickly.</p>

CC BY-SA 3.0
2017-10-19T11:36:27.677Z
Ahhh ok great, thanks for pointing me in the right direction.
Chris Moorst
CC BY-SA 4.0
2018-11-30T00:04:49.997Z
@ChrisMoorst did you end with a working plugin? I'm doing something related and I'd love to see an example
henry
CC BY-SA 3.0
2017-10-16T22:56:53.973Z
2017-10-16T22:56:53.973Z
Brad Bell
<p>I have a Craft CMS powered site which has &quot;Suppliers&quot; set up as a user group. A route is being used to link through to these suppliers on the frontend; example.com/supplier/loremipsum.</p>
<p>Is it possible to add an option to the link button on the Rich editor field, that would allow me to choose a user from the <em>supplier</em> user group? Much like the &quot;Link to an entry&quot; option.</p>
<p><a href="https://i.sstatic.net/HRP6m.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/HRP6m.jpg" alt="Link to an entry" /></a></p>

<redactor><richtext><link>
Adding link type to Redactor Rich Editor
# Adding link type to Redactor Rich Editor

(Asked by: username_0 on 2017-10-16)

I have a Craft CMS powered site which has "Suppliers" set up as a user group. A route is being used to link through to these suppliers on the frontend; example.com/supplier/loremipsum.

Is it possible to add an option to the link button on the Rich editor field, that would allow me to choose a user from the *supplier* user group? Much like the "Link to an entry" option.

[![Link to an entry](https://i.sstatic.net/HRP6m.jpg)](https://i.sstatic.net/HRP6m.jpg)

**Tags:** redactor, richtext, link

---

## 1 answers

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

You could do this with a [custom plugin](https://craftcms.com/docs/plugins) that used the [addRichTextLinkOptions](https://craftcms.com/docs/plugins/hooks-reference#addRichTextLinkOptions) to add extra options to that dropdown.

You can use <https://pluginfactory.io> to generate boilerplate plugin code to get you up and running quickly.

> **Comments:**
> **username_0**: Ahhh ok great, thanks for pointing me in the right direction.  
> **username_2**: @ChrisMoorst did you end with a working plugin? I'm doing something related and I'd love to see an example  

---

