Skip to content

Commit 5035c92

Browse files
committed
Revert accidentally committed changes
1 parent f9554a9 commit 5035c92

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

demo/demo.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
import {basicSetup, EditorView} from "codemirror"
2-
import {markdown} from "@codemirror/lang-markdown"
3-
import {placeholder} from "@codemirror/view"
1+
import {EditorView, basicSetup} from "codemirror"
2+
import {javascript} from "@codemirror/lang-javascript"
43

54
;(window as any).view = new EditorView({
6-
doc: "",
7-
extensions: [basicSetup, markdown(), placeholder("Hello")],
8-
parent: document.body
5+
doc: 'console.log("Hello world")',
6+
extensions: [
7+
basicSetup,
8+
javascript(),
9+
],
10+
parent: document.querySelector("#editor")!
911
})

demo/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
<title>CM6 demo</title>
55

66
<style>
7-
.cm-editor { height: 300px; border: 1px solid #ddd;}
8-
.cm-content { line-height: 3em; }
7+
.cm-editor { height: 300px; border: 1px solid #ddd}
98
.cm-scroller { overflow: auto; }
109
</style>
1110

0 commit comments

Comments
 (0)