When filling in the description field I noticed that sometimes the element is created as one
with
s whenever I press Enter.
The problem in that is that the front end of the website doesn’t know to implement that way of code and shows the
as part of the text.
In other times when I write a description in the info section and press Enter, the code is implemented as a new
for every row, and then there are no problems with
showing as part of the text string.
I couldn’t understand when exactly does each case happen.
I think wix programmers should look into it to prevent
showing in the text.
![](https://us1.discourse-cdn.com/wix/original/3X/0/6/06c4a43d7d7c5708c4b325b011c0ff8f9f1501c9.png)
![](https://us1.discourse-cdn.com/wix/original/3X/f/9/f976ca1fe01129e0acb45914b0a9aa2ba2657c6f.png)
I’m referring this to QA for evaluation.
Is this problem occurring in the Wix Stores product management dashboard? If not is this using a custom input field on a page on your web site?
Can you help out be sharing the specifics of how the description is being entered and where (share any code and the page URL if code is involved).
Cheers
Hmm, Steve has a good point. How is the description being entered? There can be compatibility issues when entering text in a text field that uses HTML and then copying this text to a text field defined as standard text. If this is being done in code, or if you’re using text components on the screen to enter the description, it might not be compatible with the text fields in the Store app.
Hi,
Yes. This problem occurs in the Wix Stores product management dashboard.
When I add a new product, I fill in all kinds of data, like Price, SKU and so on.
One of the fields is called “info section” and inside the popup I add a short description of the product I’m adding to the store.
So again- yes. I am working on the store’s products dashboard.
However, the product page that is shown in the UI of the website is a page I have built (with the wix elements- and code, since it is a product page I have built and not what wix offers).
I have put a regular “wix text” which I attached to the store/product database, and that is when sometimes the
s are shown.
I should tell you, that the products are added in the stores dashboard every once and a while, and sometimes by different team members. So, maybe there are more spaces or Enters that are not easy to detect ant the writing is not consistent. But for sure there is a problem there, because for example, when I tried to press the button that turns the text to be shown form the right side in that same placeholder in the description of the info section- there was a new and not welcome tag: in the UI …
since you are from the wix team I can guess you have my phone number. feel free to call me and I will be happy to explain whatever is not clear enough ![:slight_smile: :slight_smile:](/images/emoji/google_classic/slight_smile.png?v=12)
Hopefully I’ll hear back from QA soon on this.
But meanwhile, I’d like to take a peek at it myself. Please post the editor URL of your site. Only authorized Wix personnel can get access to your site in the editor. Please include the name of the page involved - the product page.
Just one more thing to be clear - I did not put HTML element in the description, and not in the UI ![:slight_smile: :slight_smile:](/images/emoji/google_classic/slight_smile.png?v=12)
I understood. However, somebody put in HTML and now we’ve got to find out who/how/why.
OK, I think I see what’s going on - sort of…
You are setting #text52 with the .text property:
![](https://us1.discourse-cdn.com/wix/original/3X/7/9/799dd4b92ed2cd0fe5e9151d8f0272617aec2f5f.png)
However, try using the .html property:
![](https://us1.discourse-cdn.com/wix/original/3X/d/6/d62d25ad6cf971acdb22a90385bcbe9d1a05a10f.png)
Then it looks much better:
![](https://us1.discourse-cdn.com/wix/original/3X/7/8/7811414bf22dbb0b6070a67c0c440e42c216c134.png)
You may have to change the font size for the field or do some other adjustments, but all in all, much better.
Thanks for the effort but I don’t think it works. I think that you fell on a product that was written with a
for every line and not all the text in one
.
Try to look at SKU: FC-1108NY-blu (משקפי ילדים דגם ‘פרננדו’ כחול). When changing the .text to .html - it doesn’t change the UI and there are still
s…
Sorry, I circled the wrong line in the first screenshot. It should be:
![](https://us1.discourse-cdn.com/wix/original/3X/a/f/afcc3ffd698e42c37ec20ad5f4a94a4ab97d0d2c.png)
You should be setting the html property on #text52 and not on the incorrectly circled field.
See my new screenshot. I see you changed the field that I circled, but not the #text52 field.
You should have:
$w('#text52').html = a.replace(/,/g, " ").toString();
$w('#nameOfProduct').text = item.name;
Sorry for the confusion.
@yisrael-wix Got it! you are right ![:slight_smile: :slight_smile:](/images/emoji/google_classic/slight_smile.png?v=12)
Now I just have to figure out how to change the font size and make it rtl …
@battziont Check out this API information…
This shows you how to change style info.
Thanks to the both of you!
I’ll continue working on it with your great platform next week and keep you posted ![:slight_smile: :slight_smile:](/images/emoji/google_classic/slight_smile.png?v=12)
Have a great weekend!
The problem with setting the html
field instead of the text
one is that all the text’s formatting (previously set using the Wix editor) gets removed. I’m not sure what’s the reason behind passing html text as a product’s description, though anyway what worked for me, as workaround, was to have 2 text fields, one visible and one collapsed. And I’d set the html
to the collapsed one, so that it gets “parsed” by the browser, and then I’d set the visible’s text
value to the collapsed’s text
value. That way, my visible text field keeps its formatting while not having to show HTML tags. Something like:
$w('#collapsedText').html = item.description;
$w('#visibleText').text = $w('#collapsedText').text;