Ensure the correct EmailField form field is used for entering email addresses in WYSIWYG links. This provides appropriate validation errors when incorrect values are entered.
Note I haven't added behat for this because shockingly there is no behat at all in this module for WYSIWYG links - so adding them in this PR for this fix is a bit overkill.
Manual testing steps
In any WYSIWYG field, try to add an email address link with an invalid email address. You should be given an appropriate validation error within the modal form.
[x] All commits are relevant to the purpose of the PR (e.g. no debug statements, unrelated refactoring, or arbitrary linting)
Small amounts of additional linting are usually okay, but if it makes it hard to concentrate on the relevant changes, ask for the unrelated changes to be reverted, and submitted as a separate PR.
Description
Ensure the correct
EmailField
form field is used for entering email addresses in WYSIWYG links. This provides appropriate validation errors when incorrect values are entered.Note I haven't added behat for this because shockingly there is no behat at all in this module for WYSIWYG links - so adding them in this PR for this fix is a bit overkill.
Manual testing steps
In any WYSIWYG field, try to add an email address link with an invalid email address. You should be given an appropriate validation error within the modal form.
Issues
Pull request checklist