Skip to content

Commit e34c62a

Browse files
committed
Mark release 3.11
1 parent 7658b31 commit e34c62a

File tree

6 files changed

+56
-18
lines changed

6 files changed

+56
-18
lines changed

doc/compress.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ <h1><span class="logo-braces">{ }</span> <a href="http://codemirror.net/">CodeMi
3030
<input type="hidden" id="download" name="download" value="codemirror-compressed.js"/>
3131
<p>Version: <select id="version" onchange="setVersion(this);" style="padding: 1px">
3232
<option value="http://codemirror.net/">HEAD</option>
33+
<option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=v3.11;f=">3.11</option>
3334
<option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=v3.1;f=">3.1</option>
3435
<option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=v3.02;f=">3.02</option>
3536
<option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=v3.01;f=">3.01</option>

doc/manual.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,13 @@ <h2 id="events">Events</h2>
425425

426426
<dt id="event_update"><code>"update" (instance)</code></dt>
427427
<dd>Will be fired whenever CodeMirror updates its DOM display.</dd>
428+
429+
<dt id="event_renderLine"><code>"renderLine" (instance, line, element)</code></dt>
430+
<dd>Fired whenever a line is (re-)rendered to the DOM. Fired
431+
right after the DOM element is built, <em>before</em> it is
432+
added to the document. The handler may mess with the style of
433+
the resulting element, or add event handlers, but
434+
should <em>not</em> try to change the state of the editor.</dd>
428435
</dl>
429436

430437
<p>It is also possible to <a href="#on">register</a> events on
@@ -1221,6 +1228,11 @@ <h3 id="api_sizing">Sizing, scrolling and positioning methods</h3>
12211228
or <code>"local"</code>.</dd>
12221229
<dt id="defaultTextHeight"><code>cm.defaultTextHeight() → number</code></dt>
12231230
<dd>Returns the line height of the default font for the editor.</dd>
1231+
<dt id="defaultCharWidth"><code>cm.defaultCharWidth() → number</code></dt>
1232+
<dd>Returns the pixel width of an 'x' in the default font for
1233+
the editor. (Note that for non-monospace fonts, this is mostly
1234+
useless, and even for monospace fonts, non-ascii characters
1235+
might have a different width).</dd>
12241236

12251237
<dt id="getViewport"><code>cm.getViewport() → object</code></dt>
12261238
<dd>Returns a <code>{from, to}</code> object indicating the

doc/oldrelease.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,22 @@ <h1><span class="logo-braces">{ }</span> <a href="http://codemirror.net/">CodeMi
1919
</pre>
2020
</div>
2121

22+
<p class="rel">22-10-2012: <a href="http://codemirror.net/codemirror-3.0beta2.zip">Version 3.0, beta 2</a>:</p>
23+
24+
<ul class="rel-note">
25+
<li>Fix page-based coordinate computation.</li>
26+
<li>Fix firing of <a href="manual.html#event_gutterClick"><code>gutterClick</code></a> event.</li>
27+
<li>Add <a href="manual.html#option_cursorHeight"><code>cursorHeight</code></a> option.</li>
28+
<li>Fix bi-directional text regression.</li>
29+
<li>Add <a href="manual.html#option_viewportMargin"><code>viewportMargin</code></a> option.</li>
30+
<li>Directly handle mousewheel events (again, hopefully better).</li>
31+
<li>Make vertical cursor movement more robust (through widgets, big line gaps).</li>
32+
<li>Add <a href="manual.html#option_flattenSpans"><code>flattenSpans</code></a> option.</li>
33+
<li>Many optimizations. Poor responsiveness should be fixed.</li>
34+
<li>Initialization in hidden state works again.</li>
35+
<li>Full <a href="https://github.com/marijnh/CodeMirror/compare/v3.0beta1...v3.0beta2">list of patches</a>.</li>
36+
</ul>
37+
2238
<p class="rel">19-09-2012: <a href="http://codemirror.net/codemirror-2.34.zip">Version 2.34</a>:</p>
2339

2440
<ul class="rel-note">

index.html

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,31 @@ <h2>Reading material</h2>
285285

286286
<h2 id=releases>Releases</h2>
287287

288+
<p class="rel">20-03-2013: <a href="http://codemirror.net/codemirror-3.11.zip">Version 3.11</a>:</p>
289+
290+
<ul class="rel-note">
291+
<li><strong>Removed code:</strong> <code>collapserange</code>,
292+
<code>formatting</code>, and <code>simple-hint</code>
293+
addons. <code>plsql</code> and <code>mysql</code> modes
294+
(use <a href="mode/sql/index.html"><code>sql</code></a> mode).</li>
295+
<li><strong>Moved code:</strong> the range-finding functions for folding now have <a href="addon/fold/">their own files</a>.</li>
296+
<li><strong>Changed interface:</strong>
297+
the <a href="doc/manual.html#addon_continuecomment"><code>continuecomment</code></a>
298+
addon now exposes an option, rather than a command.</li>
299+
<li>New
300+
modes: <a href="mode/css/scss.html">SCSS</a>, <a href="mode/tcl/index.html">Tcl</a>, <a href="mode/livescript/index.html">LiveScript</a>,
301+
and <a href="mode/mirc/index.html">mIRC</a>.</li>
302+
<li>New addons: <a href="demo/placeholder.html"><code>placeholder</code></a>, <a href="demo/html5complete.html">HTML completion</a>.</li>
303+
<li>New
304+
methods: <a href="doc/manual.html#hasFocus"><code>hasFocus</code></a>, <a href="doc/manual.html#defaultCharWidth"><code>defaultCharWidth</code></a>.</li>
305+
<li>New events: <a href="doc/manual.html#event_beforeCursorEnter"><code>beforeCursorEnter</code></a>, <a href="doc/manual.html#event_renderLine"><code>renderLine</code></a>.</li>
306+
<li>Many improvements to the <a href="doc/manual.html#addon_show-hint"><code>show-hint</code></a> completion
307+
dialog addon.</li>
308+
<li>Tweak behavior of by-word cursor motion.</li>
309+
<li>Further improvements to the <a href="demo/vim.html">vim mode</a>.</li>
310+
<li>Full <a href="https://github.com/marijnh/CodeMirror/compare/v3.1...v3.11">list of patches</a>.</li>
311+
</ul>
312+
288313
<p class="rel">21-02-2013: <a href="http://codemirror.net/codemirror-3.1.zip">Version 3.1</a>:</p>
289314

290315
<ul class="rel-note">
@@ -432,22 +457,6 @@ <h2 id=releases>Releases</h2>
432457
<li>Full <a href="https://github.com/marijnh/CodeMirror/compare/v2.34...v2.35">list of patches</a>.</li>
433458
</ul>
434459

435-
<p class="rel">22-10-2012: <a href="http://codemirror.net/codemirror-3.0beta2.zip">Version 3.0, beta 2</a>:</p>
436-
437-
<ul class="rel-note">
438-
<li>Fix page-based coordinate computation.</li>
439-
<li>Fix firing of <a href="doc/manual.html#event_gutterClick"><code>gutterClick</code></a> event.</li>
440-
<li>Add <a href="doc/manual.html#option_cursorHeight"><code>cursorHeight</code></a> option.</li>
441-
<li>Fix bi-directional text regression.</li>
442-
<li>Add <a href="doc/manual.html#option_viewportMargin"><code>viewportMargin</code></a> option.</li>
443-
<li>Directly handle mousewheel events (again, hopefully better).</li>
444-
<li>Make vertical cursor movement more robust (through widgets, big line gaps).</li>
445-
<li>Add <a href="doc/manual.html#option_flattenSpans"><code>flattenSpans</code></a> option.</li>
446-
<li>Many optimizations. Poor responsiveness should be fixed.</li>
447-
<li>Initialization in hidden state works again.</li>
448-
<li>Full <a href="https://github.com/marijnh/CodeMirror/compare/v3.0beta1...v3.0beta2">list of patches</a>.</li>
449-
</ul>
450-
451460
<p><a href="doc/oldrelease.html">Older releases...</a></p>
452461

453462
</div></div>

lib/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5508,7 +5508,7 @@ window.CodeMirror = (function() {
55085508

55095509
// THE END
55105510

5511-
CodeMirror.version = "3.1 +";
5511+
CodeMirror.version = "3.11";
55125512

55135513
return CodeMirror;
55145514
})();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codemirror",
3-
"version":"3.10.01",
3+
"version":"3.11.00",
44
"main": "lib/codemirror.js",
55
"description": "In-browser code editing made bearable",
66
"licenses": [{"type": "MIT",

0 commit comments

Comments
 (0)