Fix paste rule adding one character to paste range (#2968)

Fixes #2939
This commit is contained in:
Billiam
2022-08-22 06:26:26 -05:00
committed by GitHub
parent 91f40f26f5
commit 18336a8255

View File

@@ -229,7 +229,7 @@ export function pasteRulesPlugin(props: { editor: Editor, rules: PasteRule[] }):
editor, editor,
state: chainableState, state: chainableState,
from: Math.max(from - 1, 0), from: Math.max(from - 1, 0),
to: to.b, to: to.b - 1,
rule, rule,
}) })