From 9386de50875feeb03f5d16c09caf7c54b1a67261 Mon Sep 17 00:00:00 2001 From: Horu <73709188+HigherOrderLogic@users.noreply.github.com> Date: Sun, 27 Oct 2024 19:45:12 +1100 Subject: [PATCH] docs: update link in input and paste rules docstrings (#5771) --- packages/core/src/PasteRule.ts | 2 +- packages/core/src/inputRules/markInputRule.ts | 2 +- packages/core/src/inputRules/nodeInputRule.ts | 2 +- packages/core/src/inputRules/textInputRule.ts | 2 +- packages/core/src/inputRules/textblockTypeInputRule.ts | 2 +- packages/core/src/inputRules/wrappingInputRule.ts | 2 +- packages/core/src/pasteRules/markPasteRule.ts | 2 +- packages/core/src/pasteRules/nodePasteRule.ts | 2 +- packages/core/src/pasteRules/textPasteRule.ts | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/core/src/PasteRule.ts b/packages/core/src/PasteRule.ts index 355acd6f9fa..9224841c1d4 100644 --- a/packages/core/src/PasteRule.ts +++ b/packages/core/src/PasteRule.ts @@ -29,7 +29,7 @@ export type PasteRuleFinder = /** * Paste rules are used to react to pasted content. - * @see https://tiptap.dev/guide/custom-extensions/#paste-rules + * @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#paste-rules */ export class PasteRule { find: PasteRuleFinder diff --git a/packages/core/src/inputRules/markInputRule.ts b/packages/core/src/inputRules/markInputRule.ts index 4e4c9aca9e6..0f781023ab0 100644 --- a/packages/core/src/inputRules/markInputRule.ts +++ b/packages/core/src/inputRules/markInputRule.ts @@ -8,7 +8,7 @@ import { callOrReturn } from '../utilities/callOrReturn.js' /** * Build an input rule that adds a mark when the * matched text is typed into it. - * @see https://tiptap.dev/guide/custom-extensions/#input-rules + * @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules */ export function markInputRule(config: { find: InputRuleFinder diff --git a/packages/core/src/inputRules/nodeInputRule.ts b/packages/core/src/inputRules/nodeInputRule.ts index 9032e3bb167..d9f2cc2473a 100644 --- a/packages/core/src/inputRules/nodeInputRule.ts +++ b/packages/core/src/inputRules/nodeInputRule.ts @@ -7,7 +7,7 @@ import { callOrReturn } from '../utilities/callOrReturn.js' /** * Build an input rule that adds a node when the * matched text is typed into it. - * @see https://tiptap.dev/guide/custom-extensions/#input-rules + * @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules */ export function nodeInputRule(config: { /** diff --git a/packages/core/src/inputRules/textInputRule.ts b/packages/core/src/inputRules/textInputRule.ts index 5d8c210f4cb..e7260ddfaa0 100644 --- a/packages/core/src/inputRules/textInputRule.ts +++ b/packages/core/src/inputRules/textInputRule.ts @@ -3,7 +3,7 @@ import { InputRule, InputRuleFinder } from '../InputRule.js' /** * Build an input rule that replaces text when the * matched text is typed into it. - * @see https://tiptap.dev/guide/custom-extensions/#input-rules + * @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules */ export function textInputRule(config: { find: InputRuleFinder, diff --git a/packages/core/src/inputRules/textblockTypeInputRule.ts b/packages/core/src/inputRules/textblockTypeInputRule.ts index 60c4a60401e..51e9c618f6f 100644 --- a/packages/core/src/inputRules/textblockTypeInputRule.ts +++ b/packages/core/src/inputRules/textblockTypeInputRule.ts @@ -9,7 +9,7 @@ import { callOrReturn } from '../utilities/callOrReturn.js' * matched text is typed into it. When using a regular expresion you’ll * probably want the regexp to start with `^`, so that the pattern can * only occur at the start of a textblock. - * @see https://tiptap.dev/guide/custom-extensions/#input-rules + * @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules */ export function textblockTypeInputRule(config: { find: InputRuleFinder diff --git a/packages/core/src/inputRules/wrappingInputRule.ts b/packages/core/src/inputRules/wrappingInputRule.ts index 9148d0426d4..7f5ab4bb660 100644 --- a/packages/core/src/inputRules/wrappingInputRule.ts +++ b/packages/core/src/inputRules/wrappingInputRule.ts @@ -19,7 +19,7 @@ import { callOrReturn } from '../utilities/callOrReturn.js' * two nodes. You can pass a join predicate, which takes a regular * expression match and the node before the wrapped node, and can * return a boolean to indicate whether a join should happen. - * @see https://tiptap.dev/guide/custom-extensions/#input-rules + * @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules */ export function wrappingInputRule(config: { find: InputRuleFinder, diff --git a/packages/core/src/pasteRules/markPasteRule.ts b/packages/core/src/pasteRules/markPasteRule.ts index 8e8bbb6c3c1..3ab658146aa 100644 --- a/packages/core/src/pasteRules/markPasteRule.ts +++ b/packages/core/src/pasteRules/markPasteRule.ts @@ -8,7 +8,7 @@ import { callOrReturn } from '../utilities/callOrReturn.js' /** * Build an paste rule that adds a mark when the * matched text is pasted into it. - * @see https://tiptap.dev/guide/custom-extensions/#paste-rules + * @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#paste-rules */ export function markPasteRule(config: { find: PasteRuleFinder diff --git a/packages/core/src/pasteRules/nodePasteRule.ts b/packages/core/src/pasteRules/nodePasteRule.ts index 53d7185639f..b18581dcbbb 100644 --- a/packages/core/src/pasteRules/nodePasteRule.ts +++ b/packages/core/src/pasteRules/nodePasteRule.ts @@ -7,7 +7,7 @@ import { callOrReturn } from '../utilities/index.js' /** * Build an paste rule that adds a node when the * matched text is pasted into it. - * @see https://tiptap.dev/guide/custom-extensions/#paste-rules + * @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#paste-rules */ export function nodePasteRule(config: { find: PasteRuleFinder diff --git a/packages/core/src/pasteRules/textPasteRule.ts b/packages/core/src/pasteRules/textPasteRule.ts index f7f67308d60..d47fdbaec9c 100644 --- a/packages/core/src/pasteRules/textPasteRule.ts +++ b/packages/core/src/pasteRules/textPasteRule.ts @@ -3,7 +3,7 @@ import { PasteRule, PasteRuleFinder } from '../PasteRule.js' /** * Build an paste rule that replaces text when the * matched text is pasted into it. - * @see https://tiptap.dev/guide/custom-extensions/#paste-rules + * @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#paste-rules */ export function textPasteRule(config: { find: PasteRuleFinder,