Skip to content

Function: createSchema() ​

ts
function createSchema(extensions): Schema;

Build the ProseMirror schema for a list of extensions, exactly as createEditor() would. Use it on the server to validate or render documents with the same configuration as the client. Throws on duplicate names, missing requirements or conflicting node/mark names.

Parameters ​

ParameterType
extensionsreadonly Extension[]

Returns ​

Schema