Unstack for Developers
  • Overview
  • Getting started
    • Custom Themes
    • Custom Components
  • Component Types
    • Section
    • Header & Footer
    • Banner
  • Basic Tags
    • Actions
    • Box
    • Code
    • Element
    • Media
    • Plaintext
    • Richtext
    • Collection
    • Article Collection
  • eCommerce Tags
    • Product
    • Product Inventory
    • Product Price
    • Product Options
    • Quantity Selector
    • Cart & Drawer (soon)
  • Utility Tags
    • Generator
    • JSONParser
  • Other NoML Features
    • Variables
    • Raw HTML
    • Component Properties
Powered by GitBook
On this page
  1. Basic Tags

Richtext

The RichText tag is a very powerful tool for adding fully content-editable text areas to your sections, which can also be augmented with embedding tools for even richer media content.

<RichText dataRef={content.text} startTag="div" />

Attributes

  • dataRef: DataLocator - the data-element storing the Richtext tag's configuration

  • startTag: string (optional) - the initial tag to start the richtext block with (default "p")

  • className: string (optional) - a hard-coded class name to add to the rendered element

  • maxWords: number (optional) - the maximum number of words allowed in this field

  • placeholder: string (optional) - placeholder text to display in the editor when empty

  • enableAlignment: boolean (optional) - when true, allows content authors to align individual areas of the text within the rich text block (Default: True)

  • enableHtml: boolean (optional) - when True, allows content authors to create HTML conetnt (Default: True)

  • enableEmbeds: boolean (optional) - when true, allows content to embed media, forms, or 3rd-party content (e.g. embedded videos from other platforms) into the content (Default: False)

PreviousPlaintextNextCollection

Last updated 1 year ago