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
| Parameter | Type |
|---|---|
extensions | readonly Extension[] |
Returns
Schema