Edit Traits of Map #4833
BrendanMcDonagh-ContactFunnels
started this conversation in
General
Replies: 1 comment
-
Hi @BrendanMcDonagh-ContactFunnels traits read data directly from the component so it case of the Map block (here you can see how it's added from the basic blocks plugin) you can update the default content with something like this: editor.Blocks.get('map').getContent().address = 'my address'; The next time you'll drop the map block, the component will be created with those properties (and you will see them in traits). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am very new to GrapesJS and am at the stage where I able to create a canvas and integrate the webpage preset plugin.
I am trying to understand how I would go about giving default traits for a map when it is dragged on to the canvas. i.e how to give default address for the map being dragged on to the canvas.
Any help would be greatly appreciated.
Regards
Beta Was this translation helpful? Give feedback.
All reactions