mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 22:36:14 +08:00
Extend nodePasteRule
find
type to most generic PasteRuleFinder
(#3759)
This commit is contained in:
parent
d8967a7d63
commit
a81019a6b7
@ -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'
|
||||
|
||||
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user