mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-10 07:27:23 +02:00
fix: disable rich syntax in chat and poast composers
This commit is contained in:
@@ -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" },
|
||||
|
||||
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user