fix(web): paste markdown with inline code inside bold, italic, or strikethrough (#12290)
This commit is contained in:
1 parent
f7efb5354a
commit
dca84efb53
5 files changed
+25
-1
No files matched your search
@@ -46,6 +46,7 @@ import {
|
||||
buildDocJson,
|
||||
buildTiptapContent,
|
||||
collapsedToFlat,
|
||||
ComposerCodeExtension,
|
||||
ComposerTaskItemExtension,
|
||||
flatToCollapsed,
|
||||
flatToMarkdown,
|
||||
@@ -754,8 +755,9 @@ function ComposerPromptEditorTiptapInner(props: ComposerPromptEditorProps) {
|
||||
dropcursor: false,
|
||||
gapcursor: false,
|
||||
trailingNode: false,
|
||||
code: false,
|
||||
// Plain mode has no marks: typed markers stay literal characters.
|
||||
...(richText ? {} : { bold: false, italic: false, strike: false, code: false }),
|
||||
...(richText ? {} : { bold: false, italic: false, strike: false }),
|
||||
}),
|
||||
ComposerMentionExtension,
|
||||
ComposerSkillExtension,
|
||||
@@ -764,6 +766,7 @@ function ComposerPromptEditorTiptapInner(props: ComposerPromptEditorProps) {
|
||||
ComposerMarkersExtension,
|
||||
...(richText
|
||||
? [
|
||||
ComposerCodeExtension,
|
||||
TaskList,
|
||||
ComposerTaskItemExtension.extend({
|
||||
addInputRules() {
|
||||
|
||||
Reference in new issue
Block a user