Unstack Dev Docs
Search…
Plaintext
The PlainText tag allows you to create a simple text entry input in the editor, which can also be associated with a given HTML tag, without giving your users full richtext capabilities.
1
<PlainText dataRef={content.text} tagName="p" .../>
Copied!

PlainText Tag Props:

  • dataRef: DataLocator - the data-element storing the Plaintext tag's configuration
  • tagName: string - a hard-coded tag name for the rendered element
  • 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
  • renderEmptyElement: string (optional) - when set to True, will render the tag in tagName when there is no content defined by the author (Default: False)
Copy link