MCPcopy Create free account
hub / github.com/uiwjs/react-codemirror / onCreateEditor

Method onCreateEditor

core/src/index.tsx:64–64  ·  view source on GitHub ↗

The first time the editor executes the event.

(view: EditorView, state: EditorState)

Source from the content-addressed store, hash-verified

62 onUpdate?(viewUpdate: ViewUpdate): void;
63 /** The first time the editor executes the event. */
64 onCreateEditor?(view: EditorView, state: EditorState): void;
65 /**
66 * Extension values can be [provided](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions) when creating a state to attach various kinds of configuration and behavior information.
67 * They can either be built-in extension-providing objects,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected