1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 02:49:56 +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

@@ -116,8 +116,8 @@ import { Node } from 'slate'
const serialize = value => {
return (
value
// Return the text content of each paragraph in the value's children.
.map(n => Node.text(n))
// Return the string content of each paragraph in the value's children.
.map(n => Node.string(n))
// Join them all with line breaks denoting paragraphs.
.join('\n')
)