How to create custom element
yes, i will do the following : I will use the news letter plugin https://github.com/artf/grapesjs-preset-newsletter and i will use ckeditor plugin https://github.com/artf/grapesjs-plugin-ckeditor and I will add a custom drop down list contains the dynamic fields names in the ckeditor configuration.
Read full answer below βQuestion
Hi guys,
I'm new in this so I'm sorry for my question.
I'm trying to use grapesjs to edit email templates.
Is it possible to have dynamic fields in the editor ? for example [first name], [last name], [email address] ..etc.
so before I send the email, I will replace those dynamic fields to the real data.
I need somehow to allow the user to use dynamic fields inside the editor.
I appreciate your help.
Thanks
Answers (3)
yes, i will do the following : I will use the news letter plugin https://github.com/artf/grapesjs-preset-newsletter and i will use ckeditor plugin https://github.com/artf/grapesjs-plugin-ckeditor and I will add a custom drop down list contains the dynamic fields names in the ckeditor configuration.
Can you give a short example of a mail that uses it so I can better understand what you mean by a "dynamic field"?
For example we have 5 dynamic fields (first name, last name, email,phone, company name) Our user will go to the page to create an email template to be used for example to welcome his clients. So he will start using the builder to design his email template and while he is doing that he want to drop...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2514
[Question]: How to change device from dropdown to icon
I'm trying to replace the dropdown with icon for the devices following the example in the newsletter template yet it doesn't work.
Issue #1897
[Question] view vs code
Hello...and sorry for my english! First of all, congratulations for this fantastic framework. I'm trying to use GrapeJS to create my own wo...
Issue #1578
[Question] Custom request on "src" attributes
I implemented a small GrapesJS editor that allows to edit Django/Jinja2 templates. GrapesJS by default is trying to GET the image preview o...
Issue #2007
[QUESTION] Adding new traits to component and update current ones with these
I have some custom components created before modifying their traits (for example, I created a new trait for it), these components wont cont...
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 βBrowse Plugin Categories
Jump directly to plugin category pages on the marketplace.