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:
@@ -11,8 +11,7 @@ function getLeafText(node) {
|
||||
return node
|
||||
}
|
||||
|
||||
const texts = node.getTexts()
|
||||
return texts.first()
|
||||
return node.getFirstText()
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user