Fix block menu always showing on first char

This commit is contained in:
Mathias Biilmann Christensen 2016-10-22 23:28:25 +03:00
parent c068fae24e
commit 9566392dd3

View File

@ -177,7 +177,7 @@ export default class RawEditor extends React.Component {
} else if (selection.start === selection.end) {
const newBlock =
(
selection.start === 0 ||
(selection.start === 0 && value.substr(0,1).match(/^\n?$/)) ||
value.substr(selection.start - 2, 2) === '\n\n') &&
(
selection.end === (value.length - 1) ||