1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

fix minor build error

This commit is contained in:
Leo Lam
2017-04-21 23:40:52 -04:00
parent 50fc15feea
commit ffef239aa7

View File

@@ -175,8 +175,9 @@ class MarkdownEditor extends React.Component {
} }
addMdAroundWord (mdElement) { addMdAroundWord (mdElement) {
if (this.refs.code.editor.getSelection()) if (this.refs.code.editor.getSelection()) {
return this.addMdAroundSelection(mdElement) return this.addMdAroundSelection(mdElement)
}
const currentCaret = this.refs.code.editor.getCursor() const currentCaret = this.refs.code.editor.getCursor()
const word = this.refs.code.editor.findWordAt(currentCaret) const word = this.refs.code.editor.findWordAt(currentCaret)
const cmDoc = this.refs.code.editor.getDoc() const cmDoc = this.refs.code.editor.getDoc()