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:
committed by
Ian Storm Taylor
parent
c90f5f0825
commit
9bef508d87
@@ -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
|
||||
|
Reference in New Issue
Block a user