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