mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-01 19:22:35 +02:00
add data-key attribute to Text component
This commit is contained in:
@@ -43,8 +43,9 @@ class Text extends React.Component {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
const { node } = this.props
|
||||||
return (
|
return (
|
||||||
<span>
|
<span data-key={node.key}>
|
||||||
{this.renderLeaves()}
|
{this.renderLeaves()}
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user