How to use SVG
I want to use a SVG component in a block how to use the SVG, If i create a Block using Component&JS, by default div tag comes. Need help.
You should be able to put them directly within a Block
editor.BlockManager.add('svg-block', {
label:'SVG BLOCK',
content:`<svg ...>...</svg>`
})
Thanks for the Help, One quick question, Can we use javascript within the content of SVG block explained above , i wanted to try using Components&JS with SVG. Appreciate your work.
Yeah, you should be able to do so by using a new Component Type or even directly within a block as explained in Components&JS
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.