1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-01 11:12:42 +02:00

Fix small error in docs (#1435)

- make the placeholder have an opacity
- correct `contentEditable` jsx attribute
This commit is contained in:
Conor Cussell
2017-12-02 21:34:38 +01:00
committed by Ian Storm Taylor
parent 1ae4471692
commit 7032339ca2

View File

@@ -100,8 +100,8 @@ function renderPlaceholder(props) {
return (
<span
contenteditable={false}
style={{ display: 'inline-block', width: '0', whiteSpace: 'nowrap', opacity: '0' }}
contentEditable={false}
style={{ display: 'inline-block', width: '0', whiteSpace: 'nowrap', opacity: '0.33' }}
>
{editor.props.placeholder}
</span>