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

feat: add optional method to decoration object (#5776)

This commit is contained in:
yf-yang
2024-12-07 15:19:30 +08:00
committed by GitHub
parent 6bc5758358
commit 5a1c728c62
9 changed files with 101 additions and 19 deletions

View File

@@ -26,7 +26,7 @@ If a `props.text` property is passed in, it will be ignored.
If there are properties in `text` that are not in `props`, those will be ignored when it comes to testing for a match.
#### `Text.decorations(node: Text, decorations: Range[]) => Text[]`
#### `Text.decorations(node: Text, decorations: DecoratedRange[]) => Text[]`
Get the leaves for a text node, given `decorations`.