This commit is contained in:
Tom Moor
2018-04-03 20:20:30 -07:00
parent 17900c6a11
commit f72fa40a0f
39 changed files with 10 additions and 2778 deletions

View File

@@ -7,6 +7,7 @@ import { observer, inject } from 'mobx-react';
import { withRouter, Prompt } from 'react-router-dom';
import type { Location } from 'react-router-dom';
import keydown from 'react-keydown';
import Editor from 'rich-markdown-editor';
import Flex from 'shared/components/Flex';
import {
collectionUrl,
@@ -17,6 +18,7 @@ import {
matchDocumentMove,
} from 'utils/routeHelpers';
import Document from 'models/Document';
import Actions from './components/Actions';
import DocumentMove from './components/DocumentMove';
@@ -128,8 +130,8 @@ class DocumentScene extends React.Component {
};
loadEditor = async () => {
const EditorImport = await import('components/Editor');
this.editorComponent = EditorImport.default;
// const EditorImport = await import('rich-markdown-editor');
// this.editorComponent = EditorImport.default;
};
get isEditing() {
@@ -205,7 +207,7 @@ class DocumentScene extends React.Component {
}
render() {
const Editor = this.editorComponent;
// const Editor = this.editorComponent;
const isMoving = this.props.match.path === matchDocumentMove;
const document = this.document;
const titleText =