This commit is contained in:
Jori Lallo
2018-01-03 21:35:13 -08:00
parent 2fd5fc2dff
commit 2c9e92e5b9
19 changed files with 130 additions and 215 deletions

View File

@@ -24,12 +24,12 @@ import styled from 'styled-components';
type Props = {
text: string,
onChange: Change => *,
onSave: (redirect?: boolean) => *,
onCancel: () => void,
onImageUploadStart: () => void,
onImageUploadStop: () => void,
emoji ?: string,
readOnly: boolean,
onSave: (redirect?: boolean) => *,
onCancel: () => void,
onImageUploadStart: () => void,
onImageUploadStop: () => void,
emoji?: string,
readOnly: boolean,
};
@observer
@@ -216,13 +216,13 @@ class MarkdownEditor extends Component {
};
}
const MaxWidth = styled(Flex) `
const MaxWidth = styled(Flex)`
margin: 0 60px;
max-width: 46em;
height: 100%;
`;
const Header = styled(Flex) `
const Header = styled(Flex)`
height: 60px;
flex-shrink: 0;
align-items: flex-end;
@@ -233,7 +233,7 @@ const Header = styled(Flex) `
}
`;
const StyledEditor = styled(Editor) `
const StyledEditor = styled(Editor)`
font-weight: 400;
font-size: 1em;
line-height: 1.7em;

View File

@@ -6,7 +6,6 @@ import { Portal } from 'react-portal';
import { Editor, findDOMNode } from 'slate-react';
import { Node, Value } from 'slate';
import styled from 'styled-components';
import _ from 'lodash';
import FormattingToolbar from './components/FormattingToolbar';
import LinkToolbar from './components/LinkToolbar';

View File

@@ -7,7 +7,7 @@ import { withRouter } from 'react-router-dom';
import { Node } from 'slate';
import { Editor } from 'slate-react';
import styled from 'styled-components';
import ArrowKeyNavigation from 'boundless-arrow-key-navigation/build';
import ArrowKeyNavigation from 'boundless-arrow-key-navigation';
import ToolbarButton from './ToolbarButton';
import DocumentResult from './DocumentResult';
import DocumentsStore from 'stores/DocumentsStore';