diff --git a/src/components/editor/MentionEditor.tsx b/src/components/editor/MentionEditor.tsx index 2f56936..43d0a19 100644 --- a/src/components/editor/MentionEditor.tsx +++ b/src/components/editor/MentionEditor.tsx @@ -169,6 +169,18 @@ export const MentionEditor = forwardRef< }), StarterKit.configure({ hardBreak: { keepMarks: false }, + // Disable all rich text / markdown syntax — these are plain text editors + bold: false, + italic: false, + strike: false, + code: false, + codeBlock: false, + blockquote: false, + bulletList: false, + orderedList: false, + listItem: false, + heading: false, + horizontalRule: false, }), Mention.configure({ HTMLAttributes: { class: "mention" }, diff --git a/src/components/editor/RichEditor.tsx b/src/components/editor/RichEditor.tsx index a2ccce6..ec06243 100644 --- a/src/components/editor/RichEditor.tsx +++ b/src/components/editor/RichEditor.tsx @@ -138,6 +138,18 @@ export const RichEditor = forwardRef( }), StarterKit.configure({ hardBreak: { keepMarks: false }, + // Disable all rich text / markdown syntax — these are plain text editors + bold: false, + italic: false, + strike: false, + code: false, + codeBlock: false, + blockquote: false, + bulletList: false, + orderedList: false, + listItem: false, + heading: false, + horizontalRule: false, }), Mention.extend({ renderText({ node }) {