Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: force plain text paste in ChatInput editor (#11414)

Innei70daf1355d99
diff --git a/package.json b/package.json
index a0615e24dc4..348fd1374c2 100644
--- a/package.json
+++ b/package.json
@@ -202,7 +202,7 @@
"@lobehub/chat-plugin-sdk": "^1.32.4",
"@lobehub/chat-plugins-gateway": "^1.9.0",
"@lobehub/desktop-ipc-typings": "workspace:*",
- "@lobehub/editor": "^3.8.0",
+ "@lobehub/editor": "^3.11.0",
"@lobehub/icons": "^4.0.2",
"@lobehub/market-sdk": "0.28.1",
"@lobehub/tts": "^4.0.2",
diff --git a/src/features/ChatInput/InputEditor/index.tsx b/src/features/ChatInput/InputEditor/index.tsx
index 032623b25d9..3cfb467f8c6 100644
--- a/src/features/ChatInput/InputEditor/index.tsx
+++ b/src/features/ChatInput/InputEditor/index.tsx
@@ -120,6 +120,7 @@ const InputEditor = memo<{ defaultRows?: number }>(({ defaultRows = 2 }) => {
className={className}
content={''}
editor={editor}
+ pasteAsPlainText
{...richRenderProps}
mentionOption={
enableMention