tiptap/packages/core/src/pasteRules
Joe Vallender 9ffd58cf25
feat: Allow a rule to be skipped from the getAttributes callback in markPasteRule (#1625)
For example: you are matching URLs with a Regex but want to make additional checks on the match array before deciding if you want to apply the mark or not. Returning null or false won't attempt to apply the mark. Currently the return value of getAttributes is applied unconditionally.
2021-07-26 15:13:05 +02:00
..
markPasteRule.ts feat: Allow a rule to be skipped from the getAttributes callback in markPasteRule (#1625) 2021-07-26 15:13:05 +02:00