mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 23:15:15 +08:00
fix(extension-link): restricts parsing javascript:
pseudo-protocol
This commit is contained in:
parent
ab4a0e2507
commit
947f311c0e
@ -78,7 +78,7 @@ export const Link = Mark.create<LinkOptions>({
|
||||
|
||||
parseHTML() {
|
||||
return [
|
||||
{ tag: 'a[href]' },
|
||||
{ tag: 'a[href]:not([href *= "javascript:" i])' },
|
||||
]
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user