1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-19 13:41:19 +02:00

update void rendering tests

This commit is contained in:
Ian Storm Taylor
2016-08-04 14:13:58 -07:00
parent 9a70188f34
commit c5f689e543
2 changed files with 8 additions and 13 deletions

View File

@@ -1,12 +1,9 @@
import { Void } from '../../../..'
import React from 'react'
function Image(props) {
return (
<Void {...props}>
<img src={props.node.data.get('src')} />
</Void>
<img src={props.node.data.get('src')} {...props.attributes} />
)
}

View File

@@ -1,7 +1,6 @@
<div contenteditable="true">
<div contenteditable="false" data-void="true">
<div contenteditable="true" style="position:relative;">
<div style="position:relative;">
<span style="position:absolute;top:0px;left:-9999px;text-indent:-9999px;">
<span>
<br>
@@ -12,4 +11,3 @@
</div>
</div>
</div>
</div>