-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetupEditor.js
More file actions
26 lines (25 loc) · 799 Bytes
/
setupEditor.js
File metadata and controls
26 lines (25 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// import { EditorState, basicSetup } from '@codemirror/basic-setup'
// import { EditorView, keymap } from '@codemirror/view'
// import { defaultKeymap } from '@code''
// import { json } from '@codemirror/lang-json'
// export default function setupEditors() {
// const basicExtensions = [
// basicSetup,
// keymap.of([defaultKeymap]),
// json,
// EditorState.tabSize.of(2),
// ]
// const requestEditor = new EditorView({
// state: EditorState.create({
// doc: '{\n\t\n}',
// extensions: basicExtensions,
// }),
// })
// const responseEditor = new EditorView({
// state: EditorState.create({
// doc: '',
// extensions: [...basicExtensions,EditorView.editable.of(false)]
// }),
// })
// return {requestEditor,responseEditor}
// }