Skip to content

Commit

Permalink
Merge pull request #403 from prezly/feature/care-1293-snippet-doesnt-…
Browse files Browse the repository at this point in the history
…match-when-pasted-in-a

[CARE-1293] Snippet doesn't match when pasted
  • Loading branch information
aspirisen authored Mar 31, 2023
2 parents 5ffa3ed + 7a3c27f commit df4746e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function useFloatingSnippetInput(editor: Editor): [State, Actions] {
return;
}

EditorCommands.insertNodes(editor, node.children);
EditorCommands.insertNodes(editor, node.children, { mode: 'highest' });

editor.flash(node.children.at(0), node.children.at(-1));
savedSelection.restore(editor, { focus: true });
Expand Down

0 comments on commit df4746e

Please sign in to comment.