mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 18:56:22 +00:00
remove unnecessary arg
This commit is contained in:
@@ -21,7 +21,7 @@ class MarkdownSplitEditor extends React.Component {
|
|||||||
this.setState({ value: props.value })
|
this.setState({ value: props.value })
|
||||||
}
|
}
|
||||||
|
|
||||||
handleOnChange (e) {
|
handleOnChange () {
|
||||||
const value = this.refs.code.value
|
const value = this.refs.code.value
|
||||||
this.setState({ value }, () => {
|
this.setState({ value }, () => {
|
||||||
this.value = value
|
this.value = value
|
||||||
@@ -71,7 +71,7 @@ class MarkdownSplitEditor extends React.Component {
|
|||||||
indentType={config.editor.indentType}
|
indentType={config.editor.indentType}
|
||||||
scrollPastEnd={config.editor.scrollPastEnd}
|
scrollPastEnd={config.editor.scrollPastEnd}
|
||||||
storageKey={storageKey}
|
storageKey={storageKey}
|
||||||
onChange={e => this.handleOnChange(e)}
|
onChange={this.handleOnChange.bind(this)}
|
||||||
/>
|
/>
|
||||||
<MarkdownPreview
|
<MarkdownPreview
|
||||||
style={previewStyle}
|
style={previewStyle}
|
||||||
|
|||||||
Reference in New Issue
Block a user