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

Toggle linting gutter with document.querySelector and style.display

This commit is contained in:
AWolf81
2019-05-25 07:16:03 +02:00
parent 270a015514
commit b68b367b3c
2 changed files with 7 additions and 7 deletions

View File

@@ -194,6 +194,7 @@ class MarkdownEditor extends React.Component {
}
reload () {
console.log('reloading editor...')
this.refs.code.reload()
this.cancelQueue()
this.renderPreview(this.props.value)
@@ -277,7 +278,7 @@ class MarkdownEditor extends React.Component {
if (this.props.ignorePreviewPointerEvents) previewStyle.pointerEvents = 'none'
const storage = findStorage(storageKey)
console.log('render editor', config)
return (
<div className={className == null
? 'MarkdownEditor'