Published
Edited
Apr 3, 2019
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
createEditor = ({ container, nodes, marks, nodeViews, value }) => {
const schema = new ProsemirrorModel.Schema({ nodes, marks })
const parser = ProsemirrorModel.DOMParser.fromSchema(schema)
const content = (new DOMParser).parseFromString(value, 'text/html')
const doc = parser.parse(content)
const plugins = ProsemirrorExampleSetup.exampleSetup({ schema })
const state = ProsemirrorState.EditorState.create({ doc, plugins })
const view = new ProsemirrorView.EditorView(container, { state, nodeViews })
return view
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more