content


contentContent

Sets or gets the element's content.

The content property is an object used to set and get the content of the Rich Content Viewer element.

This property uses the Ricos Document object, a structured rich content data format. To create the content:

  1. Visit the playground.
  2. Generate the content using the editor.
  3. Copy the resulting JSON object.
  4. Assign it to the Rich Content Viewer element.

The object can be referenced in the following ways:

  • In a rich content field of a collection.
  • In other Wix apps that utilize rich content, such as Wix Blog.

Assigning null to this property resets the content to undefined.

Did this help?