Skip to content

Commit

Permalink
fix(core): insert PasteRule Node at matched position (#2942) (#2943)
Browse files Browse the repository at this point in the history
  • Loading branch information
edlb authored Sep 10, 2022
1 parent dd153e2 commit bda6e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/pasteRules/nodePasteRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function nodePasteRule(config: {
if (match.input) {
chain()
.deleteRange(range)
.insertContent({
.insertContentAt(range.from, {
type: config.type.name,
attrs: attributes,
})
Expand Down

0 comments on commit bda6e8d

Please sign in to comment.