grapesjs-preset-webpage icon indicating copy to clipboard operation
grapesjs-preset-webpage copied to clipboard

How to add the blocks dynamically using editor.addComponents()?

Open parthrc opened this issue 7 months ago • 0 comments

I have custom grapesjs jsx component with id="custom-component", it works when I use editor.addComponents(<custom-component />)

Now I know the Link Block has id="link-block", but editor.addComponents(<link-block />) does not work?

Is it because they are not jsx components?

Would be really helpful if someone points me in the right direction

parthrc avatar Jul 17 '24 15:07 parthrc