I am hoping I can render inside ProseMirror a simple phrase I can modify.
I am using code such as:
import { schema } from "prosemirror-schema-basic"
import { EditorState } from "prosemirror-state"
import { EditorView } from "prosemirror-view"
// ...
var node = schema.nodes.paragraph.create({
type: 'paragraph',
value: { content: "'hello'" },
id: Date.now(),
})
this.playgroundModel = EditorState.create({
schema,
doc: node,
})
this.playgroundDisplay = new EditorView(
this.playgroundNode.current,
{ state: this.playgroundModel },
)
I am unsure the arguments I need to pass into schema.nodes.paragraph.create({...})
.