Skip to Page NavigationSkip to Page NavigationSkip to Content

Document

A highly customizable, Slate-based, rich text editor that lets content creators quickly and easily edit content in your system. See the Document Field guide, demo and example project for details.

Options:

  • relationships
  • componentBlocks
  • formatting
  • links
  • dividers
  • layouts
import { config, list } from '@keystone-6/core';
import { document } from '@keystone-6/fields-document';
export default config({
lists: {
SomeListName: list({
fields: {
someFieldName: document({
relationships: { /* ... */ },
componentBlocks: {
block: { /* ... */ },
/* ... */
},
formatting: { /* ... */ },
links: true,
dividers: true,
layouts: [/* ... */],
}),
/* ... */
},
}),
/* ... */
},
/* ... */
});

On this page