Problem with creating custom shapes

Hello!

I am experiencing some trouble with adding custom shapes (svg) with text outside so it doesnt distort when resizing the svg. But the problem i have is that this way of adding the shape just returns errors:
kdfjnlksdanf

So i tried to wrap them in a div, but then this happens, and i cant resize the svg to stretch to fit…


werdtfjytgukhij

Hi,

A shape must always be wrapped inside a container element such as a div, section, or any other valid HTML tag.

Here is the documentation for custom shapes:

In your example, you’ve specified width and height for the SVG, but the parent element does not have any dimensions set. If you define the height and width for the parent container, the SVG will automatically scale to fit the full size of the shape.

Here’s an example: DHTMLX Snippet Tool