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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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