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
|
return node
|
||||||
}
|
}
|
||||||
|
|
||||||
const texts = node.getTexts()
|
return node.getFirstText()
|
||||||
return texts.first()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user