A simple way to enhance your mailto links with a convenient user interface.
disableOnMobile
option to disable modal on mobile devices.Fixes version number shown on dist file. No code changes.
Copy button is now on the left side to improve rendering of email address.
Clean up css.
Some css classes and ids have been renamed for better consistency:
#mailtoui-client-gmail
-> #mailtoui-button-1
#mailtoui-client-outlook
-> #mailtoui-button-2
#mailtoui-client-yahoo
-> #mailtoui-button-3
#mailtoui-client-default
-> #mailtoui-button-4
#mailtoui-copy-button
-> #mailtoui-button-copy
#mailtoui-copy-email-address
-> #mailtoui-email-address
.mailtoui-client
-> .mailtoui-button
.mailtoui-label
-> .mailtoui-button-content
.mailtoui-label-icon
-> .mailtoui-button-icon
.mailtoui-label-text
-> .mailtoui-button-text
.mailtoui-copy-button
-> .mailtoui-button-copy
The element id associated with the compose
event has changed:
mailtoui-client-gmail
-> mailtoui-button-1
mailtoui-client-outlook
-> mailtoui-button-2
mailtoui-client-yahoo
-> mailtoui-button-3
mailtoui-client-default
-> mailtoui-button-4
The element id associated with the copy
event has changed:
mailtoui-copy-email-address
-> mailtoui-email-address
Disable page scroll when modal is displayed.
This release adds the following improvements:
Check out the docs for details.
This release removes the requirement to have an id
assigned to each mailto link on the page. To attach mailto links to MailtoUI, you only need to have the default mailtoui
class assigned to each mailto link.