Skip to content

Commit

Permalink
Extend nodePasteRule find type to most generic PasteRuleFinder
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegillet committed Feb 17, 2023
1 parent 2b6e4e3 commit 82d72f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/pasteRules/nodePasteRule.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NodeType } from '@tiptap/pm/model'

import { PasteRule } from '../PasteRule'
import { PasteRule, PasteRuleFinder } from '../PasteRule'
import { ExtendedRegExpMatchArray } from '../types'
import { callOrReturn } from '../utilities'

Expand All @@ -9,7 +9,7 @@ import { callOrReturn } from '../utilities'
* matched text is pasted into it.
*/
export function nodePasteRule(config: {
find: RegExp
find: PasteRuleFinder
type: NodeType
getAttributes?:
| Record<string, any>
Expand Down

0 comments on commit 82d72f8

Please sign in to comment.