We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, @artur Arseniev. Grapesjs is very awesome. just like WordPress or Bubble.
I made a function using GrapesJS/grapesjs#481. editor.RichTextEditor.add('custom-vars', { icon: <select class="gjs-field"> <option value="">- Select -</option> <option value="[[firstname]]">FirstName</option> <option value="[[lastname]]">LastName</option> <option value="[[age]]">Age</option> </select>, // Bind the 'result' on 'change' listener event: 'change', result: (rte, action) => rte.insertHTML(action.btn.firstChild.value), // Reset the select on change update: (rte, action) => { action.btn.firstChild.value = "";} })
<select class="gjs-field"> <option value="">- Select -</option> <option value="[[firstname]]">FirstName</option> <option value="[[lastname]]">LastName</option> <option value="[[age]]">Age</option> </select>
It works well in grapesjs-plugins-newsletter. but it doesn't work in grapesjs-mjml. Sometimes it works.
![Uploading image.png…] ()
I don't know why it doesn't work. How can I resolve this problem?
The text was updated successfully, but these errors were encountered:
Hi have the exact same issue for the exact same need!
Sorry, something went wrong.
Did you find a solution @TechWhiz10?
textable
@LcsGa not yet
No branches or pull requests
Hi, @artur Arseniev.
Grapesjs is very awesome. just like WordPress or Bubble.
I made a function using GrapesJS/grapesjs#481.
editor.RichTextEditor.add('custom-vars', {
icon:
<select class="gjs-field"> <option value="">- Select -</option> <option value="[[firstname]]">FirstName</option> <option value="[[lastname]]">LastName</option> <option value="[[age]]">Age</option> </select>
,// Bind the 'result' on 'change' listener
event: 'change',
result: (rte, action) => rte.insertHTML(action.btn.firstChild.value),
// Reset the select on change
update: (rte, action) => { action.btn.firstChild.value = "";}
})
It works well in grapesjs-plugins-newsletter. but it doesn't work in grapesjs-mjml.
Sometimes it works.
![Uploading image.png…]
()
I don't know why it doesn't work.
How can I resolve this problem?
The text was updated successfully, but these errors were encountered: