diff --git a/browser/main/Detail/MarkdownNoteDetail.js b/browser/main/Detail/MarkdownNoteDetail.js index 558d0e11..8d3acea9 100644 --- a/browser/main/Detail/MarkdownNoteDetail.js +++ b/browser/main/Detail/MarkdownNoteDetail.js @@ -276,9 +276,10 @@ class MarkdownNoteDetail extends React.Component { renderEditor () { const { config, ignorePreviewPointerEvents } = this.props const { note } = this.state - if (this.state.editorType === 'SPLIT') { - return } else { - return this.handleSwitchMode('SPLIT')}> -
this.handleSwitchMode('DEFAULT')}> +
this.handleSwitchMode('EDITOR_PREVIEW')}>
diff --git a/browser/main/lib/ConfigManager.js b/browser/main/lib/ConfigManager.js index 4e04ad70..3d70a7a3 100644 --- a/browser/main/lib/ConfigManager.js +++ b/browser/main/lib/ConfigManager.js @@ -36,7 +36,7 @@ export const DEFAULT_CONFIG = { indentSize: '2', switchPreview: 'BLUR', // Available value: RIGHTCLICK, BLUR scrollPastEnd: false, - type: 'default' + type: 'SPLIT' }, preview: { fontSize: '14',