1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-06 23:36:31 +02: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

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}