Skip to content

Commit

Permalink
chore(rich-text-link): Fix variable name typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rfgamaral committed Sep 4, 2023
1 parent 8a3b528 commit 7c77ddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extensions/rich-text/rich-text-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ function linkInputRule(config: Parameters<typeof markInputRule>[0]) {
* @see https://github.com/ueberdosis/tiptap/discussions/1865
*/
function linkPasteRule(config: Parameters<typeof markPasteRule>[0]) {
const defaultMarkInputRule = markPasteRule(config)
const defaultMarkPasteRule = markPasteRule(config)

return new PasteRule({
find: config.find,
handler(props) {
const { tr } = props.state

defaultMarkInputRule.handler(props)
defaultMarkPasteRule.handler(props)
tr.setMeta('preventAutolink', true)
},
})
Expand Down

0 comments on commit 7c77ddc

Please sign in to comment.