fix(core): insert PasteRule Node at matched position (#2942) (#2943)

This commit is contained in:
Etienne de la Broïse
2022-09-10 14:07:46 +02:00
committed by GitHub
parent dd153e29df
commit bda6e8d308

View File

@@ -29,7 +29,7 @@ export function nodePasteRule(config: {
if (match.input) { if (match.input) {
chain() chain()
.deleteRange(range) .deleteRange(range)
.insertContent({ .insertContentAt(range.from, {
type: config.type.name, type: config.type.name,
attrs: attributes, attrs: attributes,
}) })