fix: add way to cancel inputrules and pasterules (#2368)

Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local>
This commit is contained in:
Philipp Kühn
2022-01-10 14:43:56 +01:00
committed by GitHub
parent 5144a6cd1b
commit 669efd00e9
10 changed files with 112 additions and 86 deletions

View File

@@ -29,7 +29,11 @@ export function textPasteRule(config: {
}
}
state.tr.insertText(insert, start, end)
const { tr } = state
tr.insertText(insert, start, end)
return tr
},
})
}