mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-03 04:02:33 +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 = {
|
const schema = {
|
||||||
nodes: {
|
nodes: {
|
||||||
paragraph: props => <p>{props.children}</p>,
|
paragraph: props => <p {...props.attributes}>{props.children}</p>,
|
||||||
emoji: (props) => {
|
emoji: (props) => {
|
||||||
const { isSelected, node } = props
|
const { isSelected, node } = props
|
||||||
const { data } = node
|
const { data } = node
|
||||||
|
Reference in New Issue
Block a user