This commit is contained in:
Tom Moor
2017-10-31 22:17:14 -07:00
parent 53cda8ce2b
commit 14326d89f2
6 changed files with 103 additions and 23 deletions

View File

@@ -16,6 +16,7 @@ import {
Heading6,
} from './components/Heading';
import Paragraph from './components/Paragraph';
import BlockToolbar from './components/BlockToolbar';
import type { Props, Node, Transform } from './types';
const createSchema = () => {
@@ -30,6 +31,7 @@ const createSchema = () => {
},
nodes: {
'block-toolbar': (props: Props) => <BlockToolbar {...props} />,
paragraph: (props: Props) => <Paragraph {...props} />,
'block-quote': (props: Props) => (
<blockquote>{props.children}</blockquote>