Formatting of Text

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?