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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user