Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

EditorStateConfig

The type of object passed to EditorState.create.

interface EditorStateConfig {
doc?: Node;
plugins?: readonly Plugin[];
schema?: Schema;
selection?: Selection;
storedMarks?: readonly Mark[] | null;
}

§Properties

§
doc?: Node
[src]

The starting document. Either this or schema must be provided.

§
plugins?: readonly Plugin[]
[src]

The plugins that should be active in this state.

§
schema?: Schema
[src]

The schema to use (only relevant if no doc is specified).

§
selection?: Selection
[src]

A valid selection in the document.

§
storedMarks?: readonly Mark[] | null
[src]

The initial set of stored marks.