fix: don’t trigger image input rule on paste, fix #2518

This commit is contained in:
Philipp Kühn
2022-02-11 11:00:15 +01:00
parent 4b128e17be
commit ecf270c9e7

View File

@@ -21,7 +21,7 @@ declare module '@tiptap/core' {
} }
} }
export const inputRegex = /(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))/ export const inputRegex = /(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/
export const Image = Node.create<ImageOptions>({ export const Image = Node.create<ImageOptions>({
name: 'image', name: 'image',