Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically add mailto: to email addresses when linking #14857

Merged

Conversation

luisherranz
Copy link
Member

@luisherranz luisherranz commented Apr 7, 2019

Description

The link field is automatically populated when the selected text is an email.

How has this been tested?

I've done manual tests of the editor and added unit tests for the isEmail validator.

Screenshots

ezgif com-video-to-gif

Types of changes

Checklist:

  • My code is tested (only unit tests for isEmail).
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.

Fixes #9774

@mtias mtias added [Package] Url /packages/url [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable labels Apr 7, 2019
Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks.

@youknowriad youknowriad merged commit 8eb5a6e into WordPress:master Apr 9, 2019
@mtias
Copy link
Member

mtias commented Apr 9, 2019

Thanks @luisherranz :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Package] Url /packages/url
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically add mailto: to email addresses when linking
3 participants