1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-20 15:14:38 +01:00

Use getFirstText in getLeafText

This commit is contained in:
Samy Pessé 2016-11-10 11:04:01 +01:00
parent 1cc9b7329d
commit 094cdf8a51

View File

@ -11,8 +11,7 @@ function getLeafText(node) {
return node
}
const texts = node.getTexts()
return texts.first()
return node.getFirstText()
}
/**