ueberdosis/tiptap · error
[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of
Error message
[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".
What it means
Error "[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text"." thrown in ueberdosis/tiptap.
Source
Thrown at packages/core/src/PasteRule.ts:92
return [...text.matchAll(find)]
}
const matches = find(text, event)
if (!matches) {
return []
}
return matches.map(pasteRuleMatch => {
const result: ExtendedRegExpMatchArray = [pasteRuleMatch.text]
result.index = pasteRuleMatch.index
result.input = text
result.data = pasteRuleMatch.data
if (pasteRuleMatch.replaceWith) {
if (!pasteRuleMatch.text.includes(pasteRuleMatch.replaceWith)) {
console.warn(
'[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".',
)
}
result.push(pasteRuleMatch.replaceWith)
}
return result
})
}
function run(config: {
editor: Editor
state: EditorState
from: number
to: number
rule: PasteRule
pasteEvent: ClipboardEvent | nullView on GitHub (pinned to 496d53afd7)
When it happens
Trigger: Thrown at packages/core/src/PasteRule.ts:92 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ueberdosis/tiptap@496d53afd7 (2026-08-26).
Data as JSON: /api/errors/27f0fbb0d8059d95.
Report an issue: GitHub.