1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-23 07:22:55 +02:00

Update Transforms.setNodes documentation

This commit is contained in:
Sunny Hirai
2024-08-08 08:21:29 -07:00
parent b8bf92dc7e
commit 2c9d5ec87f

View File

@@ -95,6 +95,8 @@ Options supported: `NodeOptions & {split?: boolean}`. For `options.mode`, `'all'
Set properties of nodes at the specified location. If no location is specified, use the selection.
if `props` contains `undefined` values, the node's corresponding property will also be set to `undefined` as opposed to ignored.
Options supported: `NodeOptions & {hanging?: boolean, split?: boolean}`. For `options.mode`, `'all'` is also supported.
#### `Transforms.unsetNodes(editor: Editor, props: string | string[], options?)`