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:
@@ -43,8 +43,9 @@ class Text extends React.Component {
|
||||
*/
|
||||
|
||||
render() {
|
||||
const { node } = this.props
|
||||
return (
|
||||
<span>
|
||||
<span data-key={node.key}>
|
||||
{this.renderLeaves()}
|
||||
</span>
|
||||
)
|
||||
|
Reference in New Issue
Block a user