1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 10:29:48 +02:00

add data-key attribute to Text component

This commit is contained in:
Ian Storm Taylor
2016-07-22 12:15:33 -07:00
parent 950617cd6c
commit 06c7e885f8

View File

@@ -43,8 +43,9 @@ class Text extends React.Component {
*/
render() {
const { node } = this.props
return (
<span>
<span data-key={node.key}>
{this.renderLeaves()}
</span>
)