markPasteRule
@blockslides/core / markPasteRule
Function: markPasteRule()
markPasteRule(
config):PasteRule
Defined in: blockslides/packages/core/src/pasteRules/markPasteRule.ts:14
Build an paste rule that adds a mark when the matched text is pasted into it.
Parameters
config
find
type
MarkType
getAttributes?
false | Record<string, any> | (match, event) => Record<string, any> | null
Returns
See
https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#paste-rules