Skip to content

Commit

Permalink
Expand documentation for autofocus a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Mar 21, 2012
1 parent 7cf2ab7 commit ac85791
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,11 @@ <h2 id="config">Configuration</h2>
will be assigned.</dd>

<dt id="option_autofocus"><code>autofocus (boolean)</code></dt>
<dd>When set to <code>true</code>, causes the editor to be
focused after initialization. Default is <code>false</code>.</dd>
<dd>Can be used to make CodeMirror focus itself on
initialization. Defaults to off.
When <a href="#fromTextArea"><code>fromTextArea</code></a> is
used, and no explicit value is given for this option, it will
inherit the setting from the textarea.</dd>

<dt id="option_onKeyEvent"><code>onKeyEvent (function)</code></dt>
<dd>This provides a rather low-level hook into CodeMirror's key
Expand Down

0 comments on commit ac85791

Please sign in to comment.