We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91f86b3 commit 1440436Copy full SHA for 1440436
src/commands.js
@@ -261,7 +261,7 @@ export function exitCode(state, dispatch) {
261
// it is its parent's first child) or after it.
262
export function createParagraphNear(state, dispatch) {
263
let sel = state.selection, {$from, $to} = sel
264
- if (!(sel instanceof NodeSelection) || $from.parent.inlineContent) return false
+ if (sel instanceof AllSelection || $from.parent.inlineContent || $to.parent.inlineContent) return false
265
let type = defaultBlockAt($to.parent.contentMatchAt($to.indexAfter()))
266
if (!type || !type.isTextblock) return false
267
if (dispatch) {
0 commit comments