1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-24 07:01:48 +00:00

implement splitEditor

This commit is contained in:
Sosuke Suzuki
2017-12-18 18:26:25 +09:00
parent 8e81609a39
commit ea064deeb8
2 changed files with 60 additions and 3 deletions

View File

@@ -277,7 +277,13 @@ class MarkdownNoteDetail extends React.Component {
const { config, ignorePreviewPointerEvents } = this.props
const { note } = this.state
if (this.state.editorType === 'SPLIT') {
return <MarkdownSplitEditor />
return <MarkdownSplitEditor
ref='content'
config={config}
value={note.content}
storageKey={note.storage}
onChange={(e) => this.handleChange(e)}
/>
} else {
return <MarkdownEditor
ref='content'