Skip to content

Commit ec8c9dc

Browse files
committed
Fix mistake in replaceChild parameter order in manual
1 parent 68d004c commit ec8c9dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manual.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h2 id="usage">Basic Usage</h2>
7575
textarea with a real editor:</p>
7676

7777
<pre>var myCodeMirror = CodeMirror(function(elt) {
78-
myTextArea.parentNode.replaceChild(myTextArea, elt);
78+
myTextArea.parentNode.replaceChild(elt, myTextArea);
7979
}, {value: myTextArea.value});</pre>
8080

8181
<p>However, for this use case, which is a common way to use

0 commit comments

Comments
 (0)