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:
@@ -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} />
|
||||
)
|
||||
}
|
||||
|
||||
|
@@ -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>
|
||||
@@ -11,5 +10,4 @@
|
||||
<img src="https://img.washingtonpost.com/wp-apps/imrs.php?src=https://img.washingtonpost.com/news/speaking-of-science/wp-content/uploads/sites/36/2015/10/as12-49-7278-1024x1024.jpg&w=1484">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user