clean up paste rule code

This commit is contained in:
Hans Pagel
2020-09-24 22:46:29 +02:00
parent 7c2b39353d
commit 7a1c33242d

View File

@@ -55,7 +55,7 @@ export default new Mark<LinkOptions>()
},
}))
.pasteRules(({ type }) => [
markPasteRule(pasteRegex, type, (url: string) => ({ href: url })),
markPasteRule(pasteRegex, type),
])
.plugins(({ options }) => {
if (!options.openOnClick) {