Standards Docs
ReferenceSchema

richtext

Create a richtext attribute builder for Tiptap-based rich text content

Create a richtext attribute builder for Tiptap-based rich text content

Signature

<TName extends string>(config: TypedBuilderConfig<TName>): RichtextAttributeBuilder<TName, false>

Examples

Basic usage
```typescript
richtext({ name: "content", label: "Content" })
.required()

```ts
With specific features
```typescript
richtext({ name: "description", label: "Description" })
.features(["headings", "bold", "italic", "lists", "links"])
.placeholder("Write something...")

```ts
Full-featured (notes, articles)
```typescript
richtext({ name: "body", label: "Body" })
.features(["headings", "bold", "italic", "lists", "links", "images", "codeBlocks", "tables"])
.required()

On this page