mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 19:00:38 +09:00
Fix atomic markdown mention deletion
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
db42adf1bf
commit
bd0b76072b
7 changed files with 242 additions and 1 deletions
|
|
@ -30,6 +30,7 @@ import { LinkNode } from "@lexical/link";
|
|||
import { buildAgentMentionHref, buildProjectMentionHref } from "@paperclipai/shared";
|
||||
import { AgentIcon } from "./AgentIconPicker";
|
||||
import { applyMentionChipDecoration, clearMentionChipDecoration, parseMentionChipHref } from "../lib/mention-chips";
|
||||
import { mentionDeletionPlugin } from "../lib/mention-deletion";
|
||||
import { cn } from "../lib/utils";
|
||||
|
||||
/* ---- Allow custom mention URL schemes in Lexical's LinkNode ---- */
|
||||
|
|
@ -288,6 +289,7 @@ export const MarkdownEditor = forwardRef<MarkdownEditorRef, MarkdownEditorProps>
|
|||
tablePlugin(),
|
||||
linkPlugin({ validateUrl: isSafeMarkdownLinkUrl }),
|
||||
linkDialogPlugin(),
|
||||
mentionDeletionPlugin(),
|
||||
thematicBreakPlugin(),
|
||||
codeBlockPlugin({
|
||||
defaultCodeBlockLanguage: "txt",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue