diff --git a/src/components/Placeholder.js b/src/components/Placeholder.js index 3b1b2c39f..d0f975af0 100644 --- a/src/components/Placeholder.js +++ b/src/components/Placeholder.js @@ -9,7 +9,7 @@ const Placeholder = styled.span.attrs({ width: 0; max-width: 100%; white-space: nowrap; - float: left; + line-height: 1.2em; color: ${props => props.theme.placeholder}; `; diff --git a/src/index.js b/src/index.js index bb6bcc30d..9c83e532b 100644 --- a/src/index.js +++ b/src/index.js @@ -206,12 +206,12 @@ class RichMarkdownEditor extends React.PureComponent { focusAtStart = () => { const { editor } = this; - editor.moveToStartOfNode(editor.value.document).focus(); + editor.moveToStartOfDocument().focus(); }; focusAtEnd = () => { const { editor } = this; - editor.moveToEndOfNode(editor.value.document).focus(); + editor.moveToEndOfDocument().focus(); }; renderNode = (...args: *) => {