From 364dc48247011538c5fe7ac410acaefa9b7a66fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20G=C3=B3mez?= Date: Mon, 16 Mar 2026 16:42:52 +0100 Subject: [PATCH] fix: disable rich syntax in chat and poast composers --- src/components/editor/MentionEditor.tsx | 12 ++++++++++++ src/components/editor/RichEditor.tsx | 12 ++++++++++++ 2 files changed, 24 insertions(+) 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 }) {