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

Forgot-to-Render check for Fastmail #318

Merged
merged 2 commits into from
Oct 30, 2017
Merged

Conversation

michaelstepner
Copy link
Contributor

Hi Adam,

I was tired of forgetting to render my Markdown emails in Fastmail, and decided to see if I could extend your excellent forgot-to-render check to the Fastmail compose interface. (Issue #317)

It almost-but-not-quite works in this initial PR. The event listeners are set up and work properly, both for clicking the Send button and for using the send hotkeys (which are the same in Fastmail as Gmail). The script correctly catches and prevents sending an unrendered email when I click Send. But if I use the ⌘+Enter hotkey, the email is sent and then Markdown Here opens the forgot to render prompt. It seems that eatEvent() is not eating the hotkey send action.

I have no prior experience with JavaScript, so I thought I would stop here and ask you for guidance. In fact, this is also my first submission to an open source project.

Michael

@adam-p
Copy link
Owner

adam-p commented Oct 28, 2017

Sorry that it's taken me forever to get back to you.

Your change looks good. I tested the hotkey and it seems to be working correctly. Maybe something has changed in Fastmail's code since then. Can you double-check that it works correctly for you now?

I see that that text-align: center change is a general improvement. It negates Fastmail's override of the usual user-agent style (that I was taking for granted). So it's effectively part of the style "reset".

I'll merge this soon if I don't hear from you. Try out the hotkey again, though, if you can.

@michaelstepner
Copy link
Contributor Author

I tested the hotkey (⌘+Enter to send) as well and it's working correctly on my computer too. So I'd say the Forgot to Render check is now fully functional in Fastmail.

No worries about the delay, and thanks for reviewing my PR!

@adam-p adam-p merged commit 82c2900 into adam-p:master Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants