1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-21 22:02:05 +02:00

tweak inline void component rendering, fix rendering tests

This commit is contained in:
Ian Storm Taylor 2016-09-26 21:50:21 -07:00
parent 686cd95aab
commit a9f28722e5
3 changed files with 3 additions and 5 deletions

View File

@ -113,8 +113,6 @@ class Void extends React.Component {
position: 'relative',
top: '0px',
left: '-9999px',
height: '0px',
width: '0px',
textIndent: '-9999px',
}
}

View File

@ -1,7 +1,7 @@
<div contenteditable="true">
<div style="position:relative;line-height:0px;">
<span style="position:relative;top:0px;left:-9999px;text-indent:-9999px;">
<div style="position:relative;">
<span style="position:absolute;top:0px;left:-9999px;text-indent:-9999px;">
<span>
<span class="slate-zero-width-space">&#x200B;</span>
</span>

View File

@ -6,7 +6,7 @@
<span class="slate-zero-width-space">&#x200B;</span>
</span>
</span>
<span style="position:relative;line-height:0px;">
<span style="position:relative;">
<span style="position:relative;top:0px;left:-9999px;text-indent:-9999px;">
<span>
<span class="slate-zero-width-space">&#x200B;</span>