1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 18:39:51 +02:00

Add props.attributes to the element used to render paragraphs. (#1188)

This commit is contained in:
AlbertHilb
2017-09-28 03:35:06 +02:00
committed by Ian Storm Taylor
parent c90f5f0825
commit 9bef508d87

View File

@@ -25,7 +25,7 @@ const EMOJIS = [
const schema = {
nodes: {
paragraph: props => <p>{props.children}</p>,
paragraph: props => <p {...props.attributes}>{props.children}</p>,
emoji: (props) => {
const { isSelected, node } = props
const { data } = node