1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-01-19 06:18:16 +01:00

Overrode Mark Styles in Placeholder (#3703)

* disabled user select on placeholder

* fixed css property value without quotes

* overrode mark styles in placeholder

Co-authored-by: Cameron Ackerman <cameron_ackerman@selinc.com>
This commit is contained in:
anatolzak 2020-05-29 00:56:41 +03:00 committed by GitHub
parent 4e7327d238
commit 44675c2080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,9 @@ const Leaf = (props: {
whiteSpace: 'nowrap',
opacity: '0.333',
userSelect: 'none',
fontStyle: 'normal',
fontWeight: 'normal',
textDecoration: 'none',
}}
>
{leaf.placeholder as React.ReactNode}