adding Traits properties in canvas body[QUESTION]
Question
Hi, I know that we add the traits options or properties for any component blocks. but I don't know how to add the traits for canvas body. can anyone please help me.

In the above image. under the settings options. I need to add one input and radio button.
Answers (1)
You can add them at run time https://grapesjs.com/docs/modules/Traits.html#updating-traits-at-run-time
editor.getWrapper().set('traits', [
{ name: 'title', label: 'Title' },
])
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1723
[QUESTION] replacing particular text in dropped component
Hi, I get the value from custom traits from what I entered but I don't know how to change the particular value in dropped component and ren...
Issue #1869
[QUESTION] how to add extra field in input traits
Hi, I want to add the new field in default input traits. for example:- i need to add {label: binding, name:binding} in already exist input...
Issue #1826
[Question] How to add link to an image?
Hi Artur, How to add a link to this image? If i need to create a custom component, please give me some example code Artur.. Thank you so mu...
Issue #377
default newsletter blocks
can anyone tell how to add default newsletter blocks used in newsletter-demo. please help @artf Thanks in advance
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.