mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-20 06:01:24 +02:00
update void rendering tests
This commit is contained in:
@@ -1,12 +1,9 @@
|
|||||||
|
|
||||||
import { Void } from '../../../..'
|
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
||||||
function Image(props) {
|
function Image(props) {
|
||||||
return (
|
return (
|
||||||
<Void {...props}>
|
<img src={props.node.data.get('src')} {...props.attributes} />
|
||||||
<img src={props.node.data.get('src')} />
|
|
||||||
</Void>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
<div contenteditable="true">
|
<div contenteditable="true">
|
||||||
<div contenteditable="false" data-void="true">
|
<div style="position:relative;">
|
||||||
<div contenteditable="true" style="position:relative;">
|
|
||||||
<span style="position:absolute;top:0px;left:-9999px;text-indent:-9999px;">
|
<span style="position:absolute;top:0px;left:-9999px;text-indent:-9999px;">
|
||||||
<span>
|
<span>
|
||||||
<br>
|
<br>
|
||||||
@@ -12,4 +11,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
Reference in New Issue
Block a user