mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 10:51:44 +02:00
Fix renderBlock() in paste-html example (#2934)
* Fix renderBlock() in paste-html example It appears that render block is missing a case for rendering `paragraph`. Without this paragraphs are being rendered as `<div>`s. * Fixed lint error
This commit is contained in:
committed by
Ian Storm Taylor
parent
5686c3d8cc
commit
4369f3fc2f
@@ -192,6 +192,8 @@ class PasteHtml extends React.Component {
|
||||
const { attributes, children, node, isFocused } = props
|
||||
|
||||
switch (node.type) {
|
||||
case 'paragraph':
|
||||
return <p {...attributes}>{children}</p>
|
||||
case 'quote':
|
||||
return <blockquote {...attributes}>{children}</blockquote>
|
||||
case 'code':
|
||||
|
Reference in New Issue
Block a user