Type Editor / @type-editor/model / elements/Node
elements/Node
Classes
| Class | Description |
|---|---|
This class represents a node in the tree that makes up a ProseMirror document. So a document is an instance of Nodes are persistent data structures. Instead of changing them, you create new ones with the content you want. Old ones keep pointing at the old document shape. This is made cheaper by sharing structure between the old and new data as much as possible, which a tree shape like this (without back pointers) makes easy. Do not directly mutate the properties of a |