diff --git a/docs/src/docs/others/tiptap.mdx b/docs/src/docs/others/tiptap.mdx index 8e90b607a46..b9e29b779ba 100644 --- a/docs/src/docs/others/tiptap.mdx +++ b/docs/src/docs/others/tiptap.mdx @@ -432,7 +432,7 @@ export const DEFAULT_LABELS: RichTextEditorLabels = { boldControlLabel: 'Bold', italicControlLabel: 'Italic', underlineControlLabel: 'Underline', - strikeControlLabel: 'Strike though', + strikeControlLabel: 'Strikethrough', clearFormattingControlLabel: 'Clear formatting', unlinkControlLabel: 'Remove link', bulletListControlLabel: 'Bullet list', diff --git a/src/mantine-tiptap/src/RichTextEditor.tsx b/src/mantine-tiptap/src/RichTextEditor.tsx index 042a69fd2e8..2e885a89d7b 100644 --- a/src/mantine-tiptap/src/RichTextEditor.tsx +++ b/src/mantine-tiptap/src/RichTextEditor.tsx @@ -88,7 +88,7 @@ RichTextEditor.Toolbar = Toolbar; // Controls components RichTextEditor.Bold = controls.BoldControl; RichTextEditor.Italic = controls.ItalicControl; -RichTextEditor.Strikethrough = controls.StrikeThoughControl; +RichTextEditor.Strikethrough = controls.StrikeThroughControl; RichTextEditor.Underline = controls.UnderlineControl; RichTextEditor.ClearFormatting = controls.ClearFormattingControl; RichTextEditor.H1 = controls.H1Control; diff --git a/src/mantine-tiptap/src/controls/controls.tsx b/src/mantine-tiptap/src/controls/controls.tsx index b4e48de0d05..b247434eb5d 100644 --- a/src/mantine-tiptap/src/controls/controls.tsx +++ b/src/mantine-tiptap/src/controls/controls.tsx @@ -49,7 +49,7 @@ export const UnderlineControl = createControl({ operation: { name: 'toggleUnderline' }, }); -export const StrikeThoughControl = createControl({ +export const StrikeThroughControl = createControl({ label: 'strikeControlLabel', icon: (props) => , isActive: { name: 'strike' }, diff --git a/src/mantine-tiptap/src/labels.ts b/src/mantine-tiptap/src/labels.ts index af33688e8eb..90f5102c873 100644 --- a/src/mantine-tiptap/src/labels.ts +++ b/src/mantine-tiptap/src/labels.ts @@ -126,7 +126,7 @@ export const DEFAULT_LABELS: RichTextEditorLabels = { boldControlLabel: 'Bold', italicControlLabel: 'Italic', underlineControlLabel: 'Underline', - strikeControlLabel: 'Strike though', + strikeControlLabel: 'Strikethrough', clearFormattingControlLabel: 'Clear formatting', unlinkControlLabel: 'Remove link', bulletListControlLabel: 'Bullet list',