-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add full fledged visual e-mail editor #2373
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Hey, I'm not a dev or anything, but I use listmonk often and wanted to use emailbuilder-js before, and this is a great idea, but emailbuilder is not responsive, or at least not the version on GitHub, could that be fixed in the integration? |
Closed
ba5e77b to
c264c3b
Compare
- Add email-builder source - Update yarn lock
- Disable visual templates from being made default. - Refactor visual template selection flow in campaigns. - Hide scroll if templates modal is active. This is to make sure it doesn't flicker when adding blocks in visual-editor.
- Fix merge conflicts. - Simply logic in campaign preview handler. - Remove redundant `GetCampaignForPreviewWithTemplate()` and switch to the old query that optionally takes a template. - Fix Vue linting issues.
- Simplify and fix content conversion between formats. - Fix state management issues. - Rename `Apply` to `Import` on the visual template UI.
…l campaign import.
Unfortunately, the tiny CodeFlask lib stopped getting updates 5+ years ago and is buggy. The attempt to replace it with CodeInput (which itself seems to have several open bugs) failed. So, biting the bullet with CodeMirror, which is a robust, battle tested, albeit large (~300KB) code editor library. This patch replaces all code editor UIs (Campaign, Templates, Settings) with CodeMirror.
c264c3b to
b67fc5e
Compare
|
The merge we need! Thanks a lot! |
|
Thanks @unit1g!! This will really help us. 🔥🧡 |
bobbyseamoss
pushed a commit
to bobbyseamoss/listmonk
that referenced
this pull request
Oct 29, 2025
This is a mega patch with a massive number of significant, complex changes integrating the visual, drag-and-drop block editor library, email-builder: https://github.com/usewaypoint/email-builder-js It adds a new template type (`visual`) to templates and integrates the editor UI in Admin -> Templates and Admin -> Campaigns UIs. There are changes to templates and campaign APIs, UI flows, and database table schemas. `email-builder` is written in TypeScript and React (eww) and is a massive lib, (2.3MB minified+gzipped), bigger than all of listmonk's own JS and other deps combined, but alas, there is no other viable editor and it has been a popular demand for a long time. So, `email-builder` is built separately, and the static assets are copied along with listmonk's assets. Since it's basically a separate "app" altogether, it's loaded as an iframe on the editor pages, outside of the Vue app. The visual editor integration is courtesy of @vividvilla who did all the R&D and trial and error and sent the original PR to make this possible. I really loathe the Javascript ecosystem. Sigh.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR integrates email-builder-js, a drag-and-drop visual template editor, into campaign and templates.