@@ -51,37 +51,8 @@ require('codemirror/mode/javascript/javascript');
5151- ` resetCursorOnSet `
5252> ` boolean ` reset the internal codemirror cursor position should a new ` value ` prob be set. Default: ` false `
5353
54- ## component specific events
54+ ## props cont. (wrapped codemirror [ programming api ] ( https://codemirror.net/doc/manual.html#api ) )
5555
56- - ` editorWillMount() `
57- - ` editorDidMount(editor, next) `
58- > calling optional ` next() ` will trigger ` editorDidConfigure `
59- - ` editorDidConfigure(editor) `
60- - ` onValueSet(editor, value) `
61- > returns the initial value via ` value `
62- - ` editorWillUnmount(editor) `
63-
64- ## codemirror wrapped [ events] ( https://codemirror.net/doc/manual.html#events )
65-
66- - ` onValueChange(editor, metadata, value) `
67- > returns the internal value of the editor
68- - ` onCursorActivity(editor) `
69- - ` onViewportChange(editor, viewportStart, viewportEnd) `
70- - ` onGutterClick(editor, lineNumber, event) `
71- - ` onFocus(editor, event) `
72- - ` onBlur(editor, event) `
73- - ` onUpdate(editor, event) `
74- - ` onKeyDown(editor, event) `
75- - ` onKeyUp(editor, event) `
76- - ` onKeyPress(editor, event) `
77- - ` onDragEnter(editor, event) `
78- - ` onDragOver(editor, event) `
79- - ` onDrop(editor, event) `
80- - ` onSelection(editor, ranges) `
81- - ` onScroll(editor, position) `
82- - ` onCursor(editor, position) `
83-
84- ## prop wrapped codemirror [ programming api] ( https://codemirror.net/doc/manual.html#api )
8556- ` selection={array<{anchor, head}>} ` - * [ setSelections] ( https://codemirror.net/doc/manual.html#setSelections ) *
8657> will programmatically select the ranges specified
8758``` jsx
@@ -119,6 +90,36 @@ require('codemirror/mode/javascript/javascript');
11990/ >
12091```
12192
93+ ## events
94+
95+ - ` editorWillMount() `
96+ - ` editorDidMount(editor, next) `
97+ > calling optional ` next() ` will trigger ` editorDidConfigure `
98+ - ` editorDidConfigure(editor) `
99+ - ` onValueSet(editor, value) `
100+ > returns the initial value via ` value `
101+ - ` editorWillUnmount(editor) `
102+
103+ ## events cont. [ wrapped codemirror events] ( https://codemirror.net/doc/manual.html#events )
104+
105+ - ` onValueChange(editor, metadata, value) `
106+ > returns the internal value of the editor
107+ - ` onCursorActivity(editor) `
108+ - ` onViewportChange(editor, viewportStart, viewportEnd) `
109+ - ` onGutterClick(editor, lineNumber, event) `
110+ - ` onFocus(editor, event) `
111+ - ` onBlur(editor, event) `
112+ - ` onUpdate(editor, event) `
113+ - ` onKeyDown(editor, event) `
114+ - ` onKeyUp(editor, event) `
115+ - ` onKeyPress(editor, event) `
116+ - ` onDragEnter(editor, event) `
117+ - ` onDragOver(editor, event) `
118+ - ` onDrop(editor, event) `
119+ - ` onSelection(editor, ranges) `
120+ - ` onScroll(editor, position) `
121+ - ` onCursor(editor, position) `
122+
122123
123124
124125
0 commit comments