Skip to content
Snippets Groups Projects
Commit 558e0684 authored by chris's avatar chris
Browse files

fix title break

parent 2dffcba2
No related branches found
No related tags found
No related merge requests found
......@@ -80,9 +80,10 @@ const pressEnter = (state, dispatch) => {
state.config.schema.nodes.title,
true,
);
if (
title.length === 1 &&
state.selection.from >= title[0].pos - 1 &&
state.selection.from > title[0].pos + 1 &&
state.selection.from < title[0].pos + title[0].node.nodeSize - 1
) {
return true;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment