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

Add ability to preview an email in the post editor #76134

Closed
simison opened this issue Apr 24, 2023 · 2 comments
Closed

Add ability to preview an email in the post editor #76134

simison opened this issue Apr 24, 2023 · 2 comments

Comments

@simison
Copy link
Member

simison commented Apr 24, 2023

What

Add the ability to preview an email in the post editor

Project thread: peKye1-6z-p2

Why

When drafting a post that is going to be sent as an email to subscribers, users would like to see how the email looks before publishing.

How

Customers could preview with "preview email" action in the editor's preview dropdown:

Screenshot 2023-04-24 at 15 06 25

To extend the above menu, we should make it possible in Gutenberg first.

The actual preview could happen in a few ways:

  1. Send the email to user's email address, and inform them we did so. See MailerLite as an example, although they also allow customizing the email:

    Screenshot 2023-04-24 at 15 04 29 Screenshot 2023-04-24 at 15 04 35
  2. Render the email preview in a modal

  3. Render the email preview in the editor canvas

  4. Share private URL for pages/posts with anyone

Each approach needs a bit of exploration to see how complex the above options might be.

Listing some secondary considerations:

  • Sending the email to preview in an email reader might be a nice additional feature even if we'd implement preview in the editor.
  • Previewing in the editor might pave the way for a nice editing experience for adjusting email template styles, header and footer content later on.
  • Important to consider that previewing and switching back to editing might be annoying if the experience is clunky and slow.
@simison simison added the [Type] Feature Request Feature requests label Apr 24, 2023
@simison simison changed the title Feature Request: add ability to preview an email in the post editor Add ability to preview an email in the post editor May 15, 2023
@simison
Copy link
Member Author

simison commented May 15, 2023

Started on allowing extending the dropdown in Gutenberg: WordPress/gutenberg#50605

@simison
Copy link
Member Author

simison commented May 19, 2023

Email preview endpoint D110864-code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant