---
title: "Enforcing a content structure"
description: "Learn how to add a text editor with a forced content structure with Tiptap. More in our documentation!"
canonical_url: "https://tiptap.dev/docs/examples/advanced/forced-content-structure"
---

# Enforcing a content structure

Learn how to add a text editor with a forced content structure with Tiptap. More in our documentation!

Does your editor require content in a specific structure? You can enforce specific content structures via **custom documents** that extend our default `@tiptap/extension-document` extension. See below to learn more about how to create a custom document schema.

> **Interactive demo:** [CustomDocument](https://embed.tiptap.dev/preview/Examples/CustomDocument)

> **Note**: If you use the Trailing Node extension in combination with a custom document structure, adjust the `node` option manually - otherwise ProseMirror will fall back to the default node from your schema. For example, in the heading + block demo a heading node might be assumed as the default trailing node. See the [Trailing Node docs](https://tiptap.dev/docs/editor/extensions/functionality/trailing-node.md) for more details.
