Skip to content

Commit fd6209e

Browse files
PiDelportmarijnh
authored andcommitted
[manual] Fix typos and spelling
1 parent 100d9b0 commit fd6209e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

doc/manual.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ <h2>Events</h2>
577577
<dd>Fired whenever new input is read from the hidden textarea
578578
(typed or pasted by the user).</dd>
579579

580-
<dt id="event_electricInput"><code><strong>"electrictInput"</strong> (instance: CodeMirror, line: integer)</code></dt>
580+
<dt id="event_electricInput"><code><strong>"electricInput"</strong> (instance: CodeMirror, line: integer)</code></dt>
581581
<dd>Fired if text input matched the
582582
mode's <a href="#option_electricChars">electric</a> patterns,
583583
and this caused the line's indentation to change.</dd>
@@ -1273,7 +1273,7 @@ <h3 id="api_selection">Cursor and selection methods</h3>
12731273

12741274
<dt id="getCursor"><code><strong>doc.getCursor</strong>(?start: string) → {line, ch}</code></dt>
12751275
<dd>Retrieve one end of the <em>primary</em>
1276-
selection. <code>start</code> is a an optional string indicating
1276+
selection. <code>start</code> is an optional string indicating
12771277
which end of the selection to return. It may
12781278
be <code>"from"</code>, <code>"to"</code>, <code>"head"</code>
12791279
(the side of the selection that moves when you press
@@ -1307,7 +1307,7 @@ <h3 id="api_selection">Cursor and selection methods</h3>
13071307
<dd>Determines whether the selection head should be scrolled
13081308
into view. Defaults to true.</dd>
13091309
<dt id="selection_origin"><code><strong>origin</strong>: string</code></dt>
1310-
<dd>Detemines whether the selection history event may be
1310+
<dd>Determines whether the selection history event may be
13111311
merged with the previous one. When an origin starts with the
13121312
character <code>+</code>, and the last recorded selection had
13131313
the same origin and was similar (close
@@ -1442,7 +1442,7 @@ <h3 id="api_configuration">Configuration methods</h3>
14421442
<dt id="removeOverlay"><code><strong>cm.removeOverlay</strong>(mode: string|object)</code></dt>
14431443
<dd>Pass this the exact value passed for the <code>mode</code>
14441444
parameter to <a href="#addOverlay"><code>addOverlay</code></a>,
1445-
or a string that corresponds to the <code>name</code> propery of
1445+
or a string that corresponds to the <code>name</code> property of
14461446
that value, to remove an overlay again.</dd>
14471447

14481448
<dt id="on"><code><strong>cm.on</strong>(type: string, func: (...args))</code></dt>
@@ -1787,7 +1787,7 @@ <h3 id="api_sizing">Sizing, scrolling and positioning methods</h3>
17871787

17881788
<dl>
17891789
<dt id="setSize"><code><strong>cm.setSize</strong>(width: number|string, height: number|string)</code></dt>
1790-
<dd>Programatically set the size of the editor (overriding the
1790+
<dd>Programmatically set the size of the editor (overriding the
17911791
applicable <a href="#css-resize">CSS
17921792
rules</a>). <code>width</code> and <code>height</code>
17931793
can be either numbers (interpreted as pixels) or CSS units
@@ -2112,7 +2112,7 @@ <h3 id="api_static">Static properties</h3>
21122112
through <a href="#setOption"><code>setOption</code></a>.</dd>
21132113

21142114
<dt id="defineInitHook"><code><strong>CodeMirror.defineInitHook</strong>(func: function)</code></dt>
2115-
<dd>If your extention just needs to run some
2115+
<dd>If your extension just needs to run some
21162116
code whenever a CodeMirror instance is initialized,
21172117
use <code>CodeMirror.defineInitHook</code>. Give it a function as
21182118
its only argument, and from then on, that function will be called
@@ -2298,7 +2298,7 @@ <h2 id="addons">Addons</h2>
22982298
the <code>CodeMirror-matchingtag</code> class). Also
22992299
defines
23002300
a <a href="#commands">command</a> <code>toMatchingTag</code>,
2301-
which you can bind a key to in order to jump to the tag mathing
2301+
which you can bind a key to in order to jump to the tag matching
23022302
the one under the cursor. Depends on
23032303
the <code>addon/fold/xml-fold.js</code>
23042304
addon. <a href="../demo/matchtags.html">Demo here.</a></dd>
@@ -2460,7 +2460,7 @@ <h2 id="addons">Addons</h2>
24602460
<dd>Can be used to run a CodeMirror mode over text without
24612461
actually opening an editor instance.
24622462
See <a href="../demo/runmode.html">the demo</a> for an example.
2463-
There are alternate versions of the file avaible for
2463+
There are alternate versions of the file available for
24642464
running <a href="../addon/runmode/runmode-standalone.js">stand-alone</a>
24652465
(without including all of CodeMirror) and
24662466
for <a href="../addon/runmode/runmode.node.js">running under
@@ -2597,9 +2597,9 @@ <h2 id="addons">Addons</h2>
25972597
has <code>moveFocus(n)</code>, <code>setFocus(n)</code>, <code>pick()</code>,
25982598
and <code>close()</code> methods (see the source for details),
25992599
that can be used to change the focused element, pick the
2600-
current element or close the menu. Additionnaly <code>menuSize()</code>
2600+
current element or close the menu. Additionally <code>menuSize()</code>
26012601
can give you access to the size of the current dropdown menu,
2602-
<code>length</code> give you the number of availlable completions, and
2602+
<code>length</code> give you the number of available completions, and
26032603
<code>data</code> give you full access to the completion returned by the
26042604
hinting function.</dd>
26052605
<dt><code><strong>extraKeys</strong>: keymap</code></dt>
@@ -2807,7 +2807,7 @@ <h2 id="addons">Addons</h2>
28072807
here</a>.</dd>
28082808

28092809
<dt id="addon_autorefresh"><a href="../addon/display/autorefresh.js"><code>display/autorefresh.js</code></a></dt>
2810-
<dd>This addon can be useful when initalizing an editor in a
2810+
<dd>This addon can be useful when initializing an editor in a
28112811
hidden DOM node, in cases where it is difficult to
28122812
call <a href="#refresh"><code>refresh</code></a> when the editor
28132813
becomes visible. It defines an option <code>autoRefresh</code>
@@ -2839,14 +2839,14 @@ <h2 id="addons">Addons</h2>
28392839
set of annotations. The method returns an object
28402840
whose <code>update</code> method can be called with an array
28412841
of <code>{from: Pos, to: Pos}</code> objects marking the ranges
2842-
to be higlighed. To detach the annotations, call the
2842+
to be highlighted. To detach the annotations, call the
28432843
object's <code>clear</code> method.</dd>
28442844

28452845
<dt id="addon_rulers"><a href="../addon/display/rulers.js"><code>display/rulers.js</code></a></dt>
28462846
<dd>Adds a <code>rulers</code> option, which can be used to show
28472847
one or more vertical rulers in the editor. The option, if
28482848
defined, should be given an array of <code>{column [, className,
2849-
color, lineStyle, width]}</code> objects or numbers (wich
2849+
color, lineStyle, width]}</code> objects or numbers (which
28502850
indicate a column). The ruler will be displayed at the column
28512851
indicated by the number or the <code>column</code> property.
28522852
The <code>className</code> property can be used to assign a
@@ -2904,7 +2904,7 @@ <h2 id="addons">Addons</h2>
29042904
<dt><code><strong>wrapRange</strong>(from: {line, ch}, to: {line, ch}, ?options: object)</code></dt>
29052905
<dd>Wraps the given range as one big paragraph.</dd>
29062906
<dt><code><strong>wrapParagraphsInRange</strong>(from: {line, ch}, to: {line, ch}, ?options: object)</code></dt>
2907-
<dd>Wrapps the paragraphs in (and overlapping with) the
2907+
<dd>Wraps the paragraphs in (and overlapping with) the
29082908
given range individually.</dd>
29092909
</dl>
29102910
The following options are recognized:

0 commit comments

Comments
 (0)