Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
👕
Browse files Browse the repository at this point in the history
  • Loading branch information
tommoor committed Jan 19, 2019
1 parent a4d5426 commit ea33635
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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};
`;

Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,12 @@ class RichMarkdownEditor extends React.PureComponent<Props, State> {

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: *) => {
Expand Down

0 comments on commit ea33635

Please sign in to comment.