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:
committed by
Ian Storm Taylor
parent
1ae4471692
commit
7032339ca2
@@ -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>
|
||||
|
Reference in New Issue
Block a user