import { Node as ProseMirrorNode } from 'prosemirror-model' ; import { EditorView } from 'prosemirror-view' ; import CodeBlockView from './CodeMirror' ; const nodeViews = { code_mirror : ( node , view , getPos ) : CodeBlockView => { return new CodeBlockView ( node , view , getPos ) ; } } ; export default nodeViews ;