1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-26 00:27:28 +02: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 return node
} }
const texts = node.getTexts() return node.getFirstText()
return texts.first()
} }
/** /**