Skip to content

Commit cae456c

Browse files
committed
Document the refresh event
1 parent 5bb6a94 commit cae456c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/manual.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,11 @@ <h2>Events</h2>
634634
<dt id="event_scroll"><code><strong>"scroll"</strong> (instance: CodeMirror)</code></dt>
635635
<dd>Fires when the editor is scrolled.</dd>
636636

637+
<dt id="event_resize"><code><strong>"resize"</strong> (instance: CodeMirror)</code></dt>
638+
<dd>Fires when the editor is <a href="#refresh">refreshed</a>
639+
or <a href="#setSize">resized</a>. Mostly useful to invalidate
640+
cached values that depend on the editor or character size.</dd>
641+
637642
<dt id="event_scrollCursorIntoView"><code><strong>"scrollCursorIntoView"</strong> (instance: CodeMirror, event: Event)</code></dt>
638643
<dd>Fires when the editor tries to scroll its cursor into view.
639644
Can be hooked into to take care of additional scrollable

0 commit comments

Comments
 (0)