MCPcopy Create free account
hub / github.com/Milkdown/website / createCodeMirrorView

Function createCodeMirrorView

src/components/playground/codemirror/setup.ts:105–110  ·  view source on GitHub ↗
({ root, ...options }: ViewOptions)

Source from the content-addressed store, hash-verified

103 root: HTMLElement
104}
105export const createCodeMirrorView = ({ root, ...options }: ViewOptions) => {
106 return new EditorView({
107 state: createCodeMirrorState(options),
108 parent: root,
109 })
110}

Callers 1

CodemirrorFunction · 0.90

Calls 1

createCodeMirrorStateFunction · 0.85

Tested by

no test coverage detected