1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Update MarkdownPreview.js

This commit is contained in:
Milo Todt
2019-03-27 16:57:10 -07:00
committed by Junyoung Choi
parent b1c77ae59c
commit 3426191e59

View File

@@ -286,10 +286,6 @@ export default class MarkdownPreview extends React.Component {
const targetTag = clickElement.tagName // The direct parent HTML of where was clicked ie "BODY" or "DIV" const targetTag = clickElement.tagName // The direct parent HTML of where was clicked ie "BODY" or "DIV"
const lineNumber = getSourceLineNumberByElement(clickElement) // Line location of element clicked. const lineNumber = getSourceLineNumberByElement(clickElement) // Line location of element clicked.
if (clickElement === null && targetTag !== "INPUT") {
return null
}
if (config.editor.switchPreview === 'RIGHTCLICK' && e.buttons === 2 && config.editor.type === 'SPLIT') { if (config.editor.switchPreview === 'RIGHTCLICK' && e.buttons === 2 && config.editor.type === 'SPLIT') {
eventEmitter.emit('topbar:togglemodebutton', 'CODE') eventEmitter.emit('topbar:togglemodebutton', 'CODE')
} }