From 87e277a94f22a59ad1c89156bba532c4f73a9b17 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Sun, 12 Nov 2017 17:56:01 -0800 Subject: [PATCH] Fixed heading anchors --- app/components/Editor/components/Heading.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components/Editor/components/Heading.js b/app/components/Editor/components/Heading.js index 9cd0d0fc5..f839866ad 100644 --- a/app/components/Editor/components/Heading.js +++ b/app/components/Editor/components/Heading.js @@ -15,6 +15,7 @@ type Props = { readOnly: boolean, component?: string, attributes: Object, + className?: string, }; function Heading(props: Props) { @@ -27,6 +28,7 @@ function Heading(props: Props) { children, component = 'h1', attributes, + className, } = props; const parentIsDocument = parent instanceof Document; const firstHeading = parentIsDocument && parent.nodes.first() === node; @@ -40,7 +42,7 @@ function Heading(props: Props) { emoji && title.match(new RegExp(`^${emoji}\\s`)); return ( - + {children} {showPlaceholder && (