Skip to main content

markPasteRule

@blockslides/core


@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

PasteRuleFinder

type

MarkType

getAttributes?

false | Record<string, any> | (match, event) => Record<string, any> | null

Returns

PasteRule

See

https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#paste-rules