Skip to content
Writing Room

Schema

View as Markdown

You don’t need the plugin’s schema if you already have a type to write in: the room works with yours. writingRoomSchemaTypes is a starter for Studios that don’t: a post with a body that has everything the room can do (images with descriptions and captions, embeds, code blocks, section breaks). Each is also exported on its own (post, body, embed, codeBlock, sectionBreak) if you’d rather compose them.

The plugin doesn’t register these types for you, on purpose. post and body are common names, and a clash would stop your Studio from starting, so you add them where you can see them.

Only Prose (title, body, and alt text on body images) should block a publish, because the Writer can’t fix anything else from inside the room. Publishing from the room is a real publish: webhooks and Functions that listen for it run as usual.