Replies: 2 comments 3 replies
-
I guess I hit undo too much and changed back the traits, while |
Beta Was this translation helpful? Give feedback.
-
I found how to get the textarea filled: templateInput({ trait }) {
const { model } = this;
const value = this.getModelValue();
return `<textarea id="" cols="27" rows="20">${value}</textarea></div>
<button type="submit">update</button>`} But there are 2 things remaining:
I added an update button but I miss the function to update :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I tried to follow-up https://grapesjs.com/docs/modules/Traits.html#define-new-trait-type to get some textarea.
In components.js
but it keeps the
<input>
.Would you please explain how to add a textarea in traits?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions