Image send to mail
@nimisha744 issues in this repo are only for the bugs related to the core framework, demos are there only for demonstration purposes of the framework capability.
Read full answer below ↓Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
chrome
Reproducible demo link
https://grapesjs.com/demo-newsletter-editor.html https://prnt.sc/SyoEBQMUJbO8
Describe the bug
How to reproduce the bug? i am making the demo from prapes js newsletter demo and coping the html and send that into email
What is the expected behavior?
i want to send image with that templat which i pass in email. like this is my demo => https://prnt.sc/iTHa6Bg0IfRr What is the current behavior? now in demoview it is looking nice with images but when i send the email, image is not working there is no src passed in img tag i am getting this in email => https://prnt.sc/HVZ7kYlHevqF
please help me to solve this ASAp
Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (3)
@nimisha744 issues in this repo are only for the bugs related to the core framework, demos are there only for demonstration purposes of the framework capability.
can you please help me to get this code ? https://prnt.sc/qAb-i9M5c6SF
bt this i am getting only html let html = editor.getHtml(); also please give the options for newsletter image and in sidebar i am getting name not icons pls share option config setting for that
On Mon, Jun 10, 2024 at 5:58 PM Artur Arseniev @.***> wrote:
@nimisha744 https://github.com/nimisha744 issues in this repo are only for the bugs related to the core framework, demos are there only for demonstration purposes of the framework capability.
— Reply to this email directly, view it on GitHub https://github.com/GrapesJS/grapesjs/issues/5937#issuecomment-2158213306, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJCJY3KKCRHOFAFNBESB4KLZGWLW7AVCNFSM6AAAAABJCDBEK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJYGIYTGMZQGY . You are receiving this because you were mentioned.Message ID: @.***>
Thanks for reporting this, @nimisha744.
Great question about image send to mail. The recommended approach with GrapesJS is to use the event-driven API.
Start here:
- Check the GrapesJS documentation for your specific module
- Look for the
on()event listener method - Most operations can be achieved by listening to editor and component events
Common patterns:
// Listen for changes
editor.on('change', () => console.log('something changed'));
// Component lifecycle
editor.on('component:mount', (c) => console.log('component ready', c));
editor.on('component:update', (c) => console.log('component updated', c));
If you're still stuck:
- Share a minimal CodeSandbox reproduction
- Include what you've already tried
- Mention your GrapesJS version
- The community is here to help!
Related Questions and Answers
Continue research with similar issue discussions.
Issue #5046
is there any way to remove cross svg on selected default value of Float, Position and text-align
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 111.0.5563.147 (Official Build) (6...
Issue #4094
When drag and drop block into editor in Chrome, not able to drag and drop block
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 97.0.4692.71 (Official Build) (64-...
Issue #4921
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Version 110.0.5481.78 (Official Bui...
Issue #6116
asDocument not working as expected
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 128 Reproducible demo link https://...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Related tutorials
In-depth guides on the same topic.
Tutorial
How to Build a Production GrapesJS Editor: The Complete Walkthrough of Brief, Preset, Plugins, and Services
A complete walkthrough of building a production GrapesJS editor: how to choose a preset, pick plugins, and scope setup services without burning a sprint.
Tutorial
Big Updates: TinyMCE 8 and Placeholder 2.0 for GrapesJS
In May we shipped major updates to two of our most popular GrapesJS plugins — TinyMCE Inline Text Editor and Placeholder.
Tutorial
Find the Right GrapesJS Plugin in Seconds: Smarter Discovery Is Live
We're shipping a set of discovery upgrades. New label filters, a proper compatibility switch for GrapesJS vs Studio, one-click and a smarter sort bar.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.