Using the rich text editor, you cannot add additional URI parameters to a mailto link such as subject, bcc, cc, etc. You can only pass a single email address.
[email protected]?subject=Help+Me or [email protected][email protected]I think the solution could be to validate not against an email address, but a mailto URI. I looked at the Draftail repo first but decided to open the issue here, since it seems that the link selection dialog is native to Wagtail and not the editor itself; forgive me if I'm wrong about that.
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
No, but we are on the latest release (2.8).
Hi @phette23 - thanks for the suggestion. A potential issue with having users enter mailto: links is that editor-level users are not necessarily technical, and may not know how to construct them. I think the way forward would be to have a separate optional field for subject / cc in the link chooser, which would then store the link internally as something like <a linktype="email" email="[email protected]" subject="Help me"> - we can then use the existing link-rewriting logic (as used for page and document links) to convert this into a working mailto: URL.
Most helpful comment
Hi @phette23 - thanks for the suggestion. A potential issue with having users enter mailto: links is that editor-level users are not necessarily technical, and may not know how to construct them. I think the way forward would be to have a separate optional field for subject / cc in the link chooser, which would then store the link internally as something like
<a linktype="email" email="[email protected]" subject="Help me">- we can then use the existing link-rewriting logic (as used for page and document links) to convert this into a working mailto: URL.