fix: disable rich syntax in chat and poast composers

This commit is contained in:
Alejandro Gómez
2026-03-16 16:42:52 +01:00
parent 437313b7ff
commit 364dc48247
2 changed files with 24 additions and 0 deletions

View File

@@ -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" },

View File

@@ -138,6 +138,18 @@ export const RichEditor = forwardRef<RichEditorHandle, RichEditorProps>(
}),
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 }) {