Tulip Logo IconTulip
Editor

Content Model

Store and pass rich-text content as editor JSON.

Tulip editor content is represented as JSON.

Use EditorJSONContent when values cross package, API, database, or form boundaries.

Example

import type { EditorJSONContent } from "@tulip-systems/editor";

const content: EditorJSONContent = {
  type: "doc",
  content: [
    {
      type: "paragraph",
      content: [{ type: "text", text: "Hello" }],
    },
  ],
};

Continue reading

On this page