1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Markdown functionality

This commit is contained in:
Duarte-Frazao
2018-12-13 13:13:01 +00:00
parent 62609a2918
commit 4fb11b68e4
9 changed files with 31 additions and 11 deletions

View File

@@ -232,7 +232,7 @@ class MarkdownEditor extends React.Component {
}
render () {
const {className, value, config, storageKey, noteKey} = this.props
const {className, value, config, storageKey, noteKey, linesHighlighted} = this.props
let editorFontSize = parseInt(config.editor.fontSize, 10)
if (!(editorFontSize > 0 && editorFontSize < 101)) editorFontSize = 14
@@ -275,7 +275,8 @@ class MarkdownEditor extends React.Component {
noteKey={noteKey}
fetchUrlTitle={config.editor.fetchUrlTitle}
enableTableEditor={config.editor.enableTableEditor}
onChange={(e) => this.handleChange(e)}
linesHighlighted={linesHighlighted}
onChange={(e) => this.handleChange(e).bind(this)}
onBlur={(e) => this.handleBlur(e)}
spellCheck={config.editor.spellcheck}
/>