Skip to content

Commit febb885

Browse files
committed
doc: Update README.md
1 parent f1fec76 commit febb885

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ export interface ReactCodeMirrorProps extends Omit<EditorStateConfig, 'doc' | 'e
113113
* Fired whenever a change occurs to the document.
114114
*/
115115
onChange?(value: string, viewUpdate: ViewUpdate): void;
116+
/** Fired whenever a change occurs to the document. There is a certain difference with `onChange`. */
117+
onUpdate?(viewUpdate: ViewUpdate): void;
116118
/**
117119
* 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.
118120
* They can either be built-in extension-providing objects,

0 commit comments

Comments
 (0)