I am a Japanese. I can not speak English, so it is a sentence using Google translation, so I’m sorry if I can not understand it. I created the format of the member page using the database function of wix code. There is no problem because there is only one line for name, gender etc. However, if you use about 200 characters in the background, you will absolutely need bullets and line feeds. A text box that displays the text? I would like you to tell me how to set a line break in. When I inquired wix, “https://www.wix.com/code/reference/$w.TextBox.html#wrap” Response came to refer to the contents of this Resources. But I do not know at all what to add to the code. “You can add a new line by adding this code to the page code and putting this tag in the part you want to break.” If you like something like that, please do let me know. Thank you.
Hello
you need to set your element’s wrap to hard:
$w("#element").wrap = "hard";
That’s one way, other way would be:
-
get you element’s html value
-
replace </ with
</ -
then set the html value to the new value
Hope this helps
Massa
Hello Massa salah
Thank you very much.
I tried putting the code I taught like an attached image, but it got an error. .
Is it the right answer to change element to “# text26” to set it to “# text26” part?
Where can I get html elements from?
I am sorry for ignorance, but I will be saved if you tell me. .
Hello
it seems like you using a text and not a text box, the wrap property works on text boxes.