Hi, I am trying to create an app where the user type a text in a text box and choose a background picture to the canvas. After that the text is inserted at the center of the canvas. When the user click the Save button the canvas is saved as a picture.
It should be very simple but I am not being capable of make the text work multiline. If the text has more than a few words it disappear from the canvas.
In a text box component I can check the “multiline” option and if the text isn’t enough for one line more lines are created. But I didn’t find a way to do that with canvas.
It looks like <br> and others html tags don’t work there.
The text “\n” didn’t appear on the screen but didn’t break line either
I tried all these ways and nothing worked: line1“\n” line2 "\n" line3 <br> line4 \n line5 <br/> line6 </br> line7
\n worked in textbox but not in the canvas
You dont need that anymore. Just use an image for a background in a textbox, just type your text and then use this extension to make an image from a textbox.