Skip to content
Snippets Groups Projects
Commit cae456c7 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

Document the refresh event

parent 5bb6a94e
No related merge requests found
...@@ -634,6 +634,11 @@ ...@@ -634,6 +634,11 @@
<dt id="event_scroll"><code><strong>"scroll"</strong> (instance: CodeMirror)</code></dt> <dt id="event_scroll"><code><strong>"scroll"</strong> (instance: CodeMirror)</code></dt>
<dd>Fires when the editor is scrolled.</dd> <dd>Fires when the editor is scrolled.</dd>
<dt id="event_resize"><code><strong>"resize"</strong> (instance: CodeMirror)</code></dt>
<dd>Fires when the editor is <a href="#refresh">refreshed</a>
or <a href="#setSize">resized</a>. Mostly useful to invalidate
cached values that depend on the editor or character size.</dd>
<dt id="event_scrollCursorIntoView"><code><strong>"scrollCursorIntoView"</strong> (instance: CodeMirror, event: Event)</code></dt> <dt id="event_scrollCursorIntoView"><code><strong>"scrollCursorIntoView"</strong> (instance: CodeMirror, event: Event)</code></dt>
<dd>Fires when the editor tries to scroll its cursor into view. <dd>Fires when the editor tries to scroll its cursor into view.
Can be hooked into to take care of additional scrollable Can be hooked into to take care of additional scrollable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment