Skip to content

Commit 33c4d7c

Browse files
committed
Fix and document onUpdate
1 parent 29e3a69 commit 33c4d7c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/codemirror.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,6 +1718,7 @@ var CodeMirror = (function() {
17181718
onCursorActivity: null,
17191719
onGutterClick: null,
17201720
onHighlightComplete: null,
1721+
onUpdate: null,
17211722
onFocus: null, onBlur: null, onScroll: null,
17221723
matchBrackets: false,
17231724
workTime: 100,

manual.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ <h2 id="config">Configuration</h2>
234234
this function (if given) will be called. It'll be given a single
235235
argument, the editor instance.</dd>
236236

237+
<dt id="option_onUpdate"><code>onUpdate (function)</code></dt>
238+
<dd>Will be called whenever CodeMirror updates its DOM display.</dd>
239+
237240
<dt id="option_matchBrackets"><code>matchBrackets (boolean)</code></dt>
238241
<dd>Determines whether brackets are matched whenever the cursor
239242
is moved next to a bracket.</dd>

0 commit comments

Comments
 (0)