File tree Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ package-lock.json
14
14
/search
15
15
/lint
16
16
/autocomplete
17
- /basic-setup
17
+ /codemirror
18
18
/lang-javascript
19
19
/lang-java
20
20
/lang-json
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ exports.core = [
9
9
"autocomplete" ,
10
10
"lint" ,
11
11
"collab" ,
12
- "basic-setup" ,
13
12
"language-data" ,
13
+ "codemirror" ,
14
14
]
15
15
exports . nonCore = [
16
16
"lang-javascript" ,
Original file line number Diff line number Diff line change 1
- import { EditorState , EditorView , basicSetup } from "@ codemirror/basic-setup "
1
+ import { EditorView , basicSetup } from "codemirror"
2
2
import { javascript } from "@codemirror/lang-javascript"
3
3
4
- let state = EditorState . create ( { doc : 'console.log("Hello world")' , extensions : [
5
- basicSetup ,
6
- javascript ( ) ,
7
- ] } )
8
-
9
- ; ( window as any ) . view = new EditorView ( { state, parent : document . querySelector ( "#editor" ) ! } )
4
+ ; ( window as any ) . view = new EditorView ( {
5
+ doc : 'console.log("Hello world")' ,
6
+ extensions : [
7
+ basicSetup ,
8
+ javascript ( ) ,
9
+ ] ,
10
+ parent : document . querySelector ( "#editor" ) !
11
+ } )
Original file line number Diff line number Diff line change 20
20
"@codemirror/search" : [" ./search/src/search.ts" ],
21
21
"@codemirror/lint" : [" ./lint/src/lint.ts" ],
22
22
"@codemirror/autocomplete" : [" ./autocomplete/src/index.ts" ],
23
- "@ codemirror/basic-setup " : [" ./basic-setup /src/basic-setup .ts" ],
23
+ "codemirror" : [" ./codemirror /src/codemirror .ts" ],
24
24
"@codemirror/lang-javascript" : [" ./lang-javascript/src/index.ts" ],
25
25
"@codemirror/lang-java" : [" ./lang-java/src/java.ts" ],
26
26
"@codemirror/lang-json" : [" ./lang-json/src/json.ts" ],
You can’t perform that action at this time.
0 commit comments