---
title: "Enforcing a content structure"
description: "Learn how to add a text editor with a forced content structure with Tiptap. More in our documentation!"
---

> This page is for Tiptap 2.x. [See the latest version of this page.](https://tiptap.dev/docs/examples/advanced/forced-content-structure.md)

# 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://v2--tiptap-embed.netlify.app/preview/Examples/CustomDocument)
