Skip to content

Commit

Permalink
Mark release 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Feb 20, 2015
1 parent c1e30b8 commit 289b647
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bin/release
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ rewrite("doc/compress.html", function(cmp) {

rewrite("index.html", function(index) {
return index.replace(/\.zip">\d+\.\d+<\/a>/,
".zip>" + simple + "</a>");
".zip\">" + simple + "</a>");
});
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codemirror",
"version":"4.13.0",
"version":"5.0.0",
"main": ["lib/codemirror.js", "lib/codemirror.css"],
"ignore": [
"**/.*",
Expand Down
1 change: 1 addition & 0 deletions doc/compress.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ <h2>Script compression helper</h2>
<input type="hidden" id="download" name="download" value="codemirror-compressed.js"/>
<p>Version: <select id="version" onchange="setVersion(this);" style="padding: 1px;">
<option value="http://codemirror.net/">HEAD</option>
<option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=5.0.0;f=">5.0</option>
<option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=4.13.0;f=">4.13</option>
<option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=4.12.0;f=">4.12</option>
<option value="http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=4.11.0;f=">4.11</option>
Expand Down
7 changes: 5 additions & 2 deletions doc/manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -1976,8 +1976,11 @@ <h3 id="api_misc">Miscellaneous methods</h3>
<dt id="focus"><code><strong>cm.focus</strong>()</code></dt>
<dd>Give the editor focus.</dd>

<dt id="getInputField"><code><strong>cm.getInputField</strong>() → TextAreaElement</code></dt>
<dd>Returns the hidden textarea used to read input.</dd>
<dt id="getInputField"><code><strong>cm.getInputField</strong>() → Element</code></dt>
<dd>Returns the input field for the editor. Will be a textarea
or an editable div, depending on the value of
the <a href="#option_inputStyle"><code>inputStyle</code></a>
option.</dd>
<dt id="getWrapperElement"><code><strong>cm.getWrapperElement</strong>() → Element</code></dt>
<dd>Returns the DOM node that represents the editor, and
controls its size. Remove this from your tree to delete an
Expand Down
10 changes: 10 additions & 0 deletions doc/releases.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ <h2>Release notes and version history</h2>

<h2>Version 4.x</h2>

<p class="rel">20-02-2015: <a href="http://codemirror.net/codemirror-5.0.zip">Version 5.0</a>:</p>

<ul class="rel-note">
<li>Experimental mobile support (tested on iOS, Android Chrome, stock Android browser)</li>
<li>New option <a href="manual.html#option_inputStyle"><code>inputStyle</code></a> to switch between hidden textarea and contenteditable input.</li>
<li>The <a href="manual.html#getInputField"><code>getInputField</code></a>
method is no longer guaranteed to return a textarea.</li>
<li>Full <a href="https://github.com/codemirror/CodeMirror/compare/4.12.0...4.13.0">list of patches</a>.</li>
</ul>

<p class="rel">20-02-2015: <a href="http://codemirror.net/codemirror-4.13.zip">Version 4.13</a>:</p>

<ul class="rel-note">
Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h2>This is CodeMirror</h2>
</div>
</div>
<div class=actionsleft>
Get the current version: <a href="http://codemirror.net/codemirror.zip>4.13</a>.<br>
Get the current version: <a href="http://codemirror.net/codemirror.zip">5.0</a>.<br>
You can see the <a href="https://github.com/codemirror/codemirror" title="Github repository">code</a> or<br>
read the <a href="doc/releases.html">release notes</a>.<br>
There is a <a href="doc/compress.html">minification helper</a>.
Expand Down Expand Up @@ -188,9 +188,9 @@ <h2>Browser support</h2>
<tr><th style="padding-right: 1em;">Internet Explorer</th><td>version 8 and up</td></tr>
<tr><th>Opera</th><td>version 9 and up</td></tr>
</table>
<p>Modern mobile browsers tend to partly work. Bug reports and
patches for mobile support are welcome, but the maintainer does not
have the time or budget to actually work on it himself.</p>
<p>Support for modern mobile browsers is experimental. Recent
versions of the iOS browser and Chrome on Android should work
pretty well.</p>
</section>

</article>
2 changes: 1 addition & 1 deletion lib/codemirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -8639,7 +8639,7 @@

// THE END

CodeMirror.version = "4.13.0";
CodeMirror.version = "5.0.0";

return CodeMirror;
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codemirror",
"version":"4.13.0",
"version":"5.0.0",
"main": "lib/codemirror.js",
"description": "In-browser code editing made bearable",
"licenses": [{"type": "MIT",
Expand Down

0 comments on commit 289b647

Please sign in to comment.