Rich text

ReferenceSchema API

s.richtext()

Formatted text: paragraphs, headings, lists, links and images, with only the options you turn on.

Use it for

  • Articles, blog posts and long descriptions
  • Text with links to your own pages

Richtext Schema

s.richtext(options)

schema

Rich text with configurable formatting options

In Val Studio

Methods

.validate

Custom validation function

Example

Example

TypeScript
s.richtext({
  bold: true,
  italic: true,
  lineThrough: true,
  h1: true,
  h2: true,
  ul: true,
  ol: true,
  a: true,
  img: true
})
See alsorichtext