diff --git a/docs/api/transforms.md b/docs/api/transforms.md index 287b23e9e..7d426b5dd 100644 --- a/docs/api/transforms.md +++ b/docs/api/transforms.md @@ -28,6 +28,12 @@ interface NodeOptions { Transforms that operate on nodes. +###### `Transforms.insertFragment(editor: Editor, fragment: Node[], options?)` + +Insert of fragment of nodes at the specified location in the document. If no location is specified, insert at the current selection. + +Options: `{at?: Location, hanging?: boolean, voids?: boolean}` + ###### `Transforms.insertNodes(editor: Editor, nodes: Node | Node[], options?)` Insert `nodes` at the specified location in the document. If no location is specified, insert at the current selection. If there is no selection, insert at the end of the document. @@ -132,12 +138,6 @@ Delete text in the document. Options: `{at?: Location, distance?: number, unit?: 'character' | 'word' | 'line' | 'block', reverse?: boolean, hanging?: boolean, voids?: boolean}` -###### `Transforms.insertFragment(editor: Editor, fragment: Node[], options?)` - -Insert of fragment of nodes at the specified location in the document. If no location is specified, insert at the current selection. - -Options: `{at?: Location, hanging?: boolean, voids?: boolean}` - ###### `Transforms.insertText(editor: Editor, text: string, options?)` Insert a string of text at the specified location in the document. If no location is specified, insert at the current selection.