1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-01 11:12:42 +02:00

rename Node.text to Node.string (#3341)

This commit is contained in:
Ian Storm Taylor
2019-12-17 22:17:21 -05:00
committed by GitHub
parent 4ee9f8b4e6
commit 235a578967
19 changed files with 26 additions and 26 deletions

View File

@@ -60,8 +60,8 @@ For example, when working with nodes:
```js
import { Node } from 'slate'
// Get the text content of an element node.
const text = Node.text(element)
// Get the string content of an element node.
const string = Node.string(element)
// Get the node at a specific path inside a root node.
const descendant = Node.get(value, path)