1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-20 21:34:53 +02:00

docs: Move a method in the wrong section in the Transforms API reference

This commit is contained in:
Sunny Hirai 2021-03-30 00:23:33 -07:00
parent 9f71c4b9ab
commit f42b265c54

View File

@ -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.