From 9c3e1d470c2d78d2181f06d10d975bf566c3f4c4 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 18 Jul 2017 22:55:50 -0700 Subject: [PATCH] Fixes #169 --- frontend/components/Editor/components/Paragraph.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/components/Editor/components/Paragraph.js b/frontend/components/Editor/components/Paragraph.js index a3d43ba7b..66993422d 100644 --- a/frontend/components/Editor/components/Paragraph.js +++ b/frontend/components/Editor/components/Paragraph.js @@ -10,12 +10,17 @@ export default function Link({ node, parent, children, + readOnly, }: Props) { const parentIsDocument = parent instanceof Document; const firstParagraph = parent && parent.nodes.get(1) === node; const lastParagraph = parent && parent.nodes.last() === node; const showPlaceholder = - parentIsDocument && firstParagraph && lastParagraph && !node.text; + !readOnly && + parentIsDocument && + firstParagraph && + lastParagraph && + !node.text; return (