mirror of
https://github.com/arikchakma/maily.to.git
synced 2026-04-25 22:25:51 +03:00
[GH-ISSUE #16] How variables are supported in maily editor? #239
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/maily.to#239
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chavda-bhavik on GitHub (Sep 20, 2023).
Original GitHub issue: https://github.com/arikchakma/maily.to/issues/16
Amazing project and idea team. I'm planning to build and add a similar kind of editor to my project. Everything looks sorted, just confused about how
variablesare supported in the editor.Of course not stopping me from building an email editor like
mailybut curious to know how you have planned to supportvariables.Thank you.
@arikchakma commented on GitHub (Sep 20, 2023):
Hello Chavda,
I built this custom Variable Node extending the
@tiptap/extension-mentionplugin. And in the renderer, I am just rendering it as {{variableId}}Cheers,
Arik
@chavda-bhavik commented on GitHub (Sep 20, 2023):
Got it, Arik. We can add variable with @ symbol.
If I want to show a menu with a list of variables available when @ is written, then what would be a good way to do it?
@arikchakma commented on GitHub (Sep 20, 2023):
I am using
tippy.jsfor it, you can also use it.@chavda-bhavik commented on GitHub (Sep 20, 2023):
Got it. Will check it out. Thanks Arik. Awesome project. 👍🏼
@vrabota commented on GitHub (Dec 23, 2025):
@arikchakma Can we use variables for subject as well?
@arikchakma commented on GitHub (Dec 23, 2025):
In the Maily Platform, yes you can.
@vrabota commented on GitHub (Dec 23, 2025):
Your subject here is
Test Components@arikchakma commented on GitHub (Dec 23, 2025):
Ah the subject is for only the naming (title of the template) the bottom one is the preview header. Currently we can't add variables in the Subject.
@vrabota commented on GitHub (Dec 23, 2025):
What is the difference here between Subject and Preview header?
Is that subject will be send to email provider as well? or you use it just internally?
One more question is related how we set values for this variables from backend, for ex: we have variable
{{user}}and from our backend and database when we need to send the email we want to set it toJoe.Or we just set at template level
{{user}}and provider like Resend should handle this logic to convert it?@arikchakma commented on GitHub (Dec 23, 2025):
Either you can use our template rendering api(paid) or you can export into html then replace the variables from your backend.
@vrabota commented on GitHub (Dec 23, 2025):
I need to store JSON template in DB with variables and when we need to send the email, we need to extract data from DB, replace variables and send email
@arikchakma commented on GitHub (Dec 23, 2025):
Yeah that is one way to do it.