Formatting of Text

Hi. I created a dynamic page and set the title and paragraph formatting for the look of the page but realized when previewing that it actually took the formatting of the text editor in the database. This could be confusing. I think if you want to create a dynamic page that is consistent with the look of the website, maybe it should pick up the page settings automatically rather than the database editor settings. I hope that makes sense.

Hi Lorraine,

Wix Code supports text formatting in two different ways - as a text field or as a rich text field.

A text field is assumed to be all formatted using a single style. When connecting a text field to a text element, we preserve the theme and style as set in the wix editor, only replacing the content to be the content from the database. Note that if the text element is formatted with more than one style, we use the first. Also note a text field uses the .text property of the Text element.

A rich text field allows to set themes and styles in content manager. When connecting a text element to a rich text field, we preserve the theme definitions, but use the theme formatting of the site. If you select the site title theme in the database, we will be using the site title theme in the site - whatever it is defined in the site at that time. Note that a rich text field is using the .html property of the Text element that supports a subset of html. Themes are actually represented as html header elements (h1…h6) and paragraphs as the html paragraph (p) element.

Does that make sense?

Hello, I think this makes sense but my rich text p1 for example is set to Proxima 17, not Futura 16, which is the P1 I have set up for the site. When I manually update the formatting in rich text, it does not always hold and defauts back to Proxima 17. I have tried formatting in both the visual and the HTML tabs, neither is 100% successful.
Please help! This is causing hours of extra checking and reformatting.

Stephanie

salutetovienna.com

Hi,
Can you please send us screenshots of the issue and the name of the page you were referring?

Thanks,
Tal.

Hi Tal,

I am not sure what you want a screen grab of.
The page where one of the examples of dropped formatting is here: salutetovienna.com/2019/boston… the images below are from the database for it.
Right now the formatting is holding but for days it was not.

Another example page is https://www.salutetovienna.com/artist/Hege-Gustava-Tjonn/Soprano
Where the paragraph of text is rich text because I need the occasional italics for concert names. P1 for the site is futura light, 16 px, black and the default p1 on the database is proxima, 17 px, black. I built these pages yesterday (database is called cast) and had to re-do many of the rich text fields with manual formatting because it dropped after I set it the first time, synced, published or not and previewed the pages.

At the moment everything is holding, I think.

Image 1: Database view (database is called 2019) with the manual formatting. (Snell Roundhand, 60 px, white text)


Image 2: The database with the autoformatting (Proxima, 60 px, black) for the same item (the script is my set H3 within the site).


Thank you very much for any help you can provide.
Stephanie

Hi Stephanie,
Currently, you need to set for each field the deign separately. There’s no option to set a text theme for the rich text fields. You can suggest this as a feature request here .

Best,
Tal.

I have a problem which is related to this thread.

Has anyone ever had any success with formatting in the html tab or using the “clear formatting” tool?.. or is it just another Wix tool that looks nice but doesn’t actually work properly yet?

This is my experience:
I have a rich text field in my dataset and I have copied and pasted some formatted text into it… I want to clear the format and have tried various methods.

  1. The “clear format” tool - this seems to work initially, but then the old formatting returns.

  2. Manually deleting html tags in the html tab - this seems to work initially, but then the old formatting returns.

  3. Cutting the html code, pasting into an external editor, removing the html formatting manually and then pasting the html back into the dataset - this seems to work initially, but then the old formatting returns.

  4. exporting the dataset, editing the csv file in Google Sheets (manually deleting html tags), re-importing the csv dataset and deleting the old data - this is the only method that seems to work.

  5. I’ve also tried logging out, clearing cache, removing all website history, re-booting, logging in again, etc.

Has anyone ever had any success with formatting in the html tab or using the “clear formatting” tool? What type of plain text can it cope with? I use BBEdit to save plain text encoded as Unicode UTF-8.
If you have, please let me know.