dont return tr in input rules and pasterules

This commit is contained in:
Philipp Kühn
2022-01-10 14:55:53 +01:00
parent 209108b700
commit 6a813686f5
9 changed files with 12 additions and 36 deletions

View File

@@ -64,8 +64,6 @@ export function markPasteRule(config: {
tr.removeStoredMark(config.type)
}
return tr
},
})
}

View File

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