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

Method onChange

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

Fired whenever a change occurs to the document.

(value: string, viewUpdate: ViewUpdate)

Source from the content-addressed store, hash-verified

56 indentWithTab?: boolean;
57 /** Fired whenever a change occurs to the document. */
58 onChange?(value: string, viewUpdate: ViewUpdate): void;
59 /** Some data on the statistics editor. */
60 onStatistics?(data: Statistics): void;
61 /** Fired whenever any state change occurs within the editor, including non-document changes like lint results. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected