Type Editor / @type-editor/model / elements/Fragment
elements/Fragment
Classes
| Class | Description |
|---|---|
A fragment represents a node's collection of child nodes. Like nodes, fragments are persistent data structures, and you should not mutate them or their content. Rather, you create new instances whenever needed. The API tries to make this easy. Fragments are used to store the content of block nodes and the entire document. They provide efficient operations for accessing, comparing, and manipulating sequences of nodes while maintaining immutability. Key characteristics:
Example typescript |