mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-09 16:56:36 +02:00
Document wrapBlockByKey
This commit is contained in:
@@ -59,6 +59,7 @@ Transform methods can either operate on the [`Document`](./document.md), the [`S
|
|||||||
- [`splitNodeByKey`](#splitnodebykey)
|
- [`splitNodeByKey`](#splitnodebykey)
|
||||||
- [`unwrapInlineByKey`](#unwrapinlinebykey)
|
- [`unwrapInlineByKey`](#unwrapinlinebykey)
|
||||||
- [`unwrapBlockByKey`](#unwrapblockbykey)
|
- [`unwrapBlockByKey`](#unwrapblockbykey)
|
||||||
|
- [`wrapBlockByKey`](#wrapblockbykey)
|
||||||
- [Document Transforms](#document-transforms)
|
- [Document Transforms](#document-transforms)
|
||||||
- [`deleteAtRange`](#deleteatrange)
|
- [`deleteAtRange`](#deleteatrange)
|
||||||
- [`deleteBackwardAtRange`](#deletebackwardatrange)
|
- [`deleteBackwardAtRange`](#deletebackwardatrange)
|
||||||
@@ -331,6 +332,12 @@ Unwrap all inner content of an [`Inline`](./inline.md) node that match `properti
|
|||||||
|
|
||||||
Unwrap all inner content of a [`Block`](./block.md) node that match `properties`. For convenience, you can pass a `type` string or `properties` object.
|
Unwrap all inner content of a [`Block`](./block.md) node that match `properties`. For convenience, you can pass a `type` string or `properties` object.
|
||||||
|
|
||||||
|
### `wrapBlockByKey`
|
||||||
|
`wrapBlockByKey(key: String, properties: Object) => Transform` <br/>
|
||||||
|
`wrapBlockByKey(key: String, type: String) => Transform`
|
||||||
|
|
||||||
|
Wrap the given node in a [`Block`](./block.md) node that match `properties`. For convenience, you can pass a `type` string or `properties` object.
|
||||||
|
|
||||||
## Document Transforms
|
## Document Transforms
|
||||||
|
|
||||||
### `deleteBackwardAtRange`
|
### `deleteBackwardAtRange`
|
||||||
|
Reference in New Issue
Block a user