Closed Jianbinzhu closed 3 months ago
Linked PR has been merged, it will be automatically tagged shortly for CMS 4. It will be automatically tagged for CMS 5 in within the next week. Ping me if you need it sooner than that and I'll do it manually for you.
Module version(s) affected
2.1.1
Description
When adding an email link via the WYSIWYG, it doesn't not validate or throw an error when a non-email is inputted.
On the front-end, the
<a>
tag is still being addedHow to reproduce
Go to any WYSIWYG, and insert an email link
Possible Solution
No response
Additional Context
I can see that it is being regex checked on https://github.com/silverstripe/silverstripe-admin/blob/2/client/src/legacy/TinyMCE_sslink-email.js#L96, but it simply just removes the value.
Validations
silverstripe/installer
(with any code examples you've provided)PRs